Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
4,381 in github.com/alibaba/open-code-review
⨍
Functions
4,381
◇
Types & classes
411
↓ 2 callers
Function
classifyStreamError
classifyStreamError classifies a failure that surfaced while consuming an already-established SSE stream. Unlike classifyBoundaryError it always retur
internal/llm/retry_boundary.go:80
↓ 2 callers
Method
clear
()
extensions/vscode/src/extension/providers/CommentProvider.ts:314
↓ 2 callers
Function
cloneCustomProviderList
(src []customProviderListItem)
cmd/opencodereview/provider_tui.go:1329
↓ 2 callers
Function
codeCommentResponse
(reasoning, content string)
internal/llmloop/loop_execute_more_test.go:54
↓ 2 callers
Function
colorf
colorf formats then colorizes, so call sites need not nest fmt.Sprintf.
cmd/opencodereview/color.go:86
↓ 2 callers
Function
commitFile
commitFile writes content to name and commits it.
cmd/opencodereview/review_resume_more_test.go:101
↓ 2 callers
Function
commitIn
(t *testing.T, dir, name, content, msg string)
internal/agent/sealed_input_test.go:39
↓ 2 callers
Function
completeSessionIDs
completeSessionIDs offers the persisted session ids for the current repo (or --repo, when already typed) as shell completions, newest first, with a sh
cmd/opencodereview/session_cmd.go:77
↓ 2 callers
Function
copyMessages
copyMessages creates a shallow copy of a message slice.
internal/llmloop/compression.go:202
↓ 2 callers
Function
copyProvider
(p Provider)
internal/llm/providers.go:509
↓ 2 callers
Function
countCommentsRaw
(raw json.RawMessage)
internal/session/list.go:320
↓ 2 callers
Function
countDispatchable
(diffs []model.Diff)
internal/agent/agent.go:886
↓ 2 callers
Function
countLines
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:291
↓ 2 callers
Method
countReviewable
countReviewable counts diffs that will survive all filters and are not pure deletions.
internal/agent/agent.go:1972
↓ 2 callers
Function
counterpartPaths
(enPath)
scripts/github-actions/check-translation-sync.js:173
↓ 2 callers
Method
cursorOnDeletableModel
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:508
↓ 2 callers
Method
cursorOnUserAddedModel
()
cmd/opencodereview/provider_tui.go:2746
↓ 2 callers
Method
customAPIKeyForSave
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:909
↓ 2 callers
Function
decodeSinglePreviewJSON
decodeSinglePreviewJSON asserts that s is exactly one JSON value followed only by the encoder's trailing newline. Automation consuming --format json r
cmd/opencodereview/output_helpers_test.go:627
↓ 2 callers
Function
describeActiveProvider
(config: OcrConfig | null)
extensions/vscode/src/shared/configUtils.ts:40
↓ 2 callers
Function
describeCommentLocation
(reviewComment)
scripts/github-actions/post-review-comments.js:2017
↓ 2 callers
Function
diffStatus
(d model.Diff)
internal/agent/preview.go:121
↓ 2 callers
Method
discard
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:176
↓ 2 callers
Method
dispose
()
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:54
↓ 2 callers
Function
download
(url, maxRedirects = 10)
scripts/install.js:94
↓ 2 callers
Function
emitError
(file, message)
scripts/github-actions/check-translation-sync.js:204
↓ 2 callers
Method
emitSync
()
extensions/vscode/src/extension/providers/CommentProvider.ts:43
↓ 2 callers
Function
emitWarning
(file, message)
scripts/github-actions/check-translation-sync.js:209
↓ 2 callers
Function
emptyResponse
()
internal/llmloop/retry_identity_test.go:55
↓ 2 callers
Function
encodingForModel
(modelName string)
internal/llm/client.go:368
↓ 2 callers
Method
ensureTelemetry
()
cmd/opencodereview/config_cmd.go:936
↓ 2 callers
Function
errBedrockNotConfigurable
errBedrockNotConfigurable explains why the two url+token strategies reject the bedrock protocol. Both describe a single HTTP endpoint and carry no pla
internal/llm/resolver.go:241
↓ 2 callers
Function
estimateDiffCost
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:73
↓ 2 callers
Function
estimateFileTokens
estimateCost projects token usage for reviewing the given items under the supplied scan template. planEnabled / dedupEnabled / summaryEnabled reflect
internal/scan/estimate.go:45
↓ 2 callers
Function
executeReviewContext
(ctx context.Context, opts reviewOptions)
cmd/opencodereview/review_cmd.go:112
↓ 2 callers
Function
extFromPath
(path string)
internal/scan/agent.go:498
↓ 2 callers
Method
extFromPath
extFromPath returns the file extension with leading dot, lowercased.
internal/agent/agent.go:2018
↓ 2 callers
Function
extractBlockText
(block ContentBlock)
internal/llm/client.go:122
↓ 2 callers
Function
extractCliError
(stderr: string)
extensions/vscode/src/extension/services/cliParse.ts:61
↓ 2 callers
Function
extractCodeBlock
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:99
↓ 2 callers
Method
falsePositive
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:177
↓ 2 callers
Function
fenced_block
Render ``content`` as a fenced code block with a safe fence.
examples/gitlab_ci/post_review.py:244
↓ 2 callers
Function
fileReadRef
fileReadRef picks the ref file_read resolves paths against. A sealed input replaces the ref the user typed with the commit that ref resolved to at ad
cmd/opencodereview/review_cmd.go:415
↓ 2 callers
Function
filterByPaths
filterByPaths keeps only entries whose path equals a user-supplied path (for exact files) or lies under it (for directories).
internal/scan/provider.go:276
↓ 2 callers
Method
filterScanItems
filterScanItems drops items that should not be reviewed under the standard reviewability rules (binary, extension allowlist, user include/exclude, def
internal/scan/agent.go:428
↓ 2 callers
Function
findLinesByExistingCode
(content: string, existingCode: string)
extensions/vscode/src/extension/providers/commentAnchor.ts:71
↓ 2 callers
Function
findSummaryIssueComment
({ github, owner, repo, prNumber, sticky, tag, log })
scripts/github-actions/post-review-comments.js:851
↓ 2 callers
Function
find_summary_note
Return the newest note carrying the summary marker (or per-run tag). ``tag`` selects the matching needle: when provided, match this run's per
examples/gitlab_ci/post_review.py:1073
↓ 2 callers
Method
focusManualStep
()
cmd/opencodereview/provider_tui.go:1770
↓ 2 callers
Function
formatComment
(comment, id)
scripts/github-actions/post-review-comments.js:1535
↓ 2 callers
Function
formatSummaryComments
(summaryComments)
scripts/github-actions/post-review-comments.js:1637
↓ 2 callers
Function
formatTime
(t time.Time)
internal/viewer/server.go:80
↓ 2 callers
Function
formatToolDefs
formatToolDefs renders tool definitions as human-readable text for embedding in prompts.
internal/agent/agent.go:2031
↓ 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
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
Function
gitFailure
gitFailure builds an error that carries git's own message. Every diff-producing caller used to drop git's output on the floor, so a failure surfaced
internal/diff/git.go:706
↓ 2 callers
Function
groupChurn
groupChurn returns the group's aggregate churn and its largest single-file churn. Both feed Template.PlanRequired.
internal/agent/agent.go:1327
↓ 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:918
↓ 2 callers
Function
initRepoWithCommit
initRepoWithCommit creates a real git repository with a single commit whose message is `message`, and returns the repo directory and the commit hash.
cmd/opencodereview/background_file_test.go:294
↓ 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:570
↓ 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:409
↓ 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:2572
↓ 2 callers
Function
keyCmdConfiguredHintLine
(indent, keyLabel string)
cmd/opencodereview/provider_tui.go:2576
↓ 2 callers
Function
legacyLLMShadowWarning
(provider, key string)
cmd/opencodereview/config_cmd.go:226
↓ 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
← previous
next →
901–1,000 of 4,381, ranked by callers