MCPcopy Create free account

hub / github.com/MagicCube/agentara / functions

Functions836 in github.com/MagicCube/agentara

↓ 462 callersFunctioncn
(...inputs: ClassValue[])
web/src/lib/utils.ts:4
↓ 22 callersMethodrun
* Send a message to the agent and return the last message. * @param userMessage - The message to send to the agent. * @param streamOptions - Opt
src/kernel/sessioning/session.ts:87
↓ 20 callersFunctionparse
(line: string)
tests/community/openai/codex-agent-runner.test.ts:12
↓ 17 callersFunctionextractTextContent
( message: Message, options: { includeToolUse?: boolean; includeThinking?: boolean } = { includeToolUs
src/shared/messaging/utils/index.ts:50
↓ 15 callersFunctioncreateLogger
(topic: string)
src/shared/logging/index.ts:41
↓ 12 callersFunction_renderStep
Create a step element (icon + text) for the collapsible panel.
src/community/feishu/messaging/message-renderer.ts:344
↓ 10 callersMethodroute
* Register a handler for a specific task type. * Must be called before {@link start}. * Throws if a handler for the given type is already regist
src/kernel/tasking/task-dispatcher.ts:124
↓ 10 callersFunctionuuid
()
src/shared/utils/uuid.ts:3
↓ 9 callersMethodstop
()
web/src/components/ai-elements/speech-input.tsx:16
↓ 8 callersFunctionisPureTextMessage
(message: Message)
src/shared/messaging/utils/index.ts:16
↓ 8 callersFunctionresolveImports
(text: string, baseDir: string)
src/shared/instructions/resolve-instructions.ts:62
↓ 8 callersFunctionuseContextValue
()
web/src/components/ai-elements/context.tsx:34
↓ 8 callersMethodwrite
( // eslint-disable-next-line no-unused-vars message: Message, )
src/kernel/sessioning/writers/session-writer.ts:8
↓ 7 callersMethodstart
Start the gateway and all registered channels.
src/shared/messaging/message-gateway.ts:24
↓ 7 callersFunctionuseStackTrace
()
web/src/components/ai-elements/stack-trace.tsx:62
↓ 6 callersFunctionuseOpenInContext
()
web/src/components/ai-elements/open-in-chat.tsx:190
↓ 5 callersFunctionrenderMessageCard
( messageContent: AssistantMessage["content"], { streaming, uploadImage, }: { streaming: boo
src/community/feishu/messaging/message-renderer.ts:35
↓ 5 callersFunctionuseMessageBranch
()
web/src/components/ai-elements/message.tsx:127
↓ 5 callersFunctionuseSidebar
()
web/src/components/ui/sidebar.tsx:47
↓ 4 callersMethod_updateTaskStatus
* Update the status of a task in the database.
src/kernel/tasking/task-dispatcher.ts:701
↓ 4 callersMethodexistsSession
* Returns whether a session with the given id exists in the database. * @param sessionId - The session identifier. * @returns true if a row exis
src/kernel/sessioning/session-manager.ts:70
↓ 4 callersMethodgetScheduledTasks
* Get all persisted scheduled tasks from the database. * @returns An array of scheduled task rows.
src/kernel/tasking/task-dispatcher.ts:489
↓ 4 callersMethodreplyMessage
* Reply to an existing message. * @param messageId - ID of the message to reply to. * @param message - The assistant message to send (without id
src/shared/messaging/message-gateway.ts:41
↓ 4 callersFunctionuseCarousel
()
web/src/components/ui/carousel.tsx:33
↓ 4 callersFunctionuseConfirmation
()
web/src/components/ai-elements/confirmation.tsx:48
↓ 3 callersFunction_applyStyle
(text: string, style?: string[])
src/community/feishu/messaging/utils/index.ts:18
↓ 3 callersMethod_attachWriter
(session: Session, sessionId: string)
src/kernel/sessioning/session-manager.ts:317
↓ 3 callersMethod_logOutboundMessage
( sessionId: string, content: AssistantMessage["content"], )
src/community/feishu/messaging/message-channel.ts:538
↓ 3 callersMethod_parseStreamLine
* Parses a single JSONL line from Codex CLI `exec --json` output * and maps it to zero or more Agentara messages.
src/community/openai/codex-agent-runner.ts:156
↓ 3 callersMethod_prepareMessageContent
* Prepare message content for sending, splitting if necessary due to table limits. * @param content - Original message content. * @param streami
src/community/feishu/messaging/message-channel.ts:414
↓ 3 callersMethod_resolveChannelForSession
* Resolves the correct channel for a session by querying the `channel_id` * from the sessions table. * @param sessionId - The session identifier
src/kernel/messaging/multi-channel-message-gateway.ts:129
↓ 3 callersMethod_sendLocalFileAttachments
Upload local files referenced in text and send them as Feishu file message replies.
src/community/feishu/messaging/message-channel.ts:487
↓ 3 callersMethod_sendRemainingChunks
* Send remaining markdown chunks as follow-up reply messages. * @param messageId - The message ID to reply to. * @param chunks - Array of markdo
src/community/feishu/messaging/message-channel.ts:443
↓ 3 callersFunctionapiFetch
( path: string, init?: RequestInit, )
web/src/lib/api/client.ts:11
↓ 3 callersFunctioncontainsThinking
(message: Message)
src/shared/messaging/utils/index.ts:28
↓ 3 callersFunctioncontainsToolUse
(message: Message)
src/shared/messaging/utils/index.ts:39
↓ 3 callersMethoddeleteTask
* Delete a task by ID. For pending jobs, removes from the queue. * For running tasks, aborts the handler and kills any spawned subprocesses. * A
src/kernel/tasking/task-dispatcher.ts:427
↓ 3 callersFunctionhighlightCode
( code: string, language: BundledLanguage, // oxlint-disable-next-line eslint-plugin-promise(prefer-awai
web/src/components/ai-elements/code-block.tsx:175
↓ 3 callersMethodpostMessage
(message: Omit<AssistantMessage, "id">)
src/shared/messaging/message-gateway.ts:32
↓ 3 callersFunctionresolveInstructionFile
( filePath: string, baseDir: string, )
src/shared/instructions/resolve-instructions.ts:34
↓ 3 callersFunctionsoulPath
()
src/server/routes/memory.ts:11
↓ 3 callersMethodupdateMessageContent
* Update the content of an existing message. * @param message - The assistant message with updated content. * @param options - Optional settings
src/shared/messaging/message-gateway.ts:55
↓ 3 callersFunctionuseAttachmentContext
()
web/src/components/ai-elements/attachments.tsx:138
↓ 3 callersFunctionuseCarouselApi
()
web/src/components/ai-elements/inline-citation.tsx:95
↓ 3 callersFunctionuseWebPreview
()
web/src/components/ai-elements/web-preview.tsx:37
↓ 3 callersFunctionuserPath
()
src/server/routes/memory.ts:10
↓ 2 callersFunction_countElements
(value: unknown)
src/community/feishu/messaging/message-renderer.ts:171
↓ 2 callersFunction_loadConfigFromFile
* Loads the application configuration from `$AGENTARA_HOME/config.yaml`. * Parses the YAML, resolves `$ENV_VAR` references, and validates against the
src/shared/config/index.ts:32
↓ 2 callersMethod_mapThreadToSession
Persist a thread→session mapping to DB and update the in-memory cache.
src/community/feishu/messaging/message-channel.ts:581
↓ 2 callersMethod_parseStreamLine
( line: string, sessionId: string, )
src/community/anthropic/claude-agent-runner.ts:141
↓ 2 callersFunctionappendFile
( path: string, content: string, // eslint-disable-next-line no-unused-vars onDone?: (err: NodeJS.Errn
src/kernel/sessioning/writers/session-writer-utils.ts:33
↓ 2 callersMethodclose
* Close the database connection.
src/data/data-connection.ts:57
↓ 2 callersMethoddispatch
* Dispatch a task for processing. * @param sessionId - The session that owns this task. * @param payload - The task payload to enqueue. * @re
src/kernel/tasking/task-dispatcher.ts:141
↓ 2 callersFunctiondownloadFile
(url: string, path: string)
src/boot-loader/boot-loader.ts:145
↓ 2 callersMethoddownloadMessageResource
* Downloads an image or a file from a message. * @param messageId - The ID of the message to download the resource from. * @param file_key - The
src/community/feishu/messaging/message-channel.ts:351
↓ 2 callersFunctionensureFile
(path: string)
src/kernel/sessioning/writers/session-writer-utils.ts:20
↓ 2 callersFunctionfirstPartOfUUID
(uuid: string)
web/src/lib/utils/uuid.ts:1
↓ 2 callersFunctiongetCurrentTheme
()
web/src/components/ai-elements/persona.tsx:77
↓ 2 callersFunctiongetHandleCoordsByPosition
( node: InternalNode<Node>, handlePosition: Position )
web/src/components/ai-elements/edge.tsx:41
↓ 2 callersFunctiongetMediaCategory
( data: AttachmentData )
web/src/components/ai-elements/attachments.tsx:55
↓ 2 callersFunctiongetStatusBadge
(status: ToolPart["state"])
web/src/components/ai-elements/tool.tsx:68
↓ 2 callersFunctionhandleCopySessionId
(sessionId: string)
web/src/app/sessions/index.tsx:55
↓ 2 callersFunctiononChange
()
web/src/hooks/use-mobile.ts:10
↓ 2 callersFunctionreadFileOrDefault
(path: string)
src/server/routes/memory.ts:13
↓ 2 callersMethodremoveScheduledTask
* Remove a scheduled task by its scheduler ID. * Deletes from the `scheduled_tasks` table and removes the bunqueue scheduler. * @param scheduler
src/kernel/tasking/task-dispatcher.ts:395
↓ 2 callersMethodremoveSession
* Removes a session: deletes the database record and the associated JSONL file. * @param sessionId - The session identifier. * @throws SessionNo
src/kernel/sessioning/session-manager.ts:252
↓ 2 callersFunctionrenderContent
(message: UserMessage | AssistantMessage)
web/src/app/sessions/$sessionId.tsx:124
↓ 2 callersMethodresolveSession
* Resolves session by database existence: creates if missing, resumes if exists. * @param sessionId - The session identifier. * @param options -
src/kernel/sessioning/session-manager.ts:85
↓ 2 callersMethodstart
()
web/src/components/ai-elements/speech-input.tsx:15
↓ 2 callersMethodstream
* Streams the chunking messages from the agent.
src/shared/agents/agent-runner.ts:50
↓ 2 callersFunctionuseChainOfThought
()
web/src/components/ai-elements/chain-of-thought.tsx:26
↓ 2 callersFunctionuseJSXPreview
()
web/src/components/ai-elements/jsx-preview.tsx:34
↓ 2 callersFunctionuseOptionalPromptInputController
()
web/src/components/ai-elements/prompt-input.tsx:147
↓ 2 callersFunctionusePlan
()
web/src/components/ai-elements/plan.tsx:32
↓ 2 callersFunctionusePromptInputAttachments
()
web/src/components/ai-elements/prompt-input.tsx:297
↓ 2 callersFunctionuseSessions
()
web/src/lib/api/hooks.ts:18
↓ 2 callersFunctionuseTheme
(enabled: boolean)
web/src/components/ai-elements/persona.tsx:89
↓ 1 callersMethod_buildExecArgs
({ isNew, resumeId, prompt, }: { isNew: boolean; resumeId: string; prompt: string;
src/community/openai/codex-agent-runner.ts:469
↓ 1 callersMethod_drain
()
src/kernel/sessioning/writers/session-daily-log-writer.ts:25
↓ 1 callersFunction_elementToMarkdown
( el: PostElement, downloadMessageResource: ( // eslint-disable-next-line no-unused-vars file_key:
src/community/feishu/messaging/utils/index.ts:42
↓ 1 callersMethod_ensureSkillsSymlink
* Creates a symlink at `.agents/skills` → `.claude/skills` so the Codex * CLI can discover skills via its native directory. The link is only *
src/boot-loader/boot-loader.ts:108
↓ 1 callersMethod_extractLocalFilePaths
Extract local file paths from markdown link syntax [text](path) in text.
src/community/feishu/messaging/message-channel.ts:469
↓ 1 callersMethod_formatFileChangePath
( changes: Array<{ path: string; kind: string }>, )
src/community/openai/codex-agent-runner.ts:433
↓ 1 callersMethod_handleInboundMessage
* Handles an inbound message from a channel: sets the channel_id on the * message and re-emits `message:inbound`.
src/kernel/messaging/multi-channel-message-gateway.ts:114
↓ 1 callersMethod_igniteKernel
()
src/boot-loader/boot-loader.ts:128
↓ 1 callersMethod_initDatabase
()
src/kernel/kernel.ts:62
↓ 1 callersMethod_initMessageGateway
()
src/kernel/kernel.ts:89
↓ 1 callersMethod_initServer
()
src/kernel/kernel.ts:74
↓ 1 callersMethod_initSessionManager
()
src/kernel/kernel.ts:70
↓ 1 callersMethod_initTaskDispatcher
()
src/kernel/kernel.ts:78
↓ 1 callersFunction_isFeishuBadRequestError
(err: unknown)
src/community/feishu/messaging/message-channel.ts:25
↓ 1 callersMethod_loadMessages
()
src/shared/agents/mock-agent-runner.ts:25
↓ 1 callersMethod_mapEvent
( // eslint-disable-next-line @typescript-eslint/no-explicit-any event: any, sessionId: string,
src/community/openai/codex-agent-runner.ts:168
↓ 1 callersMethod_mapItemEvent
( // eslint-disable-next-line @typescript-eslint/no-explicit-any event: any, sessionId: string,
src/community/openai/codex-agent-runner.ts:224
↓ 1 callersMethod_parseMessageContent
( messageId: string, type: string, content: string, )
src/community/feishu/messaging/message-channel.ts:613
↓ 1 callersMethod_processJob
* Process a job from the queue. Acquires a per-session lock so that * tasks for the same session_id execute serially in FIFO order.
src/kernel/tasking/task-dispatcher.ts:634
↓ 1 callersMethod_reloadScheduledTasks
* Reload all scheduled tasks from the database and re-register them * with bunqueue's job scheduler.
src/kernel/tasking/task-dispatcher.ts:576
↓ 1 callersFunction_renderTool
Render a single tool use step into the collapsible panel.
src/community/feishu/messaging/message-renderer.ts:238
↓ 1 callersMethod_replyUpdateFailureMessage
(messageId: string)
src/community/feishu/messaging/message-channel.ts:516
↓ 1 callersMethod_resolveChannel
* Looks up a registered channel by id. * @param channelId - The channel identifier. * @returns The matching MessageChannel. * @throws If the
src/kernel/messaging/multi-channel-message-gateway.ts:152
next →1–100 of 836, ranked by callers