Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/21st-dev/1code
/ claude.ts
File
claude.ts
src/main/lib/trpc/routers/claude.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ observable } from
"@trpc/server/observable"
2
import
{ eq } from
"drizzle-orm"
3
import
{ app, BrowserWindow, safeStorage } from
"electron"
4
import
* as fs from
"fs/promises"
Callers
nothing calls this directly
Calls
15
getDatabase
Function · 0.90
checkOfflineFallback
Function · 0.90
setConnectionMethod
Function · 0.90
createTransformer
Function · 0.90
buildAgentsOption
Function · 0.90
buildClaudeEnv
Function · 0.90
logClaudeEnv
Function · 0.90
readClaudeDirConfig
Function · 0.90
getMergedGlobalMcpServers
Function · 0.90
getMergedLocalProjectMcpServers
Function · 0.90
getEnabledPlugins
Function · 0.90
discoverPluginMcpServers
Function · 0.90
Tested by
no test coverage detected