Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,599 in github.com/alibaba/open-code-review
⨍
Functions
7,599
◇
Types & classes
815
↓ 3 callers
Method
report
(result behaviortask.Result, runErr error)
cmd/opencodereview/analysis.go:184
↓ 3 callers
Function
resolveAllowedHostsFromEnv
resolveAllowedHostsFromEnv reads the OCR_VIEWER_ALLOWED_HOSTS environment variable and combines it with the bind host to produce the active allowlist.
internal/viewer/hostguard.go:136
↓ 3 callers
Function
resolveBackgroundFilePath
(repoDir, path string)
cmd/opencodereview/background_file.go:25
↓ 3 callers
Function
resolveBin
(name: string)
extensions/vscode/src/extension/services/shellEnv.ts:56
↓ 3 callers
Function
resolveChatGPT
(cfg configFile, entry providerEntryConfig, override string, ctx context.Context)
internal/llm/chatgpt.go:33
↓ 3 callers
Function
resolveColorFor
(writer io.Writer)
cmd/opencodereview/color.go:64
↓ 3 callers
Method
resolveGitRef
(root: string, ref: string)
extensions/vscode/src/extension/services/GitService.ts:229
↓ 3 callers
Function
resolveIn
resolveIn builds a real resolver for dir/ref and resolves path.
internal/config/rules/sniffer_test.go:71
↓ 3 callers
Function
resolveInputExpressions
(value, values, stepOutputs = {})
scripts/github-actions/action-contract.test.js:180
↓ 3 callers
Function
resolveNativeBinary
()
scripts/platform.js:39
↓ 3 callers
Function
resumedFromSession
(resume *session.ResumeState)
internal/agent/agent.go:1371
↓ 3 callers
Function
retryAttemptChain
retryAttemptChain renders one logical request as a short human-readable chain.
cmd/opencodereview/output.go:599
↓ 3 callers
Method
rollbackModelDelete
(prevEntry ProviderEntry, prevCfgModel string)
cmd/opencodereview/provider_tui.go:485
↓ 3 callers
Function
routeComment
(comment, policy)
scripts/github-actions/post-review-comments.js:2332
↓ 3 callers
Method
run
(ctx context.Context, request Request, limits Limits, events chan Event, outcomes chan<- Outcome)
acp/internal/orchestrator/runner.go:17
↓ 3 callers
Function
runGitCmdStdout
runGitCmdStdout is like runGitCmd but returns stdout only. Use it when the output is consumed as data (e.g. a resolved path) so git's stderr warnings
cmd/opencodereview/git.go:21
↓ 3 callers
Method
runIdentity
runIdentity reads the identity off the agent's current selection. It is only meaningful once the selection is final: sourceArtifactSHA256 hashes what
internal/agent/identity.go:116
↓ 3 callers
Function
runInputFailureAgent
runInputFailureAgent drives the load-diffs exit of Run, the cheapest terminal path that still goes through freezeRetryReport and session_end.
internal/agent/retry_report_freeze_test.go:35
↓ 3 callers
Function
runPrRefs
(sources)
scripts/github-actions/action-contract.test.js:383
↓ 3 callers
Function
runReviewWithAudience
End-to-end coverage of #928: `--audience human --format json` used to run completely silent because the json format discarded stdout outright, ignorin
cmd/opencodereview/progress_stream_e2e_test.go:20
↓ 3 callers
Function
runSessionExport
runSessionExport writes one session's standalone HTML page to --output, or to stdout when it is unset. The session id is optional because a *successfu
cmd/opencodereview/session_cmd.go:238
↓ 3 callers
Function
runSessionList
()
cmd/opencodereview/session_cmd.go:274
↓ 3 callers
Function
runSessionShow
(sessionID string)
cmd/opencodereview/session_cmd.go:314
↓ 3 callers
Function
safePath
(filePath string)
internal/behaviortask/code.go:131
↓ 3 callers
Function
sameCommentSpan
(cur, other, threshold)
scripts/github-actions/post-review-comments.js:1427
↓ 3 callers
Function
sanitizeMetadata
(value)
scripts/github-actions/post-review-comments.js:2186
↓ 3 callers
Function
sanitizeRetryCodes
sanitizeRetryCodes filters out SDK-default codes (408, 409, 429) and returns the remaining valid codes, any warnings for filtered codes, and an error
internal/llm/resolver.go:977
↓ 3 callers
Function
savedSecretReplaceHint
savedSecretReplaceHint builds the replace hint text without leading indent.
cmd/opencodereview/provider_tui.go:2583
↓ 3 callers
Function
scanCodeCommentResponse
(contents ...string)
internal/scan/coverage_test.go:1383
↓ 3 callers
Function
scanLines
scanLines reads from r line by line, collecting at most maxLines lines starting from startLine (1-based), while counting the total number of lines. Th
internal/tool/filereader.go:178
↓ 3 callers
Function
sealRepo
sealRepo builds a two-commit repo on a branch, so `main..feature` is a real range whose head a later commit can move.
internal/agent/sealed_input_test.go:19
↓ 3 callers
Method
secure
()
internal/chatgptauth/store.go:93
↓ 3 callers
Function
securityHeaders
securityHeaders wraps a handler and sets defense-in-depth response headers on every reply. These harden the local viewer's browser-facing surface (the
internal/viewer/securityheaders.go:28
↓ 3 callers
Function
selectScanItemsForTest
(t *testing.T, a *Agent, items []model.ScanItem)
internal/scan/agent_test.go:366
↓ 3 callers
Function
selectedScanItems
(decisions []scanSelection)
internal/scan/agent.go:451
↓ 3 callers
Function
semverGt
(a, b)
scripts/version.js:16
↓ 3 callers
Function
sensitiveHeader
(name string)
internal/llm/raw.go:149
↓ 3 callers
Function
sessionRepoName
(cwd, encodedRepo string)
internal/viewer/handler.go:79
↓ 3 callers
Function
setCustomProviderValue
(cfg *Config, key, value string)
cmd/opencodereview/config_cmd.go:1040
↓ 3 callers
Function
setHelperEnv
setHelperEnv steers children of this process into the helper branch. openBrowserCandidates builds its own exec.Cmd from an argv, so the inherited envi
internal/viewer/browser_exec_test.go:72
↓ 3 callers
Function
setProviderEntryField
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigDraft.kt:103
↓ 3 callers
Method
setStatus
(index: number, status: CommentStatus)
extensions/vscode/src/extension/providers/CommentProvider.ts:179
↓ 3 callers
Function
setTestHome
setTestHome redirects the user home resolved by os.UserHomeDir() to dir for the duration of the test. Setting HOME alone is NOT enough on Windows: os.
internal/llm/test_home_test.go:13
↓ 3 callers
Function
shouldSkipFile
shouldSkipFile returns true if a git ls-files output path should be skipped. Keeps only widely useful files (those with recognizable extensions).
internal/tool/file_find.go:232
↓ 3 callers
Function
splitAndNormalize
splitAndNormalize splits code text into lines and normalizes each one.
internal/diff/resolver.go:299
↓ 3 callers
Function
splitDiffLines
splitDiffLines splits unified diff text on "\n" and drops the carriage return that CRLF-terminated diff text leaves at the end of every line. Git wri
internal/diff/parser.go:42
↓ 3 callers
Method
stop
(cmd *exec.Cmd, waited <-chan error)
acp/internal/orchestrator/runner.go:266
↓ 3 callers
Function
stripEmptyPlanBlock
stripEmptyPlanBlock removes the "### Review Directive\n{{plan_guidance}}\n\n" wrapper from a MAIN_TASK user message when the plan phase produced no gu
internal/agent/util.go:29
↓ 3 callers
Function
summary_tag_for
(run_tag)
examples/gitlab_ci/post_review.py:79
↓ 3 callers
Method
syncModelsFromConfig
()
cmd/opencodereview/provider_tui.go:2835
↓ 3 callers
Function
test
(name, check)
scripts/github-actions/release-contract.test.js:121
↓ 3 callers
Function
toConfigSetArgs
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigParse.kt:80
↓ 3 callers
Function
toConfigSetArgs
(key: string, value: string)
extensions/vscode/src/extension/services/configParse.ts:50
↓ 3 callers
Function
toHtmlLang
(locale: SupportedLocale)
extensions/frontend/src/shared/i18n.ts:979
↓ 3 callers
Function
toSingleFileGroups
(diffs []model.Diff)
internal/agent/grouping.go:379
↓ 3 callers
Function
toolRoundTripNote
toolRoundTripNote reports what the round trip proved. A provider that never calls the tool leaves it unproven, and saying so is the point: a bare succ
cmd/opencodereview/llm_cmd.go:236
↓ 3 callers
Function
truncate
(s string, n int)
cmd/opencodereview/session_cmd.go:874
↓ 3 callers
Function
unquoteGitPath
Git writes a pathname in C-style quotes whenever it holds a byte it cannot print literally on one line: a control character such as a tab or a newline
internal/diff/quotedpath.go:30
↓ 3 callers
Method
untrackedFilesList
(ctx context.Context)
internal/diff/git.go:627
↓ 3 callers
Method
updateCustomProviderForm
(key string, msg tea.KeyPressMsg)
cmd/opencodereview/provider_tui.go:1054
↓ 3 callers
Method
updateDeleteModelConfirm
(key string)
cmd/opencodereview/provider_tui.go:3012
↓ 3 callers
Method
update_note
(self, note_id, body)
examples/gitlab_ci/post_review.py:1111
↓ 3 callers
Method
valid
valid reports whether m can identify a logical request. Provider may be empty; Model, FilePath and TaskType may not. No field may contain NUL, becaus
internal/llm/retry_meta.go:57
↓ 3 callers
Function
validAnalysis
(input Input)
internal/behaviortask/runner_test.go:111
↓ 3 callers
Method
validateAnalysis
(analysis Analysis)
internal/behaviortask/validate.go:29
↓ 3 callers
Function
validateCheckpointPayload
(payload, { prNumber } = {})
scripts/github-actions/post-review-comments.js:3216
↓ 3 callers
Function
validateDelegateOptions
(opts *delegateOptions)
cmd/opencodereview/shared_flags.go:200
↓ 3 callers
Function
validateResumeIdentity
validateResumeIdentity rejects a resume whose input, rules, provider or model no longer match the parent run. It must run before agent.New: agent.New
cmd/opencodereview/review_cmd.go:480
↓ 3 callers
Function
validateReviewOptions
(opts *reviewOptions)
cmd/opencodereview/shared_flags.go:129
↓ 3 callers
Method
verify
(ctx context.Context, token, clientID, nonce string)
internal/chatgptauth/jwt.go:97
↓ 3 callers
Function
visibleRunesLen
(runes []rune)
cmd/opencodereview/output.go:265
↓ 3 callers
Method
waitForRepo
Wait for at least one repository (the Git extension scans asynchronously and may initially return none).
extensions/vscode/src/extension/services/GitService.ts:47
↓ 3 callers
Function
wantMeta
(t *testing.T, got capturedRequest, want llm.RequestMeta)
internal/reviewtask/retry_identity_test.go:84
↓ 3 callers
Method
whyExcluded
whyExcluded mirrors agent.whyExcluded but for ScanItem inputs.
internal/scan/agent.go:495
↓ 3 callers
Method
withShellEnv
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/CliService.kt:343
↓ 3 callers
Function
workspaceResumeBody
(name, marker, variant string)
cmd/opencodereview/workspace_resume_e2e_test.go:48
↓ 3 callers
Function
workspaceResumeChild
workspaceResumeChild returns the session that resumed parentID. Sessions can share a start timestamp, so the newest entry is not a reliable identifier
cmd/opencodereview/workspace_resume_e2e_test.go:212
↓ 3 callers
Function
writeGarbageExternalDiff
writeGarbageExternalDiff writes a shell script that emits non-diff output and returns its path. When git invokes it via GIT_EXTERNAL_DIFF / diff.exter
internal/diff/git_test.go:35
↓ 3 callers
Function
writeMarkIdentityFixture
writeMarkIdentityFixture writes a session jsonl with a uuid-bearing review_item_done record (two comments, identical content) plus a legacy uuid-less
internal/viewer/handler_test.go:390
↓ 3 callers
Function
writeRangeResumeSession
writeRangeResumeSession persists a range-mode session with the given completed file checkpoints and returns its ID. HOME must already point at a temp
cmd/opencodereview/review_resume_more_test.go:24
↓ 3 callers
Method
writeReviewItemRecord
(recordType, filePath, oldPath, newPath, fingerprint, sourceSessionID, errorMsg string, comments []model.LlmCo
internal/session/persist.go:239
↓ 3 callers
Function
writeTarget
(fixture, name, source)
bin/ocr.test.js:132
↓ 3 callers
Function
writeTestSession
writeTestSession creates a real JSONL session using the persistence layer so tests exercise the same on-disk format that ListSessions consumes. It ret
internal/session/list_test.go:252
↓ 3 callers
Function
writeWorkspaceResumeFile
(t *testing.T, dir, name, body string)
cmd/opencodereview/workspace_resume_e2e_test.go:58
↓ 2 callers
Method
AddToolFailure
AddToolFailure appends and persists a failed tool call result.
internal/session/history.go:595
↓ 2 callers
Method
AnalysisOutput
()
cmd/opencodereview/analysis.go:215
↓ 2 callers
Method
ApplyEffort
ApplyEffort overwrites the effort-controlled template scalars.
internal/config/template/effort.go:58
↓ 2 callers
Method
ApplyLanguage
ApplyLanguage injects a language directive into all system-role messages of this conversation.
internal/config/testconnection/testconnection.go:64
↓ 2 callers
Method
AtLeast
AtLeast reports whether v is greater than or equal to o.
internal/gitcmd/version.go:27
↓ 2 callers
Method
BedrockContext
BedrockContext reports the AWS region and profile a Bedrock client resolved, so callers can show what a request actually used. ok is false for every o
internal/llm/client.go:1376
↓ 2 callers
Method
CallTool
CallTool invokes a tool on the MCP server and returns the text result.
internal/mcp/client.go:188
↓ 2 callers
Method
CanonicalConfig
()
internal/config/rules/canonical_config_test.go:17
↓ 2 callers
Function
CheckGitVersion
()
internal/gitcmd/version.go:66
↓ 2 callers
Function
CheckSessionRepo
CheckSessionRepo reports whether a session may be operated on from repoDir.
internal/session/delete.go:43
↓ 2 callers
Function
ClarifyResult
ClarifyResult asks the user for the missing slots.
acp/internal/intent/result.go:55
↓ 2 callers
Function
Complete
Complete returns a checkpoint signaling task completion.
internal/tool/response_message.go:21
↓ 2 callers
Method
ConfigBool
(ctx context.Context, repoDir, key string)
internal/gitcmd/runner.go:49
↓ 2 callers
Function
CountTokensForModel
(text string, modelName string)
internal/llm/client.go:577
↓ 2 callers
Function
CreateArtifacts
(repo, directory string)
internal/behaviortask/result.go:98
↓ 2 callers
Function
DisplayAddr
DisplayAddr rewrites a wildcard listen address (empty host, 0.0.0.0, or ::) to a localhost form so printed URLs are always openable in a browser. Non-
internal/viewer/hostguard.go:122
← previous
next →
1,301–1,400 of 7,599, ranked by callers