MCPcopy Create free account

hub / github.com/coleam00/remote-agentic-coding-system / functions

Functions82 in github.com/coleam00/remote-agentic-coding-system

↓ 50 callersFunctiontest
()
test-db.js:10
↓ 20 callersFunctionparseCommand
(text: string)
src/handlers/command-handler.ts:50
↓ 17 callersMethodacquireLock
* Acquire lock for conversation and execute handler * Non-blocking: returns immediately, handler executes async * @param conversationId - Unique
src/utils/conversation-lock.ts:43
↓ 17 callersMethodsendMessage
* Send a message to the platform
src/types/index.ts:53
↓ 12 callersMethodgetStats
* Get current concurrency statistics * @returns Current state for observability
src/utils/conversation-lock.ts:135
↓ 11 callersFunctionsubstituteVariables
( text: string, args: string[], _metadata: Record<string, unknown> = {} )
src/utils/variable-substitution.ts:14
↓ 5 callersMethodgetStreamingMode
* Get the configured streaming mode
src/types/index.ts:58
↓ 3 callersFunctionhandleMessage
( platform: IPlatformAdapter, conversationId: string, message: string, issueContext?: string // Option
src/orchestrator/orchestrator.ts:16
↓ 3 callersMethodstop
* Stop the platform adapter gracefully
src/types/index.ts:73
↓ 2 callersMethodbuildIssueContext
* Build context-rich message for issue
src/adapters/github.ts:332
↓ 2 callersMethodbuildPRContext
* Build context-rich message for pull request
src/adapters/github.ts:353
↓ 2 callersFunctionformatToolCall
(toolName: string, toolInput?: Record<string, unknown>)
src/utils/tool-formatter.ts:15
↓ 2 callersMethodgetBot
* Get the Telegraf bot instance
src/adapters/telegram.ts:60
↓ 2 callersMethodgetPlatformType
* Get the platform type identifier (e.g., 'telegram', 'github', 'slack')
src/types/index.ts:63
↓ 2 callersMethodgetQueuedCount
* Helper to get total queued count
src/utils/conversation-lock.ts:164
↓ 2 callersMethodprocessQueue
* Process next queued message for conversation if any exist * @param conversationId - Unique conversation identifier
src/utils/conversation-lock.ts:114
↓ 2 callersMethodqueueMessage
* Add message to conversation queue * @param conversationId - Unique conversation identifier * @param handler - Async function to queue
src/utils/conversation-lock.ts:97
↓ 2 callersMethodsendQuery
* Send a message and get streaming response * @param prompt - User message or prompt * @param cwd - Working directory for the assistant * @pa
src/types/index.ts:100
↓ 2 callersMethodstart
* Start the platform adapter (e.g., begin polling, start webhook server)
src/types/index.ts:68
↓ 1 callersMethodautoDetectAndLoadCommands
* Auto-detect and load commands from .claude/commands or .agents/commands
src/adapters/github.ts:267
↓ 1 callersMethodbuildConversationId
* Build conversationId from owner, repo, and number
src/adapters/github.ts:212
↓ 1 callersMethodclearMessages
(conversationId?: string)
src/adapters/test.ts:73
↓ 1 callersMethodensureRepoReady
* Ensure repository is cloned and ready * For new conversations: clone or sync * For existing conversations: skip
src/adapters/github.ts:233
↓ 1 callersFunctionextractBriefInfo
* Extract brief, relevant info from tool input * * @param toolName - Name of the tool * @param toolInput - Tool input parameters * @returns Brief
src/utils/tool-formatter.ts:37
↓ 1 callersFunctionfindMarkdownFilesRecursive
* Recursively find all .md files in a directory and its subdirectories
src/handlers/command-handler.ts:19
↓ 1 callersFunctiongetAssistantClient
(type: string)
src/clients/factory.ts:18
↓ 1 callersFunctiongetCodebaseCommands
( id: string )
src/db/codebases.ts:38
↓ 1 callersFunctiongetCodex
* Get or create Codex SDK instance (uses dynamic import for ESM compatibility)
src/clients/codex.ts:23
↓ 1 callersMethodgetConversationId
* Extract conversation ID from Telegram context
src/adapters/telegram.ts:81
↓ 1 callersMethodgetMessages
(conversationId: string)
src/adapters/test.ts:65
↓ 1 callersMethodgetOrCreateCodebaseForRepo
* Get or create codebase for repository * Returns: codebase record, path to use, and whether it's new
src/adapters/github.ts:299
↓ 1 callersMethodgetSentMessages
(conversationId: string)
src/adapters/test.ts:69
↓ 1 callersMethodhandleWebhook
* Handle incoming webhook event
src/adapters/github.ts:378
↓ 1 callersMethodhasMention
* Check if text contains @remote-agent mention
src/adapters/github.ts:198
↓ 1 callersFunctionmain
()
src/index.ts:18
↓ 1 callersMethodparseConversationId
* Parse conversationId into owner, repo, and number
src/adapters/github.ts:219
↓ 1 callersMethodparseEvent
* Parse webhook event and extract relevant data
src/adapters/github.ts:141
↓ 1 callersMethodprocessGlobalQueue
* Process queued messages from any conversation when global capacity available
src/utils/conversation-lock.ts:171
↓ 1 callersMethodreceiveMessage
(conversationId: string, message: string)
src/adapters/test.ts:52
↓ 1 callersMethodsendMessage
* Send a message to a GitHub issue or PR
src/adapters/github.ts:66
↓ 1 callersFunctionsetup
()
setup-test-codebase.js:8
↓ 1 callersFunctionsetupAuth
()
src/scripts/setup-auth.ts:23
↓ 1 callersMethodstart
* Start the bot (begins polling)
src/adapters/telegram.ts:91
↓ 1 callersMethodstart
()
src/adapters/test.ts:41
↓ 1 callersMethodstripMention
* Strip @remote-agent mention from text
src/adapters/github.ts:205
↓ 1 callersFunctionupdateCodebaseCommands
( id: string, commands: Record<string, { path: string; description: string }> )
src/db/codebases.ts:28
↓ 1 callersMethodverifySignature
* Verify webhook signature using HMAC SHA-256
src/adapters/github.ts:117
Methodconstructor
* Creates a new ConversationLockManager * @param maxConcurrent - Maximum number of concurrent conversations (default: 10)
src/utils/conversation-lock.ts:30
Methodconstructor
(token: string, mode: 'stream' | 'batch' = 'stream')
src/adapters/telegram.ts:14
Methodconstructor
(token: string, webhookSecret: string)
src/adapters/github.ts:57
FunctioncreateCodebase
(data: { name: string; repository_url?: string; default_cwd: string; ai_assistant_type?: string; })
src/db/codebases.ts:7
FunctioncreateSession
(data: { conversation_id: string; codebase_id?: string; assistant_session_id?: string; ai_assistant_ty
src/db/sessions.ts:15
FunctiondeactivateSession
(id: string)
src/db/sessions.ts:35
FunctionfindCodebaseByRepoUrl
(repoUrl: string)
src/db/codebases.ts:57
FunctionformatThinking
(thinking: string)
src/utils/tool-formatter.ts:92
FunctiongetActiveSession
(conversationId: string)
src/db/sessions.ts:7
MethodgetAllConversations
()
src/adapters/test.ts:81
FunctiongetCodebase
(id: string)
src/db/codebases.ts:21
FunctiongetOrCreateConversation
( platformType: string, platformId: string, codebaseId?: string )
src/db/conversations.ts:7
MethodgetPlatformType
* Get platform type
src/adapters/telegram.ts:74
MethodgetPlatformType
()
src/adapters/test.ts:37
MethodgetPlatformType
* Get platform type
src/adapters/github.ts:96
MethodgetStreamingMode
* Get the configured streaming mode
src/adapters/telegram.ts:67
MethodgetStreamingMode
()
src/adapters/test.ts:33
MethodgetStreamingMode
* Get streaming mode (always batch for GitHub to avoid comment spam)
src/adapters/github.ts:89
MethodgetType
* Get the assistant type identifier
src/types/index.ts:105
MethodgetType
* Get the assistant type identifier
src/clients/claude.ts:109
MethodgetType
* Get the assistant type identifier
src/clients/codex.ts:158
FunctionhandleCommand
( conversation: Conversation, message: string )
src/handlers/command-handler.ts:70
FunctionregisterCommand
( id: string, name: string, command: { path: string; description: string } )
src/db/codebases.ts:47
MethodsendMessage
* Send a message to a Telegram chat * Automatically splits messages longer than 4096 characters
src/adapters/telegram.ts:28
MethodsendMessage
(conversationId: string, message: string)
src/adapters/test.ts:18
MethodsendQuery
* Send a query to Claude and stream responses * @param prompt - User message or prompt * @param cwd - Working directory for Claude * @param r
src/clients/claude.ts:27
MethodsendQuery
* Send a query to Codex and stream responses * @param prompt - User message or prompt * @param cwd - Working directory for Codex * @param res
src/clients/codex.ts:48
Functionshutdown
()
src/index.ts:197
Methodstart
* Start the adapter (no-op for webhook-based adapter)
src/adapters/github.ts:103
Methodstop
* Stop the bot gracefully
src/adapters/telegram.ts:103
Methodstop
()
src/adapters/test.ts:45
Methodstop
* Stop the adapter (no-op for webhook-based adapter)
src/adapters/github.ts:110
FunctionupdateConversation
( id: string, updates: Partial<Pick<Conversation, 'codebase_id' | 'cwd'>> )
src/db/conversations.ts:41
FunctionupdateSession
(id: string, sessionId: string)
src/db/sessions.ts:28
FunctionupdateSessionMetadata
( id: string, metadata: Record<string, unknown> )
src/db/sessions.ts:42