MCPcopy Create free account

hub / github.com/Tencent/teamai-cli / functions

Functions2,077 in github.com/Tencent/teamai-cli

↓ 120 callersFunctionpathExists
(p: string)
src/utils/fs.ts:195
↓ 99 callersFunctionreadFileSafe
(filePath: string)
src/utils/fs.ts:39
↓ 79 callersFunctionwriteFile
(filePath: string, content: string)
src/utils/fs.ts:50
↓ 71 callersFunctiongetUserHome
()
src/utils/home.ts:18
↓ 61 callersFunctionensureDir
(dir: string)
src/utils/fs.ts:32
↓ 51 callersMethodnow
Return current epoch milliseconds. Injected so tests can control time.
src/plugin-lifecycle.ts:63
↓ 48 callersFunctionexpandHome
(p: string)
src/utils/fs.ts:22
↓ 36 callersFunctionautoDetectInit
()
src/config.ts:367
↓ 34 callersFunctionresolveBaseDir
(localConfig: LocalConfig)
src/types.ts:1277
↓ 32 callersFunctionscopedToolPaths
( teamConfig: TeamaiConfig, localConfig: { scope?: Scope }, )
src/types.ts:1309
↓ 29 callersFunctioncreateGit
(basePath?: string)
src/utils/git.ts:14
↓ 25 callersFunctionlistDirs
(dirPath: string)
src/utils/fs.ts:151
↓ 25 callersFunctionremove
( type: string, names: string[], options: GlobalOptions, )
src/remove.ts:12
↓ 24 callersFunctiondetectProjectConfig
(cwd?: string)
src/config.ts:256
↓ 24 callersFunctionlistFiles
(dirPath: string)
src/utils/fs.ts:161
↓ 22 callersFunctionwriteJson
(filePath: string, data: unknown)
src/utils/fs.ts:73
↓ 21 callersFunctiongetDataHome
(localConfig: LocalConfig)
src/types.ts:1382
↓ 21 callersFunctionloadTeamConfig
(repoPath: string)
src/config.ts:56
↓ 19 callersFunctionspinner
(text: string)
src/utils/logger.ts:161
↓ 16 callersFunctiongetTeamaiHome
(scope: Scope, projectRoot?: string)
src/types.ts:1411
↓ 16 callersFunctionisAgentDisabled
(localConfig: { disabledAgents?: string[] }, tool: string)
src/types.ts:1291
↓ 16 callersFunctionlistFilesRecursive
(dirPath: string)
src/utils/fs.ts:171
↓ 15 callersFunctionbuildIndex
( optionsOrLearningsDir: BuildIndexOptions | string, votesDir?: string, indexPath?: string, )
src/utils/search-index.ts:573
↓ 15 callersFunctionensureReportsWorktree
( localConfig: LocalConfig, options: EnsureReportsWorktreeOptions = {}, )
src/utils/reports-branch.ts:87
↓ 15 callersFunctiongetProvider
(providerName?: string)
src/providers/registry.ts:178
↓ 14 callersFunctioncallClaude
( prompt: string, opts?: { timeout?: number } )
src/utils/ai-client.ts:141
↓ 14 callersFunctionwriteJsonAtomic
( filePath: string, data: unknown, options?: { mode?: number }, )
src/utils/fs.ts:91
↓ 13 callersFunctiondetectProvider
(input: string)
src/providers/registry.ts:80
↓ 13 callersFunctionisSelfMode
(localConfig: { repo: { kind?: string } })
src/types.ts:1332
↓ 13 callersFunctionloadLocalAgentConfig
()
src/local-agent.ts:555
↓ 13 callersFunctionloadRolesManifest
(repoPath: string)
src/roles.ts:90
↓ 13 callersFunctionpullRepo
(localPath: string)
src/utils/git.ts:230
↓ 12 callersFunctionloadStateForScope
(localConfig: LocalConfig)
src/config.ts:189
↓ 12 callersMethodscanLocalForPush
* 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 callersFunctionloadIndex
(indexPath?: string)
src/utils/search-index.ts:672
↓ 11 callersFunctionloadUserVotes
(votePath: string)
src/votes.ts:28
↓ 11 callersFunctionrequireInit
()
src/config.ts:125
↓ 11 callersFunctionsaveLocalConfigForScope
( config: LocalConfig, _scope?: Scope, _projectRoot?: string, )
src/config.ts:177
↓ 11 callersFunctionsaveStateForScope
(state: State, localConfig: LocalConfig)
src/config.ts:199
↓ 10 callersFunctionagentFileExtensionForTool
(tool: ToolName)
src/resources/agent-format.ts:26
↓ 10 callersFunctionassertSafeResourceName
(name: string)
src/utils/path-safety.ts:99
↓ 10 callersFunctionescapeHtml
* 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 callersMethodexecute
(stdin: Record<string, unknown>, tool: string)
src/hook-dispatch.ts:18
↓ 10 callersFunctiongetGitHubToken
()
src/providers/github/gh-cli.ts:108
↓ 10 callersFunctiongetGitLabToken
()
src/providers/gitlab/gitlab-api.ts:69
↓ 10 callersFunctiongetHermesHome
()
src/hermes-home.ts:11
↓ 10 callersFunctiongetLocalAgentHome
()
src/local-agent.ts:294
↓ 10 callersFunctionruleFileExtensionForTool
(tool: string)
src/resources/rule-format.ts:18
↓ 10 callersMethodscanTeamForPull
(_teamConfig: TeamaiConfig, localConfig: LocalConfig)
src/resources/mcp.ts:100
↓ 10 callersMethodstatus
( declaration: NpmSpec[], context: PackageInstallContext, )
src/pkg/adapters/npm.ts:168
↓ 9 callersFunctionaggregateSessionMetrics
( events: DashboardEvent[], )
src/dashboard-collector.ts:1114
↓ 9 callersFunctionemptyTokenUsage
()
src/types.ts:811
↓ 9 callersFunctionfileContentEqual
(fileA: string, fileB: string)
src/utils/fs.ts:271
↓ 9 callersFunctiongetGitCodeToken
()
src/providers/gitcode/gitcode-api.ts:39
↓ 9 callersFunctionloadLocalConfig
()
src/config.ts:74
↓ 9 callersFunctionloadLocalConfigForScope
( scope: Scope, projectRoot?: string, )
src/config.ts:146
↓ 9 callersFunctionmanagedMcpManifestPath
(dataHome: string, workspaceRoot?: string)
src/types.ts:625
↓ 9 callersMethodparseRepoInput
Parse user input (URL or short format) into RepoInfo
src/providers/types.ts:70
↓ 9 callersFunctionreadEvents
(eventsPath?: string)
src/dashboard-collector.ts:905
↓ 8 callersFunctionacquireLock
(lockPath?: string)
src/update.ts:255
↓ 8 callersFunctionappendEvent
(event: DashboardEvent)
src/dashboard-collector.ts:885
↓ 8 callersFunctioncreateLocalAgentTeamConfig
(endpoint: string)
src/local-agent.ts:644
↓ 8 callersFunctionisGhInstalled
()
src/providers/github/gh-cli.ts:32
↓ 8 callersMethodpullItem
()
src/resources/mcp.ts:116
↓ 8 callersFunctionpushRepoDirectly
(localPath: string, message: string, files: string[])
src/utils/git.ts:321
↓ 8 callersFunctionreleaseLock
(lockPath?: string)
src/update.ts:312
↓ 8 callersFunctionremove
(p: string)
src/utils/fs.ts:202
↓ 8 callersFunctionreportAndSyncLocalAgent
(context: LocalAgentContext)
src/local-agent.ts:3024
↓ 8 callersFunctionresolveHookCwd
(data: Record<string, unknown>)
src/utils/hook-cwd.ts:9
↓ 8 callersFunctionsearch
( query: string, index: SearchIndex, limit: number = 5, )
src/utils/search-index.ts:730
↓ 8 callersFunctiontoPosix
(value: string)
src/wiki-engine/core/wiki-protocol.ts:192
↓ 8 callersFunctionusesCursorMdcRules
(tool: string)
src/resources/rule-format.ts:23
↓ 7 callersFunctionaskConfirmation
( prompt: string, defaultValue = false, )
src/utils/prompt.ts:85
↓ 7 callersFunctionaskQuestion
(prompt: string, defaultValue?: string)
src/utils/prompt.ts:67
↓ 7 callersFunctioncheckoutMaster
(localPath: string)
src/utils/git.ts:628
↓ 7 callersFunctionderiveSessionId
( data: Record<string, unknown>, options: DeriveSessionIdOptions = {}, )
src/utils/session-id.ts:24
↓ 7 callersFunctiongenerateBranchName
(username: string)
src/utils/git.ts:637
↓ 7 callersFunctioninjectHooks
(settingsPath: string, tool?: string)
src/hooks.ts:706
↓ 7 callersFunctionloadPackageManifest
(repoPath: string)
src/pkg/manifest.ts:41
↓ 7 callersFunctionmapKindToEvidenceType
(kind: CodeFactKind)
src/wiki-engine/code-knowledge/code-extractors.ts:11
↓ 7 callersFunctionpackageDeclarationHash
(manifest: PackageManifest)
src/pkg/manifest.ts:101
↓ 7 callersFunctionparseFrontmatter
(content: string)
src/utils/frontmatter.ts:73
↓ 7 callersFunctionprojectDataHome
(anchor: string)
src/utils/partition.ts:119
↓ 7 callersFunctionpush
(options: GlobalOptions & { all?: boolean; role?: string })
src/push.ts:260
↓ 7 callersFunctionpushRepoBranch
( localPath: string, message: string, files: string[], branchName: string, opts: { reuseBranch?: boo
src/utils/git.ts:489
↓ 7 callersMethodremoveItem
* 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 callersFunctionrenderForTool
(spec: AgentSpec, tool: ToolName)
src/resources/agent-format.ts:626
↓ 7 callersFunctionresolveHookScope
( localConfig: LocalConfig, )
src/types.ts:1497
↓ 7 callersFunctionresolveOpencodePluginDir
(baseDir: string, scope: 'project' | 'user')
src/opencode-hooks.ts:48
↓ 7 callersFunctionresolveWorkspacePath
(cwd?: string)
src/local-agent.ts:1200
↓ 7 callersFunctiontgitFetch
(path: string, init?: RequestInit)
src/providers/tgit/rest-auth.ts:113
↓ 7 callersFunctiontokenize
(text: string)
src/utils/tokenizer.ts:28
↓ 6 callersFunctionaddTokenUsage
(a: TokenUsage | undefined, b: TokenUsage | undefined)
src/types.ts:822
↓ 6 callersFunctioncommitAndPushReports
( localConfig: LocalConfig, message: string, files: string[], )
src/utils/reports-branch.ts:214
↓ 6 callersFunctioncopyFile
(src: string, dest: string)
src/utils/fs.ts:142
↓ 6 callersFunctioncreatePrWithFallback
* 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 callersFunctionexecVersion
(bin: string, args: string[] = ['--version'])
src/agent-version.ts:17
↓ 6 callersFunctionghExec
( args: string[], options?: { inheritStdio?: boolean; cwd?: string; env?: NodeJS.ProcessEnv }, )
src/providers/github/gh-cli.ts:40
↓ 6 callersFunctiongitlabApiBase
()
src/providers/gitlab/gitlab-api.ts:40
↓ 6 callersFunctioninjectClaudeMdSection
( filePath: string, startMarker: string, endMarker: string, block: string, )
src/utils/claudemd.ts:17
next →1–100 of 2,077, ranked by callers