Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coleam00/remote-agentic-coding-system
/ functions
Functions
82 in github.com/coleam00/remote-agentic-coding-system
⨍
Functions
82
◇
Types & classes
24
↓ 50 callers
Function
test
()
test-db.js:10
↓ 20 callers
Function
parseCommand
(text: string)
src/handlers/command-handler.ts:50
↓ 17 callers
Method
acquireLock
* Acquire lock for conversation and execute handler * Non-blocking: returns immediately, handler executes async * @param conversationId - Unique
src/utils/conversation-lock.ts:43
↓ 17 callers
Method
sendMessage
* Send a message to the platform
src/types/index.ts:53
↓ 12 callers
Method
getStats
* Get current concurrency statistics * @returns Current state for observability
src/utils/conversation-lock.ts:135
↓ 11 callers
Function
substituteVariables
( text: string, args: string[], _metadata: Record<string, unknown> = {} )
src/utils/variable-substitution.ts:14
↓ 5 callers
Method
getStreamingMode
* Get the configured streaming mode
src/types/index.ts:58
↓ 3 callers
Function
handleMessage
( platform: IPlatformAdapter, conversationId: string, message: string, issueContext?: string // Option
src/orchestrator/orchestrator.ts:16
↓ 3 callers
Method
stop
* Stop the platform adapter gracefully
src/types/index.ts:73
↓ 2 callers
Method
buildIssueContext
* Build context-rich message for issue
src/adapters/github.ts:332
↓ 2 callers
Method
buildPRContext
* Build context-rich message for pull request
src/adapters/github.ts:353
↓ 2 callers
Function
formatToolCall
(toolName: string, toolInput?: Record<string, unknown>)
src/utils/tool-formatter.ts:15
↓ 2 callers
Method
getBot
* Get the Telegraf bot instance
src/adapters/telegram.ts:60
↓ 2 callers
Method
getPlatformType
* Get the platform type identifier (e.g., 'telegram', 'github', 'slack')
src/types/index.ts:63
↓ 2 callers
Method
getQueuedCount
* Helper to get total queued count
src/utils/conversation-lock.ts:164
↓ 2 callers
Method
processQueue
* Process next queued message for conversation if any exist * @param conversationId - Unique conversation identifier
src/utils/conversation-lock.ts:114
↓ 2 callers
Method
queueMessage
* Add message to conversation queue * @param conversationId - Unique conversation identifier * @param handler - Async function to queue
src/utils/conversation-lock.ts:97
↓ 2 callers
Method
sendQuery
* 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 callers
Method
start
* Start the platform adapter (e.g., begin polling, start webhook server)
src/types/index.ts:68
↓ 1 callers
Method
autoDetectAndLoadCommands
* Auto-detect and load commands from .claude/commands or .agents/commands
src/adapters/github.ts:267
↓ 1 callers
Method
buildConversationId
* Build conversationId from owner, repo, and number
src/adapters/github.ts:212
↓ 1 callers
Method
clearMessages
(conversationId?: string)
src/adapters/test.ts:73
↓ 1 callers
Method
ensureRepoReady
* Ensure repository is cloned and ready * For new conversations: clone or sync * For existing conversations: skip
src/adapters/github.ts:233
↓ 1 callers
Function
extractBriefInfo
* 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 callers
Function
findMarkdownFilesRecursive
* Recursively find all .md files in a directory and its subdirectories
src/handlers/command-handler.ts:19
↓ 1 callers
Function
getAssistantClient
(type: string)
src/clients/factory.ts:18
↓ 1 callers
Function
getCodebaseCommands
( id: string )
src/db/codebases.ts:38
↓ 1 callers
Function
getCodex
* Get or create Codex SDK instance (uses dynamic import for ESM compatibility)
src/clients/codex.ts:23
↓ 1 callers
Method
getConversationId
* Extract conversation ID from Telegram context
src/adapters/telegram.ts:81
↓ 1 callers
Method
getMessages
(conversationId: string)
src/adapters/test.ts:65
↓ 1 callers
Method
getOrCreateCodebaseForRepo
* Get or create codebase for repository * Returns: codebase record, path to use, and whether it's new
src/adapters/github.ts:299
↓ 1 callers
Method
getSentMessages
(conversationId: string)
src/adapters/test.ts:69
↓ 1 callers
Method
handleWebhook
* Handle incoming webhook event
src/adapters/github.ts:378
↓ 1 callers
Method
hasMention
* Check if text contains @remote-agent mention
src/adapters/github.ts:198
↓ 1 callers
Function
main
()
src/index.ts:18
↓ 1 callers
Method
parseConversationId
* Parse conversationId into owner, repo, and number
src/adapters/github.ts:219
↓ 1 callers
Method
parseEvent
* Parse webhook event and extract relevant data
src/adapters/github.ts:141
↓ 1 callers
Method
processGlobalQueue
* Process queued messages from any conversation when global capacity available
src/utils/conversation-lock.ts:171
↓ 1 callers
Method
receiveMessage
(conversationId: string, message: string)
src/adapters/test.ts:52
↓ 1 callers
Method
sendMessage
* Send a message to a GitHub issue or PR
src/adapters/github.ts:66
↓ 1 callers
Function
setup
()
setup-test-codebase.js:8
↓ 1 callers
Function
setupAuth
()
src/scripts/setup-auth.ts:23
↓ 1 callers
Method
start
* Start the bot (begins polling)
src/adapters/telegram.ts:91
↓ 1 callers
Method
start
()
src/adapters/test.ts:41
↓ 1 callers
Method
stripMention
* Strip @remote-agent mention from text
src/adapters/github.ts:205
↓ 1 callers
Function
updateCodebaseCommands
( id: string, commands: Record<string, { path: string; description: string }> )
src/db/codebases.ts:28
↓ 1 callers
Method
verifySignature
* Verify webhook signature using HMAC SHA-256
src/adapters/github.ts:117
Method
constructor
* Creates a new ConversationLockManager * @param maxConcurrent - Maximum number of concurrent conversations (default: 10)
src/utils/conversation-lock.ts:30
Method
constructor
(token: string, mode: 'stream' | 'batch' = 'stream')
src/adapters/telegram.ts:14
Method
constructor
(token: string, webhookSecret: string)
src/adapters/github.ts:57
Function
createCodebase
(data: { name: string; repository_url?: string; default_cwd: string; ai_assistant_type?: string; })
src/db/codebases.ts:7
Function
createSession
(data: { conversation_id: string; codebase_id?: string; assistant_session_id?: string; ai_assistant_ty
src/db/sessions.ts:15
Function
deactivateSession
(id: string)
src/db/sessions.ts:35
Function
findCodebaseByRepoUrl
(repoUrl: string)
src/db/codebases.ts:57
Function
formatThinking
(thinking: string)
src/utils/tool-formatter.ts:92
Function
getActiveSession
(conversationId: string)
src/db/sessions.ts:7
Method
getAllConversations
()
src/adapters/test.ts:81
Function
getCodebase
(id: string)
src/db/codebases.ts:21
Function
getOrCreateConversation
( platformType: string, platformId: string, codebaseId?: string )
src/db/conversations.ts:7
Method
getPlatformType
* Get platform type
src/adapters/telegram.ts:74
Method
getPlatformType
()
src/adapters/test.ts:37
Method
getPlatformType
* Get platform type
src/adapters/github.ts:96
Method
getStreamingMode
* Get the configured streaming mode
src/adapters/telegram.ts:67
Method
getStreamingMode
()
src/adapters/test.ts:33
Method
getStreamingMode
* Get streaming mode (always batch for GitHub to avoid comment spam)
src/adapters/github.ts:89
Method
getType
* Get the assistant type identifier
src/types/index.ts:105
Method
getType
* Get the assistant type identifier
src/clients/claude.ts:109
Method
getType
* Get the assistant type identifier
src/clients/codex.ts:158
Function
handleCommand
( conversation: Conversation, message: string )
src/handlers/command-handler.ts:70
Function
registerCommand
( id: string, name: string, command: { path: string; description: string } )
src/db/codebases.ts:47
Method
sendMessage
* Send a message to a Telegram chat * Automatically splits messages longer than 4096 characters
src/adapters/telegram.ts:28
Method
sendMessage
(conversationId: string, message: string)
src/adapters/test.ts:18
Method
sendQuery
* 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
Method
sendQuery
* 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
Function
shutdown
()
src/index.ts:197
Method
start
* Start the adapter (no-op for webhook-based adapter)
src/adapters/github.ts:103
Method
stop
* Stop the bot gracefully
src/adapters/telegram.ts:103
Method
stop
()
src/adapters/test.ts:45
Method
stop
* Stop the adapter (no-op for webhook-based adapter)
src/adapters/github.ts:110
Function
updateConversation
( id: string, updates: Partial<Pick<Conversation, 'codebase_id' | 'cwd'>> )
src/db/conversations.ts:41
Function
updateSession
(id: string, sessionId: string)
src/db/sessions.ts:28
Function
updateSessionMetadata
( id: string, metadata: Record<string, unknown> )
src/db/sessions.ts:42