Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FoundDream/miniclawd
/ functions
Functions
234 in github.com/FoundDream/miniclawd
⨍
Functions
234
◇
Types & classes
88
↓ 74 callers
Method
push
(item: T)
src/infrastructure/queue/message-bus.ts:22
↓ 16 callers
Method
register
* Register a tool.
src/tools/registry.ts:20
↓ 12 callers
Function
nowMs
()
src/application/scheduler.ts:31
↓ 11 callers
Method
get
* Get a tool by name.
src/tools/registry.ts:34
↓ 11 callers
Function
getWorkspacePath
(workspace?: string)
src/utils/paths.ts:38
↓ 9 callers
Function
ensureDir
(path: string)
src/utils/paths.ts:11
↓ 9 callers
Function
loadConfig
(configPath?: string)
src/infrastructure/config/loader.ts:81
↓ 8 callers
Method
loadStore
* Load jobs from disk.
src/application/scheduler.ts:138
↓ 8 callers
Function
stripTags
* Strip HTML tags and decode entities.
src/tools/web.ts:19
↓ 7 callers
Function
expandUser
(path: string)
src/utils/paths.ts:21
↓ 6 callers
Method
armTimer
* Schedule the next timer tick.
src/application/scheduler.ts:338
↓ 6 callers
Function
getDataDir
()
src/infrastructure/config/loader.ts:20
↓ 6 callers
Method
saveStore
* Save jobs to disk.
src/application/scheduler.ts:189
↓ 5 callers
Function
computeNextRun
( schedule: Schedule, currentMs: number, )
src/application/scheduler.ts:35
↓ 5 callers
Method
onMessage
(ctx: Context)
src/infrastructure/channels/telegram.ts:210
↓ 4 callers
Function
addMessage
( session: Session, role: SessionMessage["role"], content: string, extras?: Partial<SessionMessage>, )
src/infrastructure/storage/session-store.ts:38
↓ 4 callers
Function
createOutboundMessage
* Create an outbound message with defaults.
src/tools/message.ts:14
↓ 4 callers
Method
execute
Execute the tool with given parameters
src/core/types/tool.ts:27
↓ 4 callers
Function
getConfigPath
()
src/infrastructure/config/loader.ts:13
↓ 4 callers
Method
setContext
* Set the origin context for subagent announcements.
src/tools/spawn.ts:52
↓ 4 callers
Method
stop
* Stop the channel and clean up resources.
src/core/interfaces/channel.ts:29
↓ 3 callers
Method
chat
* Send a chat completion request.
src/core/interfaces/llm-provider.ts:15
↓ 3 callers
Method
delete
* Delete a session.
src/core/interfaces/storage.ts:24
↓ 3 callers
Method
getDefinitions
* Get all tool definitions as CoreTool record for AI SDK.
src/tools/registry.ts:48
↓ 3 callers
Method
getSessionPath
(key: string)
src/infrastructure/storage/session-store.ts:90
↓ 3 callers
Method
getSkillMetadata
* Get metadata from a skill's frontmatter.
src/application/skills-loader.ts:216
↓ 3 callers
Method
hasToolCalls
* Check if response has tool calls.
src/infrastructure/llm/ai-sdk-provider.ts:196
↓ 3 callers
Method
processDirect
* Process a message directly (for CLI usage).
src/application/agent-loop.ts:393
↓ 3 callers
Method
publishOutbound
* Publish a response from the agent to channels.
src/core/interfaces/message-bus.ts:34
↓ 3 callers
Method
start
* Start the channel and begin listening for messages.
src/core/interfaces/channel.ts:24
↓ 2 callers
Method
announceResult
* Announce the subagent result to the main agent via the message bus.
src/application/subagent.ts:193
↓ 2 callers
Method
buildMessages
* Build the complete message list for an LLM call.
src/application/context-builder.ts:141
↓ 2 callers
Method
checkRequirements
* Check if skill requirements are met.
src/application/skills-loader.ts:253
↓ 2 callers
Function
createInboundMessage
( partial: Partial<InboundMessage> & Pick<InboundMessage, "channel" | "senderId" | "chatId" | "content">
src/infrastructure/queue/events.ts:13
↓ 2 callers
Function
createStore
* Create a default job store.
src/application/scheduler.ts:70
↓ 2 callers
Method
executeJob
* Execute a single job.
src/application/scheduler.ts:380
↓ 2 callers
Function
getHistory
( session: Session, maxMessages: number = 50, )
src/infrastructure/storage/session-store.ts:57
↓ 2 callers
Method
getNextWakeMs
* Get the earliest next run time across all jobs.
src/application/scheduler.ts:327
↓ 2 callers
Method
getOrCreate
* Get an existing session or create a new one.
src/core/interfaces/storage.ts:14
↓ 2 callers
Method
getSkillMeta
* Get nanobot metadata for a skill.
src/application/skills-loader.ts:233
↓ 2 callers
Method
getTodayFile
* Get path to today's memory file.
src/infrastructure/storage/memory-store.ts:27
↓ 2 callers
Method
isAllowed
* Check if a sender is allowed to use this bot.
src/core/interfaces/channel.ts:39
↓ 2 callers
Method
listSkills
* List all available skills.
src/application/skills-loader.ts:79
↓ 2 callers
Method
loadSkill
* Load a skill by name.
src/application/skills-loader.ts:121
↓ 2 callers
Method
parseNanobotMetadata
* Parse nanobot metadata JSON from frontmatter.
src/application/skills-loader.ts:241
↓ 2 callers
Method
pop
()
src/infrastructure/queue/message-bus.ts:31
↓ 2 callers
Method
popWithTimeout
(timeoutMs: number)
src/infrastructure/queue/message-bus.ts:41
↓ 2 callers
Method
processMessage
* Process a single inbound message.
src/application/agent-loop.ts:166
↓ 2 callers
Method
publishInbound
* Publish a message from a channel to the agent.
src/core/interfaces/message-bus.ts:19
↓ 2 callers
Method
save
* Save a session to persistent storage.
src/core/interfaces/storage.ts:19
↓ 2 callers
Function
todayDate
()
src/utils/paths.ts:71
↓ 2 callers
Method
which
* Check if a command exists.
src/application/skills-loader.ts:321
↓ 1 callers
Method
addHeartbeatJob
* Add heartbeat as a periodic job.
src/application/scheduler.ts:269
↓ 1 callers
Method
addJob
* Add a new job.
src/application/scheduler.ts:470
↓ 1 callers
Function
askQuestion
()
src/cli/commands.ts:314
↓ 1 callers
Method
buildSkillsSummary
* Build a summary of all skills (name, description, path, availability).
src/application/skills-loader.ts:157
↓ 1 callers
Method
buildSubagentPrompt
* Build a focused system prompt for the subagent.
src/application/subagent.ts:227
↓ 1 callers
Method
buildSystemPrompt
* Build the system prompt from bootstrap files, memory, and skills.
src/application/context-builder.ts:37
↓ 1 callers
Method
buildUserContent
* Build user message content with optional base64-encoded images.
src/application/context-builder.ts:172
↓ 1 callers
Function
camelToSnake
* Convert camelCase to snake_case.
src/infrastructure/config/loader.ts:31
↓ 1 callers
Method
checkHeartbeatFile
* Check if HEARTBEAT.md has actionable content.
src/application/scheduler.ts:438
↓ 1 callers
Method
consumeInboundWithTimeout
* Consume the next inbound message with timeout.
src/core/interfaces/message-bus.ts:29
↓ 1 callers
Method
consumeOutboundWithTimeout
* Consume the next outbound message with timeout.
src/infrastructure/queue/message-bus.ts:122
↓ 1 callers
Method
consumeOutboundWithTimeout
* Consume the next outbound message with timeout.
src/core/interfaces/message-bus.ts:44
↓ 1 callers
Function
convertToCamel
* Recursively convert object keys from camelCase to snake_case.
src/infrastructure/config/loader.ts:47
↓ 1 callers
Function
convertToSnake
* Recursively convert object keys from snake_case to camelCase.
src/infrastructure/config/loader.ts:64
↓ 1 callers
Function
createProgram
()
src/cli/commands.ts:109
↓ 1 callers
Function
createSession
* Create a new session.
src/infrastructure/storage/session-store.ts:25
↓ 1 callers
Function
createWorkspaceTemplates
* Create workspace template files.
src/cli/commands.ts:30
↓ 1 callers
Method
dispatchOutbound
* Dispatch outbound messages to the appropriate channel.
src/infrastructure/channels/manager.ts:109
↓ 1 callers
Method
enableJob
* Enable or disable a job.
src/application/scheduler.ts:517
↓ 1 callers
Method
execute
* Execute a tool by name with given parameters.
src/tools/registry.ts:73
↓ 1 callers
Method
fetchDirect
( url: string, extractMode: "markdown" | "text", maxChars: number, )
src/tools/web.ts:329
↓ 1 callers
Method
fetchJina
( url: string, maxChars: number, )
src/tools/web.ts:284
↓ 1 callers
Method
getAlwaysSkills
* Get skills marked as always=true that meet requirements.
src/application/skills-loader.ts:198
↓ 1 callers
Function
getDataPath
()
src/utils/paths.ts:31
↓ 1 callers
Method
getExtension
(mediaType: string, mimeType?: string)
src/infrastructure/channels/telegram.ts:318
↓ 1 callers
Method
getIdentity
* Get the core identity section.
src/application/context-builder.ts:82
↓ 1 callers
Method
getMemoryContext
* Get combined memory context.
src/core/interfaces/storage.ts:64
↓ 1 callers
Method
getMissingRequirements
* Get a description of missing requirements.
src/application/skills-loader.ts:276
↓ 1 callers
Method
getProvider
* Get the appropriate provider based on model ID.
src/infrastructure/llm/ai-sdk-provider.ts:101
↓ 1 callers
Function
getSessionKey
(msg: InboundMessage)
src/infrastructure/queue/events.ts:42
↓ 1 callers
Method
getSkillDescription
* Get the description of a skill from its frontmatter.
src/application/skills-loader.ts:298
↓ 1 callers
Method
has
* Check if a tool is registered.
src/tools/registry.ts:41
↓ 1 callers
Method
initChannels
* Initialize channels based on config.
src/infrastructure/channels/manager.ts:31
↓ 1 callers
Function
isHeartbeatEmpty
* Check if HEARTBEAT.md has no actionable content.
src/application/scheduler.ts:80
↓ 1 callers
Method
listJobs
* List all jobs.
src/application/scheduler.ts:457
↓ 1 callers
Method
load
* Load a session from disk.
src/infrastructure/storage/session-store.ts:114
↓ 1 callers
Method
loadBootstrapFiles
* Load all bootstrap files from workspace.
src/application/context-builder.ts:124
↓ 1 callers
Method
loadSkillsForContext
* Load specific skills for inclusion in agent context.
src/application/skills-loader.ts:140
↓ 1 callers
Function
markdownToTelegramHtml
* Convert markdown to Telegram-safe HTML.
src/infrastructure/channels/telegram.ts:17
↓ 1 callers
Function
normalize
* Normalize whitespace.
src/tools/web.ts:36
↓ 1 callers
Method
onMessage
(data: any)
src/infrastructure/channels/feishu.ts:118
↓ 1 callers
Method
onTimer
* Handle timer tick - run due jobs.
src/application/scheduler.ts:361
↓ 1 callers
Method
processSystemMessage
* Process a system message (e.g., subagent announce).
src/application/agent-loop.ts:284
↓ 1 callers
Method
publishOutbound
* Publish a response from the agent to channels.
src/infrastructure/queue/message-bus.ts:108
↓ 1 callers
Method
readLongTerm
* Read long-term memory (MEMORY.md).
src/infrastructure/storage/memory-store.ts:64
↓ 1 callers
Method
readToday
* Read today's memory notes.
src/infrastructure/storage/memory-store.ts:34
↓ 1 callers
Method
recomputeNextRuns
* Recompute next run times for all enabled jobs.
src/application/scheduler.ts:314
↓ 1 callers
Method
registerDefaultTools
* Register the default set of tools.
src/application/agent-loop.ts:98
next →
1–100 of 234, ranked by callers