MCPcopy Create free account

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

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

↓ 2 callersMethodgetCommitFiles
单次提交:该 commit 相对父提交的改动文件。
extensions/vscode/src/extension/services/GitService.ts:240
↓ 2 callersFunctiongetDocTitle
(slug: DocSlug, language: string)
pages/src/content/docs/index.ts:215
↓ 2 callersFunctiongetMeter
()
internal/telemetry/metrics.go:28
↓ 2 callersFunctiongetRawContent
(slug: BlogSlug, language: string)
pages/src/content/blog/index.ts:85
↓ 2 callersFunctiongetRawContent
* Get raw content for a slug in the given language, with English fallback.
pages/src/content/docs/index.ts:199
↓ 2 callersMethodgetState
(mode: ReviewMode)
extensions/vscode/src/extension/services/GitService.ts:70
↓ 2 callersFunctiongetTracer
()
internal/telemetry/span.go:19
↓ 2 callersMethodhandleCustomFormEnter
()
cmd/opencodereview/provider_tui.go:1051
↓ 2 callersMethodhandleManualFormEnter
()
cmd/opencodereview/provider_tui.go:1599
↓ 2 callersMethodhasSuggestion
(c: ReviewComment)
extensions/vscode/src/extension/providers/CommentProvider.ts:120
↓ 2 callersFunctionheader
(name)
scripts/github-actions/post-review-comments.js:1091
↓ 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:88
↓ 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:20
↓ 2 callersFunctioninfo
(msg)
scripts/install.js:19
↓ 2 callersFunctioninitConsoleProviders
initConsoleProviders sets up stdout exporters for traces and metrics.
internal/telemetry/exporter.go:184
↓ 2 callersMethodinitManifest
initManifest seeds the run manifest with this run's input identity and execution provenance. It is nil-safe (the builder is absent on the delegate pre
internal/agent/agent.go:750
↓ 2 callersFunctioninitPreviewRepo
(t *testing.T)
internal/agent/preview_run_test.go:14
↓ 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:74
↓ 2 callersMethodinitScanFingerprints
(items []model.ScanItem)
internal/scan/agent.go:235
↓ 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:473
↓ 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:393
↓ 2 callersFunctionisBinaryFile
isBinaryFile reads up to binarySniffWindow bytes from path and reports whether they contain a NUL byte (git's "binary" heuristic).
internal/scan/provider.go:304
↓ 2 callersFunctionisLineResolutionFailure
(error)
scripts/github-actions/post-review-comments.js:1810
↓ 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:42
↓ 2 callersFunctionisProcessRunning
(pid)
plugins/open-code-review/opencode/test/open-code-review.test.mjs:70
↓ 2 callersMethodjumpTo
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:201
↓ 2 callersFunctionlegacyLLMShadowWarning
(provider, key string)
cmd/opencodereview/config_cmd.go:199
↓ 2 callersFunctionlevenshtein
(a, b string)
cmd/opencodereview/flag_suggest.go:63
↓ 2 callersFunctionlineSpan
(c)
scripts/github-actions/post-review-comments.js:1023
↓ 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:154
↓ 2 callersMethodlist_discussions
Return all MR discussions, or None when the read failed.
examples/gitlab_ci/post_review.py:897
↓ 2 callersMethodlist_notes
Return all MR notes, or None when the read failed.
examples/gitlab_ci/post_review.py:882
↓ 2 callersMethodloadDiffs
loadDiffs populates the diff-related fields.
internal/agent/agent.go:435
↓ 2 callersFunctionloadFile
(t *testing.T, relPath string)
internal/release/asset_naming_test.go:47
↓ 2 callersFunctionloadGlobalRule
()
internal/config/rules/system_rules.go:329
↓ 2 callersFunctionloadPackageJson
()
scripts/install.js:64
↓ 2 callersFunctionloadRuleFile
(path string)
internal/config/rules/system_rules.go:350
↓ 2 callersFunctionloadSummaryFromFile
(path, sessionID, repoDir string)
internal/session/list.go:167
↓ 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:1148
↓ 2 callersFunctionlookupPreset
(name: string)
extensions/vscode/src/shared/providers.ts:145
↓ 2 callersFunctionmakeScanItems
(n int)
internal/scan/budget_test.go:62
↓ 2 callersMethodmanifestInput
manifestInput builds the frozen input identity per the input-mode field matrix: range carries both requested refs, commit carries only the requested h
internal/agent/agent.go:780
↓ 2 callersMethodmanifestMode
manifestMode maps the review to the manifest input mode. It derives purely from From/To/Commit so the value is always one of the three valid input mod
internal/agent/agent.go:773
↓ 2 callersFunctionmanifestPaths
manifestPaths returns the old/new paths for identity derivation with the "/dev/null" sentinel (added/deleted files) collapsed to empty, so it never po
internal/agent/agent.go:916
↓ 2 callersMethodmapOpenAIResponse
mapOpenAIResponse converts the SDK response into ChatResponse.
internal/llm/client.go:574
↓ 2 callersFunctionmaskKey
(key string)
cmd/opencodereview/provider_cmd.go:406
↓ 2 callersFunctionmatchGitignoreBody
matchGitignoreBody reports whether relPath matches a single pattern body — the pattern with any leading "!" already stripped.
internal/diff/git.go:305
↓ 2 callersFunctionmatchProjectRuleEntry
(pr *ProjectRule, path string)
internal/config/rules/system_rules.go:476
↓ 2 callersMethodmergeBase
(root: string, from: string, to: string)
extensions/vscode/src/extension/services/GitService.ts:395
↓ 2 callersMethodmergeWithSystemRule
(path, rule string)
internal/config/rules/system_rules.go:430
↓ 2 callersFunctionmergeWorkspaceFiles
(tracked: FileChange[], untrackedPaths: string[])
extensions/vscode/src/extension/services/gitMap.ts:57
↓ 2 callersFunctionnewCommentId
(runTag)
scripts/github-actions/post-review-comments.js:1338
↓ 2 callersFunctionnewJSONLWriter
newJSONLWriter creates and opens a new JSONL writer for the given session.
internal/session/persist.go:44
↓ 2 callersFunctionnewMockResponse
(content string)
internal/diff/relocation_test.go:25
↓ 2 callersFunctionnewStdoutMetricExporter
newStdoutMetricExporter creates a console metric exporter with pretty-print output.
internal/telemetry/exporter.go:30
↓ 2 callersFunctionnewStdoutTraceExporter
newStdoutTraceExporter creates a console trace exporter with pretty-print output.
internal/telemetry/exporter.go:25
↓ 2 callersFunctionnewThinkingTestRunner
newThinkingTestRunner builds a Runner wired for a full RunPerFile pass: a scripted LLM client, the code_comment tool, and a comment collector.
internal/llmloop/loop_execute_more_test.go:36
↓ 2 callersFunctionnormalizeScanPaths
(paths []string)
internal/session/resume.go:232
↓ 2 callersFunctionofficialAPIKeyEnvSetHint
(envVar string, hasSavedKey bool)
cmd/opencodereview/provider_tui.go:2395
↓ 2 callersFunctionofficialAPIKeyRequiredError
(p llm.Provider)
cmd/opencodereview/provider_tui.go:910
↓ 2 callersFunctionofficialProviderEnvKeySet
(p llm.Provider)
cmd/opencodereview/provider_tui.go:906
↓ 2 callersFunctionotlpSignalURL
otlpSignalURL builds the URL for one signal from the configured endpoint. OTEL_EXPORTER_OTLP_ENDPOINT is defined by the OpenTelemetry specification a
internal/telemetry/exporter.go:69
↓ 2 callersFunctionoutputJSON
(comments []model.LlmComment)
cmd/opencodereview/output.go:296
↓ 2 callersFunctionoutputJSONNoFiles
(traceID string, llmIdentity *jsonLLMIdentity)
cmd/opencodereview/output.go:405
↓ 2 callersFunctionoutputPreview
outputPreview renders a preview in the requested output format. Any format other than "json" falls back to the human view, matching how the rest of th
cmd/opencodereview/output.go:483
↓ 2 callersFunctionoutputText
(comments []model.LlmComment)
cmd/opencodereview/output.go:20
↓ 2 callersFunctionoverlapsHistory
(reviewComment, history, threshold = DEFAULT_OVERLAP_THRESHOLD)
scripts/github-actions/post-review-comments.js:992
↓ 2 callersFunctionparseBatchStrategy
parseBatchStrategy normalizes a user-supplied strategy string. Unknown or empty values fall back to BatchNone (safe v1 behavior).
internal/scan/batch.go:28
↓ 2 callersFunctionparseCliResult
(stdout: string)
extensions/vscode/src/extension/services/cliParse.ts:39
↓ 2 callersFunctionparseConfig
(raw: string)
extensions/vscode/src/extension/services/configParse.ts:30
↓ 2 callersFunctionparseDiffHunkInventory
(patch)
scripts/github-actions/post-review-comments.js:1859
↓ 2 callersFunctionparseEnvBlock
(stdout: string)
extensions/vscode/src/extension/services/shellEnv.ts:9
↓ 2 callersFunctionparseFilterResponse
parseFilterResponse extracts comment indices from the LLM filter response. Returns a set of 0-based indices. Invalid IDs or out-of-range indices are i
internal/agent/agent.go:1318
↓ 2 callersFunctionparseLogLine
(raw: string)
extensions/vscode/src/extension/services/cliParse.ts:68
↓ 2 callersFunctionparseModelListValue
(value string)
cmd/opencodereview/config_cmd.go:607
↓ 2 callersFunctionparseOTLPEndpoint
parseOTLPEndpoint strips a http:// or https:// scheme from the endpoint and reports whether the connection should be plaintext (insecure). Scheme matc
internal/telemetry/exporter.go:41
↓ 2 callersFunctionparseTimeoutEnv
parseTimeoutEnv reads and validates the OCR_LLM_TIMEOUT environment variable. Returns the parsed duration and true if set, or 0 and false if unset/emp
internal/llm/resolver.go:156
↓ 2 callersFunctionparseUntrackedList
(output: string)
extensions/vscode/src/extension/services/gitMap.ts:52
↓ 2 callersMethodpassThroughManualInput
(msg tea.Msg)
cmd/opencodereview/provider_tui.go:1671
↓ 2 callersMethodpersistAddedModelName
persistAddedModelName appends a model to the provider's Models list in config and saves to disk. It does not change the active model.
cmd/opencodereview/provider_tui.go:2639
↓ 2 callersMethodpersistCustomModelName
persistCustomModelName appends a single model name to the active provider's Models list (official or custom) and saves the config. It does not change
cmd/opencodereview/provider_tui.go:783
↓ 2 callersFunctionpickRepoRoot
(roots: string[], workspacePath?: string)
extensions/vscode/src/extension/services/gitMap.ts:90
↓ 2 callersMethodpost
(self, review_input, body=b")]}'\n{}")
examples/gerrit_ci/post_review_test.py:527
↓ 2 callersMethodpost_note
(self, body)
examples/gitlab_ci/post_review.py:862
↓ 2 callersMethodpresentDiff
( left: vscode.Uri, right: vscode.Uri, title: string, )
extensions/vscode/src/extension/services/GitService.ts:352
↓ 2 callersFunctionprintDiffLine
printDiffLine renders a single diff line with colored prefix and background on content.
cmd/opencodereview/output.go:168
↓ 2 callersFunctionprintSessionDetail
(w io.Writer, s *session.Summary, items []session.ItemDetail)
cmd/opencodereview/session_cmd.go:270
↓ 2 callersMethodprobeCommand
(bin: string)
extensions/vscode/src/extension/services/CliService.ts:36
↓ 2 callersFunctionprobePathIndex
probePathIndex is like probePath but also returns the index of the matched path.
internal/llm/usage_resolver.go:125
↓ 2 callersFunctionprojectRoot
(t *testing.T)
internal/release/asset_naming_test.go:25
↓ 2 callersMethodreadRaw
()
extensions/vscode/src/extension/services/ConfigService.ts:30
↓ 2 callersFunctionreadWithPacing
(tag, fn, log)
scripts/github-actions/post-review-comments.js:1212
↓ 2 callersMethodrecord
(file: string, line: number, delta: number)
extensions/vscode/src/extension/providers/lineOffset.ts:7
↓ 2 callersFunctionrecordToItem
(rec summaryRecord)
internal/session/list.go:269
↓ 2 callersMethodrecordToolCall
(name string)
internal/llmloop/loop.go:113
↓ 2 callersMethodrefreshModelSelectionAfterAdd
(name string)
cmd/opencodereview/provider_tui.go:2622
↓ 2 callersMethodrefreshWorkspaceFiles
工作区模式仅刷新变更文件,不等待 VS Code Git 扩展,也不拉分支/提交历史。
extensions/vscode/src/extension/services/GitService.ts:146
↓ 2 callersFunctionregisterReviewFlags
registerReviewFlags registers all review command flags on cmd, binding to opts.
cmd/opencodereview/shared_flags.go:168
← previousnext →801–900 of 3,737, ranked by callers