Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
4,171 in github.com/alibaba/open-code-review
⨍
Functions
4,171
◇
Types & classes
393
↓ 2 callers
Function
format_summary_comments
Render a list of ``{comment, reason}`` as a continuous block.
examples/gitlab_ci/post_review.py:382
↓ 2 callers
Function
format_warnings
Render warnings as a bulleted list under a heading ("" when empty).
examples/gitlab_ci/post_review.py:339
↓ 2 callers
Function
generateHeadingId
(text: string)
pages/src/utils/headingId.ts:26
↓ 2 callers
Method
getBranchDiff
分支对比:merge-base 三点 diff。
extensions/vscode/src/extension/services/GitService.ts:207
↓ 2 callers
Function
getBreakpoints
()
pages/src/hooks/useResponsive.ts:24
↓ 2 callers
Method
getCachedEnvironment
()
extensions/vscode/src/extension/services/CliService.ts:22
↓ 2 callers
Method
getCommitFiles
单次提交:该 commit 相对父提交的改动文件。
extensions/vscode/src/extension/services/GitService.ts:240
↓ 2 callers
Function
getDocTitle
(slug: DocSlug, language: string)
pages/src/content/docs/index.ts:217
↓ 2 callers
Function
getMeter
()
internal/telemetry/metrics.go:28
↓ 2 callers
Function
getRawContent
(slug: BlogSlug, language: string)
pages/src/content/blog/index.ts:85
↓ 2 callers
Function
getRawContent
* Get raw content for a slug in the given language, with English fallback.
pages/src/content/docs/index.ts:201
↓ 2 callers
Method
getState
(mode: ReviewMode)
extensions/vscode/src/extension/services/GitService.ts:70
↓ 2 callers
Function
getTracer
()
internal/telemetry/span.go:19
↓ 2 callers
Method
handleCustomFormEnter
()
cmd/opencodereview/provider_tui.go:1107
↓ 2 callers
Method
hasErrorAttempt
()
internal/llm/retry_report.go:241
↓ 2 callers
Method
hasSuggestion
(c: ReviewComment)
extensions/vscode/src/extension/providers/CommentProvider.ts:120
↓ 2 callers
Function
header
(name)
scripts/github-actions/post-review-comments.js:1091
↓ 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:88
↓ 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:20
↓ 2 callers
Function
identityArgs
(dir string, maxTokens int)
internal/agent/identity_test.go:35
↓ 2 callers
Function
info
(msg)
scripts/install.js:19
↓ 2 callers
Function
initConsoleProviders
initConsoleProviders sets up stdout exporters for traces and metrics.
internal/telemetry/exporter.go:184
↓ 2 callers
Function
initIdentityRepo
initIdentityRepo builds a workspace with two reviewable files, one the extension rules drop, and one large enough for the token filter to drop.
internal/agent/identity_test.go:19
↓ 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:864
↓ 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:74
↓ 2 callers
Method
initScanFingerprints
(items []model.ScanItem)
internal/scan/agent.go:238
↓ 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:552
↓ 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:403
↓ 2 callers
Function
isBinaryFile
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 callers
Function
isLineResolutionFailure
(error)
scripts/github-actions/post-review-comments.js:1877
↓ 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:42
↓ 2 callers
Function
isProcessRunning
(pid)
plugins/open-code-review/opencode/test/open-code-review.test.mjs:90
↓ 2 callers
Method
jumpTo
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:201
↓ 2 callers
Function
keyCmdConfiguredHint
keyCmdConfiguredHint explains why this step accepts an empty field. A provider configured only by command renders a blank input -- the command line is
cmd/opencodereview/provider_tui.go:2493
↓ 2 callers
Function
keyCmdConfiguredHintLine
(indent, keyLabel string)
cmd/opencodereview/provider_tui.go:2497
↓ 2 callers
Function
legacyLLMShadowWarning
(provider, key string)
cmd/opencodereview/config_cmd.go:207
↓ 2 callers
Function
levenshtein
(a, b string)
cmd/opencodereview/flag_suggest.go:63
↓ 2 callers
Function
lineSpan
(c)
scripts/github-actions/post-review-comments.js:1023
↓ 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:154
↓ 2 callers
Method
list_discussions
Return all MR discussions, or None when the read failed.
examples/gitlab_ci/post_review.py:897
↓ 2 callers
Method
list_notes
Return all MR notes, or None when the read failed.
examples/gitlab_ci/post_review.py:882
↓ 2 callers
Function
loadFile
(t *testing.T, relPath string)
internal/release/asset_naming_test.go:47
↓ 2 callers
Function
loadGlobalRule
()
internal/config/rules/system_rules.go:331
↓ 2 callers
Function
loadPackageJson
()
scripts/install.js:64
↓ 2 callers
Function
loadResumeState
(repoDir, sessionID string, skipUnparseable bool)
internal/session/resume.go:111
↓ 2 callers
Function
loadRuleFile
(path string)
internal/config/rules/system_rules.go:352
↓ 2 callers
Function
loadSummaryFromFile
(path, sessionID, repoDir string)
internal/session/list.go:178
↓ 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:1148
↓ 2 callers
Function
lookupPreset
(name: string)
extensions/vscode/src/shared/providers.ts:145
↓ 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:894
↓ 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:1030
↓ 2 callers
Method
manualAuthTokenCmd
manualAuthTokenCmd returns the configured llm.auth_token_cmd, which the resolver runs when llm.auth_token is empty. Trimmed for the same reason as api
cmd/opencodereview/provider_tui.go:1100
↓ 2 callers
Method
mapOpenAIResponse
mapOpenAIResponse converts the SDK response into ChatResponse.
internal/llm/client.go:666
↓ 2 callers
Function
maskKey
(key string)
cmd/opencodereview/provider_cmd.go:421
↓ 2 callers
Function
matchGitignoreBody
matchGitignoreBody reports whether relPath matches a single pattern body — the pattern with any leading "!" already stripped.
internal/diff/git.go:304
↓ 2 callers
Function
matchProjectRuleEntry
(pr *ProjectRule, path string)
internal/config/rules/system_rules.go:478
↓ 2 callers
Method
mergeBase
(root: string, from: string, to: string)
extensions/vscode/src/extension/services/GitService.ts:395
↓ 2 callers
Method
mergeWithSystemRule
(path, rule string)
internal/config/rules/system_rules.go:432
↓ 2 callers
Function
mergeWorkspaceFiles
(tracked: FileChange[], untrackedPaths: string[])
extensions/vscode/src/extension/services/gitMap.ts:57
↓ 2 callers
Function
minimumArgs
minimumArgs behaves like cobra.MinimumNArgs(n) but reports too few arguments with the command's own usage information.
cmd/opencodereview/arg_errors.go:34
↓ 2 callers
Function
newBlockingCompressionClient
(c *llm.RetryCollector)
internal/llmloop/retry_background_test.go:31
↓ 2 callers
Function
newCommentId
(runTag)
scripts/github-actions/post-review-comments.js:1338
↓ 2 callers
Function
newJSONLWriter
newJSONLWriter creates and opens a new JSONL writer for the given session.
internal/session/persist.go:44
↓ 2 callers
Function
newKeyCmd
newKeyCmd builds the OS-specific shell invocation (sh -c on Unix) that runs a credential command under ctx, so its timeout and cancellation are honore
internal/llm/keycmd_unix.go:32
↓ 2 callers
Function
newResponsesSessionTestServer
newResponsesSessionTestServer returns an httptest server that captures each request's headers and JSON body and responds with a minimal completed resp
internal/llm/responses_client_test.go:683
↓ 2 callers
Function
newStdoutMetricExporter
newStdoutMetricExporter creates a console metric exporter with pretty-print output.
internal/telemetry/exporter.go:30
↓ 2 callers
Function
newStdoutTraceExporter
newStdoutTraceExporter creates a console trace exporter with pretty-print output.
internal/telemetry/exporter.go:25
↓ 2 callers
Function
newThinkingTestRunner
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 callers
Function
nonNegativeMillis
nonNegativeMillis converts d to milliseconds, flooring at zero. Timestamps taken from time.Now carry a monotonic reading, so a real attempt can never
internal/llm/retry_report.go:362
↓ 2 callers
Function
normalizeScanPaths
(paths []string)
internal/session/resume.go:311
↓ 2 callers
Function
normalizedCommentCategory
(category string)
internal/viewer/server.go:121
↓ 2 callers
Function
officialAPIKeyEnvSetHint
(envVar string, hasSavedKey bool)
cmd/opencodereview/provider_tui.go:2468
↓ 2 callers
Function
officialProviderEnvKeySet
(p llm.Provider)
cmd/opencodereview/provider_tui.go:906
↓ 2 callers
Method
only
(t *testing.T)
internal/agent/retry_identity_test.go:42
↓ 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:69
↓ 2 callers
Function
outputJSON
(comments []model.LlmComment)
cmd/opencodereview/output.go:303
↓ 2 callers
Function
outputJSONNoFiles
(traceID string, llmIdentity *jsonLLMIdentity)
cmd/opencodereview/output.go:472
↓ 2 callers
Function
outputText
(comments []model.LlmComment)
cmd/opencodereview/output.go:22
↓ 2 callers
Function
overlapsHistory
(reviewComment, history, threshold = DEFAULT_OVERLAP_THRESHOLD)
scripts/github-actions/post-review-comments.js:992
↓ 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:28
↓ 2 callers
Function
parseCliResult
(stdout: string)
extensions/vscode/src/extension/services/cliParse.ts:39
↓ 2 callers
Function
parseConfig
(raw: string)
extensions/vscode/src/extension/services/configParse.ts:30
↓ 2 callers
Function
parseDiffHunkInventory
(patch)
scripts/github-actions/post-review-comments.js:1926
↓ 2 callers
Function
parseEnvBlock
(stdout: string)
extensions/vscode/src/extension/services/shellEnv.ts:9
↓ 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:1541
↓ 2 callers
Function
parseFilterToolCalls
parseFilterToolCalls extracts comment indices from the filter tool call response. Returns nil if no matching tool call is found, allowing fallback to
internal/agent/agent.go:1509
↓ 2 callers
Function
parseLogLine
(raw: string)
extensions/vscode/src/extension/services/cliParse.ts:68
↓ 2 callers
Function
parseModelListValue
(value string)
cmd/opencodereview/config_cmd.go:628
↓ 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:41
↓ 2 callers
Function
parseRetryAfterMS
parseRetryAfterMS reports the server's retry hint in milliseconds, mirroring the SDKs' parseRetryAfterHeader: Retry-After-Ms wins over Retry-After, ea
internal/llm/retry_observer.go:109
↓ 2 callers
Function
parseRetryDirective
parseRetryDirective reads x-should-retry, the header both SDKs consult ahead of the status code (and without excluding 2xx). Only the two values they
internal/llm/retry_observer.go:85
↓ 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:188
↓ 2 callers
Function
parseUntrackedList
(output: string)
extensions/vscode/src/extension/services/gitMap.ts:52
↓ 2 callers
Function
parseVersionOutput
(output)
scripts/version.js:9
↓ 2 callers
Method
passThroughManualInput
(msg tea.Msg)
cmd/opencodereview/provider_tui.go:1730
↓ 2 callers
Method
persistAddedModelName
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:2734
↓ 2 callers
Method
persistCustomModelName
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 callers
Function
pickRepoRoot
(roots: string[], workspacePath?: string)
extensions/vscode/src/extension/services/gitMap.ts:90
← previous
next →
901–1,000 of 4,171, ranked by callers