Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tencent/teamai-cli
/ functions
Functions
2,077 in github.com/Tencent/teamai-cli
⨍
Functions
2,077
◇
Types & classes
415
↓ 120 callers
Function
pathExists
(p: string)
src/utils/fs.ts:195
↓ 99 callers
Function
readFileSafe
(filePath: string)
src/utils/fs.ts:39
↓ 79 callers
Function
writeFile
(filePath: string, content: string)
src/utils/fs.ts:50
↓ 71 callers
Function
getUserHome
()
src/utils/home.ts:18
↓ 61 callers
Function
ensureDir
(dir: string)
src/utils/fs.ts:32
↓ 51 callers
Method
now
Return current epoch milliseconds. Injected so tests can control time.
src/plugin-lifecycle.ts:63
↓ 48 callers
Function
expandHome
(p: string)
src/utils/fs.ts:22
↓ 36 callers
Function
autoDetectInit
()
src/config.ts:367
↓ 34 callers
Function
resolveBaseDir
(localConfig: LocalConfig)
src/types.ts:1277
↓ 32 callers
Function
scopedToolPaths
( teamConfig: TeamaiConfig, localConfig: { scope?: Scope }, )
src/types.ts:1309
↓ 29 callers
Function
createGit
(basePath?: string)
src/utils/git.ts:14
↓ 25 callers
Function
listDirs
(dirPath: string)
src/utils/fs.ts:151
↓ 25 callers
Function
remove
( type: string, names: string[], options: GlobalOptions, )
src/remove.ts:12
↓ 24 callers
Function
detectProjectConfig
(cwd?: string)
src/config.ts:256
↓ 24 callers
Function
listFiles
(dirPath: string)
src/utils/fs.ts:161
↓ 22 callers
Function
writeJson
(filePath: string, data: unknown)
src/utils/fs.ts:73
↓ 21 callers
Function
getDataHome
(localConfig: LocalConfig)
src/types.ts:1382
↓ 21 callers
Function
loadTeamConfig
(repoPath: string)
src/config.ts:56
↓ 19 callers
Function
spinner
(text: string)
src/utils/logger.ts:161
↓ 16 callers
Function
getTeamaiHome
(scope: Scope, projectRoot?: string)
src/types.ts:1411
↓ 16 callers
Function
isAgentDisabled
(localConfig: { disabledAgents?: string[] }, tool: string)
src/types.ts:1291
↓ 16 callers
Function
listFilesRecursive
(dirPath: string)
src/utils/fs.ts:171
↓ 15 callers
Function
buildIndex
( optionsOrLearningsDir: BuildIndexOptions | string, votesDir?: string, indexPath?: string, )
src/utils/search-index.ts:573
↓ 15 callers
Function
ensureReportsWorktree
( localConfig: LocalConfig, options: EnsureReportsWorktreeOptions = {}, )
src/utils/reports-branch.ts:87
↓ 15 callers
Function
getProvider
(providerName?: string)
src/providers/registry.ts:178
↓ 14 callers
Function
callClaude
( prompt: string, opts?: { timeout?: number } )
src/utils/ai-client.ts:141
↓ 14 callers
Function
writeJsonAtomic
( filePath: string, data: unknown, options?: { mode?: number }, )
src/utils/fs.ts:91
↓ 13 callers
Function
detectProvider
(input: string)
src/providers/registry.ts:80
↓ 13 callers
Function
isSelfMode
(localConfig: { repo: { kind?: string } })
src/types.ts:1332
↓ 13 callers
Function
loadLocalAgentConfig
()
src/local-agent.ts:555
↓ 13 callers
Function
loadRolesManifest
(repoPath: string)
src/roles.ts:90
↓ 13 callers
Function
pullRepo
(localPath: string)
src/utils/git.ts:230
↓ 12 callers
Function
loadStateForScope
(localConfig: LocalConfig)
src/config.ts:189
↓ 12 callers
Method
scanLocalForPush
* MCP servers are contributed by editing mcp/mcp.yaml directly (same as hooks), * so there is nothing to discover on the local side for push.
src/resources/mcp.ts:96
↓ 11 callers
Function
loadIndex
(indexPath?: string)
src/utils/search-index.ts:672
↓ 11 callers
Function
loadUserVotes
(votePath: string)
src/votes.ts:28
↓ 11 callers
Function
requireInit
()
src/config.ts:125
↓ 11 callers
Function
saveLocalConfigForScope
( config: LocalConfig, _scope?: Scope, _projectRoot?: string, )
src/config.ts:177
↓ 11 callers
Function
saveStateForScope
(state: State, localConfig: LocalConfig)
src/config.ts:199
↓ 10 callers
Function
agentFileExtensionForTool
(tool: ToolName)
src/resources/agent-format.ts:26
↓ 10 callers
Function
assertSafeResourceName
(name: string)
src/utils/path-safety.ts:99
↓ 10 callers
Function
escapeHtml
* Escape a string for safe insertion into HTML content and attribute values. * Converts &, <, >, ", and ' to their HTML entity equivalents.
src/viz-render.ts:19
↓ 10 callers
Method
execute
(stdin: Record<string, unknown>, tool: string)
src/hook-dispatch.ts:18
↓ 10 callers
Function
getGitHubToken
()
src/providers/github/gh-cli.ts:108
↓ 10 callers
Function
getGitLabToken
()
src/providers/gitlab/gitlab-api.ts:69
↓ 10 callers
Function
getHermesHome
()
src/hermes-home.ts:11
↓ 10 callers
Function
getLocalAgentHome
()
src/local-agent.ts:294
↓ 10 callers
Function
ruleFileExtensionForTool
(tool: string)
src/resources/rule-format.ts:18
↓ 10 callers
Method
scanTeamForPull
(_teamConfig: TeamaiConfig, localConfig: LocalConfig)
src/resources/mcp.ts:100
↓ 10 callers
Method
status
( declaration: NpmSpec[], context: PackageInstallContext, )
src/pkg/adapters/npm.ts:168
↓ 9 callers
Function
aggregateSessionMetrics
( events: DashboardEvent[], )
src/dashboard-collector.ts:1114
↓ 9 callers
Function
emptyTokenUsage
()
src/types.ts:811
↓ 9 callers
Function
fileContentEqual
(fileA: string, fileB: string)
src/utils/fs.ts:271
↓ 9 callers
Function
getGitCodeToken
()
src/providers/gitcode/gitcode-api.ts:39
↓ 9 callers
Function
loadLocalConfig
()
src/config.ts:74
↓ 9 callers
Function
loadLocalConfigForScope
( scope: Scope, projectRoot?: string, )
src/config.ts:146
↓ 9 callers
Function
managedMcpManifestPath
(dataHome: string, workspaceRoot?: string)
src/types.ts:625
↓ 9 callers
Method
parseRepoInput
Parse user input (URL or short format) into RepoInfo
src/providers/types.ts:70
↓ 9 callers
Function
readEvents
(eventsPath?: string)
src/dashboard-collector.ts:905
↓ 8 callers
Function
acquireLock
(lockPath?: string)
src/update.ts:255
↓ 8 callers
Function
appendEvent
(event: DashboardEvent)
src/dashboard-collector.ts:885
↓ 8 callers
Function
createLocalAgentTeamConfig
(endpoint: string)
src/local-agent.ts:644
↓ 8 callers
Function
isGhInstalled
()
src/providers/github/gh-cli.ts:32
↓ 8 callers
Method
pullItem
()
src/resources/mcp.ts:116
↓ 8 callers
Function
pushRepoDirectly
(localPath: string, message: string, files: string[])
src/utils/git.ts:321
↓ 8 callers
Function
releaseLock
(lockPath?: string)
src/update.ts:312
↓ 8 callers
Function
remove
(p: string)
src/utils/fs.ts:202
↓ 8 callers
Function
reportAndSyncLocalAgent
(context: LocalAgentContext)
src/local-agent.ts:3024
↓ 8 callers
Function
resolveHookCwd
(data: Record<string, unknown>)
src/utils/hook-cwd.ts:9
↓ 8 callers
Function
search
( query: string, index: SearchIndex, limit: number = 5, )
src/utils/search-index.ts:730
↓ 8 callers
Function
toPosix
(value: string)
src/wiki-engine/core/wiki-protocol.ts:192
↓ 8 callers
Function
usesCursorMdcRules
(tool: string)
src/resources/rule-format.ts:23
↓ 7 callers
Function
askConfirmation
( prompt: string, defaultValue = false, )
src/utils/prompt.ts:85
↓ 7 callers
Function
askQuestion
(prompt: string, defaultValue?: string)
src/utils/prompt.ts:67
↓ 7 callers
Function
checkoutMaster
(localPath: string)
src/utils/git.ts:628
↓ 7 callers
Function
deriveSessionId
( data: Record<string, unknown>, options: DeriveSessionIdOptions = {}, )
src/utils/session-id.ts:24
↓ 7 callers
Function
generateBranchName
(username: string)
src/utils/git.ts:637
↓ 7 callers
Function
injectHooks
(settingsPath: string, tool?: string)
src/hooks.ts:706
↓ 7 callers
Function
loadPackageManifest
(repoPath: string)
src/pkg/manifest.ts:41
↓ 7 callers
Function
mapKindToEvidenceType
(kind: CodeFactKind)
src/wiki-engine/code-knowledge/code-extractors.ts:11
↓ 7 callers
Function
packageDeclarationHash
(manifest: PackageManifest)
src/pkg/manifest.ts:101
↓ 7 callers
Function
parseFrontmatter
(content: string)
src/utils/frontmatter.ts:73
↓ 7 callers
Function
projectDataHome
(anchor: string)
src/utils/partition.ts:119
↓ 7 callers
Function
push
(options: GlobalOptions & { all?: boolean; role?: string })
src/push.ts:260
↓ 7 callers
Function
pushRepoBranch
( localPath: string, message: string, files: string[], branchName: string, opts: { reuseBranch?: boo
src/utils/git.ts:489
↓ 7 callers
Method
removeItem
* Remove a server from the team repo's mcp.yaml. Local tool configs are cleaned * up by the next reconcile, which sees the server vanish from the d
src/resources/mcp.ts:125
↓ 7 callers
Function
renderForTool
(spec: AgentSpec, tool: ToolName)
src/resources/agent-format.ts:626
↓ 7 callers
Function
resolveHookScope
( localConfig: LocalConfig, )
src/types.ts:1497
↓ 7 callers
Function
resolveOpencodePluginDir
(baseDir: string, scope: 'project' | 'user')
src/opencode-hooks.ts:48
↓ 7 callers
Function
resolveWorkspacePath
(cwd?: string)
src/local-agent.ts:1200
↓ 7 callers
Function
tgitFetch
(path: string, init?: RequestInit)
src/providers/tgit/rest-auth.ts:113
↓ 7 callers
Function
tokenize
(text: string)
src/utils/tokenizer.ts:28
↓ 6 callers
Function
addTokenUsage
(a: TokenUsage | undefined, b: TokenUsage | undefined)
src/types.ts:822
↓ 6 callers
Function
commitAndPushReports
( localConfig: LocalConfig, message: string, files: string[], )
src/utils/reports-branch.ts:214
↓ 6 callers
Function
copyFile
(src: string, dest: string)
src/utils/fs.ts:142
↓ 6 callers
Function
createPrWithFallback
* Create a PR/MR via the configured provider with standard error handling. * Returns the PR URL on success, or null if creation failed (branch is sti
src/push.ts:89
↓ 6 callers
Function
execVersion
(bin: string, args: string[] = ['--version'])
src/agent-version.ts:17
↓ 6 callers
Function
ghExec
( args: string[], options?: { inheritStdio?: boolean; cwd?: string; env?: NodeJS.ProcessEnv }, )
src/providers/github/gh-cli.ts:40
↓ 6 callers
Function
gitlabApiBase
()
src/providers/gitlab/gitlab-api.ts:40
↓ 6 callers
Function
injectClaudeMdSection
( filePath: string, startMarker: string, endMarker: string, block: string, )
src/utils/claudemd.ts:17
next →
1–100 of 2,077, ranked by callers