MCPcopy Create free account

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

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

↓ 5 callersMethodattemptCounts
attemptCounts snapshots the per-file real HTTP attempt counts.
cmd/opencodereview/retry_fake_llm_test.go:103
↓ 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:287
↓ 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:1659
↓ 5 callersMethodcancelPendingCompression
cancelPendingCompression aborts the conversation's in-flight background compression, if any.
internal/llmloop/compression.go:376
↓ 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:474
↓ 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:308
↓ 5 callersFunctioncollectUnknownJSONFields
(data []byte, knownFields []string)
cmd/opencodereview/config_cmd.go:411
↓ 5 callersFunctioncommentKey
(rc)
scripts/github-actions/post-review-comments.test.js:79
↓ 5 callersFunctioncontentToText
(contents []mcp.Content)
internal/mcp/client.go:266
↓ 5 callersFunctioncopyLlmComments
(in []model.LlmComment)
internal/session/resume.go:359
↓ 5 callersMethodcustomListCount
()
cmd/opencodereview/provider_tui.go:631
↓ 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:803
↓ 5 callersFunctiondescribeRange
(s session.Summary)
cmd/opencodereview/session_cmd.go:789
↓ 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 callersFunctiondisplayMode
(m string)
cmd/opencodereview/session_cmd.go:782
↓ 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:990
↓ 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:1784
↓ 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:1422
↓ 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:1439
↓ 5 callersFunctionfindMissingTranslations
(changedFiles)
scripts/github-actions/check-translation-sync.js:185
↓ 5 callersFunctiongetChangedFiles
(env, exec = execFileSync)
scripts/github-actions/check-translation-sync.js:226
↓ 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:39
↓ 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:1117
↓ 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:3144
↓ 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:362
↓ 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:2771
↓ 5 callersMethodisUserAddedOfficialModel
(name string)
cmd/opencodereview/provider_tui.go:499
↓ 5 callersFunctionjsonFieldNames
(value any)
cmd/opencodereview/config_cmd.go:390
↓ 5 callersFunctionloadDelegateContext
(opts delegateOptions)
cmd/opencodereview/delegate_cmd.go:102
↓ 5 callersMethodlogicalRequestID
logicalRequestID computes the canonical logical_request_id for m under runID. Fields are NUL-terminated in a fixed order rather than concatenated, be
internal/llm/retry_meta.go:91
↓ 5 callersFunctionmakeBudgetDiffs
makeBudgetDiffs returns n small, non-deleted diffs that survive every selection gate.
internal/agent/budget_test.go:68
↓ 5 callersMethodmatches
Matching the whole preamble prevents comments from satisfying a missing declaration.
internal/llm/gen/check.go:164
↓ 5 callersMethodmaybeRunDedup
maybeRunDedup, when the template has a DedupTask and the batch produced at least DedupMinComments comments, invokes the DEDUP_TASK LLM to merge near-d
internal/scan/agent.go:987
↓ 5 callersMethodmaybeRunProjectSummary
maybeRunProjectSummary runs the post-batch PROJECT_SUMMARY_TASK over the union of all collected comments. Best-effort: any error / empty input no-temp
internal/scan/agent.go:901
↓ 5 callersFunctionmergeUnknownJSONFields
(data []byte, unknown map[string]json.RawMessage)
cmd/opencodereview/config_cmd.go:429
↓ 5 callersMethodmodelCount
()
cmd/opencodereview/provider_tui.go:627
↓ 5 callersFunctionnewJSONToolCalls
(toolCalls map[string]int64, failures []llmloop.ToolFailureDetail)
cmd/opencodereview/output.go:309
↓ 5 callersFunctionnormalizePath
normalizePath canonicalizes a path for identity derivation: it unifies separators to forward slashes and cleans redundant "." / ".." / duplicate separ
internal/session/manifest.go:218
↓ 5 callersMethodofficialProviderActiveModel
(p llm.Provider)
cmd/opencodereview/provider_tui.go:242
↓ 5 callersFunctionopenBrowserCandidates
openBrowserCandidates tries each candidate in turn. Every failure is reported, not just the first: with $BROWSER set to something uninstalled and no p
internal/viewer/browser.go:211
↓ 5 callersFunctionoutputJSONWithWarnings
(comments []model.LlmComment, warnings []agent.AgentWarning, filesReviewed, inputTokens, outputTokens, totalT
cmd/opencodereview/output.go:373
↓ 5 callersFunctionoutputTempFiles
--- lazyFileWriter ---
cmd/opencodereview/output_file_test.go:209
↓ 5 callersFunctionoutputTextWithWarnings
(comments []model.LlmComment, warnings []agent.AgentWarning, manifest *session.RunManifest, out io.Writer)
cmd/opencodereview/output.go:86
↓ 5 callersFunctionparseBranchList
* Parses `git branch -a --format=%(refname)` output. The full refname is used deliberately instead of * `%(refname:short)`: git abbreviates `refs/rem
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:99
↓ 5 callersMethodparseEnvBlock
Takes the key=value lines between the two delimiter markers in the login shell's `env` output. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ShellEnv.kt:36
↓ 5 callersFunctionparseModelList
* Parses the user input for the models field: try a JSON array first, falling back to comma splitting * when parsing fails or the value is not an arr
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigDraft.kt:75
↓ 5 callersFunctionparseNonNegInt
(val, defaultVal)
scripts/github-actions/post-review-comments.js:1908
↓ 5 callersFunctionparseShellRC
(path, modelOverride string)
internal/llm/resolver.go:798
↓ 5 callersFunctionpathSelectorRepo
(t *testing.T)
internal/scan/provider_paths_test.go:169
↓ 5 callersFunctionpinDefaultBranches
* Moves `origin/HEAD` and the default remote branch it points at ([defaultRemote]) to the front of the list, * right after the first local branch, ke
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:125
↓ 5 callersFunctionpinProductionTerminateDuration
pinProductionTerminateDuration restores the production shutdown budget for tests whose timing must not shift with the race detector's widened budget.
internal/mcp/closeall_test.go:32
↓ 5 callersMethodpost_seq
Drive post() over a sequence of per-call fake_urlopen outcomes. Each outcome is either the raw response body (bytes, returned) or an
examples/gerrit_ci/post_review_test.py:565
↓ 5 callersFunctionpreserveCheckpointMarker
(newBody, oldBody)
scripts/github-actions/post-review-comments.js:3045
↓ 5 callersFunctionprobeVersion
(binary string, timeout time.Duration)
acp/internal/orchestrator/resolve.go:140
↓ 5 callersFunctionpromptContent
Resources select local scan targets; they are never fetched or interpreted as instructions, and never silently narrow a repository-wide review.
acp/internal/adapter/resources.go:24
↓ 5 callersFunctionrawPath
(home, repoDir, sessionID string)
internal/session/raw_writer_test.go:21
↓ 5 callersFunctionread
()
scripts/github-actions/post-review-comments.test.js:6123
↓ 5 callersFunctionreadAllPages
(tag, pageFn, log, maxPages = 50)
scripts/github-actions/post-review-comments.js:2074
↓ 5 callersFunctionrender
(providers []llm.Provider)
internal/llm/gen/main.go:105
↓ 5 callersFunctionrenderedRun
(step, values)
scripts/github-actions/action-contract.test.js:204
↓ 5 callersMethodrequests
()
internal/reviewtask/retry_identity_test.go:56
↓ 5 callersFunctionrequireGitSh
requireGitSh skips when git cannot dispatch aliases (no bundled sh). On a stock Git for Windows install this is always present.
internal/gitcmd/runner_pipe_windows_test.go:145
↓ 5 callersMethodresolveBin
* Resolves a command name to an absolute path. When resolution fails, the original name is returned and left * to [ProcessBuilder] to find on the
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ShellEnv.kt:74
↓ 5 callersFunctionresolveLinesInContent
* Resolve CLI line numbers in [content]: use valid lines directly, otherwise relocate with an [existingCode] sliding-window match. * Return null if b
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/providers/CommentAnchor.kt:103
↓ 5 callersFunctionresolveMaxTokens
resolveMaxTokens applies the per-run CLI override, then the saved setting, and finally the embedded task-template default.
cmd/opencodereview/shared.go:52
↓ 5 callersFunctionrevParse
revParse resolves a ref to its full SHA, so a test can spell the same commit a different way.
cmd/opencodereview/review_resume_more_test.go:112
↓ 5 callersMethodreviewMode
()
internal/agent/agent.go:931
↓ 5 callersFunctionreviewModeFromOptions
(opts reviewOptions)
cmd/opencodereview/review_cmd.go:499
↓ 5 callersFunctionreviseAttempt
reviseAttempt applies a client-boundary correction to the last attempt of the logical request identified by ctx. Requests without identity (scan, llm
internal/llm/retry_boundary.go:103
↓ 5 callersMethodrun
(opts: CliRunOptions, cb: SessionCallbacks)
extensions/vscode/src/extension/services/ReviewSession.ts:35
↓ 5 callersFunctionrunChatGPTLogin
(ctx context.Context, out io.Writer)
cmd/opencodereview/chatgpt_auth.go:34
↓ 5 callersMethodrunGit
(ctx context.Context, args ...string)
internal/diff/git.go:733
↓ 5 callersFunctionrunLinksCheck
({ repoRoot = process.cwd(), minLinks = MIN_EXPECTED_LINKS, minFiles = MIN_EXPECTED_LINK_FILES, maxSca
scripts/github-actions/check-plugin-contract.js:883
↓ 5 callersFunctionrunPreview
(cc *commonContext, opts reviewOptions, out io.Writer)
cmd/opencodereview/review_helpers_test.go:20
↓ 5 callersFunctionrunSessionCommentsCompat
runSessionCommentsCompat provides test compatibility for old-style runSessionComments([]string{...}) calls.
cmd/opencodereview/compat_test.go:99
↓ 5 callersFunctionrunShell
(script, env, fixture)
scripts/github-actions/action-contract.test.js:280
↓ 5 callersFunctionrunWorkspaceResumeReview
runWorkspaceResumeReview drives a workspace review through the CLI. An empty resumeID starts a fresh run; otherwise it resumes that session.
cmd/opencodereview/workspace_resume_e2e_test.go:154
↓ 5 callersFunctionsanitizeMarkdown
(s string)
cmd/opencodereview/background_file.go:116
↓ 5 callersFunctionseedRmSession
(t *testing.T, _ /*home*/, repoDir, sessionID string)
cmd/opencodereview/session_rm_test.go:19
↓ 5 callersFunctionselectDiffMarks
* Select comments for this diff document by both path and side. A diff exposes both documents, so checking the side * prevents duplicate icons: each
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/providers/CommentAnchor.kt:207
↓ 5 callersMethodselected
selected reports whether the file enters the review's selected set — the same set registerCoverage seals and preview reports as will_review.
internal/agent/selection.go:24
← previousnext →701–800 of 7,128, ranked by callers