Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MagicCube/agentara
/ functions
Functions
836 in github.com/MagicCube/agentara
⨍
Functions
836
◇
Types & classes
177
↓ 462 callers
Function
cn
(...inputs: ClassValue[])
web/src/lib/utils.ts:4
↓ 22 callers
Method
run
* 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 callers
Function
parse
(line: string)
tests/community/openai/codex-agent-runner.test.ts:12
↓ 17 callers
Function
extractTextContent
( message: Message, options: { includeToolUse?: boolean; includeThinking?: boolean } = { includeToolUs
src/shared/messaging/utils/index.ts:50
↓ 15 callers
Function
createLogger
(topic: string)
src/shared/logging/index.ts:41
↓ 12 callers
Function
_renderStep
Create a step element (icon + text) for the collapsible panel.
src/community/feishu/messaging/message-renderer.ts:344
↓ 10 callers
Method
route
* 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 callers
Function
uuid
()
src/shared/utils/uuid.ts:3
↓ 9 callers
Method
stop
()
web/src/components/ai-elements/speech-input.tsx:16
↓ 8 callers
Function
isPureTextMessage
(message: Message)
src/shared/messaging/utils/index.ts:16
↓ 8 callers
Function
resolveImports
(text: string, baseDir: string)
src/shared/instructions/resolve-instructions.ts:62
↓ 8 callers
Function
useContextValue
()
web/src/components/ai-elements/context.tsx:34
↓ 8 callers
Method
write
( // eslint-disable-next-line no-unused-vars message: Message, )
src/kernel/sessioning/writers/session-writer.ts:8
↓ 7 callers
Method
start
Start the gateway and all registered channels.
src/shared/messaging/message-gateway.ts:24
↓ 7 callers
Function
useStackTrace
()
web/src/components/ai-elements/stack-trace.tsx:62
↓ 6 callers
Function
useOpenInContext
()
web/src/components/ai-elements/open-in-chat.tsx:190
↓ 5 callers
Function
renderMessageCard
( messageContent: AssistantMessage["content"], { streaming, uploadImage, }: { streaming: boo
src/community/feishu/messaging/message-renderer.ts:35
↓ 5 callers
Function
useMessageBranch
()
web/src/components/ai-elements/message.tsx:127
↓ 5 callers
Function
useSidebar
()
web/src/components/ui/sidebar.tsx:47
↓ 4 callers
Method
_updateTaskStatus
* Update the status of a task in the database.
src/kernel/tasking/task-dispatcher.ts:701
↓ 4 callers
Method
existsSession
* 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 callers
Method
getScheduledTasks
* Get all persisted scheduled tasks from the database. * @returns An array of scheduled task rows.
src/kernel/tasking/task-dispatcher.ts:489
↓ 4 callers
Method
replyMessage
* 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 callers
Function
useCarousel
()
web/src/components/ui/carousel.tsx:33
↓ 4 callers
Function
useConfirmation
()
web/src/components/ai-elements/confirmation.tsx:48
↓ 3 callers
Function
_applyStyle
(text: string, style?: string[])
src/community/feishu/messaging/utils/index.ts:18
↓ 3 callers
Method
_attachWriter
(session: Session, sessionId: string)
src/kernel/sessioning/session-manager.ts:317
↓ 3 callers
Method
_logOutboundMessage
( sessionId: string, content: AssistantMessage["content"], )
src/community/feishu/messaging/message-channel.ts:538
↓ 3 callers
Method
_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 callers
Method
_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 callers
Method
_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 callers
Method
_sendLocalFileAttachments
Upload local files referenced in text and send them as Feishu file message replies.
src/community/feishu/messaging/message-channel.ts:487
↓ 3 callers
Method
_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 callers
Function
apiFetch
( path: string, init?: RequestInit, )
web/src/lib/api/client.ts:11
↓ 3 callers
Function
containsThinking
(message: Message)
src/shared/messaging/utils/index.ts:28
↓ 3 callers
Function
containsToolUse
(message: Message)
src/shared/messaging/utils/index.ts:39
↓ 3 callers
Method
deleteTask
* 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 callers
Function
highlightCode
( code: string, language: BundledLanguage, // oxlint-disable-next-line eslint-plugin-promise(prefer-awai
web/src/components/ai-elements/code-block.tsx:175
↓ 3 callers
Method
postMessage
(message: Omit<AssistantMessage, "id">)
src/shared/messaging/message-gateway.ts:32
↓ 3 callers
Function
resolveInstructionFile
( filePath: string, baseDir: string, )
src/shared/instructions/resolve-instructions.ts:34
↓ 3 callers
Function
soulPath
()
src/server/routes/memory.ts:11
↓ 3 callers
Method
updateMessageContent
* 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 callers
Function
useAttachmentContext
()
web/src/components/ai-elements/attachments.tsx:138
↓ 3 callers
Function
useCarouselApi
()
web/src/components/ai-elements/inline-citation.tsx:95
↓ 3 callers
Function
useWebPreview
()
web/src/components/ai-elements/web-preview.tsx:37
↓ 3 callers
Function
userPath
()
src/server/routes/memory.ts:10
↓ 2 callers
Function
_countElements
(value: unknown)
src/community/feishu/messaging/message-renderer.ts:171
↓ 2 callers
Function
_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 callers
Method
_mapThreadToSession
Persist a thread→session mapping to DB and update the in-memory cache.
src/community/feishu/messaging/message-channel.ts:581
↓ 2 callers
Method
_parseStreamLine
( line: string, sessionId: string, )
src/community/anthropic/claude-agent-runner.ts:141
↓ 2 callers
Function
appendFile
( 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 callers
Method
close
* Close the database connection.
src/data/data-connection.ts:57
↓ 2 callers
Method
dispatch
* 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 callers
Function
downloadFile
(url: string, path: string)
src/boot-loader/boot-loader.ts:145
↓ 2 callers
Method
downloadMessageResource
* 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 callers
Function
ensureFile
(path: string)
src/kernel/sessioning/writers/session-writer-utils.ts:20
↓ 2 callers
Function
firstPartOfUUID
(uuid: string)
web/src/lib/utils/uuid.ts:1
↓ 2 callers
Function
getCurrentTheme
()
web/src/components/ai-elements/persona.tsx:77
↓ 2 callers
Function
getHandleCoordsByPosition
( node: InternalNode<Node>, handlePosition: Position )
web/src/components/ai-elements/edge.tsx:41
↓ 2 callers
Function
getMediaCategory
( data: AttachmentData )
web/src/components/ai-elements/attachments.tsx:55
↓ 2 callers
Function
getStatusBadge
(status: ToolPart["state"])
web/src/components/ai-elements/tool.tsx:68
↓ 2 callers
Function
handleCopySessionId
(sessionId: string)
web/src/app/sessions/index.tsx:55
↓ 2 callers
Function
onChange
()
web/src/hooks/use-mobile.ts:10
↓ 2 callers
Function
readFileOrDefault
(path: string)
src/server/routes/memory.ts:13
↓ 2 callers
Method
removeScheduledTask
* 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 callers
Method
removeSession
* 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 callers
Function
renderContent
(message: UserMessage | AssistantMessage)
web/src/app/sessions/$sessionId.tsx:124
↓ 2 callers
Method
resolveSession
* 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 callers
Method
start
()
web/src/components/ai-elements/speech-input.tsx:15
↓ 2 callers
Method
stream
* Streams the chunking messages from the agent.
src/shared/agents/agent-runner.ts:50
↓ 2 callers
Function
useChainOfThought
()
web/src/components/ai-elements/chain-of-thought.tsx:26
↓ 2 callers
Function
useJSXPreview
()
web/src/components/ai-elements/jsx-preview.tsx:34
↓ 2 callers
Function
useOptionalPromptInputController
()
web/src/components/ai-elements/prompt-input.tsx:147
↓ 2 callers
Function
usePlan
()
web/src/components/ai-elements/plan.tsx:32
↓ 2 callers
Function
usePromptInputAttachments
()
web/src/components/ai-elements/prompt-input.tsx:297
↓ 2 callers
Function
useSessions
()
web/src/lib/api/hooks.ts:18
↓ 2 callers
Function
useTheme
(enabled: boolean)
web/src/components/ai-elements/persona.tsx:89
↓ 1 callers
Method
_buildExecArgs
({ isNew, resumeId, prompt, }: { isNew: boolean; resumeId: string; prompt: string;
src/community/openai/codex-agent-runner.ts:469
↓ 1 callers
Method
_drain
()
src/kernel/sessioning/writers/session-daily-log-writer.ts:25
↓ 1 callers
Function
_elementToMarkdown
( el: PostElement, downloadMessageResource: ( // eslint-disable-next-line no-unused-vars file_key:
src/community/feishu/messaging/utils/index.ts:42
↓ 1 callers
Method
_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 callers
Method
_extractLocalFilePaths
Extract local file paths from markdown link syntax [text](path) in text.
src/community/feishu/messaging/message-channel.ts:469
↓ 1 callers
Method
_formatFileChangePath
( changes: Array<{ path: string; kind: string }>, )
src/community/openai/codex-agent-runner.ts:433
↓ 1 callers
Method
_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 callers
Method
_igniteKernel
()
src/boot-loader/boot-loader.ts:128
↓ 1 callers
Method
_initDatabase
()
src/kernel/kernel.ts:62
↓ 1 callers
Method
_initMessageGateway
()
src/kernel/kernel.ts:89
↓ 1 callers
Method
_initServer
()
src/kernel/kernel.ts:74
↓ 1 callers
Method
_initSessionManager
()
src/kernel/kernel.ts:70
↓ 1 callers
Method
_initTaskDispatcher
()
src/kernel/kernel.ts:78
↓ 1 callers
Function
_isFeishuBadRequestError
(err: unknown)
src/community/feishu/messaging/message-channel.ts:25
↓ 1 callers
Method
_loadMessages
()
src/shared/agents/mock-agent-runner.ts:25
↓ 1 callers
Method
_mapEvent
( // eslint-disable-next-line @typescript-eslint/no-explicit-any event: any, sessionId: string,
src/community/openai/codex-agent-runner.ts:168
↓ 1 callers
Method
_mapItemEvent
( // eslint-disable-next-line @typescript-eslint/no-explicit-any event: any, sessionId: string,
src/community/openai/codex-agent-runner.ts:224
↓ 1 callers
Method
_parseMessageContent
( messageId: string, type: string, content: string, )
src/community/feishu/messaging/message-channel.ts:613
↓ 1 callers
Method
_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 callers
Method
_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 callers
Function
_renderTool
Render a single tool use step into the collapsible panel.
src/community/feishu/messaging/message-renderer.ts:238
↓ 1 callers
Method
_replyUpdateFailureMessage
(messageId: string)
src/community/feishu/messaging/message-channel.ts:516
↓ 1 callers
Method
_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