MCPcopy Create free account

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

Functions7,599 in github.com/alibaba/open-code-review

↓ 3 callersMethodreport
(result behaviortask.Result, runErr error)
cmd/opencodereview/analysis.go:184
↓ 3 callersFunctionresolveAllowedHostsFromEnv
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 callersFunctionresolveBackgroundFilePath
(repoDir, path string)
cmd/opencodereview/background_file.go:25
↓ 3 callersFunctionresolveBin
(name: string)
extensions/vscode/src/extension/services/shellEnv.ts:56
↓ 3 callersFunctionresolveChatGPT
(cfg configFile, entry providerEntryConfig, override string, ctx context.Context)
internal/llm/chatgpt.go:33
↓ 3 callersFunctionresolveColorFor
(writer io.Writer)
cmd/opencodereview/color.go:64
↓ 3 callersMethodresolveGitRef
(root: string, ref: string)
extensions/vscode/src/extension/services/GitService.ts:229
↓ 3 callersFunctionresolveIn
resolveIn builds a real resolver for dir/ref and resolves path.
internal/config/rules/sniffer_test.go:71
↓ 3 callersFunctionresolveInputExpressions
(value, values, stepOutputs = {})
scripts/github-actions/action-contract.test.js:180
↓ 3 callersFunctionresolveNativeBinary
()
scripts/platform.js:39
↓ 3 callersFunctionresumedFromSession
(resume *session.ResumeState)
internal/agent/agent.go:1371
↓ 3 callersFunctionretryAttemptChain
retryAttemptChain renders one logical request as a short human-readable chain.
cmd/opencodereview/output.go:599
↓ 3 callersMethodrollbackModelDelete
(prevEntry ProviderEntry, prevCfgModel string)
cmd/opencodereview/provider_tui.go:485
↓ 3 callersFunctionrouteComment
(comment, policy)
scripts/github-actions/post-review-comments.js:2332
↓ 3 callersMethodrun
(ctx context.Context, request Request, limits Limits, events chan Event, outcomes chan<- Outcome)
acp/internal/orchestrator/runner.go:17
↓ 3 callersFunctionrunGitCmdStdout
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 callersMethodrunIdentity
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 callersFunctionrunInputFailureAgent
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 callersFunctionrunPrRefs
(sources)
scripts/github-actions/action-contract.test.js:383
↓ 3 callersFunctionrunReviewWithAudience
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 callersFunctionrunSessionExport
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 callersFunctionrunSessionList
()
cmd/opencodereview/session_cmd.go:274
↓ 3 callersFunctionrunSessionShow
(sessionID string)
cmd/opencodereview/session_cmd.go:314
↓ 3 callersFunctionsafePath
(filePath string)
internal/behaviortask/code.go:131
↓ 3 callersFunctionsameCommentSpan
(cur, other, threshold)
scripts/github-actions/post-review-comments.js:1427
↓ 3 callersFunctionsanitizeMetadata
(value)
scripts/github-actions/post-review-comments.js:2186
↓ 3 callersFunctionsanitizeRetryCodes
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 callersFunctionsavedSecretReplaceHint
savedSecretReplaceHint builds the replace hint text without leading indent.
cmd/opencodereview/provider_tui.go:2583
↓ 3 callersFunctionscanCodeCommentResponse
(contents ...string)
internal/scan/coverage_test.go:1383
↓ 3 callersFunctionscanLines
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 callersFunctionsealRepo
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 callersMethodsecure
()
internal/chatgptauth/store.go:93
↓ 3 callersFunctionsecurityHeaders
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 callersFunctionselectScanItemsForTest
(t *testing.T, a *Agent, items []model.ScanItem)
internal/scan/agent_test.go:366
↓ 3 callersFunctionselectedScanItems
(decisions []scanSelection)
internal/scan/agent.go:451
↓ 3 callersFunctionsemverGt
(a, b)
scripts/version.js:16
↓ 3 callersFunctionsensitiveHeader
(name string)
internal/llm/raw.go:149
↓ 3 callersFunctionsessionRepoName
(cwd, encodedRepo string)
internal/viewer/handler.go:79
↓ 3 callersFunctionsetCustomProviderValue
(cfg *Config, key, value string)
cmd/opencodereview/config_cmd.go:1040
↓ 3 callersFunctionsetHelperEnv
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 callersFunctionsetProviderEntryField
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigDraft.kt:103
↓ 3 callersMethodsetStatus
(index: number, status: CommentStatus)
extensions/vscode/src/extension/providers/CommentProvider.ts:179
↓ 3 callersFunctionsetTestHome
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 callersFunctionshouldSkipFile
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 callersFunctionsplitAndNormalize
splitAndNormalize splits code text into lines and normalizes each one.
internal/diff/resolver.go:299
↓ 3 callersFunctionsplitDiffLines
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 callersMethodstop
(cmd *exec.Cmd, waited <-chan error)
acp/internal/orchestrator/runner.go:266
↓ 3 callersFunctionstripEmptyPlanBlock
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 callersFunctionsummary_tag_for
(run_tag)
examples/gitlab_ci/post_review.py:79
↓ 3 callersMethodsyncModelsFromConfig
()
cmd/opencodereview/provider_tui.go:2835
↓ 3 callersFunctiontest
(name, check)
scripts/github-actions/release-contract.test.js:121
↓ 3 callersFunctiontoConfigSetArgs
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigParse.kt:80
↓ 3 callersFunctiontoConfigSetArgs
(key: string, value: string)
extensions/vscode/src/extension/services/configParse.ts:50
↓ 3 callersFunctiontoHtmlLang
(locale: SupportedLocale)
extensions/frontend/src/shared/i18n.ts:979
↓ 3 callersFunctiontoSingleFileGroups
(diffs []model.Diff)
internal/agent/grouping.go:379
↓ 3 callersFunctiontoolRoundTripNote
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 callersFunctiontruncate
(s string, n int)
cmd/opencodereview/session_cmd.go:874
↓ 3 callersFunctionunquoteGitPath
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 callersMethoduntrackedFilesList
(ctx context.Context)
internal/diff/git.go:627
↓ 3 callersMethodupdateCustomProviderForm
(key string, msg tea.KeyPressMsg)
cmd/opencodereview/provider_tui.go:1054
↓ 3 callersMethodupdateDeleteModelConfirm
(key string)
cmd/opencodereview/provider_tui.go:3012
↓ 3 callersMethodupdate_note
(self, note_id, body)
examples/gitlab_ci/post_review.py:1111
↓ 3 callersMethodvalid
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 callersFunctionvalidAnalysis
(input Input)
internal/behaviortask/runner_test.go:111
↓ 3 callersMethodvalidateAnalysis
(analysis Analysis)
internal/behaviortask/validate.go:29
↓ 3 callersFunctionvalidateCheckpointPayload
(payload, { prNumber } = {})
scripts/github-actions/post-review-comments.js:3216
↓ 3 callersFunctionvalidateDelegateOptions
(opts *delegateOptions)
cmd/opencodereview/shared_flags.go:200
↓ 3 callersFunctionvalidateResumeIdentity
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 callersFunctionvalidateReviewOptions
(opts *reviewOptions)
cmd/opencodereview/shared_flags.go:129
↓ 3 callersMethodverify
(ctx context.Context, token, clientID, nonce string)
internal/chatgptauth/jwt.go:97
↓ 3 callersFunctionvisibleRunesLen
(runes []rune)
cmd/opencodereview/output.go:265
↓ 3 callersMethodwaitForRepo
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 callersFunctionwantMeta
(t *testing.T, got capturedRequest, want llm.RequestMeta)
internal/reviewtask/retry_identity_test.go:84
↓ 3 callersMethodwhyExcluded
whyExcluded mirrors agent.whyExcluded but for ScanItem inputs.
internal/scan/agent.go:495
↓ 3 callersMethodwithShellEnv
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/CliService.kt:343
↓ 3 callersFunctionworkspaceResumeBody
(name, marker, variant string)
cmd/opencodereview/workspace_resume_e2e_test.go:48
↓ 3 callersFunctionworkspaceResumeChild
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 callersFunctionwriteGarbageExternalDiff
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 callersFunctionwriteMarkIdentityFixture
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 callersFunctionwriteRangeResumeSession
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 callersMethodwriteReviewItemRecord
(recordType, filePath, oldPath, newPath, fingerprint, sourceSessionID, errorMsg string, comments []model.LlmCo
internal/session/persist.go:239
↓ 3 callersFunctionwriteTarget
(fixture, name, source)
bin/ocr.test.js:132
↓ 3 callersFunctionwriteTestSession
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 callersFunctionwriteWorkspaceResumeFile
(t *testing.T, dir, name, body string)
cmd/opencodereview/workspace_resume_e2e_test.go:58
↓ 2 callersMethodAddToolFailure
AddToolFailure appends and persists a failed tool call result.
internal/session/history.go:595
↓ 2 callersMethodAnalysisOutput
()
cmd/opencodereview/analysis.go:215
↓ 2 callersMethodApplyEffort
ApplyEffort overwrites the effort-controlled template scalars.
internal/config/template/effort.go:58
↓ 2 callersMethodApplyLanguage
ApplyLanguage injects a language directive into all system-role messages of this conversation.
internal/config/testconnection/testconnection.go:64
↓ 2 callersMethodAtLeast
AtLeast reports whether v is greater than or equal to o.
internal/gitcmd/version.go:27
↓ 2 callersMethodBedrockContext
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 callersMethodCallTool
CallTool invokes a tool on the MCP server and returns the text result.
internal/mcp/client.go:188
↓ 2 callersMethodCanonicalConfig
()
internal/config/rules/canonical_config_test.go:17
↓ 2 callersFunctionCheckGitVersion
()
internal/gitcmd/version.go:66
↓ 2 callersFunctionCheckSessionRepo
CheckSessionRepo reports whether a session may be operated on from repoDir.
internal/session/delete.go:43
↓ 2 callersFunctionClarifyResult
ClarifyResult asks the user for the missing slots.
acp/internal/intent/result.go:55
↓ 2 callersFunctionComplete
Complete returns a checkpoint signaling task completion.
internal/tool/response_message.go:21
↓ 2 callersMethodConfigBool
(ctx context.Context, repoDir, key string)
internal/gitcmd/runner.go:49
↓ 2 callersFunctionCountTokensForModel
(text string, modelName string)
internal/llm/client.go:577
↓ 2 callersFunctionCreateArtifacts
(repo, directory string)
internal/behaviortask/result.go:98
↓ 2 callersFunctionDisplayAddr
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
← previousnext →1,301–1,400 of 7,599, ranked by callers