Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
3,271 in github.com/alibaba/open-code-review
⨍
Functions
3,271
◇
Types & classes
309
↓ 2 callers
Function
formatSummaryComments
(summaryComments)
scripts/github-actions/post-review-comments.js:1567
↓ 2 callers
Function
formatTime
(t time.Time)
internal/viewer/server.go:74
↓ 2 callers
Function
formatToolDefs
formatToolDefs renders tool definitions as human-readable text for embedding in prompts.
internal/agent/agent.go:1513
↓ 2 callers
Function
generateHeadingId
(text: string)
pages/src/utils/headingId.ts:8
↓ 2 callers
Method
getBranchDiff
分支对比:merge-base 三点 diff。
extensions/vscode/src/extension/services/GitService.ts:204
↓ 2 callers
Function
getBreakpoints
()
pages/src/hooks/useResponsive.ts:21
↓ 2 callers
Method
getCachedEnvironment
()
extensions/vscode/src/extension/services/CliService.ts:19
↓ 2 callers
Method
getCommitFiles
单次提交:该 commit 相对父提交的改动文件。
extensions/vscode/src/extension/services/GitService.ts:237
↓ 2 callers
Function
getDocTitle
(slug: DocSlug, language: string)
pages/src/content/docs/index.ts:186
↓ 2 callers
Function
getMeter
()
internal/telemetry/metrics.go:25
↓ 2 callers
Function
getRawContent
(slug: BlogSlug, language: string)
pages/src/content/blog/index.ts:75
↓ 2 callers
Function
getRawContent
* Get raw content for a slug in the given language, with English fallback.
pages/src/content/docs/index.ts:170
↓ 2 callers
Method
getState
(mode: ReviewMode)
extensions/vscode/src/extension/services/GitService.ts:67
↓ 2 callers
Function
getTracer
()
internal/telemetry/span.go:16
↓ 2 callers
Method
hasSuggestion
(c: ReviewComment)
extensions/vscode/src/extension/providers/CommentProvider.ts:117
↓ 2 callers
Function
header
(name)
scripts/github-actions/post-review-comments.js:1088
↓ 2 callers
Function
hostGuard
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 callers
Function
hostOnly
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 callers
Function
info
(msg)
scripts/install.js:15
↓ 2 callers
Function
initConsoleProviders
initConsoleProviders sets up stdout exporters for traces and metrics.
internal/telemetry/exporter.go:181
↓ 2 callers
Method
initManifest
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 callers
Function
initRepoWithNonASCIIChange
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 callers
Method
injectDiffMap
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 callers
Method
injectScanContentMap
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 callers
Function
isLineResolutionFailure
(error)
scripts/github-actions/post-review-comments.js:1807
↓ 2 callers
Function
isLoopbackHost
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 callers
Function
isProcessRunning
(pid)
plugins/open-code-review/opencode/test/open-code-review.test.mjs:67
↓ 2 callers
Method
itemCount
()
cmd/opencodereview/provider_tui.go:2684
↓ 2 callers
Method
jumpTo
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:198
↓ 2 callers
Function
legacyLLMShadowWarning
(provider, key string)
cmd/opencodereview/config_cmd.go:174
↓ 2 callers
Function
lineSpan
(c)
scripts/github-actions/post-review-comments.js:1020
↓ 2 callers
Method
listFiles
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 callers
Function
loadDelegateContext
(opts delegateOptions)
cmd/opencodereview/delegate_cmd.go:84
↓ 2 callers
Method
loadDiffs
loadDiffs populates the diff-related fields.
internal/agent/agent.go:435
↓ 2 callers
Function
loadFile
(t *testing.T, relPath string)
internal/release/asset_naming_test.go:44
↓ 2 callers
Function
loadLLMRuntime
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 callers
Function
loadPackageJson
()
scripts/install.js:60
↓ 2 callers
Function
loadSummaryFromFile
(path, sessionID, repoDir string)
internal/session/list.go:164
↓ 2 callers
Function
log
(msg)
examples/gerrit_ci/post_review.py:57
↓ 2 callers
Function
log
(msg)
examples/gitflic_ci/post_review.py:43
↓ 2 callers
Function
logRateLimitQuota
(response, tag, log)
scripts/github-actions/post-review-comments.js:1145
↓ 2 callers
Function
lookupPreset
(name: string)
extensions/vscode/src/shared/providers.ts:134
↓ 2 callers
Function
makeScanItems
(n int)
internal/scan/budget_test.go:59
↓ 2 callers
Method
manifestInput
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 callers
Function
manifestMessage
(manifest *session.RunManifest, findings int)
cmd/opencodereview/output.go:368
↓ 2 callers
Method
manifestMode
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 callers
Function
manifestPaths
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 callers
Method
mapOpenAIResponse
mapOpenAIResponse converts the SDK response into ChatResponse.
internal/llm/client.go:512
↓ 2 callers
Function
maskKey
(key string)
cmd/opencodereview/provider_cmd.go:403
↓ 2 callers
Function
matchGitignoreBody
matchGitignoreBody reports whether relPath matches a single pattern body — the pattern with any leading "!" already stripped.
internal/diff/git.go:302
↓ 2 callers
Function
matchProjectRuleEntry
(pr *ProjectRule, path string)
internal/config/rules/system_rules.go:473
↓ 2 callers
Function
max
(a, b int)
internal/suggestdiff/diff.go:70
↓ 2 callers
Method
mergeBase
(root: string, from: string, to: string)
extensions/vscode/src/extension/services/GitService.ts:392
↓ 2 callers
Method
mergeWithSystemRule
(path, rule string)
internal/config/rules/system_rules.go:427
↓ 2 callers
Function
mergeWorkspaceFiles
(tracked: FileChange[], untrackedPaths: string[])
extensions/vscode/src/extension/services/gitMap.ts:54
↓ 2 callers
Function
newCommentId
(runTag)
scripts/github-actions/post-review-comments.js:1335
↓ 2 callers
Function
newJSONLWriter
newJSONLWriter creates and opens a new JSONL writer for the given session.
internal/session/persist.go:40
↓ 2 callers
Function
newMockResponse
(content string)
internal/diff/relocation_test.go:22
↓ 2 callers
Function
newStdoutMetricExporter
newStdoutMetricExporter creates a console metric exporter with pretty-print output.
internal/telemetry/exporter.go:27
↓ 2 callers
Function
newStdoutTraceExporter
newStdoutTraceExporter creates a console trace exporter with pretty-print output.
internal/telemetry/exporter.go:22
↓ 2 callers
Function
officialAPIKeyEnvSetHint
(envVar string, hasSavedKey bool)
cmd/opencodereview/provider_tui.go:2385
↓ 2 callers
Function
otlpSignalURL
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 callers
Function
outputJSON
(comments []model.LlmComment)
cmd/opencodereview/output.go:287
↓ 2 callers
Function
outputJSONNoFiles
(traceID string)
cmd/opencodereview/output.go:395
↓ 2 callers
Function
outputText
(comments []model.LlmComment)
cmd/opencodereview/output.go:17
↓ 2 callers
Function
overlapsHistory
(reviewComment, history, threshold = DEFAULT_OVERLAP_THRESHOLD)
scripts/github-actions/post-review-comments.js:989
↓ 2 callers
Function
parseBatchStrategy
parseBatchStrategy normalizes a user-supplied strategy string. Unknown or empty values fall back to BatchNone (safe v1 behavior).
internal/scan/batch.go:25
↓ 2 callers
Function
parseCliResult
(stdout: string)
extensions/vscode/src/extension/services/cliParse.ts:36
↓ 2 callers
Function
parseConfig
(raw: string)
extensions/vscode/src/extension/services/configParse.ts:27
↓ 2 callers
Function
parseDiffHunkInventory
(patch)
scripts/github-actions/post-review-comments.js:1856
↓ 2 callers
Function
parseEnvBlock
(stdout: string)
extensions/vscode/src/extension/services/shellEnv.ts:6
↓ 2 callers
Function
parseFilterResponse
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 callers
Function
parseLogLine
(raw: string)
extensions/vscode/src/extension/services/cliParse.ts:65
↓ 2 callers
Function
parseModelListValue
(value string)
cmd/opencodereview/config_cmd.go:553
↓ 2 callers
Function
parseOTLPEndpoint
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 callers
Function
parseRecordTime
(s string)
internal/session/list.go:301
↓ 2 callers
Function
parseTimeoutEnv
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 callers
Function
parseUntrackedList
(output: string)
extensions/vscode/src/extension/services/gitMap.ts:49
↓ 2 callers
Method
passThroughCPInput
(msg tea.Msg)
cmd/opencodereview/provider_tui.go:1325
↓ 2 callers
Method
passThroughManualInput
(msg tea.Msg)
cmd/opencodereview/provider_tui.go:1661
↓ 2 callers
Function
pickRepoRoot
(roots: string[], workspacePath?: string)
extensions/vscode/src/extension/services/gitMap.ts:87
↓ 2 callers
Method
post
(self, review_input, body=b")]}'\n{}")
examples/gerrit_ci/post_review_test.py:527
↓ 2 callers
Method
presentDiff
( left: vscode.Uri, right: vscode.Uri, title: string, )
extensions/vscode/src/extension/services/GitService.ts:349
↓ 2 callers
Function
printDiffLine
printDiffLine renders a single diff line with colored prefix and background on content.
cmd/opencodereview/output.go:165
↓ 2 callers
Function
printSessionDetail
(w io.Writer, s *session.Summary, items []session.ItemDetail)
cmd/opencodereview/session_cmd.go:140
↓ 2 callers
Method
probeCommand
(bin: string)
extensions/vscode/src/extension/services/CliService.ts:33
↓ 2 callers
Function
probePathIndex
probePathIndex is like probePath but also returns the index of the matched path.
internal/llm/usage_resolver.go:122
↓ 2 callers
Function
projectRoot
(t *testing.T)
internal/release/asset_naming_test.go:22
↓ 2 callers
Function
readFileSync
(file)
scripts/github-actions/post-review-comments.test.js:49
↓ 2 callers
Method
readRaw
()
extensions/vscode/src/extension/services/ConfigService.ts:27
↓ 2 callers
Function
readWithPacing
(tag, fn, log)
scripts/github-actions/post-review-comments.js:1209
↓ 2 callers
Method
record
(file: string, line: number, delta: number)
extensions/vscode/src/extension/providers/lineOffset.ts:4
↓ 2 callers
Method
recordToolCall
(name string)
internal/llmloop/loop.go:110
↓ 2 callers
Method
refreshWorkspaceFiles
工作区模式仅刷新变更文件,不等待 VS Code Git 扩展,也不拉分支/提交历史。
extensions/vscode/src/extension/services/GitService.ts:143
↓ 2 callers
Function
registerReviewFlags
registerReviewFlags registers all review command flags on cmd, binding to opts.
cmd/opencodereview/shared_flags.go:145
↓ 2 callers
Function
registerScanFlags
registerScanFlags registers all scan command flags on cmd, binding to opts.
cmd/opencodereview/shared_flags.go:160
↓ 2 callers
Function
registryModelsForProvider
(name string, fallback []string)
cmd/opencodereview/provider_tui.go:421
↓ 2 callers
Function
removeModels
(existing, toRemove []string)
cmd/opencodereview/provider_cmd.go:83
↓ 2 callers
Method
renderBody
( c: ReviewComment, _index: number, _status: CommentStatus, locateNote?: string, )
extensions/vscode/src/extension/providers/CommentProvider.ts:121
↓ 2 callers
Method
renderMessages
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
← previous
next →
701–800 of 3,271, ranked by callers