Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cosin2077/chaty
/ functions
Functions
92 in github.com/cosin2077/chaty
⨍
Functions
92
◇
Types & classes
10
↓ 6 callers
Function
runChildPromise
( name: string, execPath: string, args: string[], options: any )
src/utils/index.ts:149
↓ 6 callers
Function
spinnerStart
(loadingMsg = 'loading')
src/utils/index.ts:201
↓ 6 callers
Function
writeHomeEnv
(prop: string, value: string)
src/utils/index.ts:188
↓ 3 callers
Function
safeStringify
(value: any)
src/services/web/client/src/hooks/useUserAndHistory.ts:26
↓ 3 callers
Function
trimUndef
(str: string | undefined)
src/main/prepare/login.ts:8
↓ 2 callers
Function
fetchApi
( apiUrl: string, method = 'GET', params: any, body: any )
src/utils/index.ts:47
↓ 2 callers
Function
fetchApi
( apiUrl: string, method = "GET", params: any, body: any )
src/services/web/client/src/utils/index.ts:9
↓ 2 callers
Function
onMessage
(message: MessageInterface, bot: WechatyInterface)
src/services/wechat/src/listeners.ts:44
↓ 2 callers
Function
resetMessage
(user: string)
src/services/wechat/src/gptTurboApi.ts:90
↓ 2 callers
Function
safeParsing
(value: string | null | undefined)
src/services/web/client/src/hooks/useUserAndHistory.ts:17
↓ 2 callers
Function
sendMessage
(message: string, user: string)
src/services/wechat/src/gptTurboApi.ts:93
↓ 2 callers
Function
useUserAndHistory
()
src/services/web/client/src/hooks/useUserAndHistory.ts:35
↓ 1 callers
Function
asyncSleep
(number: number)
src/services/wechat/src/utils.ts:20
↓ 1 callers
Function
bindListeners
(bot: WechatyInterface)
src/services/wechat/src/listeners.ts:141
↓ 1 callers
Function
chatWithGPT
(messages: any[])
src/utils/useChatAPI.ts:4
↓ 1 callers
Function
chatWithGPT
(messages: any[])
src/services/wechat/src/gptTurboApi.ts:6
↓ 1 callers
Function
chatWithGPT
(messages: any[])
src/services/web/client/server/utils/index.ts:62
↓ 1 callers
Function
chatWithGPT
(messages: any[])
src/services/node/server/src/utils/index.ts:61
↓ 1 callers
Function
checkKey
(key: string)
src/main/prepare/checkKey.ts:3
↓ 1 callers
Function
checkVersion
()
src/main/prepare/version.ts:53
↓ 1 callers
Function
confirmReadline
( question: string, passReg: RegExp )
src/utils/index.ts:17
↓ 1 callers
Function
copyEnv
(from: string, to: string)
src/main/commands/wechat.ts:21
↓ 1 callers
Function
copyEnv
(from: string, to: string)
src/main/commands/node.ts:29
↓ 1 callers
Function
copyEnv
(from: string, to: string)
src/main/commands/web.ts:29
↓ 1 callers
Function
deserializer
(value: string | null | undefined)
src/services/web/client/src/hooks/useStorage.ts:22
↓ 1 callers
Function
fetchApi
( apiUrl: string, method = "GET", params: any, body: any )
src/services/wechat/src/utils.ts:26
↓ 1 callers
Function
fetchApi
( apiUrl: string, method = "GET", params: any, body: any )
src/services/web/client/server/utils/index.ts:26
↓ 1 callers
Function
fetchApi
( apiUrl: string, method = "GET", params: any, body: any )
src/services/node/server/src/utils/index.ts:25
↓ 1 callers
Function
fetchApiWithTimeout
( apiUrl: string, method = 'GET', params: any, body: any, timeout: string | number )
src/utils/index.ts:90
↓ 1 callers
Function
formatLang
(lang: string)
src/main/commands/lang.ts:7
↓ 1 callers
Function
formatTime
(timestamp: string | undefined)
src/main/prepare/version.ts:34
↓ 1 callers
Function
getProperty
(obj: T, key: K)
src/constants/index.ts:12
↓ 1 callers
Function
getRegistry
()
src/main/prepare/version.ts:22
↓ 1 callers
Function
getStoreHistory
()
src/services/web/client/src/hooks/useStorage.ts:33
↓ 1 callers
Function
getStoreUser
()
src/services/web/client/src/hooks/useStorage.ts:26
↓ 1 callers
Function
getWebServiceDir
()
src/main/commands/node.ts:16
↓ 1 callers
Function
getWebServiceDir
()
src/main/commands/web.ts:16
↓ 1 callers
Function
getWechatServiceDir
()
src/main/commands/wechat.ts:16
↓ 1 callers
Function
isNeedCheck
(lastTime: number)
src/main/prepare/version.ts:44
↓ 1 callers
Function
isValidUrl
(urlStr: string)
src/utils/index.ts:211
↓ 1 callers
Function
listen
()
src/services/web/client/server/index.ts:81
↓ 1 callers
Function
listen
()
src/services/node/server/src/index.ts:20
↓ 1 callers
Function
main
()
src/main/init.ts:5
↓ 1 callers
Function
onFriendship
( friendship: FriendshipInterface, bot: WechatyInterface )
src/services/wechat/src/listeners.ts:25
↓ 1 callers
Function
randomUserAgent
()
src/utils/index.ts:46
↓ 1 callers
Function
readEnvInFile
(prop: string, envPath: string)
src/utils/index.ts:218
↓ 1 callers
Function
registerCommand
()
src/main/prepare/command.ts:18
↓ 1 callers
Function
resetMessage
(user: string)
src/utils/useChatAPI.ts:83
↓ 1 callers
Function
resetMessage
(user: string)
src/services/web/client/src/hooks/useFetch.ts:3
↓ 1 callers
Function
resetMessage
(user: string)
src/services/web/client/server/chat/index.ts:3
↓ 1 callers
Function
resetMessage
(user: string)
src/services/node/server/src/chat/index.ts:3
↓ 1 callers
Function
runCommandLineService
()
src/main/commands/commandLine.ts:4
↓ 1 callers
Function
runLogin
(key: string | undefined)
src/main/prepare/login.ts:12
↓ 1 callers
Function
runNodeService
(opts: Record<string, string>)
src/main/commands/node.ts:50
↓ 1 callers
Function
runWebService
(opts: Record<string, string>)
src/main/commands/web.ts:50
↓ 1 callers
Function
runWechatService
()
src/main/commands/wechat.ts:42
↓ 1 callers
Function
safeLocalStorage
()
src/services/web/client/src/hooks/useUserAndHistory.ts:8
↓ 1 callers
Function
sendMessage
(message: string, user: string)
src/utils/useChatAPI.ts:86
↓ 1 callers
Function
sendMessage
(message: string, user: string, history?: any[])
src/services/web/client/src/hooks/useFetch.ts:12
↓ 1 callers
Function
sendMessage
(message: string, user: string, history?: any[])
src/services/web/client/server/chat/index.ts:6
↓ 1 callers
Function
sendMessage
(message: string, user: string)
src/services/node/server/src/chat/index.ts:6
↓ 1 callers
Function
serializer
(value: any)
src/services/web/client/src/hooks/useStorage.ts:16
↓ 1 callers
Function
setLang
(lang: string)
src/main/commands/lang.ts:16
↓ 1 callers
Function
setProperty
(obj: T, key: K, value: T[K])
src/constants/index.ts:15
↓ 1 callers
Function
setProxy
(proxyUrl: string)
src/main/commands/proxy.ts:8
↓ 1 callers
Function
setStoreHistory
(value: any[])
src/services/web/client/src/hooks/useStorage.ts:36
↓ 1 callers
Function
setStoreUser
(value: string)
src/services/web/client/src/hooks/useStorage.ts:29
↓ 1 callers
Function
setSystem
(system: string)
src/main/commands/system.ts:8
↓ 1 callers
Function
streamAsyncIterable
(stream: ReadableStream<T>)
src/services/web/client/src/utils/fetchSEE.ts:6
↓ 1 callers
Function
useLatest
(value: any)
src/services/web/client/src/components/Interaction/index.tsx:17
Function
App
()
src/services/web/client/src/App.tsx:8
Function
History
({ history }: HistoryType)
src/services/web/client/src/components/History/index.tsx:22
Function
Interaction
({ history, setHistory }: InteractionType)
src/services/web/client/src/components/Interaction/index.tsx:24
Function
Title
()
src/services/web/client/src/components/Title/index.tsx:2
Function
asyncSleep
(number: number)
src/utils/index.ts:28
Function
asyncSleep
(number: number)
src/services/web/client/src/utils/index.ts:3
Function
asyncSleep
(number: number)
src/services/web/client/server/utils/index.ts:5
Function
asyncSleep
(number: number)
src/services/node/server/src/utils/index.ts:4
Function
confirmReadline
(question: string, passReg: RegExp)
src/services/wechat/src/utils.ts:4
Function
fetchSSE
( url: string, options: Parameters<typeof fetch>[1] & { onMessage: (data: string) => void }, fetch: type
src/services/web/client/src/utils/fetchSEE.ts:22
Function
getVar
(prop: keyof typeof obj)
src/constants/index.ts:24
Function
onLogin
(user: ContactSelfInterface)
src/services/wechat/src/listeners.ts:19
Function
onLogout
(user: ContactSelfInterface)
src/services/wechat/src/listeners.ts:22
Function
onScan
(qrcode: string, status: number)
src/services/wechat/src/listeners.ts:11
Function
randomUserAgent
()
src/services/web/client/server/utils/index.ts:23
Function
randomUserAgent
()
src/services/node/server/src/utils/index.ts:22
Function
responseTime
(ctx:Koa.ParameterizedContext<any, Router.IRouterParamContext<any, {}>, any>, next: Koa.Next)
src/services/web/client/server/middlewares/responseTime.ts:4
Function
responseTime
(ctx: Koa.ParameterizedContext<any, Router.IRouterParamContext<any, {}>, any>, next: Koa.Next)
src/services/node/server/src/middlewares/responseTime.ts:4
Function
runChildProcess
( name: string, execPath: string, args: string[], options: any )
src/utils/index.ts:130
Function
runChildProcessSync
(execStr: string, options: any)
src/utils/index.ts:180
Function
setVar
(prop: keyof typeof obj, value: string)
src/constants/index.ts:27
Function
useUserAndHistory
()
src/services/web/client/src/hooks/useStorage.ts:5