MCPcopy Create free account

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

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

↓ 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:1513
↓ 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:181
↓ 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 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: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:309
↓ 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 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:435
↓ 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:152
↓ 2 callersFunctionloadPackageJson
()
scripts/install.js:60
↓ 2 callersFunctionloadSummaryFromFile
(path, sessionID, repoDir string)
internal/session/list.go:164
↓ 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 callersFunctionmakeScanItems
(n int)
internal/scan/budget_test.go:59
↓ 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 callersFunctionmanifestMessage
(manifest *session.RunManifest, findings int)
cmd/opencodereview/output.go:368
↓ 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: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:302
↓ 2 callersFunctionmatchProjectRuleEntry
(pr *ProjectRule, path string)
internal/config/rules/system_rules.go:473
↓ 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:427
↓ 2 callersFunctionmergeWorkspaceFiles
(tracked: FileChange[], untrackedPaths: string[])
extensions/vscode/src/extension/services/gitMap.ts:54
↓ 2 callersFunctionnewCommentId
(runTag)
scripts/github-actions/post-review-comments.js:1335
↓ 2 callersFunctionnewJSONLWriter
newJSONLWriter creates and opens a new JSONL writer for the given session.
internal/session/persist.go:40
↓ 2 callersFunctionnewMockResponse
(content string)
internal/diff/relocation_test.go:22
↓ 2 callersFunctionnewStdoutMetricExporter
newStdoutMetricExporter creates a console metric exporter with pretty-print output.
internal/telemetry/exporter.go:27
↓ 2 callersFunctionnewStdoutTraceExporter
newStdoutTraceExporter creates a console trace exporter with pretty-print output.
internal/telemetry/exporter.go:22
↓ 2 callersFunctionofficialAPIKeyEnvSetHint
(envVar string, hasSavedKey bool)
cmd/opencodereview/provider_tui.go:2385
↓ 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:66
↓ 2 callersFunctionoutputJSON
(comments []model.LlmComment)
cmd/opencodereview/output.go:287
↓ 2 callersFunctionoutputJSONNoFiles
(traceID string)
cmd/opencodereview/output.go:395
↓ 2 callersFunctionoutputText
(comments []model.LlmComment)
cmd/opencodereview/output.go:17
↓ 2 callersFunctionoverlapsHistory
(reviewComment, history, threshold = DEFAULT_OVERLAP_THRESHOLD)
scripts/github-actions/post-review-comments.js:989
↓ 2 callersFunctionparseBatchStrategy
parseBatchStrategy normalizes a user-supplied strategy string. Unknown or empty values fall back to BatchNone (safe v1 behavior).
internal/scan/batch.go:25
↓ 2 callersFunctionparseCliResult
(stdout: string)
extensions/vscode/src/extension/services/cliParse.ts:36
↓ 2 callersFunctionparseConfig
(raw: string)
extensions/vscode/src/extension/services/configParse.ts:27
↓ 2 callersFunctionparseDiffHunkInventory
(patch)
scripts/github-actions/post-review-comments.js:1856
↓ 2 callersFunctionparseEnvBlock
(stdout: string)
extensions/vscode/src/extension/services/shellEnv.ts:6
↓ 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:65
↓ 2 callersFunctionparseModelListValue
(value string)
cmd/opencodereview/config_cmd.go:553
↓ 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:38
↓ 2 callersFunctionparseRecordTime
(s string)
internal/session/list.go:301
↓ 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:128
↓ 2 callersFunctionparseUntrackedList
(output: string)
extensions/vscode/src/extension/services/gitMap.ts:49
↓ 2 callersMethodpassThroughCPInput
(msg tea.Msg)
cmd/opencodereview/provider_tui.go:1325
↓ 2 callersMethodpassThroughManualInput
(msg tea.Msg)
cmd/opencodereview/provider_tui.go:1661
↓ 2 callersFunctionpickRepoRoot
(roots: string[], workspacePath?: string)
extensions/vscode/src/extension/services/gitMap.ts:87
↓ 2 callersMethodpost
(self, review_input, body=b")]}'\n{}")
examples/gerrit_ci/post_review_test.py:527
↓ 2 callersMethodpresentDiff
( left: vscode.Uri, right: vscode.Uri, title: string, )
extensions/vscode/src/extension/services/GitService.ts:349
↓ 2 callersFunctionprintDiffLine
printDiffLine renders a single diff line with colored prefix and background on content.
cmd/opencodereview/output.go:165
↓ 2 callersFunctionprintSessionDetail
(w io.Writer, s *session.Summary, items []session.ItemDetail)
cmd/opencodereview/session_cmd.go:140
↓ 2 callersMethodprobeCommand
(bin: string)
extensions/vscode/src/extension/services/CliService.ts:33
↓ 2 callersFunctionprobePathIndex
probePathIndex is like probePath but also returns the index of the matched path.
internal/llm/usage_resolver.go:122
↓ 2 callersFunctionprojectRoot
(t *testing.T)
internal/release/asset_naming_test.go:22
↓ 2 callersFunctionreadFileSync
(file)
scripts/github-actions/post-review-comments.test.js:49
↓ 2 callersMethodreadRaw
()
extensions/vscode/src/extension/services/ConfigService.ts:27
↓ 2 callersFunctionreadWithPacing
(tag, fn, log)
scripts/github-actions/post-review-comments.js:1209
↓ 2 callersMethodrecord
(file: string, line: number, delta: number)
extensions/vscode/src/extension/providers/lineOffset.ts:4
↓ 2 callersMethodrecordToolCall
(name string)
internal/llmloop/loop.go:110
↓ 2 callersMethodrefreshWorkspaceFiles
工作区模式仅刷新变更文件,不等待 VS Code Git 扩展,也不拉分支/提交历史。
extensions/vscode/src/extension/services/GitService.ts:143
↓ 2 callersFunctionregisterReviewFlags
registerReviewFlags registers all review command flags on cmd, binding to opts.
cmd/opencodereview/shared_flags.go:145
↓ 2 callersFunctionregisterScanFlags
registerScanFlags registers all scan command flags on cmd, binding to opts.
cmd/opencodereview/shared_flags.go:160
↓ 2 callersFunctionregistryModelsForProvider
(name string, fallback []string)
cmd/opencodereview/provider_tui.go:421
↓ 2 callersFunctionremoveModels
(existing, toRemove []string)
cmd/opencodereview/provider_cmd.go:83
↓ 2 callersMethodrenderBody
( c: ReviewComment, _index: number, _status: CommentStatus, locateNote?: string, )
extensions/vscode/src/extension/providers/CommentProvider.ts:121
↓ 2 callersMethodrenderMessages
renderMessages substitutes placeholders in the scan template's MainTask for a single scan item. planGuidance is the output of maybeRunPlan and gets su
internal/scan/agent.go:926
← previousnext →701–800 of 3,271, ranked by callers