Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/UraniumCorporation/maiar-ai
/ functions
Functions
373 in github.com/UraniumCorporation/maiar-ai
⨍
Functions
373
◇
Types & classes
175
↓ 92 callers
Method
log
(info: any, next: () => void)
packages/core/src/lib/winston/transports/websocket.ts:70
↓ 59 callers
Method
render
(id: string, ctx: T = {} as T)
packages/core/src/runtime/managers/prompt.ts:52
↓ 25 callers
Method
getObject
* Prompt the LLM to generate a JSON object from a prompt * @param schema - The schema of the object to generate in zod format * @param prompt -
packages/core/src/runtime/index.ts:539
↓ 12 callers
Method
connect
()
packages/plugin-terminal/src/scripts/chat.ts:164
↓ 9 callers
Method
close
()
packages/memory-sqlite/src/database.ts:32
↓ 9 callers
Function
defineCapability
( descriptor: CapabilityDescriptor<I, O, Id, C> )
packages/core/src/runtime/managers/model/capability/descriptor.ts:32
↓ 9 callers
Method
updateMonitoringState
( task: AgentTask, pipelineState?: { pipeline?: PipelineStep[]; relatedMemories?: string;
packages/core/src/runtime/pipeline/processor.ts:512
↓ 8 callers
Function
color
(text: string, color: string)
packages/core/src/lib/winston/transports/stdout.ts:12
↓ 8 callers
Method
query
(task: AgentTask)
packages/memory-postgres/src/plugin.ts:159
↓ 7 callers
Method
createEvent
* Create an event that will be processed by the pipeline processor
packages/core/src/runtime/index.ts:501
↓ 7 callers
Method
stop
* Stop the runtime
packages/core/src/runtime/index.ts:390
↓ 6 callers
Method
checkHealth
* Checks the health of the authentication by making a test API call * * @returns Whether the client is authenticated and the token is valid
packages/plugin-x/src/services/x-service.ts:535
↓ 6 callers
Method
executeCapability
* Execute a capability through the model-manager. * * @typeParam K – Capability identifier literal (key of the `ICapabilities` interface). *
packages/core/src/runtime/index.ts:524
↓ 4 callers
Method
cleanup
()
packages/plugin-terminal/src/plugin.ts:228
↓ 4 callers
Method
close
* Gracefully closes all clients *and* the server. * This is called by the Runtime when the server is shutting down.
packages/core/src/lib/winston/transports/websocket.ts:87
↓ 4 callers
Method
hasCapability
* Check if any model supports a capability
packages/core/src/runtime/managers/model/index.ts:366
↓ 4 callers
Method
stopTypingIndicator
(channelId: string)
packages/plugin-discord/src/services/index.ts:115
↓ 4 callers
Method
storeToken
* Stores the OAuth token * * @param token The token to store
packages/plugin-x/src/services/token-storage.ts:46
↓ 4 callers
Function
useMonitorState
()
apps/client/src/contexts/MonitorContext.tsx:121
↓ 3 callers
Method
_processOpenAIImageData
* Process OpenAI image data, saving images from URLs or base64 and returning file paths. * @param imageData - Array of image data objects from Open
packages/model-openai/src/openai.ts:460
↓ 3 callers
Method
authenticate
* Authenticates the client using stored tokens or the provided code * * @param code Optional authorization code * @returns Whether authentica
packages/plugin-x/src/services/x-service.ts:473
↓ 3 callers
Function
cancelOperation
()
packages/cli/src/index.ts:33
↓ 3 callers
Function
clearCloseTimer
()
apps/client/src/components/MetadataPopover.tsx:40
↓ 3 callers
Method
emitQueueState
* Emits a lightweight agent state snapshot containing queue length and running status. * This is consumed by the monitor UI to keep the queue count
packages/core/src/runtime/pipeline/scheduler.ts:47
↓ 3 callers
Method
getInstance
()
packages/memory-sqlite/src/database.ts:18
↓ 3 callers
Function
getSchemaType
* Helper to get a human-readable type from a Zod schema
packages/core/src/runtime/pipeline/operations.ts:48
↓ 3 callers
Method
init
({ modelProviders, memoryProvider, plugins, capabilityAliases = [], options }: { mod
packages/core/src/runtime/index.ts:87
↓ 3 callers
Function
promptForInput
* Interactive script that guides you through the complete X API auth flow * * Local development edition - designed for use with localhost callback U
packages/plugin-x/src/scripts/auth-flow.ts:24
↓ 3 callers
Method
registerDirectory
Add a directory of .liquid templates. * Each file becomes an ID: `${namespace}/${fileNameWithoutExt}` (slashes normalised).
packages/core/src/runtime/managers/prompt.ts:33
↓ 3 callers
Function
setUrl
(newUrl: string)
apps/client/src/contexts/MonitorContext.tsx:104
↓ 3 callers
Method
shutdown
()
packages/plugin-x/src/plugin.ts:132
↓ 3 callers
Method
storeMemory
* Store the initial task event in memory * @param {AgentTask} taskEvent - The initial task event
packages/core/src/runtime/managers/memory.ts:97
↓ 2 callers
Method
cleanup
()
packages/plugin-terminal/src/scripts/chat.ts:152
↓ 2 callers
Method
dequeue
* Removes and returns the first task from the task queue * @returns the first task from the queue or null if the queue is empty
packages/core/src/runtime/pipeline/scheduler.ts:86
↓ 2 callers
Function
discordExecutorFactory
( name: string, description: string, execute: ( task: AgentTask, service: DiscordService, ru
packages/plugin-discord/src/executors.ts:22
↓ 2 callers
Method
exchangeCodeForToken
* Exchanges an authorization code for an access token * * @param code The authorization code received from the callback * @returns Whether th
packages/plugin-x/src/services/x-service.ts:258
↓ 2 callers
Method
execute
(input: InputType, config?: ConfigType)
packages/core/src/runtime/providers/model.ts:20
↓ 2 callers
Function
formatZodSchema
(schema: z.ZodType<T>)
packages/core/src/runtime/pipeline/operations.ts:13
↓ 2 callers
Method
generateRandomString
* Generates a random string for OAuth2 state and PKCE
packages/plugin-x/src/services/x-service.ts:218
↓ 2 callers
Method
getAuthHeaders
* Creates authorization headers based on the current authentication
packages/plugin-x/src/services/x-service.ts:112
↓ 2 callers
Method
getDatabase
()
packages/memory-sqlite/src/database.ts:25
↓ 2 callers
Method
getDefaultModelForCapability
* Get the default model for a capability
packages/core/src/runtime/managers/model/capability/registry.ts:46
↓ 2 callers
Method
getInstance
()
packages/memory-postgres/src/database.ts:20
↓ 2 callers
Function
getMessageMetadata
(message: Message)
packages/plugin-discord/src/triggers.ts:243
↓ 2 callers
Method
getPool
()
packages/memory-postgres/src/database.ts:27
↓ 2 callers
Method
getToken
* Gets the stored OAuth token, if any * * @returns The stored token or null if not found
packages/plugin-x/src/services/token-storage.ts:31
↓ 2 callers
Function
handleClose
()
apps/client/src/components/ConnectionSettings.tsx:31
↓ 2 callers
Function
handleSend
()
apps/client/src/components/Chat.tsx:58
↓ 2 callers
Method
postTweet
* Posts a new tweet * * @param options Tweet options * @returns The created tweet data or null if failed
packages/plugin-x/src/services/x-service.ts:551
↓ 2 callers
Method
queryMemory
* Search for related memories based on query and filter options * @param {QueryMemoryOptions} options - The options for the search * @returns {P
packages/core/src/runtime/managers/memory.ts:140
↓ 2 callers
Method
refreshAccessToken
* Requests an access token using the refresh token * * @returns Whether the refresh was successful
packages/plugin-x/src/services/x-service.ts:368
↓ 2 callers
Method
registerCapabilityAlias
* Register a capability alias
packages/core/src/runtime/managers/model/index.ts:165
↓ 2 callers
Method
registerPlugin
(plugin: Plugin)
packages/core/src/runtime/managers/plugin.ts:37
↓ 2 callers
Method
registerRoute
* Register a route handler for the router * @param path - The path of the route * @param method - The HTTP method of the route * @param handl
packages/core/src/runtime/managers/server.ts:44
↓ 2 callers
Function
renderTimeline
( pipelineSteps: PipelineStep[], isModified: boolean = false )
apps/client/src/components/PipelineSteps.tsx:84
↓ 2 callers
Function
runAuthFlow
(overrideConfig?: { client_id?: string; client_secret?: string; callback_url?: string; })
packages/plugin-x/src/scripts/auth-flow.ts:38
↓ 2 callers
Function
scheduleClose
()
apps/client/src/components/MetadataPopover.tsx:47
↓ 2 callers
Method
sendMessage
(message: string)
packages/plugin-terminal/src/scripts/chat.ts:88
↓ 2 callers
Method
start
* Start the runtime
packages/core/src/runtime/index.ts:337
↓ 2 callers
Function
updateWidth
()
apps/client/src/components/GridLayout.tsx:211
↓ 2 callers
Function
useAgentState
()
apps/client/src/contexts/MonitorContext.tsx:128
↓ 2 callers
Function
verifyBasicHealth
( baseUrl: string, modelNameTag: string )
packages/model-ollama/src/index.ts:4
↓ 1 callers
Method
attachToServer
* Attaches the transport to an HTTP server instance. Called internally by the Runtime.
packages/core/src/lib/winston/transports/websocket.ts:30
↓ 1 callers
Method
banner
()
packages/core/src/runtime/index.ts:614
↓ 1 callers
Method
base64UrlEncode
* Base64 URL encodes a Buffer
packages/plugin-x/src/services/x-service.ts:244
↓ 1 callers
Function
buildTransport
( config: ServerConfig )
packages/plugin-mcp/src/transports.ts:28
↓ 1 callers
Method
checkMediaProcessingStatus
* Checks the processing status of an uploaded media
packages/plugin-x/src/services/x-service.ts:879
↓ 1 callers
Method
cleanTypingIntervals
()
packages/plugin-discord/src/services/index.ts:123
↓ 1 callers
Method
cleanUp
()
packages/plugin-discord/src/services/index.ts:130
↓ 1 callers
Function
clientCommand
( command?: string, serverScriptPath?: string )
packages/plugin-mcp/src/transports.ts:6
↓ 1 callers
Method
createPipeline
* Generates a tool-based workflow called a pipeline with the available action executors. * This pipeline is the main execution logic for the agent,
packages/core/src/runtime/pipeline/processor.ts:57
↓ 1 callers
Method
createTable
()
packages/memory-postgres/src/plugin.ts:199
↓ 1 callers
Method
createTables
()
packages/memory-sqlite/src/provider.ts:65
↓ 1 callers
Method
createTables
()
packages/memory-postgres/src/provider.ts:72
↓ 1 callers
Method
cycle
* Iterates over the queue and runs each task
packages/core/src/runtime/pipeline/scheduler.ts:108
↓ 1 callers
Function
detectKind
(src: string)
apps/client/src/utils/parseMessage.ts:20
↓ 1 callers
Method
enqueue
* Adds a task to the task queue * @param task - the task to add to the queue
packages/core/src/runtime/pipeline/scheduler.ts:68
↓ 1 callers
Method
execute
* Runs a task on the processor * @param task - the task to run
packages/core/src/runtime/pipeline/scheduler.ts:144
↓ 1 callers
Method
executePipeline
* Consumes a list of pipeline steps and begins orchestrating the workflow to execute and modify tasks * @param pipeline - the pipeline to execute,
packages/core/src/runtime/pipeline/processor.ts:191
↓ 1 callers
Method
executePipelineStep
* Executes a single step of the pipeline * @param step - the step to execute * @param task - the current task, internally contains the context c
packages/core/src/runtime/pipeline/processor.ts:444
↓ 1 callers
Function
extractEventMetadata
(event: MonitorEvent)
apps/client/src/components/Events.tsx:72
↓ 1 callers
Method
extractJson
(str: string)
packages/core/src/runtime/index.ts:631
↓ 1 callers
Function
fetchPlugins
()
apps/website/src/pages/plugins.tsx:125
↓ 1 callers
Function
fetchPrompts
()
apps/client/src/components/PromptList.tsx:29
↓ 1 callers
Method
generateAuthUrl
* Generates an authentication URL for the user to authorize the application * * @returns The authentication URL
packages/plugin-x/src/services/x-service.ts:190
↓ 1 callers
Method
generateCodeChallenge
* Generates a PKCE code challenge from a code verifier
packages/plugin-x/src/services/x-service.ts:233
↓ 1 callers
Method
generateInviteUrl
()
packages/plugin-discord/src/services/index.ts:71
↓ 1 callers
Method
getAllCapabilities
* Get all registered capabilities
packages/core/src/runtime/managers/model/capability/registry.ts:62
↓ 1 callers
Method
getAvailableCapabilities
* Get all available capabilities
packages/core/src/runtime/managers/model/index.ts:340
↓ 1 callers
Function
getConfig
()
packages/plugin-terminal/src/scripts/chat.ts:9
↓ 1 callers
Method
getPlugin
()
packages/memory-sqlite/src/provider.ts:80
↓ 1 callers
Function
getSavedUrl
()
apps/client/src/hooks/useChatApi.ts:18
↓ 1 callers
Method
handleInput
(line: string)
packages/plugin-terminal/src/scripts/chat.ts:74
↓ 1 callers
Function
handleScroll
()
apps/website/src/pages/index.tsx:293
↓ 1 callers
Function
handleSettingsClose
()
apps/client/src/components/Chat.tsx:48
↓ 1 callers
Method
handleSigInt
()
packages/plugin-terminal/src/scripts/chat.ts:62
↓ 1 callers
Method
init
()
packages/memory-sqlite/src/provider.ts:31
↓ 1 callers
Method
init
()
packages/memory-postgres/src/provider.ts:27
↓ 1 callers
Method
init
()
apps/starter/src/lib/plugins/plugin-permissions-search/index.ts:38
↓ 1 callers
Method
initializeStorage
()
packages/memory-sqlite/src/provider.ts:57
next →
1–100 of 373, ranked by callers