MCPcopy Create free account

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

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

↓ 10 callersFunctionmatchConsecutive
matchConsecutive scans sideLines for a consecutive run matching all targetLines.
internal/diff/resolver.go:230
↓ 10 callersFunctionmockCore
()
scripts/github-actions/post-review-comments.test.js:405
↓ 10 callersFunctionnewManifestFlowAgent
(t *testing.T, diffs []model.Diff, resume *session.ResumeState)
internal/agent/manifest_integration_test.go:69
↓ 10 callersFunctionoutputAnalysisText
(writer io.Writer, output *analysisOutput)
cmd/opencodereview/analysis_output.go:24
↓ 10 callersFunctionoutputJSONWithWarnings
(comments []model.LlmComment, warnings []agent.AgentWarning, filesReviewed, inputTokens, outputTokens, totalT
cmd/opencodereview/output.go:392
↓ 10 callersFunctionpartitionMessages
partitionMessages divides messages into frozen, compress, and active zones. Frozen zone is always messages[0:2]. Active zone preserves the K most rece
internal/llmloop/compression.go:82
↓ 10 callersMethodrecordWarning
recordWarning adds a non-fatal warning to the agent's warning list.
internal/agent/agent.go:563
↓ 10 callersFunctionrenderComment
(comment model.LlmComment, out io.Writer)
cmd/opencodereview/output.go:128
↓ 10 callersFunctionresolveLogLines
(core)
scripts/github-actions/post-review-comments.test.js:6334
↓ 10 callersFunctionresolveUsage
resolveUsage parses raw JSON bytes into a map and extracts token usage by probing configured paths sequentially. Returns nil if no total_tokens found.
internal/llm/usage_resolver.go:76
↓ 10 callersFunctionsilenceStdout
silenceStdout redirects os.Stdout to /dev/null for the duration of fn so the delegate commands' Printf output does not clutter test logs.
cmd/opencodereview/delegate_exec_test.go:68
↓ 10 callersMethodwithLock
(ctx context.Context, fn func() error)
internal/chatgptauth/store.go:167
↓ 10 callersFunctionwriteConfig
writeConfig writes an OCR config file to a temp dir and returns its path.
internal/llm/bedrock_test.go:16
↓ 10 callersFunctionyKey
()
cmd/opencodereview/provider_tui_test.go:1142
↓ 9 callersFunctionAnyToAttr
AnyToAttr converts an arbitrary value to an OTel attribute.KeyValue.
internal/telemetry/span.go:132
↓ 9 callersFunctionCollectToolDefs
CollectToolDefs gathers tool definitions from MCP clients, filtering out tools that conflict with built-in tools or were not successfully registered.
internal/mcp/provider.go:98
↓ 9 callersFunctionDefaultStore
()
internal/chatgptauth/store.go:86
↓ 9 callersFunctionIsPathExcluded
IsPathExcluded returns true when relPath matches any of the supplied gitignore-style patterns or any default excluded directory prefix (see ExcludedDi
internal/diff/gitignore.go:84
↓ 9 callersFunctionNewProvider
NewProvider creates a Provider for range mode: from..to (via merge-base).
internal/diff/git.go:103
↓ 9 callersFunctionNewRawFileWriter
NewRawFileWriter opens (creating if needed) the raw capture file for sessionID under repoDir's encoded raw directory. Directories are created 0700 and
internal/session/raw_writer.go:50
↓ 9 callersFunctionResolve
Resolve builds the parsing endpoint from the startup flags and the OCR_ACP_PARSER_* environment variables, with the flags taking precedence.
acp/internal/intent/llm/resolve.go:75
↓ 9 callersMethodRestore
Restore re-enables stdout. Safe to call multiple times.
cmd/opencodereview/shared.go:489
↓ 9 callersMethodRunSplit
RunSplit executes a git command and returns stdout and stderr separately.
internal/gitcmd/runner.go:413
↓ 9 callersMethodSealSelected
SealSelected closes the selected set. After it returns, RegisterSelected and RegisterExcluded fail and the coverage denominator is fixed; per-item Mar
internal/session/manifest.go:590
↓ 9 callersMethodSession
Session returns the session history associated with this Agent.
internal/agent/agent.go:459
↓ 9 callersMethodTotalInputTokens
()
cmd/opencodereview/shared.go:850
↓ 9 callersFunctionValidateProtocol
ValidateProtocol accepts the four canonical protocol names and rejects everything else.
internal/llm/protocol.go:65
↓ 9 callersFunctionWithRequestMeta
WithRequestMeta attaches m to ctx so the retry observer can associate every HTTP attempt made under that context with one logical request. It is the o
internal/llm/retry_meta.go:132
↓ 9 callersMethodclear
()
extensions/vscode/src/extension/providers/lineOffset.ts:20
↓ 9 callersFunctionconfigValues
(calls)
scripts/github-actions/action-contract.test.js:327
↓ 9 callersFunctiondownKey
()
cmd/opencodereview/provider_tui_test.go:34
↓ 9 callersFunctionemit
(result runResult)
acp/testdata/mock-ocr/main.go:82
↓ 9 callersMethodexecuteGroupReviewFilter
executeGroupReviewFilter runs the REVIEW_FILTER_TASK for a file group. When from is non-nil, only comments at indices >= from[path] for each path are
internal/agent/agent.go:1877
↓ 9 callersFunctionexpandBraces
expandBraces turns "{a,b,c}" style patterns into individual strings. e.g. "*.go.{java,kotlin}" → ["*.go.java", "*.go.kotlin"]. If no braces exist, ret
internal/config/rules/system_rules.go:183
↓ 9 callersMethodfile
extensions/idea/src/test/kotlin/com/alibaba/opencodereview/idea/FrontendSources.kt:29
↓ 9 callersFunctiongroupingSkipTemplate
groupingSkipTemplate is a template whose GROUPING_TASK is configured, so that a test asserting client.called == false proves the fast path skipped the
internal/agent/grouping_test.go:296
↓ 9 callersFunctionisConfigReady
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigUtils.kt:22
↓ 9 callersFunctionlocalAuthorization
(local string)
internal/chatgptauth/recovery_test.go:73
↓ 9 callersFunctionmakeComments
(n)
scripts/github-actions/post-review-comments.test.js:1872
↓ 9 callersFunctionnewModelTUIConfig
(cfg modelTUIConfig)
cmd/opencodereview/provider_tui.go:2729
↓ 9 callersFunctionnotifySink
(s progressSink)
acp/internal/adapter/presentation/helpers_test.go:70
↓ 9 callersFunctionofficialDashscopeModelTUI
(t *testing.T, configPath string, extraModels []string)
cmd/opencodereview/provider_tui_test.go:1513
↓ 9 callersFunctionopen
()
extensions/frontend/src/webview/components/CommentCard.tsx:18
↓ 9 callersFunctionoutputPreviewText
(p *agent.DiffPreview, out io.Writer)
cmd/opencodereview/output.go:792
↓ 9 callersFunctionparsePorcelain
* Parses `git status --porcelain` output. * Each line is XY<space>path, where X is the staged status, Y the worktree status, and `??` means untracked
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:27
↓ 9 callersMethodpost_note
(self, body)
examples/gitlab_ci/post_review_test.py:151
↓ 9 callersFunctionreadWorkspaceFileForDiff
(repoDir, relPath string)
internal/diff/workspace_file.go:19
↓ 9 callersFunctionrequireClarify
(t *testing.T, r Result, wantMissing ...string)
acp/internal/intent/fake_test.go:94
↓ 9 callersFunctionresolveWorkingDir
resolveWorkingDir returns (absPath, isGitRepo, err). When requireGit is true, returns an error if the directory is not a git repo. When false, returns
cmd/opencodereview/shared.go:154
↓ 9 callersMethodrun
(opts: CliRunOptions, cb: SessionCallbacks)
extensions/vscode/src/extension/services/ReviewSession.ts:35
↓ 9 callersFunctionrunGit
(cwd: string, args: string[])
extensions/vscode/src/extension/services/GitService.ts:503
↓ 9 callersFunctionrunSessionShowCompat
runSessionShowCompat provides test compatibility for old-style runSessionShow([]string{...}) calls.
cmd/opencodereview/compat_test.go:82
↓ 9 callersMethodselectedCustomProvider
()
cmd/opencodereview/provider_tui.go:421
↓ 9 callersFunctionsetBrowserWaitWindow
setBrowserWaitWindow overrides the wait window for one test. Tests in this package run sequentially, so mutating the package variable is safe.
internal/viewer/browser_exec_test.go:81
↓ 9 callersFunctiontaskDoneResponseWithArguments
(arguments string)
internal/reviewtask/loop_test.go:41
↓ 9 callersMethodupdate
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/actions/OpenOcrToolWindowAction.kt:13
↓ 9 callersFunctionvalidationStep
()
scripts/github-actions/action-contract.test.js:214
↓ 9 callersFunctionwithTempDir
(fn)
scripts/github-actions/check-plugin-contract.test.js:834
↓ 9 callersFunctionwriteCommit
writeCommit writes content to name, stages it, and commits with msg.
internal/diff/git_resolve_test.go:41
↓ 8 callersFunctionBuildReviewArgs
BuildReviewArgs constructs OCR CLI arguments from ReviewIntent. Returns error if intent is invalid, required fields are missing, or Extra contains a f
acp/internal/contract/intent.go:87
↓ 8 callersMethodClose
Close closes the capture file.
internal/session/raw_writer.go:117
↓ 8 callersFunctionCloseAll
CloseAll closes every client concurrently and returns all failures in configuration order, or stops waiting when ctx expires. CommandTransport bounds
internal/mcp/client.go:221
↓ 8 callersFunctionDiscoverRepos
DiscoverRepos walks the sessions root and returns one entry per subdirectory.
internal/viewer/store.go:46
↓ 8 callersFunctionFindSessionsByID
FindSessionsByID returns every session file matching an id, in any repository.
internal/session/delete.go:172
↓ 8 callersMethodGetDiffSet
GetDiffSet returns both reviewable diffs and those excluded by the provider's built-in directory rules. It preserves GetDiff's filtering behavior whil
internal/diff/git.go:221
↓ 8 callersFunctionInit
Init initializes global TracerProvider and MeterProvider based on environment variables and optional config file. Returns true when enabled. Safe to c
internal/telemetry/provider.go:32
↓ 8 callersMethodIsUserIncluded
IsUserIncluded reports whether the given path matches any user include pattern. The check is case-insensitive: both path and pattern are lowercased. R
internal/config/rules/system_rules.go:250
↓ 8 callersMethodName
Name returns the tool's identifier name.
internal/tool/definitions.go:67
↓ 8 callersFunctionRecordLLMResult
RecordLLMResult sets the outcome of an LLM request on the span.
internal/telemetry/span.go:115
↓ 8 callersMethodRecordWarning
RecordWarning adds a non-fatal warning.
internal/llmloop/loop.go:140
↓ 8 callersFunctionResolveBinary
ResolveBinary discovers and validates OCR exactly once. An invalid explicit path is an error and never falls back to the environment or PATH.
acp/internal/orchestrator/resolve.go:48
↓ 8 callersFunctionResolveIdentity
ResolveIdentity computes the identity a review with these args would record, without creating anything: no session, manifest, runner or LLM call. Resu
internal/agent/identity.go:45
↓ 8 callersMethodSetPendingFailureCause
SetPendingFailureCause records the classification Finalize must use when it sweeps items that never received a Mark*. It records no run_failure and tr
internal/session/manifest.go:480
↓ 8 callersMethodSetWriteDeadline
(time.Time)
acp/internal/adapter/transport/connection.go:34
↓ 8 callersMethodTotalOutputTokens
()
cmd/opencodereview/shared.go:851
↓ 8 callersMethodValidateScanOptions
ValidateScanOptions verifies that the previous session was a full-file scan.
internal/session/resume.go:301
↓ 8 callersFunctionagentTaskDoneResponse
()
internal/agent/agent_test.go:68
↓ 8 callersMethodapplyEditCustomProviderSave
()
cmd/opencodereview/provider_tui.go:1374
↓ 8 callersFunctionapplyManualConfig
(configPath string, cfg *Config, result providerTUIResult)
cmd/opencodereview/provider_cmd.go:103
↓ 8 callersFunctionbuildCheckpointMarker
(payload)
scripts/github-actions/post-review-comments.js:3157
↓ 8 callersFunctionclampLineRange
* Clamp a 1-based inclusive range to the document bounds and return a 0-based inclusive range. * Edits after review or differences between diff sides
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/providers/CommentAnchor.kt:215
↓ 8 callersFunctioncompleteEnum
(values ...string)
cmd/opencodereview/shared_flags.go:75
↓ 8 callersFunctioncompletionError
(t *testing.T, client *OpenAIClient)
internal/llm/provider_error_test.go:43
↓ 8 callersMethodcustomProviderEntry
(name string, fallback ProviderEntry)
cmd/opencodereview/provider_tui.go:599
↓ 8 callersMethoddispose
()
extensions/vscode/src/extension/providers/CommentProvider.ts:326
↓ 8 callersFunctionemitFailureUsage
emitFailureUsage writes a best-effort structured usage record to stderr when a review fails, so the outer caller still sees the cost of the failed att
cmd/opencodereview/output.go:723
↓ 8 callersFunctionentry_of
(ri, path="main.go")
examples/gerrit_ci/post_review_test.py:53
↓ 8 callersFunctioninitRepo
initRepo creates a git repo with one commit containing the given files and returns the repo dir and the commit SHA.
internal/config/rules/sniffer_test.go:29
↓ 8 callersMethodload
()
internal/chatgptauth/store.go:102
↓ 8 callersFunctionmergeModelLists
(lists ...[]string)
cmd/opencodereview/config_cmd.go:999
↓ 8 callersFunctionnewBudget
(maximum int64)
internal/behaviortask/budget.go:22
↓ 8 callersFunctionnewQuietHandle
newQuietHandle routes [ocr] progress lines away from stdout so they cannot corrupt a structured output document. What it does depends on why stdout ne
cmd/opencodereview/shared.go:469
↓ 8 callersFunctionparseGroupingResponse
(content string, diffs []model.Diff)
internal/agent/grouping.go:263
↓ 8 callersFunctionparseNameStatus
* Parses `git diff --name-status` / `git show --name-status` output. * Tab-separated: `status<TAB>path`; a rename is `R<score><TAB>old<TAB>new`, take
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:199
↓ 8 callersFunctionpeekSession
peekSession reads the first record, all review_item records (for comment count), and the last record of a JSONL file.
internal/viewer/store.go:156
↓ 8 callersFunctionprepareReviewCodeTools
(ctx context.Context, repoDir string, opts reviewOptions, runner *gitcmd.Runner, resolution *diff.InputResolut
cmd/opencodereview/code_access.go:22
↓ 8 callersMethodread
(self)
examples/gitlab_ci/post_review_test.py:106
↓ 8 callersFunctionreadCheckpointComment
({ github, owner, repo, prNumber, appSlug = "", resolveSelfLogin = null, log })
scripts/github-actions/post-review-comments.js:3336
↓ 8 callersFunctionresponse
(name, arguments string)
internal/behaviortask/runner_test.go:30
↓ 8 callersFunctionretryCodesMiddleware
retryCodesMiddleware returns an HTTP middleware that forces the SDK to retry responses whose status code is in the given set, by injecting the x-shoul
internal/llm/client.go:461
← previousnext →401–500 of 7,599, ranked by callers