MCPcopy Create free account

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

Functions4,238 in github.com/alibaba/open-code-review

↓ 2 callersFunctionRuleGroupsMarkdown
RuleGroupsMarkdown renders rule groups into a markdown section.
internal/delegate/format.go:12
↓ 2 callersMethodRunManifest
RunManifest returns the immutable coverage snapshot produced for this review, or nil when manifest construction failed. The scan path deliberately ret
internal/agent/agent.go:423
↓ 2 callersMethodRunSplit
RunSplit executes a git command and returns stdout and stderr separately.
internal/gitcmd/runner.go:72
↓ 2 callersMethodSealed
Sealed reports whether the selected set has been sealed.
internal/session/manifest.go:545
↓ 2 callersFunctionStartToolSpan
StartToolSpan creates a span for a tool execution with standard attributes.
internal/telemetry/span.go:87
↓ 2 callersMethodStream
Stream acquires the semaphore, starts a git command, and passes its stdout as an io.Reader to consume. The semaphore is held for the full duration. co
internal/gitcmd/runner.go:93
↓ 2 callersMethodToolCalls
ToolCalls extracts tool calls from the first choice.
internal/llm/client.go:182
↓ 2 callersMethodToolDefsByPhase
ToolDefsByPhase returns the parsed tool definitions filtered by phase. planOnly=true returns only tools with plan_task:true. planOnly=false returns on
internal/config/toolsconfig/toolsconfig.go:48
↓ 2 callersMethodWarnings
Warnings returns the warnings recorded by the LLM runner.
internal/scan/agent.go:222
↓ 2 callersMethodWriteSessionStart
WriteSessionStart writes the initial session_start record.
internal/session/persist.go:136
↓ 2 callersFunction_api_request_once
Single GitLab API attempt. Returns a rich result dict (no retry).
examples/gitlab_ci/post_review.py:591
↓ 2 callersFunction_api_request_with_retry
Make a GitLab API request with retry on rate-limit and transient errors. Used for reads and note writes (discussions go through the idempotency-a
examples/gitlab_ci/post_review.py:688
↓ 2 callersFunction_compute_retry_delay
Compute a retry delay (seconds) for a failed attempt, or None if not retryable. Order: Retry-After header -> wait-until-reset (primary limit exha
examples/gitlab_ci/post_review.py:639
↓ 2 callersFunction_field
Return the first present, non-empty field among several possible key names.
examples/codeup_ci/post_review.py:116
↓ 2 callersFunction_get_header
Case-insensitive header lookup.
examples/gitlab_ci/post_review.py:570
↓ 2 callersFunction_parse_rate_limit_header
(headers, name)
examples/gitlab_ci/post_review.py:581
↓ 2 callersMethod_print
(self, kind, discussion)
examples/gitlab_ci/post_review.py:1019
↓ 2 callersFunction_truncate_error
Collapse whitespace and cap length so log lines stay readable.
examples/gitlab_ci/post_review.py:1065
↓ 2 callersFunctionaddBackgroundFlags
(cmd *cobra.Command, background, backgroundFile *string)
cmd/opencodereview/shared_flags.go:27
↓ 2 callersFunctionaddColorFlags
addColorFlags registers the color control. It is persistent on the root command so every subcommand inherits identical behavior, and so `ocr --color=n
cmd/opencodereview/color.go:35
↓ 2 callersFunctionaddDiffFlags
(cmd *cobra.Command, from, to, commit *string)
cmd/opencodereview/shared_flags.go:21
↓ 2 callersFunctionaddModelFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:52
↓ 2 callersMethodaddNextMessage
addNextMessage extends the conversation with the assistant message and tool responses, applying three-zone compression at the soft (60%) and warning (
internal/llmloop/loop.go:673
↓ 2 callersFunctionaddProviderFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:56
↓ 2 callersFunctionaddToolsFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:60
↓ 2 callersMethodadjustModelIdxAfterDelete
()
cmd/opencodereview/provider_tui.go:1685
↓ 2 callersMethodadjusted
(file: string, line: number)
extensions/vscode/src/extension/providers/lineOffset.ts:13
↓ 2 callersFunctionallTools
()
internal/tool/definitions.go:36
↓ 2 callersMethodapiKeyCmdForStep
apiKeyCmdForStep returns the api_key_cmd already configured for the provider the API-key step is editing, reading the same config entry loadExistingAP
cmd/opencodereview/provider_tui.go:970
↓ 2 callersMethodapiKeyStepCanConfirm
()
cmd/opencodereview/provider_tui.go:985
↓ 2 callersMethodapply
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:141
↓ 2 callersFunctionapplyConfigEntries
(base: RawConfig, entries: ConfigEntry[])
extensions/vscode/src/extension/services/configDraft.ts:144
↓ 2 callersMethodapplyCreateCustomProvider
()
cmd/opencodereview/provider_tui.go:1224
↓ 2 callersFunctionapplyLanguage
applyLanguage appends instruction to all system-role messages in conv.
internal/config/template/template.go:166
↓ 2 callersFunctionapplyProviderField
(entry: RawProviderEntry, field: string, value: string)
extensions/vscode/src/extension/services/configDraft.ts:34
↓ 2 callersMethodapplyResume
(diffs []model.Diff)
internal/agent/agent.go:789
↓ 2 callersFunctionapplySessionEnd
(summary *SessionSummary, rec map[string]any)
internal/viewer/store.go:573
↓ 2 callersFunctionasModelTUIModel
(t *testing.T, m tea.Model)
cmd/opencodereview/provider_tui_funcs_test.go:1110
↓ 2 callersFunctionassertContainsInOrder
(t *testing.T, args []string, vals ...string)
internal/tool/code_search_test.go:318
↓ 2 callersMethodattemptCounts
attemptCounts snapshots the per-file real HTTP attempt counts.
cmd/opencodereview/retry_fake_llm_test.go:56
↓ 2 callersFunctionauthHeaderFormError
(raw string)
cmd/opencodereview/provider_tui.go:1124
↓ 2 callersMethodbeginManualTokenReplace
beginManualTokenReplace is the manual-tab equivalent of beginAPIKeyReplace.
cmd/opencodereview/provider_tui.go:917
↓ 2 callersMethodblurCPStep
()
cmd/opencodereview/provider_tui.go:1421
↓ 2 callersMethodblurManualStep
()
cmd/opencodereview/provider_tui.go:1755
↓ 2 callersFunctionbranchRefCandidates
(ref: string)
extensions/vscode/src/extension/services/gitMap.ts:114
↓ 2 callersFunctionbuildBadge
buildBadge renders a compact "[category · severity]" tag for a finding. It returns an empty string when neither structured field is present, so text o
cmd/opencodereview/output.go:136
↓ 2 callersFunctionbuildBadge
(comment)
scripts/github-actions/post-review-comments.js:1374
↓ 2 callersMethodbuildChangeFilesExcept
buildChangeFilesExcept returns a formatted list of changed files except the given path.
internal/agent/agent.go:1563
↓ 2 callersFunctionbuildDedupCommentsJSON
buildDedupCommentsJSON renders the batch comments as a JSON list with stable c-N ids that the LLM groups by. Only fields the LLM needs to judge simila
internal/scan/agent.go:944
↓ 2 callersFunctionbuildDiffLines
(comment model.LlmComment)
cmd/opencodereview/output.go:257
↓ 2 callersFunctionbuildEntries
()
extensions/vscode/src/webview/views/ConfigView.tsx:354
↓ 2 callersFunctionbuildFilterCommentsJSON
buildFilterCommentsJSON serializes comments into a JSON array with generated IDs.
internal/agent/agent.go:1488
↓ 2 callersFunctionbuildMessageXML
buildMessageXML serializes msgs into the <message><content> form expected by the MEMORY_COMPRESSION_TASK prompt template.
internal/llmloop/compression.go:186
↓ 2 callersFunctionbuildReviewArgs
(opts: CliRunOptions)
extensions/vscode/src/extension/services/cliParse.ts:6
↓ 2 callersFunctionbuildRunTags
(runId, runAttempt)
scripts/github-actions/post-review-comments.js:711
↓ 2 callersFunctionbuildSummaryCommentsList
buildSummaryCommentsList renders comments as a compact path-anchored markdown list suitable for embedding in the PROJECT_SUMMARY_TASK prompt. Format:
internal/scan/agent.go:861
↓ 2 callersFunctionbuildWorkspaceFiles
(diffHeadOut: string, diffCachedOut: string, untrackedOut: string)
extensions/vscode/src/extension/services/gitMap.ts:77
↓ 2 callersFunctionbuild_badge
Build the ``[category · severity]`` badge (middot U+00B7). Byte-matches the CLI's buildBadge degeneration so review output is consistent acro
examples/gitlab_ci/post_review.py:144
↓ 2 callersFunctioncanonicalRemote
canonicalRemote reduces a git remote URL to a stable, credential-free identity string for hashing into repository.identity_sha256, so the same reposit
internal/diff/git.go:436
↓ 2 callersFunctioncaptureDelegateStdout
(t *testing.T, fn func())
cmd/opencodereview/delegate_exec_test.go:18
↓ 2 callersFunctioncheckAPIKeyRequirement
checkAPIKeyRequirement decides whether a provider selection may be saved with no api_key. It mirrors the resolver's precedence (static api_key -> api_
cmd/opencodereview/provider_cmd.go:243
↓ 2 callersMethodcheckEnvironment
(force = false)
extensions/vscode/src/extension/services/CliService.ts:55
↓ 2 callersFunctioncheckMetricErr
checkMetricErr intentionally ignores metric registration errors: telemetry is best-effort and must not interrupt the main flow.
internal/telemetry/metrics.go:75
↓ 2 callersFunctionchunkArray
(items, size)
scripts/github-actions/post-review-comments.js:761
↓ 2 callersFunctionclamp_line
(n)
examples/gitflic_ci/post_review.py:170
↓ 2 callersFunctionclassifyBoundaryError
classifyBoundaryError classifies an error that only surfaced after the SDK retry loop finished, and reports whether it recognized it at all. The fals
internal/llm/retry_boundary.go:45
↓ 2 callersFunctionclassifyItemError
classifyItemError maps a subtask error to a stable item failure class and a safe, generic reason. It never returns the raw error text (which may embed
internal/agent/agent.go:1111
↓ 2 callersFunctionclassifyStreamError
classifyStreamError classifies a failure that surfaced while consuming an already-established SSE stream. Unlike classifyBoundaryError it always retur
internal/llm/retry_boundary.go:80
↓ 2 callersMethodclear
()
extensions/vscode/src/extension/providers/CommentProvider.ts:314
↓ 2 callersFunctioncloneCustomProviderList
(src []customProviderListItem)
cmd/opencodereview/provider_tui.go:1329
↓ 2 callersFunctioncodeCommentResponse
(reasoning, content string)
internal/llmloop/loop_execute_more_test.go:54
↓ 2 callersFunctioncolorf
colorf formats then colorizes, so call sites need not nest fmt.Sprintf.
cmd/opencodereview/color.go:86
↓ 2 callersFunctioncommitFile
commitFile writes content to name and commits it.
cmd/opencodereview/review_resume_more_test.go:101
↓ 2 callersFunctioncommitIn
(t *testing.T, dir, name, content, msg string)
internal/agent/sealed_input_test.go:39
↓ 2 callersFunctioncompleteSessionIDs
completeSessionIDs offers the persisted session ids for the current repo (or --repo, when already typed) as shell completions, newest first, with a sh
cmd/opencodereview/session_cmd.go:77
↓ 2 callersFunctioncopyMessages
copyMessages creates a shallow copy of a message slice.
internal/llmloop/compression.go:202
↓ 2 callersFunctioncopyProvider
(p Provider)
internal/llm/providers.go:509
↓ 2 callersFunctioncountCommentsRaw
(raw json.RawMessage)
internal/session/list.go:320
↓ 2 callersFunctioncountDispatchable
(diffs []model.Diff)
internal/agent/agent.go:832
↓ 2 callersFunctioncountLines
countLines returns the number of lines in content. A file without a trailing newline still counts its final line. Empty input → 0.
internal/scan/provider.go:291
↓ 2 callersMethodcountReviewable
countReviewable counts diffs that will survive all filters and are not pure deletions.
internal/agent/agent.go:1625
↓ 2 callersFunctioncounterpartPaths
(enPath)
scripts/github-actions/check-translation-sync.js:173
↓ 2 callersMethodcursorOnDeletableModel
cursorOnDeletableModel reports whether the model-step cursor is on a row that can be deleted (not on "Enter custom model name...").
cmd/opencodereview/provider_tui.go:508
↓ 2 callersMethodcursorOnUserAddedModel
()
cmd/opencodereview/provider_tui.go:2746
↓ 2 callersMethodcustomAPIKeyForSave
customAPIKeyForSave reports the API key to persist and whether the user edited the field (vs left the masked placeholder untouched).
cmd/opencodereview/provider_tui.go:909
↓ 2 callersFunctiondecodeSinglePreviewJSON
decodeSinglePreviewJSON asserts that s is exactly one JSON value followed only by the encoder's trailing newline. Automation consuming --format json r
cmd/opencodereview/output_helpers_test.go:627
↓ 2 callersFunctiondescribeActiveProvider
(config: OcrConfig | null)
extensions/vscode/src/shared/configUtils.ts:40
↓ 2 callersFunctiondescribeCommentLocation
(reviewComment)
scripts/github-actions/post-review-comments.js:2017
↓ 2 callersFunctiondiffStatus
(d model.Diff)
internal/agent/preview.go:121
↓ 2 callersMethoddiscard
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:176
↓ 2 callersMethoddispose
()
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:54
↓ 2 callersFunctiondownload
(url, maxRedirects = 10)
scripts/install.js:94
↓ 2 callersFunctionemitError
(file, message)
scripts/github-actions/check-translation-sync.js:204
↓ 2 callersMethodemitSync
()
extensions/vscode/src/extension/providers/CommentProvider.ts:43
↓ 2 callersFunctionemitWarning
(file, message)
scripts/github-actions/check-translation-sync.js:209
↓ 2 callersFunctionemptyResponse
()
internal/llmloop/retry_identity_test.go:55
↓ 2 callersFunctionencodingForModel
(modelName string)
internal/llm/client.go:368
↓ 2 callersMethodensureTelemetry
()
cmd/opencodereview/config_cmd.go:909
↓ 2 callersFunctionerrBedrockNotConfigurable
errBedrockNotConfigurable explains why the two url+token strategies reject the bedrock protocol. Both describe a single HTTP endpoint and carry no pla
internal/llm/resolver.go:241
↓ 2 callersFunctionestimateDiffCost
estimateDiffCost projects token usage for reviewing the given diffs. It is the diff-path analogue of scan.estimateCost and is used for the pre-review
internal/agent/estimate.go:73
← previousnext →801–900 of 4,238, ranked by callers