MCPcopy Create free account

hub / github.com/alibaba/open-code-review / functions

Functions3,095 in github.com/alibaba/open-code-review

↓ 2 callersFunctionchunkArray
(items, size)
scripts/github-actions/post-review-comments.js:758
↓ 2 callersFunctionclamp_line
(n)
examples/gitflic_ci/post_review.py:170
↓ 2 callersMethodclear
()
extensions/vscode/src/extension/providers/CommentProvider.ts:311
↓ 2 callersFunctioncloneCustomProviderList
(src []customProviderListItem)
cmd/opencodereview/provider_tui.go:1211
↓ 2 callersFunctioncompleteEnum
(values ...string)
cmd/opencodereview/shared_flags.go:60
↓ 2 callersMethodconfirmDeleteCustomModel
()
cmd/opencodereview/provider_tui.go:1477
↓ 2 callersFunctioncopyMessages
copyMessages creates a shallow copy of a message slice.
internal/llmloop/compression.go:199
↓ 2 callersFunctioncopyProvider
(p Provider)
internal/llm/providers.go:352
↓ 2 callersFunctioncountCommentsRaw
(raw json.RawMessage)
internal/session/list.go:271
↓ 2 callersFunctioncountDispatchable
(diffs []model.Diff)
internal/agent/agent.go:546
↓ 2 callersFunctioncountLines
countLines returns the number of lines in content. A file without a trailing newline still counts its final line. Empty input → 0.
internal/scan/provider.go:288
↓ 2 callersMethodcountReviewable
countReviewable counts diffs that will survive all filters and are not pure deletions.
internal/agent/agent.go:866
↓ 2 callersFunctioncounterpartPaths
(enPath)
scripts/github-actions/check-translation-sync.js:170
↓ 2 callersMethodcursorOnDeletableModel
cursorOnDeletableModel reports whether the model-step cursor is on a row that can be deleted (not on "Enter custom model name...").
cmd/opencodereview/provider_tui.go:474
↓ 2 callersMethodcursorOnUserAddedModel
()
cmd/opencodereview/provider_tui.go:2562
↓ 2 callersMethodcustomAPIKeyForSave
customAPIKeyForSave reports the API key to persist and whether the user edited the field (vs left the masked placeholder untouched).
cmd/opencodereview/provider_tui.go:875
↓ 2 callersFunctiondescribeActiveProvider
(config: OcrConfig | null)
extensions/vscode/src/shared/configUtils.ts:37
↓ 2 callersFunctiondescribeCommentLocation
(reviewComment)
scripts/github-actions/post-review-comments.js:1947
↓ 2 callersFunctiondescribeRange
(s session.Summary)
cmd/opencodereview/session_cmd.go:199
↓ 2 callersFunctiondescribeStart
(s session.Summary)
cmd/opencodereview/session_cmd.go:231
↓ 2 callersFunctiondescribeStatus
(s session.Summary)
cmd/opencodereview/session_cmd.go:221
↓ 2 callersFunctiondiffStatus
(d model.Diff)
internal/agent/preview.go:108
↓ 2 callersMethoddiscard
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:173
↓ 2 callersFunctiondisplayMode
(m string)
cmd/opencodereview/session_cmd.go:192
↓ 2 callersMethoddispose
()
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:51
↓ 2 callersFunctiondownload
(url, maxRedirects = 10)
scripts/install.js:90
↓ 2 callersFunctionemitError
(file, message)
scripts/github-actions/check-translation-sync.js:201
↓ 2 callersMethodemitSync
()
extensions/vscode/src/extension/providers/CommentProvider.ts:40
↓ 2 callersFunctionemitWarning
(file, message)
scripts/github-actions/check-translation-sync.js:206
↓ 2 callersFunctionencodingForModel
(modelName string)
internal/llm/client.go:281
↓ 2 callersMethodensureTelemetry
()
cmd/opencodereview/config_cmd.go:741
↓ 2 callersFunctionestimateDiffCost
estimateDiffCost projects token usage for reviewing the given diffs. It is the diff-path analogue of scan.estimateCost and is used for the pre-review
internal/agent/estimate.go:70
↓ 2 callersFunctionestimateFileTokens
estimateCost projects token usage for reviewing the given items under the supplied scan template. planEnabled / dedupEnabled / summaryEnabled reflect
internal/scan/estimate.go:42
↓ 2 callersFunctionextFromPath
(path string)
internal/scan/agent.go:376
↓ 2 callersMethodextFromPath
extFromPath returns the file extension with leading dot, lowercased.
internal/agent/agent.go:912
↓ 2 callersFunctionextractBlockText
(block ContentBlock)
internal/llm/client.go:103
↓ 2 callersFunctionextractCliError
(stderr: string)
extensions/vscode/src/extension/services/cliParse.ts:58
↓ 2 callersFunctionextractCodeBlock
extractCodeBlock extracts the content of the first fenced code block from text. Returns empty string if no code block is found.
internal/diff/relocation.go:79
↓ 2 callersFunctionextractHeadings
(markdown: string)
pages/src/utils/extractHeadings.ts:4
↓ 2 callersMethodfalsePositive
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:174
↓ 2 callersFunctionfilterByPaths
filterByPaths keeps only entries whose path equals a user-supplied path (for exact files) or lies under it (for directories).
internal/scan/provider.go:273
↓ 2 callersMethodfilterDiffs
filterDiffs drops diffs that should not be reviewed based on user-configured include/exclude patterns and default extension/path filters.
internal/agent/agent.go:887
↓ 2 callersMethodfilterScanItems
filterScanItems drops items that should not be reviewed under the standard reviewability rules (binary, extension allowlist, user include/exclude, def
internal/scan/agent.go:306
↓ 2 callersFunctionfindLinesByExistingCode
(content: string, existingCode: string)
extensions/vscode/src/extension/providers/commentAnchor.ts:68
↓ 2 callersFunctionfindSummaryIssueComment
({ github, owner, repo, prNumber, sticky, tag, log })
scripts/github-actions/post-review-comments.js:848
↓ 2 callersMethodfocusManualStep
()
cmd/opencodereview/provider_tui.go:1645
↓ 2 callersFunctionformatComment
(comment, id)
scripts/github-actions/post-review-comments.js:1465
↓ 2 callersFunctionformatSummaryComments
(summaryComments)
scripts/github-actions/post-review-comments.js:1567
↓ 2 callersFunctionformatTime
(t time.Time)
internal/viewer/server.go:74
↓ 2 callersFunctionformatToolDefs
formatToolDefs renders tool definitions as human-readable text for embedding in prompts.
internal/agent/agent.go:977
↓ 2 callersFunctiongenerateHeadingId
(text: string)
pages/src/utils/headingId.ts:8
↓ 2 callersMethodgetBranchDiff
分支对比:merge-base 三点 diff。
extensions/vscode/src/extension/services/GitService.ts:204
↓ 2 callersFunctiongetBreakpoints
()
pages/src/hooks/useResponsive.ts:21
↓ 2 callersMethodgetCachedEnvironment
()
extensions/vscode/src/extension/services/CliService.ts:19
↓ 2 callersMethodgetCommitFiles
单次提交:该 commit 相对父提交的改动文件。
extensions/vscode/src/extension/services/GitService.ts:237
↓ 2 callersFunctiongetDocTitle
(slug: DocSlug, language: string)
pages/src/content/docs/index.ts:186
↓ 2 callersFunctiongetMeter
()
internal/telemetry/metrics.go:25
↓ 2 callersFunctiongetRawContent
(slug: BlogSlug, language: string)
pages/src/content/blog/index.ts:75
↓ 2 callersFunctiongetRawContent
* Get raw content for a slug in the given language, with English fallback.
pages/src/content/docs/index.ts:170
↓ 2 callersMethodgetState
(mode: ReviewMode)
extensions/vscode/src/extension/services/GitService.ts:67
↓ 2 callersFunctiongetTracer
()
internal/telemetry/span.go:16
↓ 2 callersMethodhasSuggestion
(c: ReviewComment)
extensions/vscode/src/extension/providers/CommentProvider.ts:117
↓ 2 callersFunctionheader
(name)
scripts/github-actions/post-review-comments.js:1088
↓ 2 callersFunctionhostGuard
hostGuard returns a middleware that rejects requests whose Host header is not on the allowlist. This blocks DNS-rebinding attacks against the local vi
internal/viewer/hostguard.go:85
↓ 2 callersFunctionhostOnly
hostOnly returns the bare host portion of a Host header value, with any port stripped and surrounding brackets removed from IPv6 literals. Empty or ma
internal/viewer/hostguard.go:17
↓ 2 callersFunctioninfo
(msg)
scripts/install.js:15
↓ 2 callersFunctioninitConsoleProviders
initConsoleProviders sets up stdout exporters for traces and metrics.
internal/telemetry/exporter.go:141
↓ 2 callersFunctioninitOTLPHTTPProviders
initOTLPHTTPProviders sets up OTLP HTTP exporters for traces and metrics.
internal/telemetry/exporter.go:102
↓ 2 callersFunctioninitRepoWithNonASCIIChange
initRepoWithNonASCIIChange creates a repository whose changed file path contains both non-ASCII characters and Next.js-style route groups. It forces G
internal/diff/git_test.go:71
↓ 2 callersMethodinjectDiffMap
injectDiffMap builds a read-only DiffMap from parsed diffs and sets it on the FileReadDiffProvider. Must be called after loadDiffs and before any conc
internal/agent/agent.go:365
↓ 2 callersMethodinjectScanContentMap
injectScanContentMap fills the file_read_diff tool's DiffMap with full file content keyed by path, so if the model calls it the tool returns the whole
internal/scan/agent.go:287
↓ 2 callersFunctionisLineResolutionFailure
(error)
scripts/github-actions/post-review-comments.js:1807
↓ 2 callersFunctionisLoopbackHost
isLoopbackHost reports whether host is a loopback name or IP literal that is always safe to accept regardless of operator configuration.
internal/viewer/hostguard.go:39
↓ 2 callersFunctionisProcessRunning
(pid)
plugins/open-code-review/opencode/test/open-code-review.test.mjs:67
↓ 2 callersFunctionisSubtaskErrorType
(warningType string)
cmd/opencodereview/output.go:35
↓ 2 callersMethoditemCount
()
cmd/opencodereview/provider_tui.go:2684
↓ 2 callersMethodjumpTo
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:198
↓ 2 callersFunctionlegacyLLMShadowWarning
(provider, key string)
cmd/opencodereview/config_cmd.go:174
↓ 2 callersFunctionlineSpan
(c)
scripts/github-actions/post-review-comments.js:1020
↓ 2 callersMethodlistFiles
listFiles returns all source files under repoDir. In a git repo it uses `git ls-files` for full .gitignore semantics (nested + global excludes + negat
internal/scan/provider.go:151
↓ 2 callersFunctionloadDelegateContext
(opts delegateOptions)
cmd/opencodereview/delegate_cmd.go:84
↓ 2 callersMethodloadDiffs
loadDiffs populates the diff-related fields.
internal/agent/agent.go:334
↓ 2 callersFunctionloadFile
(t *testing.T, relPath string)
internal/release/asset_naming_test.go:44
↓ 2 callersFunctionloadLLMRuntime
loadLLMRuntime loads tool defs from toolConfigPath, reads the app config from the user's default config path (applying the configured language to tpl
cmd/opencodereview/shared.go:144
↓ 2 callersFunctionloadPackageJson
()
scripts/install.js:60
↓ 2 callersFunctionloadSummaryFromFile
(path, sessionID, repoDir string)
internal/session/list.go:159
↓ 2 callersFunctionlog
(msg)
examples/gerrit_ci/post_review.py:57
↓ 2 callersFunctionlog
(msg)
examples/gitflic_ci/post_review.py:43
↓ 2 callersFunctionlogRateLimitQuota
(response, tag, log)
scripts/github-actions/post-review-comments.js:1145
↓ 2 callersFunctionlookupPreset
(name: string)
extensions/vscode/src/shared/providers.ts:134
↓ 2 callersFunctionmakeBudgetDiffs
makeBudgetDiffs returns n small, non-deleted diffs that survive filterDiffs and filterLargeDiffs.
internal/agent/budget_test.go:64
↓ 2 callersFunctionmakeScanItems
(n int)
internal/scan/budget_test.go:59
↓ 2 callersMethodmapOpenAIResponse
mapOpenAIResponse converts the SDK response into ChatResponse.
internal/llm/client.go:512
↓ 2 callersFunctionmaskKey
(key string)
cmd/opencodereview/provider_cmd.go:403
↓ 2 callersFunctionmatchGitignoreBody
matchGitignoreBody reports whether relPath matches a single pattern body — the pattern with any leading "!" already stripped.
internal/diff/git.go:243
↓ 2 callersFunctionmatchProjectRuleEntry
(pr *ProjectRule, path string)
internal/config/rules/system_rules.go:430
↓ 2 callersFunctionmax
(a, b int)
internal/suggestdiff/diff.go:70
↓ 2 callersMethodmergeBase
(root: string, from: string, to: string)
extensions/vscode/src/extension/services/GitService.ts:392
↓ 2 callersMethodmergeWithSystemRule
(path, rule string)
internal/config/rules/system_rules.go:384
↓ 2 callersFunctionmergeWorkspaceFiles
(tracked: FileChange[], untrackedPaths: string[])
extensions/vscode/src/extension/services/gitMap.ts:54
← previousnext →601–700 of 3,095, ranked by callers