MCPcopy Create free account

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

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

↓ 16 callersFunctionNewCommentWorkerPool
NewCommentWorkerPool creates a pool with the given concurrency limit. workerCount <= 0 defaults to 8.
internal/reviewtask/pool.go:36
↓ 16 callersMethodResolveDetail
(path string)
internal/config/rules/system_rules.go:142
↓ 16 callersMethodSetResponse
SetResponse records the LLM response in the most recent TaskRecord of the given type. It uses actual token usage from the API response when available,
internal/session/history.go:477
↓ 16 callersFunctionnewAgentForTest
(t *testing.T, tpl template.ScanTemplate)
internal/scan/agent_test.go:24
↓ 16 callersFunctionokAttempt
()
internal/llm/retry_report_test.go:34
↓ 16 callersFunctionresolveCheckpointRange
({ github, owner, repo, prNumber, enabled = false, sticky = true, fullReview = false, // githu
scripts/github-actions/post-review-comments.js:3275
↓ 16 callersFunctionwriteConfigJSON
(t *testing.T, cfg configFile)
internal/llm/resolver_keycmd_test.go:19
↓ 15 callersMethodLen
Keep the buffer private so io.Copy cannot bypass Write via Buffer.ReadFrom.
acp/internal/orchestrator/resolve.go:192
↓ 15 callersFunctionNewLLMClient
--- Factory --- NewLLMClient creates the appropriate client based on the resolved endpoint protocol. protocol dispatch (canonical names from protocol.
internal/llm/client.go:486
↓ 15 callersFunctionbuild
(comments, **extra)
examples/gerrit_ci/post_review_test.py:47
↓ 15 callersFunctionckArgs
(over = {})
scripts/github-actions/post-review-comments.test.js:4023
↓ 15 callersMethoddispatchSubtasks
dispatchSubtasks groups items into batches per the configured strategy, then processes batches sequentially while running files within each batch conc
internal/scan/agent.go:541
↓ 15 callersFunctionhttp_error
Build an HTTPError suitable for mocking urlopen.
examples/gitlab_ci/post_review_test.py:91
↓ 15 callersFunctionlastSummaryBody
(gh)
scripts/github-actions/post-review-comments.test.js:4403
↓ 15 callersFunctionmustJSON
--- helpers ---
internal/session/resume_test.go:851
↓ 15 callersFunctionuseTranslation
()
pages/src/i18n/context.tsx:67
↓ 14 callersMethodCallTool
CallTool implements intent.LLMClient.
acp/internal/intent/llm/client.go:65
↓ 14 callersFunctionCountTokens
(text string)
internal/llm/client.go:561
↓ 14 callersFunctionLoadDefault
LoadDefault parses the embedded tool definitions shipped with this build.
internal/config/toolsconfig/toolsconfig.go:26
↓ 14 callersFunctionNewClient
()
internal/chatgptauth/oauth.go:35
↓ 14 callersFunctionNewFileFind
(fr *FileReader)
internal/tool/file_find.go:29
↓ 14 callersFunctionParseCommentsWithPath
ParseCommentsWithPath is like ParseComments but uses defaultPath as a fallback when individual comment objects omit the path field. repair is non-nil
internal/tool/code_comment.go:86
↓ 14 callersMethodSetAgentConnection
(c interface { SessionUpdate(context.Context, acp.SessionNotification) error })
acp/internal/adapter/agent.go:39
↓ 14 callersMethodValidateOptions
ValidateOptions verifies that this session can be resumed in the requested review mode at all. It deliberately does not compare the ref text the user
internal/session/resume.go:278
↓ 14 callersFunctionanthropicClient
(url string, c *RetryCollector, extra map[string]string)
internal/llm/retry_observer_test.go:71
↓ 14 callersMethodcancel
()
extensions/vscode/src/extension/services/CliService.ts:182
↓ 14 callersFunctioncheck
(output, kotlinOutput string)
internal/llm/gen/check.go:30
↓ 14 callersMethodclose
Closes the panel. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/review/ConfigPanelHost.kt:23
↓ 14 callersFunctionfreshOCRHome
freshOCRHome points the OCR home at a temp dir so a test can assert on what a command wrote there. It also neutralizes global git config: git resolves
cmd/opencodereview/delegate_exec_test.go:97
↓ 14 callersFunctiongroupDiffs
groupDiffs calls the LLM with file metadata (no diff content) to produce semantic groups. Falls back to one-file-per-group on any error.
internal/agent/grouping.go:68
↓ 14 callersFunctionmockManifest
(state session.TerminalState)
cmd/opencodereview/emit_run_result_test.go:61
↓ 14 callersFunctionmodelIdxForName
(t *testing.T, m providerTUIModel, name string)
cmd/opencodereview/provider_tui_test.go:1568
↓ 14 callersFunctionnewModelTUI
newModelTUI builds a model-only TUI for tests. It has no config path or existing config, so add/delete/persist operations are unavailable — use newMod
cmd/opencodereview/provider_tui.go:2699
↓ 14 callersFunctionrightKey
()
cmd/opencodereview/provider_tui_test.go:30
↓ 14 callersFunctionrunRequest
(t *testing.T, runner Runner, ctx context.Context, request Request)
acp/internal/orchestrator/runner_test.go:255
↓ 14 callersMethodset
(key: string, value: string)
extensions/vscode/src/extension/services/ConfigService.ts:88
↓ 14 callersFunctionsetColor
setColor pins the resolved color decision for one test and restores the previous state afterwards. Tests capture stdout through a pipe, which is not a
cmd/opencodereview/color_test.go:29
↓ 14 callersFunctiontaskDoneResponse
()
internal/reviewtask/loop_test.go:62
↓ 13 callersMethodCompletionsWithCtx
CompletionsWithCtx sends a Responses API request and maps the result back to the shared ChatResponse shape. The deferred finalizeRequest is this clie
internal/llm/responses_client.go:118
↓ 13 callersFunctionDynamic
Dynamic creates a Tool with the given name for dynamically discovered tools (e.g. MCP).
internal/tool/definitions.go:51
↓ 13 callersFunctionLoadScanDefault
LoadScanDefault parses the embedded scan_template.json.
internal/config/template/template.go:261
↓ 13 callersFunctionNewProvider
NewProvider creates a Provider that enumerates the repository at repoDir. If paths is non-empty each element must be a repo-relative path (file or dir
internal/scan/provider.go:55
↓ 13 callersFunctionNormalizeProtocol
NormalizeProtocol canonicalizes protocol names. It is case-insensitive and trims whitespace. Empty string is returned as-is (the caller decides the de
internal/llm/protocol.go:45
↓ 13 callersMethodRead
Read returns the full content of a file path (relative to RepoDir), resolved according to the active review mode. - Workspace: reads directly from the
internal/tool/filereader.go:72
↓ 13 callersMethodReasoningContent
ReasoningContent extracts the reasoning content of the first choice, if any.
internal/llm/client.go:370
↓ 13 callersFunctionResolveEndpointWithModelOverride
ResolveEndpointWithModelOverride is a compatibility wrapper around ResolveEndpointWithOptions for callers that only override the model.
internal/llm/resolver.go:96
↓ 13 callersMethodWarnings
()
cmd/opencodereview/shared.go:769
↓ 13 callersMethodbuildAnthropicParams
buildAnthropicParams converts the shared ChatRequest into Anthropic SDK parameters.
internal/llm/client.go:1534
↓ 13 callersMethodbuildResponsesParams
buildResponsesParams converts the shared ChatRequest into Responses API parameters. Mapping notes: - Multiple system messages are concatenated into I
internal/llm/responses_client.go:412
↓ 13 callersFunctioncaptureStderr
captureStderr swaps os.Stderr for a pipe around fn and returns what was written. Output here is tiny, so reading after the writer is closed avoids any
internal/llm/test_stderr_test.go:15
↓ 13 callersFunctioncloneProviderEntry
cloneProviderEntry deep-copies a ProviderEntry so callers (rollback paths, map cloning) can safely mutate the returned value without aliasing the orig
cmd/opencodereview/provider_tui.go:1304
↓ 13 callersFunctioncollectCustomProviders
(cfg *Config)
cmd/opencodereview/provider_tui.go:253
↓ 13 callersFunctiondefaultConfigPath
Default config file location: ~/.opencodereview/config.json
cmd/opencodereview/config_cmd.go:93
↓ 13 callersFunctionextractRepoLinks
(content)
scripts/github-actions/check-plugin-contract.js:288
↓ 13 callersFunctionfinishManifestFlow
(t *testing.T, a *Agent)
internal/agent/manifest_integration_test.go:146
↓ 13 callersFunctionloadBackgroundFile
(path string)
cmd/opencodereview/background_file.go:66
↓ 13 callersFunctionloadCommonContext
loadCommonContext validates the working directory, loads the embedded template, raises MaxToolRequestTimes when maxTools exceeds the default, resolves
cmd/opencodereview/shared.go:111
↓ 13 callersFunctionnewFakeLLM
newFakeLLM returns a server that succeeds on the first attempt for every file. rateLimitOnce and hardFail are set by the caller before use.
cmd/opencodereview/retry_fake_llm_test.go:56
↓ 13 callersFunctionreadJSONLRecords
(t *testing.T, path string)
internal/session/persist_test.go:113
↓ 13 callersFunctionrenderMarkdown
(markdown string, width int)
cmd/opencodereview/markdown.go:38
↓ 13 callersFunctionrequireIntent
requireIntent fails unless r is a runnable intent and returns its argv.
acp/internal/intent/fake_test.go:70
↓ 13 callersFunctionscanItemFingerprint
(it model.ScanItem)
internal/scan/agent.go:304
↓ 13 callersFunctionseedRmSessionRecorded
(t *testing.T, repoDir, sessionID, branch string)
cmd/opencodereview/session_rm_test.go:326
↓ 13 callersMethodselectFiles
selectFiles is the review's one deterministic pre-dispatch selection: for every changed file it applies the static path/extension gates, the deletion
internal/agent/selection.go:43
↓ 13 callersFunctionsessionJSONLPath
(t *testing.T, repoDir, sessionID string)
internal/session/persist_test.go:164
↓ 13 callersFunctionstartFakeLLM
startFakeLLM starts srv and points the OCR_LLM_* endpoint resolution at it, with HOME/XDG_CONFIG_HOME redirected so the developer's real config and se
cmd/opencodereview/retry_fake_llm_test.go:284
↓ 13 callersFunctiontestRequest
()
acp/internal/intent/llm/client_test.go:19
↓ 13 callersFunctionwriteOCRScript
(t *testing.T)
acp/internal/orchestrator/runner_test.go:296
↓ 12 callersMethodAwait
Await blocks until all submitted work has completed and returns aggregated results from every Submit call so far. A panic in submitted work is recove
internal/reviewtask/pool.go:115
↓ 12 callersMethodCompletionsWithCtx
The deferred finalizeRequest is this client's boundary for the retry report; see the OpenAI counterpart for why it is deferred and why the results are
internal/llm/client.go:1465
↓ 12 callersMethodEnumerate
Enumerate returns one ScanItem per reviewable file. Binaries are emitted with empty Content + IsBinary=true so previews can show them as excluded.
internal/scan/provider.go:100
↓ 12 callersFunctionEvent
Event emits a structured event as a span with immediate end.
internal/telemetry/events.go:22
↓ 12 callersFunctionListSessions
ListSessions enumerates all persisted sessions for the given repository directory, sorted by StartTime descending (most recent first). Missing directo
internal/session/list.go:109
↓ 12 callersMethodLogin
(ctx context.Context, s Store, account string, newAccount, noBrowser, consent bool, out io.Writer)
internal/chatgptauth/oauth.go:261
↓ 12 callersFunctionNewFileReadDiff
(dm DiffMap)
internal/tool/file_read_diff.go:55
↓ 12 callersFunctionNewParser
NewParser builds a parser. Both dependencies may be nil: a nil LLM makes natural-language input a rejection, and a nil RepoContext skips ref checks.
acp/internal/intent/parser.go:64
↓ 12 callersFunctionNewRunner
NewRunner returns a Runner bound to the given dependencies.
internal/llmloop/loop.go:78
↓ 12 callersFunctionNormalizeAuthHeader
NormalizeAuthHeader normalizes an auth header value to a canonical form. It returns an error for unrecognized values.
internal/llm/resolver.go:865
↓ 12 callersFunctionRequestMetaFromContext
RequestMetaFromContext returns the RequestMeta attached to ctx, if any. It is exported so the packages that stamp identity — internal/llmloop and int
internal/llm/retry_meta.go:148
↓ 12 callersMethodResolveInput
ResolveInput freezes this run's commit endpoints by asking git, following the input-mode matrix: - range: base = merge-base(from,to); head = the
internal/diff/git.go:159
↓ 12 callersMethodRun
Run executes the full-scan pipeline: enumerate → filter → token-filter → dispatch one subtask per file → collect comments.
internal/scan/agent.go:318
↓ 12 callersMethodSession
Session returns the session history associated with this Agent.
internal/scan/agent.go:186
↓ 12 callersMethodSetFinalManifest
SetFinalManifest stores the frozen manifest the agent produced. It is embedded into session_end by Finalize and returned to the CLI via FinalManifest.
internal/session/history.go:206
↓ 12 callersMethodShutdown
Shutdown rejects new work, cancels active turns and waits for reader cleanup.
acp/internal/adapter/session.go:85
↓ 12 callersMethodTool
Tool returns which tool this provider implements.
internal/tool/definitions.go:73
↓ 12 callersFunctionactionStepBlock
(name)
scripts/github-actions/post-review-comments.test.js:5027
↓ 12 callersMethodapply
* Apply a suggestion, allowed only in workspace mode. Delete the marked range when suggestionCode is absent. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/providers/CommentService.kt:245
↓ 12 callersMethodcancel
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ReviewSession.kt:85
↓ 12 callersFunctionequalArgs
(a, b []string)
acp/internal/intent/fake_test.go:127
↓ 12 callersFunctionerrAttempt
(class ErrorClass, phase FailurePhase, status int)
internal/llm/retry_report_test.go:30
↓ 12 callersFunctiongitCommitFile
gitCommitFile writes a file and commits it, returning after the commit lands.
cmd/opencodereview/delegate_exec_test.go:52
↓ 12 callersFunctioninitPreviewRepo
(t *testing.T)
internal/agent/preview_run_test.go:22
↓ 12 callersFunctionjsonResponse
(body string)
internal/llm/raw_test.go:81
↓ 12 callersFunctionlog
(msg)
examples/gitlab_ci/post_review.py:59
↓ 12 callersFunctionmodelTUIIdxForName
(t *testing.T, m modelTUIModel, name string)
cmd/opencodereview/provider_tui_funcs_test.go:1140
↓ 12 callersFunctionmustUnmarshal
mustUnmarshal is a test helper that unmarshals SARIF output and fails the test on error, so malformed output produces a clear failure instead of a nil
cmd/opencodereview/sarif_test.go:24
↓ 12 callersFunctionnewCompareSession
newCompareSession records one session with the given findings and returns it.
cmd/opencodereview/session_cmd_test.go:564
↓ 12 callersMethodobj
extensions/idea/src/test/kotlin/com/alibaba/opencodereview/idea/services/ConfigDraftTest.kt:80
↓ 12 callersFunctionparseConfig
* Parses the config file content. Blank input returns null; invalid JSON throws * (caught by [ConfigService] and treated as "no configuration"). */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigParse.kt:55
↓ 12 callersFunctionrender
(page)
internal/viewer/static/pager.js:46
← previousnext →201–300 of 7,128, ranked by callers