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
↓ 1 callers
Method
removeJob
* Remove a job by ID.
src/application/scheduler.ts:499
↓ 1 callers
Method
run
* Run the agent loop, processing messages from the bus.
src/application/agent-loop.ts:126
↓ 1 callers
Method
runJob
* Manually run a job.
src/application/scheduler.ts:540
↓ 1 callers
Method
runSubagent
* Execute the subagent task and announce the result.
src/application/subagent.ts:90
↓ 1 callers
Function
safeFilename
(name: string)
src/utils/paths.ts:99
↓ 1 callers
Function
saveConfig
(config: Config, configPath?: string)
src/infrastructure/config/loader.ts:102
↓ 1 callers
Method
searchBrave
(query: string, count: number)
src/tools/web.ts:128
↓ 1 callers
Method
searchDuckDuckGo
( query: string, count: number, )
src/tools/web.ts:166
↓ 1 callers
Method
send
* Send a message through this channel.
src/core/interfaces/channel.ts:34
↓ 1 callers
Function
setNestedValue
* Set a nested value in an object using a path array.
src/infrastructure/config/loader.ts:141
↓ 1 callers
Function
snakeToCamel
* Convert snake_case to camelCase.
src/infrastructure/config/loader.ts:40
↓ 1 callers
Method
spawn
(options: { task: string; label?: string; originChannel: string; originChatId: string; })
src/tools/spawn.ts:12
↓ 1 callers
Method
start
* Start the scheduler.
src/application/scheduler.ts:240
↓ 1 callers
Method
startAll
* Start all channels and the outbound dispatcher.
src/infrastructure/channels/manager.ts:65
↓ 1 callers
Method
status
* Get scheduler status.
src/application/scheduler.ts:554
↓ 1 callers
Method
stopAll
* Stop all channels and the dispatcher.
src/infrastructure/channels/manager.ts:89
↓ 1 callers
Method
stripFrontmatter
* Remove YAML frontmatter from markdown content.
src/application/skills-loader.ts:309
↓ 1 callers
Function
toMarkdown
* Convert HTML to markdown.
src/tools/web.ts:65
↓ 1 callers
Function
validateUrl
* Validate URL: must be http(s) with valid domain.
src/tools/web.ts:44
↓ 1 callers
Function
zodFieldToJsonSchema
* Convert a Zod field to JSON Schema format.
src/tools/base.ts:106
↓ 1 callers
Function
zodToJsonSchema
* Convert a Zod schema to JSON Schema format.
src/tools/base.ts:74
Method
addAssistantMessage
* Add an assistant message to the message list.
src/application/context-builder.ts:209
Method
addJob
* Add a new job.
src/core/interfaces/scheduler.ts:40
Method
addToolResult
* Add a tool result to the message list.
src/application/context-builder.ts:186
Method
appendToday
* Append content to today's memory notes.
src/infrastructure/storage/memory-store.ts:45
Method
appendToday
* Append to today's notes.
src/core/interfaces/storage.ts:54
Function
applyEnvOverrides
(config: Config)
src/infrastructure/config/loader.ts:120
Method
chat
* Send a chat completion request.
src/infrastructure/llm/ai-sdk-provider.ts:40
Function
clearSession
(session: Session)
src/infrastructure/storage/session-store.ts:72
Function
constructor
(config: unknown, bus: MessageBus)
src/infrastructure/channels/base.ts:29
Method
constructor
(options: AIProviderOptions)
src/infrastructure/llm/ai-sdk-provider.ts:31
Method
constructor
(workspace: string)
src/infrastructure/storage/session-store.ts:84
Method
constructor
(workspace: string)
src/infrastructure/storage/memory-store.ts:19
Method
constructor
( config: TelegramConfig, bus: MessageBus, groqApiKey: string = "", )
src/infrastructure/channels/telegram.ts:94
Method
constructor
(config: Config, bus: MessageBus)
src/infrastructure/channels/manager.ts:22
Method
constructor
(config: FeishuConfig, bus: MessageBus)
src/infrastructure/channels/feishu.ts:20
Method
constructor
(options?: { timeout?: number; workingDir?: string })
src/tools/exec.ts:28
Method
constructor
(options?: { sendCallback?: SendCallback; defaultChannel?: string; defaultChatId?: string; })
src/tools/message.ts:45
Method
constructor
(manager: ISubagentManager)
src/tools/spawn.ts:44
Method
constructor
(options?: { apiKey?: string; maxResults?: number })
src/tools/web.ts:102
Method
constructor
(options?: { maxChars?: number })
src/tools/web.ts:250
Method
constructor
(options: { config: Config; bus: MessageBus; workspace: string; model?: string; braveApiKe
src/application/subagent.ts:40
Method
constructor
(options: { storePath: string; workspace: string; onJob?: JobCallback; heartbeatEnabled?: bool
src/application/scheduler.ts:120
Method
constructor
(options: { bus: MessageBus; config: Config; model?: string; maxIterations?: number; brave
src/application/agent-loop.ts:60
Method
constructor
(workspace: string, builtinSkillsDir?: string)
src/application/skills-loader.ts:70
Method
constructor
(workspace: string)
src/application/context-builder.ts:28
Method
consumeInbound
* Consume the next inbound message (blocks until available).
src/infrastructure/queue/message-bus.ts:92
Method
consumeInbound
* Consume the next inbound message (blocks until available).
src/core/interfaces/message-bus.ts:24
Method
consumeInboundWithTimeout
* Consume the next inbound message with timeout.
src/infrastructure/queue/message-bus.ts:99
Method
consumeOutbound
* Consume the next outbound message (blocks until available).
src/infrastructure/queue/message-bus.ts:115
Method
consumeOutbound
* Consume the next outbound message (blocks until available).
src/core/interfaces/message-bus.ts:39
Function
createOutboundMessage
( partial: Partial<OutboundMessage> & Pick<OutboundMessage, "channel" | "chatId" | "content">, )
src/infrastructure/queue/events.ts:28
Method
delete
* Delete a session.
src/infrastructure/storage/session-store.ts:182
Method
dispatchOutbound
* Dispatch outbound messages to subscribed channels. * Run this as a background task.
src/infrastructure/queue/message-bus.ts:141
Method
dispatchOutbound
* Dispatch outbound messages to subscribed channels.
src/core/interfaces/message-bus.ts:56
Method
enableJob
* Enable or disable a job.
src/core/interfaces/scheduler.ts:50
Method
enabledChannels
* Get list of enabled channel names.
src/infrastructure/channels/manager.ts:158
Method
escapeXml
(s: string)
src/application/skills-loader.ts:163
Method
execute
(params: { path: string })
src/tools/fs.ts:28
Method
execute
(params: { path: string; content: string })
src/tools/fs.ts:64
Method
execute
(params: { path: string; old_text: string; new_text: string; })
src/tools/fs.ts:97
Method
execute
(params: { path: string })
src/tools/fs.ts:144
Method
execute
(params: { command: string; working_dir?: string; })
src/tools/exec.ts:34
Method
execute
(params: { content: string; channel?: string; chat_id?: string; })
src/tools/message.ts:71
Method
execute
(params: { task: string; label?: string })
src/tools/spawn.ts:57
Method
execute
(params: { query: string; count?: number })
src/tools/web.ts:108
Method
execute
(params: { url: string; extractMode?: "markdown" | "text"; maxChars?: number; })
src/tools/web.ts:255
Method
feishuConfig
()
src/infrastructure/channels/feishu.ts:24
Function
getApiBase
(config: Config)
src/infrastructure/config/schema.ts:112
Function
getApiKey
(config: Config)
src/infrastructure/config/schema.ts:98
Method
getChannel
* Get a channel by name.
src/infrastructure/channels/manager.ts:135
Method
getDefaultModel
* Get the default model.
src/infrastructure/llm/ai-sdk-provider.ts:189
Method
getDefaultModel
* Get the default model.
src/core/interfaces/llm-provider.ts:26
Method
getMemoryContext
* Get memory context for the agent.
src/infrastructure/storage/memory-store.ts:119
Function
getMemoryPath
(workspace?: string)
src/utils/paths.ts:55
Method
getOpenAIDefinitions
* Get all tool definitions in OpenAI format.
src/tools/registry.ts:59
Method
getOrCreate
* Get an existing session or create a new one.
src/infrastructure/storage/session-store.ts:98
Method
getRecentMemories
* Get memories from the last N days.
src/infrastructure/storage/memory-store.ts:81
Method
getRecentMemories
* Get recent memories (last N days).
src/core/interfaces/storage.ts:59
Method
getRunningCount
* Return the number of currently running subagents.
src/application/subagent.ts:261
Function
getSessionsPath
()
src/utils/paths.ts:48
Function
getSkillsPath
(workspace?: string)
src/utils/paths.ts:63
Method
getStatus
* Get status of all channels.
src/infrastructure/channels/manager.ts:142
Function
getWorkspacePath
(config: Config)
src/infrastructure/config/schema.ts:90
Function
handleMessage
* Handle an incoming message from the chat platform.
src/infrastructure/channels/base.ts:81
Method
inboundSize
* Number of pending inbound messages.
src/infrastructure/queue/message-bus.ts:172
Function
isAllowed
* Check if a sender is allowed to use this bot.
src/infrastructure/channels/base.ts:52
Function
isRunning
* Check if the channel is running.
src/infrastructure/channels/base.ts:107
Method
listJobs
* List all jobs.
src/core/interfaces/scheduler.ts:60
Method
listMemoryFiles
* List all memory files sorted by date (newest first).
src/infrastructure/storage/memory-store.ts:103
Method
listSessions
* List all sessions.
src/infrastructure/storage/session-store.ts:196
Method
listSessions
* List all sessions.
src/core/interfaces/storage.ts:29
Method
outboundSize
* Number of pending outbound messages.
src/infrastructure/queue/message-bus.ts:179
Function
parseSessionKey
(key: string)
src/utils/paths.ts:111
Method
publishInbound
* Publish a message from a channel to the agent.
src/infrastructure/queue/message-bus.ts:85
Method
readLongTerm
* Read long-term memory.
src/core/interfaces/storage.ts:39
Method
readToday
* Read today's notes.
src/core/interfaces/storage.ts:49
Method
removeJob
* Remove a job by ID.
src/core/interfaces/scheduler.ts:45
Method
runJob
* Manually run a job.
src/core/interfaces/scheduler.ts:55
Method
save
* Save a session to disk.
src/infrastructure/storage/session-store.ts:156
← previous
next →
101–200 of 234, ranked by callers