MCPcopy Create free account

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

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

↓ 6 callersFunctionvalidateAuthProvider
()
cmd/opencodereview/chatgpt_auth.go:28
↓ 6 callersFunctionwriteRulesCheckTestFile
(t *testing.T, repo, relPath, content string)
cmd/opencodereview/rules_cmd_test.go:31
↓ 5 callersMethodAsDiff
AsDiff returns a Diff suitable for handing to code that expects the diff-based shape (line-number resolver, file_read_diff tool). The Diff field stays
internal/model/scan.go:22
↓ 5 callersMethodAwaitKey
AwaitKey blocks until every unit submitted under key so far has completed. It never touches the pool-wide WaitGroup, so it is safe to call while other
internal/reviewtask/pool.go:127
↓ 5 callersMethodBudgetExceeded
BudgetExceeded reports whether the aggregate token budget gate stopped dispatch before every file was reviewed. Diagnostic only: scan still returns it
internal/scan/agent.go:248
↓ 5 callersFunctionComputeLineDiff
ComputeLineDiff returns a line-level diff between oldLines and newLines. Uses Myers-style LCS to find common subsequences, then emits context/added/de
internal/suggestdiff/diff.go:30
↓ 5 callersFunctionContextWithTraceParentFromEnv
ContextWithTraceParentFromEnv extracts W3C traceparent from the TRACEPARENT environment variable and returns a context carrying the upstream span cont
internal/telemetry/span.go:35
↓ 5 callersMethodError
()
internal/gitcmd/version.go:43
↓ 5 callersMethodEstimatedTokens
EstimatedTokens returns a rough token estimate for the portion of Message not already counted by ExtractText() (thinking blocks, reasoning items, and
internal/llm/client.go:193
↓ 5 callersMethodFilesReviewed
()
cmd/opencodereview/shared.go:849
↓ 5 callersFunctionFormatResult
FormatResult renders OCR findings with safe local navigation when root is set.
acp/internal/adapter/presentation/report.go:18
↓ 5 callersMethodFrozen
Frozen reports whether Finalize has already run.
internal/session/manifest.go:777
↓ 5 callersFunctionIsReserved
IsReserved reports whether a name is unavailable to Review MCP providers.
internal/tool/definitions.go:43
↓ 5 callersFunctionKill
Kill forcibly terminates the managed process tree, including descendants.
acp/internal/orchestrator/process/process_unix.go:38
↓ 5 callersFunctionLoadComments
LoadComments replays one session's JSONL and returns every review comment recorded in it, in file-completion order. It mirrors resume replay semantics
internal/session/comments.go:17
↓ 5 callersMethodLogout
(ctx context.Context, s Store, account string)
internal/chatgptauth/oauth.go:649
↓ 5 callersMethodMatches
(relPath string)
internal/diff/git.go:308
↓ 5 callersFunctionNewClient
NewClient starts an MCP server subprocess (stdio transport), initializes the connection, and caches the list of available tools. The context governs t
internal/mcp/client.go:43
↓ 5 callersFunctionNewComparisonCodeAccess
(current, previous FileReader)
internal/tool/code_access.go:16
↓ 5 callersFunctionNewConnection
NewConnection binds notifications before any request can acquire the agent lock.
acp/internal/adapter/connection.go:17
↓ 5 callersFunctionNewReport
(result behaviortask.Result, runErr error, directory string)
internal/workflow/report.go:39
↓ 5 callersFunctionNewSessionKey
NewSessionKey returns a fresh UUIDv4 session key. Clients use it as a per-client fallback for requests whose context carries no session key (e.g. `ocr
internal/llm/sessionkey.go:93
↓ 5 callersFunctionParseReviewMode
ParseReviewMode returns the correct ReviewMode based on provided flag values.
internal/tool/filereader.go:35
↓ 5 callersFunctionProviderDirPrefix
ProviderDirPrefix returns the blocklist prefix that excludes relPath, including the trailing slash (for example "vendor/"), or "" if none match.
internal/diff/gitignore.go:64
↓ 5 callersFunctionRecordCommentsGenerated
(ctx context.Context, n int64)
internal/telemetry/metrics.go:103
↓ 5 callersFunctionRecordLLMRequest
(ctx context.Context, model string, dur time.Duration, totalTokens int64, status string)
internal/telemetry/metrics.go:113
↓ 5 callersFunctionRecordReviewDuration
(ctx context.Context, dur time.Duration)
internal/telemetry/metrics.go:83
↓ 5 callersFunctionRelocateAcrossFiles
RelocateAcrossFiles handles the comment whose ExistingCode belongs to a different file than the one it was filed against. The reviewing Agent reads r
internal/diff/resolver.go:101
↓ 5 callersMethodReplaceSince
ReplaceSince replaces comments[start:] with the given replacements. Useful for batch-level dedup: take a Snapshot, run a batch, dedup the new comments
internal/tool/comment_collector.go:82
↓ 5 callersMethodResolveWorkspaceComparison
(ctx context.Context)
internal/diff/workspace.go:22
↓ 5 callersMethodRoundTrip
(r *http.Request)
internal/chatgptauth/lifecycle_test.go:222
↓ 5 callersMethodSessionID
SessionID returns the persisted session identifier so callers can show it in JSON output or failure diagnostics. Returns "" when no session was create
cmd/opencodereview/shared.go:865
↓ 5 callersMethodSetDiffMap
SetDiffMap replaces the diff snapshot. Must be called before concurrent access begins.
internal/tool/file_read_diff.go:59
↓ 5 callersMethodSubmit
Submit runs f in a background goroutine bounded by the semaphore. When f completes its return value is collected internally.
internal/reviewtask/pool.go:47
↓ 5 callersFunctionToToolDef
ToToolDef converts an MCP tool definition to an llm.ToolDef.
internal/mcp/provider.go:71
↓ 5 callersMethodTotalOutputTokens
TotalOutputTokens returns the accumulated completion tokens from all LLM calls.
internal/llmloop/loop.go:117
↓ 5 callersMethodTotalTokensUsed
TotalTokensUsed returns input + output.
internal/llmloop/loop.go:126
↓ 5 callersFunctionTraceIDFromContext
TraceIDFromContext returns the hex-encoded trace ID of the span carried by ctx, or "" if ctx carries no valid span (e.g. telemetry is disabled).
internal/telemetry/span.go:48
↓ 5 callersFunctionUseTestSessions
UseTestSessions redirects session persistence to the "test-sessions" subdirectory and raw captures to "test-raw", so that test runs do not pollute the
internal/session/testing.go:12
↓ 5 callersMethodabort
()
acp/cmd/ocr-acp/stdio_windows.go:227
↓ 5 callersMethodacquire
(ctx context.Context)
internal/gitcmd/runner.go:166
↓ 5 callersFunctionapplyConfigEntries
Merges the config set entries into the raw config in memory (nothing is written to disk). */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigDraft.kt:196
↓ 5 callersFunctionapplyModelDeleteToEntry
(entry ProviderEntry, name string)
cmd/opencodereview/provider_tui.go:465
↓ 5 callersFunctionassertContains
(t *testing.T, args []string, val string)
internal/tool/code_search_test.go:501
↓ 5 callersFunctionassertNotContains
(t *testing.T, args []string, val string)
internal/tool/code_search_test.go:508
↓ 5 callersMethodassert_unresolved
(self, severity, want)
examples/gerrit_ci/post_review_test.py:93
↓ 5 callersMethodattemptCounts
attemptCounts snapshots the per-file real HTTP attempt counts.
cmd/opencodereview/retry_fake_llm_test.go:104
↓ 5 callersFunctionbindRawWriter
bindRawWriter opens the session's raw capture file and attaches it to the run's raw holder; defer the returned closer. A nil holder (capture off) or a
cmd/opencodereview/shared.go:370
↓ 5 callersFunctionbudgetAgentTestTemplate
budgetAgentTestTemplate returns a minimal template sufficient to drive dispatchSubtasks without plan/dedup/summary phases.
internal/agent/budget_test.go:53
↓ 5 callersFunctionbudgetTestTemplate
()
internal/scan/budget_test.go:50
↓ 5 callersFunctionbuildAllowedHosts
buildAllowedHosts returns the default-deny allowlist used by the host guard. The set always includes the standard loopback names. If bindHost is a con
internal/viewer/hostguard.go:61
↓ 5 callersFunctionbuildConcatenatedDiffs
buildConcatenatedDiffs formats all diffs in the group as per-file XML elements.
internal/agent/agent.go:1695
↓ 5 callersFunctionbuildRunTags
(runId, runAttempt)
scripts/github-actions/post-review-comments.js:1027
↓ 5 callersMethodcancelPendingCompression
cancelPendingCompression aborts the conversation's in-flight background compression, if any.
internal/llmloop/compression.go:459
↓ 5 callersFunctioncaptureStdout
(t *testing.T, fn func())
internal/telemetry/events_test.go:143
↓ 5 callersFunctioncheckPluginDeclarations
(specs, readJson)
scripts/github-actions/check-plugin-contract.js:518
↓ 5 callersFunctionclearCfgActiveModelIfDeleted
(cfg *Config, providerName, name string)
cmd/opencodereview/provider_tui.go:473
↓ 5 callersMethodcloseStreamsQuietly
Closes the process's three streams, swallowing only the IOException declared by close() and never runtime signals such as InterruptedException. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/CliService.kt:319
↓ 5 callersFunctioncollectUnknownJSONFields
(data []byte, knownFields []string)
cmd/opencodereview/config_cmd.go:420
↓ 5 callersFunctioncommentKey
(rc)
scripts/github-actions/post-review-comments.test.js:79
↓ 5 callersFunctionconfiguredLanguage
(cfg *Config)
cmd/opencodereview/shared.go:302
↓ 5 callersFunctioncontentToText
(contents []mcp.Content)
internal/mcp/client.go:266
↓ 5 callersFunctioncopyLlmComments
(in []model.LlmComment)
internal/session/resume.go:360
↓ 5 callersFunctioncopyMessages
copyMessages creates a shallow copy of a message slice.
internal/llmloop/compression.go:245
↓ 5 callersMethodcustomListCount
()
cmd/opencodereview/provider_tui.go:630
↓ 5 callersMethoddescribe
describe renders m for internal construction errors raised by RetryCollector.Freeze. Those errors reach the user through runErr, and with --concurren
internal/llm/retry_meta.go:115
↓ 5 callersFunctiondescribeFiles
(s session.Summary)
cmd/opencodereview/session_cmd.go:815
↓ 5 callersFunctiondescribeRange
(s session.Summary)
cmd/opencodereview/session_cmd.go:801
↓ 5 callersMethoddiagnosticText
Redact provider-controlled text, where credentials might be echoed. Metadata fields are quoted separately; URLs lose userinfo, query and fragment firs
acp/internal/intent/llm/diagnostics.go:127
↓ 5 callersMethoddisconnect
()
pages/src/pages/DocsPage.test.tsx:185
↓ 5 callersFunctiondisplayMode
(m string)
cmd/opencodereview/session_cmd.go:794
↓ 5 callersMethoddispose
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/providers/CommentService.kt:741
↓ 5 callersFunctionemptyRawConfig
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigDraft.kt:26
↓ 5 callersMethodensureApi
()
extensions/vscode/src/extension/services/GitService.ts:24
↓ 5 callersFunctionensureModelInList
ensureModelInList appends model to the end when missing; never reorders existing entries.
cmd/opencodereview/config_cmd.go:1008
↓ 5 callersFunctionerror
(msg)
scripts/install.js:27
↓ 5 callersFunctionestimateCost
(items []model.ScanItem, planEnabled func(model.ScanItem) bool, dedupEnabled, summaryEnabled bool)
internal/scan/estimate.go:61
↓ 5 callersMethodexecuteGroupPlanPhase
executeGroupPlanPhase runs the plan phase for a file group.
internal/agent/agent.go:1820
↓ 5 callersMethodexecuteGroupSubtask
executeGroupSubtask performs the Plan Phase + Main Loop for a file group. It returns (completed, stop, err): a hard Go error (err) for provider/config
internal/agent/agent.go:1458
↓ 5 callersMethodexecuteSubtask
executeSubtask runs the scan pipeline for one file: 1. Optional PLAN_TASK: produce a JSON checklist of focus areas. 2. MAIN_TASK: review the file with
internal/scan/agent.go:789
↓ 5 callersFunctionextractFilenameFromURL
extractFilenameFromURL returns the filename part (last path segment) of a URL pattern.
internal/release/asset_naming_test.go:57
↓ 5 callersFunctionfinalizeRequest
finalizeRequest is the shared body of the client-boundary defer: correct the last attempt if the error only became visible after the SDK returned, the
internal/llm/retry_boundary.go:130
↓ 5 callersMethodfindCustomIdx
(name string)
cmd/opencodereview/provider_tui.go:1449
↓ 5 callersFunctionfindMissingTranslations
(changedFiles)
scripts/github-actions/check-translation-sync.js:188
↓ 5 callersFunctiongetChangedFiles
(env, exec = execFileSync)
scripts/github-actions/check-translation-sync.js:229
↓ 5 callersFunctiongetShellEnv
()
extensions/vscode/src/extension/services/shellEnv.ts:29
↓ 5 callersFunctiongitIn
(t *testing.T, dir string, args ...string)
internal/agent/sealed_input_test.go:28
↓ 5 callersFunctiongraceLimitWarnings
graceLimitWarnings returns the review-limit warnings recorded on the runner. A limit is recorded once per grace round, however that round ended, so th
internal/reviewtask/loop_test.go:116
↓ 5 callersFunctionhandleSessions
(w http.ResponseWriter, r *http.Request, root, repo string)
internal/viewer/handler.go:40
↓ 5 callersFunctionhashFields
hashFields folds a sequence of string fields into one SHA-256 digest, writing an unambiguous 8-byte big-endian length prefix before each field so no t
internal/agent/agent.go:1131
↓ 5 callersFunctionhelperAlias
helperAlias configures a git alias that runs the test binary as the helper in the given mode. git dispatches the alias through its bundled sh; the pat
internal/gitcmd/runner_pipe_windows_test.go:130
↓ 5 callersFunctioninitResumeRepo
initResumeRepo adds a second commit to the shared single-commit fixture, so HEAD~1..HEAD is a real range with a reviewable Go file in it.
cmd/opencodereview/review_resume_more_test.go:123
↓ 5 callersFunctionisCheckpointAuthorOurs
(comment, appSlug = "", selfLogin = "")
scripts/github-actions/post-review-comments.js:3276
↓ 5 callersFunctionisMachineReadable
isMachineReadable reports whether the output format writes a structured document to stdout that must not be interleaved with progress text. json and s
cmd/opencodereview/shared.go:448
↓ 5 callersFunctionisPresetProvider
Uses Locale.ROOT so provider-name normalization is independent of the system locale. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/Providers.kt:12
↓ 5 callersMethodisUserAddedModel
(name string)
cmd/opencodereview/provider_tui.go:2785
↓ 5 callersMethodisUserAddedOfficialModel
(name string)
cmd/opencodereview/provider_tui.go:498
↓ 5 callersFunctionjsonFieldNames
(value any)
cmd/opencodereview/config_cmd.go:399
↓ 5 callersFunctionloadDelegateContext
(opts delegateOptions)
cmd/opencodereview/delegate_cmd.go:105
↓ 5 callersFunctionloadLanguageContent
(language: Language)
pages/src/content/docs/index.ts:86
← previousnext →701–800 of 7,599, ranked by callers