MCPcopy Create free account

hub / github.com/cosin2077/chaty / functions

Functions92 in github.com/cosin2077/chaty

↓ 6 callersFunctionrunChildPromise
( name: string, execPath: string, args: string[], options: any )
src/utils/index.ts:149
↓ 6 callersFunctionspinnerStart
(loadingMsg = 'loading')
src/utils/index.ts:201
↓ 6 callersFunctionwriteHomeEnv
(prop: string, value: string)
src/utils/index.ts:188
↓ 3 callersFunctionsafeStringify
(value: any)
src/services/web/client/src/hooks/useUserAndHistory.ts:26
↓ 3 callersFunctiontrimUndef
(str: string | undefined)
src/main/prepare/login.ts:8
↓ 2 callersFunctionfetchApi
( apiUrl: string, method = 'GET', params: any, body: any )
src/utils/index.ts:47
↓ 2 callersFunctionfetchApi
( apiUrl: string, method = "GET", params: any, body: any )
src/services/web/client/src/utils/index.ts:9
↓ 2 callersFunctiononMessage
(message: MessageInterface, bot: WechatyInterface)
src/services/wechat/src/listeners.ts:44
↓ 2 callersFunctionresetMessage
(user: string)
src/services/wechat/src/gptTurboApi.ts:90
↓ 2 callersFunctionsafeParsing
(value: string | null | undefined)
src/services/web/client/src/hooks/useUserAndHistory.ts:17
↓ 2 callersFunctionsendMessage
(message: string, user: string)
src/services/wechat/src/gptTurboApi.ts:93
↓ 2 callersFunctionuseUserAndHistory
()
src/services/web/client/src/hooks/useUserAndHistory.ts:35
↓ 1 callersFunctionasyncSleep
(number: number)
src/services/wechat/src/utils.ts:20
↓ 1 callersFunctionbindListeners
(bot: WechatyInterface)
src/services/wechat/src/listeners.ts:141
↓ 1 callersFunctionchatWithGPT
(messages: any[])
src/utils/useChatAPI.ts:4
↓ 1 callersFunctionchatWithGPT
(messages: any[])
src/services/wechat/src/gptTurboApi.ts:6
↓ 1 callersFunctionchatWithGPT
(messages: any[])
src/services/web/client/server/utils/index.ts:62
↓ 1 callersFunctionchatWithGPT
(messages: any[])
src/services/node/server/src/utils/index.ts:61
↓ 1 callersFunctioncheckKey
(key: string)
src/main/prepare/checkKey.ts:3
↓ 1 callersFunctioncheckVersion
()
src/main/prepare/version.ts:53
↓ 1 callersFunctionconfirmReadline
( question: string, passReg: RegExp )
src/utils/index.ts:17
↓ 1 callersFunctioncopyEnv
(from: string, to: string)
src/main/commands/wechat.ts:21
↓ 1 callersFunctioncopyEnv
(from: string, to: string)
src/main/commands/node.ts:29
↓ 1 callersFunctioncopyEnv
(from: string, to: string)
src/main/commands/web.ts:29
↓ 1 callersFunctiondeserializer
(value: string | null | undefined)
src/services/web/client/src/hooks/useStorage.ts:22
↓ 1 callersFunctionfetchApi
( apiUrl: string, method = "GET", params: any, body: any )
src/services/wechat/src/utils.ts:26
↓ 1 callersFunctionfetchApi
( apiUrl: string, method = "GET", params: any, body: any )
src/services/web/client/server/utils/index.ts:26
↓ 1 callersFunctionfetchApi
( apiUrl: string, method = "GET", params: any, body: any )
src/services/node/server/src/utils/index.ts:25
↓ 1 callersFunctionfetchApiWithTimeout
( apiUrl: string, method = 'GET', params: any, body: any, timeout: string | number )
src/utils/index.ts:90
↓ 1 callersFunctionformatLang
(lang: string)
src/main/commands/lang.ts:7
↓ 1 callersFunctionformatTime
(timestamp: string | undefined)
src/main/prepare/version.ts:34
↓ 1 callersFunctiongetProperty
(obj: T, key: K)
src/constants/index.ts:12
↓ 1 callersFunctiongetRegistry
()
src/main/prepare/version.ts:22
↓ 1 callersFunctiongetStoreHistory
()
src/services/web/client/src/hooks/useStorage.ts:33
↓ 1 callersFunctiongetStoreUser
()
src/services/web/client/src/hooks/useStorage.ts:26
↓ 1 callersFunctiongetWebServiceDir
()
src/main/commands/node.ts:16
↓ 1 callersFunctiongetWebServiceDir
()
src/main/commands/web.ts:16
↓ 1 callersFunctiongetWechatServiceDir
()
src/main/commands/wechat.ts:16
↓ 1 callersFunctionisNeedCheck
(lastTime: number)
src/main/prepare/version.ts:44
↓ 1 callersFunctionisValidUrl
(urlStr: string)
src/utils/index.ts:211
↓ 1 callersFunctionlisten
()
src/services/web/client/server/index.ts:81
↓ 1 callersFunctionlisten
()
src/services/node/server/src/index.ts:20
↓ 1 callersFunctionmain
()
src/main/init.ts:5
↓ 1 callersFunctiononFriendship
( friendship: FriendshipInterface, bot: WechatyInterface )
src/services/wechat/src/listeners.ts:25
↓ 1 callersFunctionrandomUserAgent
()
src/utils/index.ts:46
↓ 1 callersFunctionreadEnvInFile
(prop: string, envPath: string)
src/utils/index.ts:218
↓ 1 callersFunctionregisterCommand
()
src/main/prepare/command.ts:18
↓ 1 callersFunctionresetMessage
(user: string)
src/utils/useChatAPI.ts:83
↓ 1 callersFunctionresetMessage
(user: string)
src/services/web/client/src/hooks/useFetch.ts:3
↓ 1 callersFunctionresetMessage
(user: string)
src/services/web/client/server/chat/index.ts:3
↓ 1 callersFunctionresetMessage
(user: string)
src/services/node/server/src/chat/index.ts:3
↓ 1 callersFunctionrunCommandLineService
()
src/main/commands/commandLine.ts:4
↓ 1 callersFunctionrunLogin
(key: string | undefined)
src/main/prepare/login.ts:12
↓ 1 callersFunctionrunNodeService
(opts: Record<string, string>)
src/main/commands/node.ts:50
↓ 1 callersFunctionrunWebService
(opts: Record<string, string>)
src/main/commands/web.ts:50
↓ 1 callersFunctionrunWechatService
()
src/main/commands/wechat.ts:42
↓ 1 callersFunctionsafeLocalStorage
()
src/services/web/client/src/hooks/useUserAndHistory.ts:8
↓ 1 callersFunctionsendMessage
(message: string, user: string)
src/utils/useChatAPI.ts:86
↓ 1 callersFunctionsendMessage
(message: string, user: string, history?: any[])
src/services/web/client/src/hooks/useFetch.ts:12
↓ 1 callersFunctionsendMessage
(message: string, user: string, history?: any[])
src/services/web/client/server/chat/index.ts:6
↓ 1 callersFunctionsendMessage
(message: string, user: string)
src/services/node/server/src/chat/index.ts:6
↓ 1 callersFunctionserializer
(value: any)
src/services/web/client/src/hooks/useStorage.ts:16
↓ 1 callersFunctionsetLang
(lang: string)
src/main/commands/lang.ts:16
↓ 1 callersFunctionsetProperty
(obj: T, key: K, value: T[K])
src/constants/index.ts:15
↓ 1 callersFunctionsetProxy
(proxyUrl: string)
src/main/commands/proxy.ts:8
↓ 1 callersFunctionsetStoreHistory
(value: any[])
src/services/web/client/src/hooks/useStorage.ts:36
↓ 1 callersFunctionsetStoreUser
(value: string)
src/services/web/client/src/hooks/useStorage.ts:29
↓ 1 callersFunctionsetSystem
(system: string)
src/main/commands/system.ts:8
↓ 1 callersFunctionstreamAsyncIterable
(stream: ReadableStream<T>)
src/services/web/client/src/utils/fetchSEE.ts:6
↓ 1 callersFunctionuseLatest
(value: any)
src/services/web/client/src/components/Interaction/index.tsx:17
FunctionApp
()
src/services/web/client/src/App.tsx:8
FunctionHistory
({ history }: HistoryType)
src/services/web/client/src/components/History/index.tsx:22
FunctionInteraction
({ history, setHistory }: InteractionType)
src/services/web/client/src/components/Interaction/index.tsx:24
FunctionTitle
()
src/services/web/client/src/components/Title/index.tsx:2
FunctionasyncSleep
(number: number)
src/utils/index.ts:28
FunctionasyncSleep
(number: number)
src/services/web/client/src/utils/index.ts:3
FunctionasyncSleep
(number: number)
src/services/web/client/server/utils/index.ts:5
FunctionasyncSleep
(number: number)
src/services/node/server/src/utils/index.ts:4
FunctionconfirmReadline
(question: string, passReg: RegExp)
src/services/wechat/src/utils.ts:4
FunctionfetchSSE
( url: string, options: Parameters<typeof fetch>[1] & { onMessage: (data: string) => void }, fetch: type
src/services/web/client/src/utils/fetchSEE.ts:22
FunctiongetVar
(prop: keyof typeof obj)
src/constants/index.ts:24
FunctiononLogin
(user: ContactSelfInterface)
src/services/wechat/src/listeners.ts:19
FunctiononLogout
(user: ContactSelfInterface)
src/services/wechat/src/listeners.ts:22
FunctiononScan
(qrcode: string, status: number)
src/services/wechat/src/listeners.ts:11
FunctionrandomUserAgent
()
src/services/web/client/server/utils/index.ts:23
FunctionrandomUserAgent
()
src/services/node/server/src/utils/index.ts:22
FunctionresponseTime
(ctx:Koa.ParameterizedContext<any, Router.IRouterParamContext<any, {}>, any>, next: Koa.Next)
src/services/web/client/server/middlewares/responseTime.ts:4
FunctionresponseTime
(ctx: Koa.ParameterizedContext<any, Router.IRouterParamContext<any, {}>, any>, next: Koa.Next)
src/services/node/server/src/middlewares/responseTime.ts:4
FunctionrunChildProcess
( name: string, execPath: string, args: string[], options: any )
src/utils/index.ts:130
FunctionrunChildProcessSync
(execStr: string, options: any)
src/utils/index.ts:180
FunctionsetVar
(prop: keyof typeof obj, value: string)
src/constants/index.ts:27
FunctionuseUserAndHistory
()
src/services/web/client/src/hooks/useStorage.ts:5