MCPcopy Create free account

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

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

↓ 694 callersMethodError
()
internal/llm/client.go:1007
↓ 574 callersMethodRun
(ctx context.Context, request Request)
acp/internal/orchestrator/types.go:144
↓ 208 callersMethodClose
()
internal/llm/raw.go:116
↓ 175 callersFunctionnewProviderTUI
(cfg *Config, configPath string)
cmd/opencodereview/provider_tui.go:265
↓ 156 callersFunctionNew
New creates a new SessionHistory with the given repo directory.
internal/session/history.go:158
↓ 120 callersMethodAdd
Add appends a comment to the collector.
internal/tool/comment_collector.go:25
↓ 120 callersFunctioncaptureStdout
(t *testing.T, fn func())
cmd/opencodereview/output_helpers_test.go:487
↓ 115 callersMethodString
String renders a one-line human-readable estimate. Money is intentionally omitted — pricing varies per provider/model and we don't want to imply a pre
internal/scan/estimate.go:107
↓ 110 callersMethodSet
(w RawWriter)
internal/llm/raw.go:130
↓ 103 callersMethodget
()
internal/llm/raw.go:136
↓ 100 callersMethodUpdate
(msg tea.Msg)
cmd/opencodereview/provider_tui.go:2906
↓ 94 callersFunctionNewCommentCollector
NewCommentCollector creates an empty collector.
internal/tool/comment_collector.go:20
↓ 93 callersFunctionclearAllEnv
--- Provider-based resolution tests ---
internal/llm/resolver_test.go:268
↓ 90 callersFunctionResolveEndpoint
ResolveEndpoint resolves an endpoint without per-run overrides.
internal/llm/resolver.go:90
↓ 88 callersFunctionNewRegistry
NewRegistry creates an empty, mutable registry.
internal/tool/definitions.go:85
↓ 86 callersMethodFinalize
Finalize marks the session as complete, sets the end time, and persists the final summary record. When a frozen manifest was stored via SetFinalManife
internal/session/history.go:328
↓ 83 callersMethodWithTimeout
WithTimeout overrides the natural-language parse timeout.
acp/internal/intent/parser.go:69
↓ 78 callersMethodGet
Get returns the provider registered under name.
internal/tool/definitions.go:98
↓ 76 callersMethodExecute
Execute runs the tool with the given arguments and returns the result string.
internal/tool/definitions.go:75
↓ 73 callersFunctionNew
New creates a new Agent from the given arguments.
internal/agent/agent.go:205
↓ 72 callersMethodWrite
(rec RawRecord)
internal/llm/raw.go:115
↓ 69 callersFunctionNewTextMessage
NewTextMessage creates a message with simple string content.
internal/llm/client.go:223
↓ 69 callersFunctionrun
({ result, stderr = "", opts = {}, githubOpts = {} })
scripts/github-actions/post-review-comments.test.js:419
↓ 66 callersMethodParse
Parse routes one prompt. A leading slash selects the deterministic parser; anything else goes to the LLM.
acp/internal/intent/parser.go:84
↓ 63 callersMethodDone
()
acp/internal/orchestrator/termination_test.go:25
↓ 62 callersFunctionNew
New creates a Runner that allows at most maxConcurrent simultaneous git subprocesses. If maxConcurrent <= 0 the default (16) is used.
internal/gitcmd/runner.go:44
↓ 58 callersFunctionNewRunner
(deps Deps)
internal/reviewtask/task.go:70
↓ 58 callersFunctionsetConfigValue
(cfg *Config, key, value string)
cmd/opencodereview/config_cmd.go:630
↓ 57 callersFunctiontestMeta
()
internal/llm/retry_meta_test.go:12
↓ 53 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/session/test_home_test.go:13
↓ 53 callersFunctiont
(locale: SupportedLocale, key: string)
extensions/frontend/src/shared/i18n.ts:808
↓ 52 callersFunctionNewRetryCollector
NewRetryCollector returns an empty collector.
internal/llm/retry_report.go:267
↓ 52 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.
cmd/opencodereview/delegate_exec_test.go:87
↓ 50 callersFunctionmakeGithub
(opts = {})
scripts/github-actions/post-review-comments.test.js:103
↓ 49 callersMethodString
()
internal/viewer/browser_exec_test.go:101
↓ 49 callersFunctioncomment
One OCR comment as ``ocr review --format json`` emits it.
examples/gitlab_ci/post_review_test.py:45
↓ 48 callersMethodRegister
Register adds a tool provider. Panics if the registry is frozen.
internal/tool/definitions.go:90
↓ 48 callersFunctionmakeTemplateWithFullScan
()
internal/scan/agent_test.go:36
↓ 47 callersMethodFreeze
Freeze prevents further mutations. Call once setup is complete.
internal/tool/definitions.go:104
↓ 46 callersMethodGetOrCreateFileSession
GetOrCreateFileSession returns the FileSession for the given file path, creating one if it doesn't exist yet.
internal/session/history.go:244
↓ 45 callersFunctionNewAgent
NewAgent creates a scan Agent from the given args. The Session is auto-created (review_mode = full_scan) when not supplied.
internal/scan/agent.go:130
↓ 44 callersMethodError
()
internal/chatgptauth/oauth.go:75
↓ 43 callersMethodView
()
cmd/opencodereview/provider_tui.go:3112
↓ 42 callersMethodErr
Err returns the first error encountered while creating or writing the underlying file, or nil if none occurred. Text-mode rendering drops the per-writ
cmd/opencodereview/shared.go:675
↓ 42 callersFunctionsaveConfig
(path string, cfg *Config)
cmd/opencodereview/provider_cmd.go:432
↓ 41 callersMethodName
()
internal/mcp/client.go:184
↓ 41 callersFunctionNewCodeSearch
(fr *FileReader)
internal/tool/code_search.go:28
↓ 41 callersFunctionNewResolver
NewResolver builds a Resolver with the following priority: 1. Custom rule file specified via --rule flag (first match wins) 2. Project-local .opencode
internal/config/rules/system_rules.go:299
↓ 41 callersFunctionenterKey
()
cmd/opencodereview/provider_tui_test.go:22
↓ 39 callersFunctionNewAgent
(binary string, runner orchestrator.Runner, parsers ...*intent.Parser)
acp/internal/adapter/agent.go:31
↓ 39 callersFunctionemitRunResult
emitRunResult is the post-LLM-run finalization shared by `ocr review` and `ocr scan`: resolves comment line numbers, records telemetry, restores stdou
cmd/opencodereview/shared.go:811
↓ 38 callersMethodSince
Since returns a copy of all comments stored at index ≥ start. Returns nil when no new comments have been added since the snapshot.
internal/tool/comment_collector.go:64
↓ 38 callersFunctionWriter
Writer returns the current progress writer, possibly styled, redirected or discarded.
internal/stdout/stdout.go:18
↓ 38 callersFunctionloadOrCreateConfig
(path string)
cmd/opencodereview/config_cmd.go:570
↓ 37 callersFunctionNewOpenAIClient
NewOpenAIClient creates a new OpenAI-compatible LLM client. ExtraHeaders are applied per request (not baked into the SDK client) so SessionKeyTemplate
internal/llm/client.go:594
↓ 37 callersFunctioninputValues
(overrides = {})
scripts/github-actions/action-contract.test.js:171
↓ 37 callersFunctionmakeFixture
()
scripts/github-actions/action-contract.test.js:224
↓ 37 callersFunctionmockFs
(resultText, stderrText)
scripts/github-actions/post-review-comments.test.js:52
↓ 37 callersFunctionremoveFixture
(fixture)
scripts/github-actions/action-contract.test.js:276
↓ 37 callersFunctionresultDescription
(result)
scripts/github-actions/action-contract.test.js:306
↓ 37 callersFunctionrunPostReviewComments
({ github, context, core, fs, // The pull request everything below posts to. action.yml resolves it
scripts/github-actions/post-review-comments.js:78
↓ 36 callersFunctionNewOpenAIResponsesClient
NewOpenAIResponsesClient creates a client for the OpenAI Responses API. URL normalization mirrors NewOpenAIClient: cfg.URL is forced to end in respons
internal/llm/responses_client.go:42
↓ 36 callersFunctionNewState
NewState returns an empty clarification state.
acp/internal/intent/state.go:29
↓ 36 callersFunctionwriteJSONL
(t *testing.T, path string, lines ...string)
internal/viewer/store_test.go:13
↓ 35 callersFunctionLookupProvider
LookupProvider returns the preset provider by name. The returned Provider has its own copy of the Models slice.
internal/llm/providers.go:518
↓ 35 callersFunctioninitTestGitRepo
(t *testing.T)
cmd/opencodereview/git_test.go:17
↓ 35 callersFunctionnewBuilderWith
newBuilderWith registers a set of selected items on a fresh builder and sets a valid input mode so Finalize passes the mandatory-mode check.
internal/session/manifest_test.go:24
↓ 34 callersMethodRunMainTask
(ctx context.Context, messages []llm.Message, taskKey string)
internal/reviewtask/task.go:118
↓ 34 callersFunctionsetupTestRepo
(t *testing.T)
internal/tool/code_search_test.go:105
↓ 33 callersFunctionmustFinalize
mustFinalize finalizes and fails the test on an unexpected validation error.
internal/session/manifest_test.go:36
↓ 33 callersFunctionrunStep
(step, values, fixture, extraEnv = {}, options = {})
scripts/github-actions/action-contract.test.js:296
↓ 32 callersMethodContent
Content extracts the text content from the first choice, falling back to reasoning content.
internal/llm/client.go:335
↓ 32 callersMethodExtractText
ExtractText returns the concatenated text content from a Message's Content field. Handles both plain string and content block array formats.
internal/llm/client.go:250
↓ 32 callersMethodadd
(event responses.ResponseStreamEventUnion)
internal/llm/responses_client.go:291
↓ 32 callersFunctionnewTestParser
newTestParser builds a parser with a permissive repo and the given LLM.
acp/internal/intent/fake_test.go:62
↓ 32 callersFunctionrunGitTest
runGitTest runs a git command in dir and fails the test on error.
internal/diff/git_test.go:21
↓ 32 callersMethodwarn
warn reports the first capture failure on stderr; later failures stay silent so a degraded sink cannot spam every subsequent record.
internal/session/raw_writer.go:101
↓ 31 callersFunctionparseReviewFlags
parseReviewFlags provides test compatibility: parses args through a fresh cobra command instance and returns the resulting reviewOptions.
cmd/opencodereview/compat_test.go:18
↓ 30 callersMethodComments
Comments returns all collected comments.
internal/tool/comment_collector.go:32
↓ 30 callersMethodMarkCompleted
MarkCompleted records that the item's subtask completed. Whether it produced comments does not affect completion.
internal/session/manifest.go:750
↓ 30 callersMethodmodels
()
cmd/opencodereview/provider_tui.go:527
↓ 30 callersFunctionsetupEnabledTelemetry
(t *testing.T)
internal/telemetry/events_test.go:40
↓ 29 callersFunctionResolveLineNumbers
ResolveLineNumbers populates StartLine/EndLine on each comment by matching the ExistingCode against the corresponding file's diff hunks (primary), or
internal/diff/resolver.go:16
↓ 29 callersFunctionstepNamed
(name)
scripts/github-actions/action-contract.test.js:209
↓ 28 callersMethodAppendTaskRecord
AppendTaskRecord adds a new task record to the file session for the given file path and task type. It auto-assigns the RequestNo based on existing rec
internal/session/history.go:370
↓ 28 callersMethodError
()
acp/internal/orchestrator/types.go:129
↓ 28 callersMethodFreeze
Freeze builds the immutable report. It must be called once, after the run is done, and runID is the review session ID. The three return shapes are di
internal/llm/retry_report.go:476
↓ 28 callersFunctionNewRunner
NewRunner creates a runner with the documented resource limits.
acp/internal/orchestrator/types.go:158
↓ 28 callersMethodNewSession
(_ context.Context, p acp.NewSessionRequest)
acp/internal/adapter/session.go:26
↓ 28 callersMethodRecordReviewItemDone
RecordReviewItemDone persists the file-level checkpoint used by resume.
internal/session/history.go:261
↓ 28 callersMethodappend
(message string)
acp/internal/adapter/presentation/progress_format.go:27
↓ 28 callersMethoddispatchSubtasks
dispatchSubtasks runs the Plan + Main phases for each file group concurrently.
internal/agent/agent.go:632
↓ 28 callersFunctionnewTestDeps
(client llm.LLMClient)
internal/reviewtask/loop_test.go:96
↓ 28 callersFunctionsetMCPServerValue
(cfg *Config, key, value string)
cmd/opencodereview/config_cmd.go:1086
↓ 27 callersFunctionNewWorkspaceProvider
NewWorkspaceProvider creates a Provider for workspace mode (current uncommitted changes).
internal/diff/git.go:121
↓ 27 callersFunctionint
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/messages/WebviewMessages.kt:99
↓ 27 callersFunctionmetaCtx
metaCtx attaches identity the way the review path will in P4.
internal/llm/retry_observer_test.go:67
↓ 27 callersMethodresult
()
cmd/opencodereview/provider_tui.go:1997
↓ 27 callersFunctiontestStore
(t *testing.T)
internal/chatgptauth/auth_test.go:29
↓ 27 callersFunctionwriteFile
(t *testing.T, root, rel string, content []byte)
internal/scan/provider_test.go:100
next →1–100 of 7,128, ranked by callers