MCPcopy Create free account

hub / github.com/clawbot7/cli-gateway / functions

Functions389 in github.com/clawbot7/cli-gateway

↓ 76 callersMethodclose
()
src/acp/client.ts:151
↓ 75 callersMethodhandleUserMessage
( key: ConversationKey, text: string, sink: OutboundSink, options?: UserMessageOptions, )
src/gateway/router.ts:924
↓ 36 callersFunctioncreateSession
( db: Db, params: { sessionKey: string; agentCommand: string; agentArgs: string[]; cwd: st
src/gateway/sessionStore.ts:93
↓ 35 callersFunctionmigrate
(db: Db)
src/db/migrations.ts:5
↓ 35 callersFunctionupsertBinding
( db: Db, key: ConversationKey, sessionKey: string, )
src/gateway/sessionStore.ts:50
↓ 19 callersFunctioncreateRun
( db: Db, params: { runId: string; sessionKey: string; promptText: string }, )
src/gateway/sessionStore.ts:196
↓ 19 callersFunctionmapDiscordSlashToRouterCommand
( interaction: DiscordSlashInteractionLike, )
src/channels/discordCommands.ts:204
↓ 18 callersFunctionmakeInteraction
(params: { commandName: string; strings?: Record<string, string | null>; integers?: Record<string, numbe
test/discordCommands.test.ts:10
↓ 16 callersFunctioncreateConfig
()
test/routerMoreCommands.test.ts:23
↓ 16 callersFunctionpush
(raw: unknown)
src/gateway/toolAuth.ts:389
↓ 14 callersMethodconsume
( sessionKey: string, toolKind: ToolKind, context?: ToolMatchContext, )
src/gateway/toolAuth.ts:330
↓ 14 callersFunctioncreateDb
()
test/routerMoreCommands.test.ts:16
↓ 12 callersMethodprompt
(run: AcpRun, params: PromptParams)
src/acp/client.ts:192
↓ 12 callersMethodwrite
(message: JsonRpcMessage)
test/acpTerminal.test.ts:35
↓ 11 callersFunctioncreateDiscordSink
( channel: TextBasedChannel, userId: string, )
src/channels/discordSink.ts:13
↓ 10 callersFunctionbindingKeyFromConversationKey
(key: ConversationKey)
src/gateway/sessionStore.ts:24
↓ 10 callersFunctioncreateSink
()
test/routerMoreCommands.test.ts:47
↓ 10 callersFunctioncreateTelegramSink
( bot: Bot, _token: string, chatId: number, threadId: number | null, userId: string, opts?: {
src/channels/telegramSink.ts:9
↓ 10 callersFunctionparseJsonContainer
(value: unknown)
src/channels/discordSink.ts:412
↓ 10 callersFunctionparseJsonContainer
(value: unknown)
src/channels/discord.ts:804
↓ 10 callersFunctionresolveWorkspacePath
( workspaceRoot: string, requestedPath: string, )
src/tools/workspace.ts:3
↓ 10 callersMethodsetPersistentPolicy
( bindingKey: string, toolKind: ToolKind, policy: PersistentToolPolicy, )
src/gateway/toolAuth.ts:75
↓ 9 callersMethodbuildToolUiEvent
( update: any, )
src/gateway/bindingRuntime.ts:548
↓ 9 callersFunctioncreateBufferedSink
(params: { maxLen: number; flushIntervalMs: number; send: (text: string) => Promise<{ id: string }>; e
src/channels/bufferedSink.ts:13
↓ 9 callersFunctioncreateFakeChannel
()
test/discordSink.test.ts:6
↓ 9 callersMethoddecidePermission
(params: { decision: 'allow' | 'deny'; requestId?: string; actorUserId?: string; })
src/gateway/bindingRuntime.ts:391
↓ 9 callersFunctionescapeHtml
(text: string)
src/channels/telegramSink.ts:238
↓ 9 callersMethodhandlePermissionUi
(params: { platform: Platform; sessionKey: string; requestId: string; decision: 'allow' | 'den
src/gateway/router.ts:279
↓ 9 callersFunctionparsePermissionCustomId
( customId: string, )
src/channels/discord.ts:1035
↓ 9 callersFunctionparseToolKind
(value: unknown)
src/gateway/toolAuth.ts:33
↓ 8 callersFunctioncreateFakeBot
()
test/telegramSink.test.ts:6
↓ 8 callersMethodemit
(message: JsonRpcMessage)
test/bindingRuntime.prompt.test.ts:173
↓ 8 callersMethodemit
(message: JsonRpcMessage)
test/bindingRuntime.prompt.test.ts:401
↓ 8 callersMethodemit
(message: JsonRpcMessage)
test/acpTerminal.test.ts:155
↓ 8 callersFunctionextractFirstString
(root: unknown, paths: string[])
src/channels/discordSink.ts:374
↓ 8 callersFunctionextractFirstString
(root: unknown, paths: string[])
src/channels/discord.ts:766
↓ 8 callersFunctionformatPermissionText
(value: string)
src/channels/discordSink.ts:619
↓ 8 callersFunctionformatPermissionText
(value: string)
src/channels/discord.ts:1011
↓ 8 callersFunctiongetBinding
( db: Db, key: ConversationKey, )
src/gateway/sessionStore.ts:37
↓ 8 callersFunctiongetSession
( db: Db, sessionKey: string, )
src/gateway/sessionStore.ts:177
↓ 8 callersMethodmakeTransportError
(message: string)
src/acp/client.ts:542
↓ 8 callersFunctiontruncate
(text: string, maxLen: number)
src/channels/discordSink.ts:134
↓ 7 callersFunctionfinishRun
( db: Db, params: { runId: string; stopReason?: string; error?: string }, )
src/gateway/sessionStore.ts:205
↓ 7 callersFunctionformatPermissionCodeBlock
(value: string, language: string)
src/channels/discordSink.ts:623
↓ 7 callersFunctionformatPermissionCodeBlock
(value: string, language: string)
src/channels/discord.ts:1015
↓ 7 callersFunctionpermissionDecisionFromEmoji
( emojiName: string | null, )
src/channels/discord.ts:1055
↓ 7 callersMethodrespond
(id: JsonRpcId, result: unknown)
src/acp/client.ts:548
↓ 7 callersFunctiontruncate
(text: string, maxLen: number)
src/channels/telegramSink.ts:233
↓ 7 callersFunctiontruncate
(text: string, maxLen: number)
src/channels/discord.ts:526
↓ 6 callersFunctionaskOptional
( rl: ReturnType<typeof createInterface>, label: string, )
src/config.ts:262
↓ 6 callersMethodclose
()
src/gateway/router.ts:136
↓ 6 callersFunctioncreateConfig
()
test/routerCommands.test.ts:23
↓ 6 callersFunctioncreateDb
()
test/routerCommands.test.ts:16
↓ 6 callersMethodemit
(message: JsonRpcMessage)
test/bindingRuntime.prompt.test.ts:503
↓ 6 callersMethodemit
(message: JsonRpcMessage)
test/bindingRuntime.prompt.test.ts:606
↓ 6 callersMethodemit
(message: JsonRpcMessage)
test/bindingRuntime.policy.test.ts:139
↓ 6 callersMethodensureBindingExists
(key: ConversationKey)
src/gateway/router.ts:148
↓ 6 callersMethodkill
()
test/acpTerminal.test.ts:153
↓ 6 callersFunctionnormalizePermissionKey
(value: string)
src/channels/discordSink.ts:602
↓ 6 callersFunctionnormalizePermissionKey
(value: string)
src/channels/discord.ts:994
↓ 6 callersFunctiontruncateInline
(text: string, maxLen: number)
src/gateway/bindingRuntime.ts:890
↓ 5 callersFunctioncreateSink
()
test/routerCommands.test.ts:54
↓ 5 callersFunctiondoFlush
()
src/channels/bufferedSink.ts:45
↓ 5 callersMethodemit
(message: JsonRpcMessage)
test/bindingRuntime.prompt.test.ts:272
↓ 5 callersMethodenqueueSinkWrite
(action: () => Promise<void>)
src/gateway/bindingRuntime.ts:289
↓ 5 callersFunctionextractFirstString
(root: unknown, paths: string[])
src/gateway/bindingRuntime.ts:1018
↓ 5 callersFunctionextractPermissionRouteFromComponents
( components: unknown, )
src/channels/discord.ts:1066
↓ 5 callersMethodgetOrCreateRuntime
(params: { sessionKey: string; bindingKey: string; })
src/gateway/router.ts:172
↓ 5 callersFunctiongetUiMode
(db: Db, bindingKey: string)
src/db/uiPrefStore.ts:4
↓ 5 callersFunctionresolveGatewayHomeDir
()
src/config.ts:12
↓ 5 callersMethodrespondPermission
( req: PermissionRequest, decision: PermissionDecision, )
src/acp/client.ts:216
↓ 5 callersMethodselectPermissionOption
( idx: number, sink: OutboundSink, actorUserId?: string, )
src/gateway/bindingRuntime.ts:342
↓ 5 callersFunctiontruncateInline
(text: string, maxLen: number)
src/acp/client.ts:848
↓ 5 callersFunctionwhitelistUsageText
()
src/gateway/router.ts:1191
↓ 4 callersFunctionacquireProcessLock
(lockPath: string)
src/runtime/lock.ts:9
↓ 4 callersFunctionaddDiscordPermissionReactions
(message: unknown)
src/channels/discord.ts:1152
↓ 4 callersFunctionaskWithDefault
( rl: ReturnType<typeof createInterface>, label: string, defaultValue: string, )
src/config.ts:253
↓ 4 callersFunctionbuildReplayContextFromRecentRuns
( db: Db, params: { sessionKey: string; excludeRunId: string; maxRuns: number; maxChars: n
src/gateway/history.ts:3
↓ 4 callersFunctionclearScheduledFlush
()
src/channels/bufferedSink.ts:57
↓ 4 callersFunctioncoercePermissionString
(value: unknown)
src/channels/discordSink.ts:574
↓ 4 callersFunctioncoercePermissionString
(value: unknown)
src/channels/discord.ts:966
↓ 4 callersFunctionconfigFilePath
(gatewayHome: string)
src/config.ts:18
↓ 4 callersMethodemit
(message: JsonRpcMessage)
test/bindingRuntime.misc.test.ts:97
↓ 4 callersMethodemit
(message: JsonRpcMessage)
test/bindingRuntime.misc.test.ts:172
↓ 4 callersMethodemit
(message: JsonRpcMessage)
test/routerPromptFlow.test.ts:99
↓ 4 callersMethodensureAuthorized
(params: { kind: ToolKind; method: string; params: unknown; })
src/acp/client.ts:570
↓ 4 callersFunctionextractDiscordChannelDescription
(channel: unknown)
src/channels/discord.ts:252
↓ 4 callersFunctionformatTextCodeBlock
(text: string)
src/gateway/bindingRuntime.ts:637
↓ 4 callersFunctiongetPathValue
(source: unknown, pathExpr: string)
src/gateway/toolAuth.ts:492
↓ 4 callersMethodgrantOnce
(sessionKey: string, toolKind: ToolKind, count = 1)
src/gateway/toolAuth.ts:68
↓ 4 callersMethodlistAllowPrefixRules
( bindingKey: string, toolKind?: ToolKind, )
src/gateway/toolAuth.ts:228
↓ 4 callersFunctionlistJobsForBinding
(db: Db, bindingKey: string)
src/db/jobStore.ts:15
↓ 4 callersFunctionloadConfig
(options: LoadConfigOptions = {})
src/config.ts:93
↓ 4 callersFunctionnormalizeDiscordChannelText
(value: unknown)
src/channels/discord.ts:274
↓ 4 callersFunctionsendChunk
(chunk: string)
src/channels/discord.ts:381
↓ 4 callersFunctionshouldLog
(level: LogLevel)
src/logging.ts:12
↓ 4 callersFunctionstringOrFallback
(value: unknown, fallback: string)
src/acp/client.ts:854
↓ 3 callersFunctionasRecord
(value: unknown)
src/gateway/toolAuth.ts:487
↓ 3 callersFunctionasRecord
(value: unknown)
src/gateway/bindingRuntime.ts:1125
↓ 3 callersMethodclearPersistentPolicy
( bindingKey: string, toolKind: ToolKind, policy?: PersistentToolPolicy, )
src/gateway/toolAuth.ts:154
next →1–100 of 389, ranked by callers