MCPcopy Create free account

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

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

↓ 2 callersFunctionaddDiffFlags
(cmd *cobra.Command, from, to, commit *string)
cmd/opencodereview/shared_flags.go:23
↓ 2 callersFunctionaddModelFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:61
↓ 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:728
↓ 2 callersFunctionaddOutputPathFlag
addOutputPathFlag registers --output/-o: write results to a UTF-8 file instead of stdout. "" or "-" keeps stdout; a real path is created lazily on the
cmd/opencodereview/shared_flags.go:44
↓ 2 callersFunctionaddProviderFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:65
↓ 2 callersFunctionaddToolsFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:69
↓ 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 callersFunctionapplyDedupGroupsWithCheckpoints
( rawJSON string, originals []model.LlmComment, )
internal/scan/agent.go:1032
↓ 2 callersFunctionapplyLanguage
applyLanguage appends instruction to all system-role messages in conv.
internal/config/template/template.go:205
↓ 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:844
↓ 2 callersFunctionapplySessionEnd
(summary *SessionSummary, rec map[string]any)
internal/viewer/store.go:594
↓ 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 callersFunctionassertValidation
(value, expectedValid)
scripts/github-actions/action-contract.test.js:348
↓ 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:137
↓ 2 callersFunctionbuildBadge
(comment)
scripts/github-actions/post-review-comments.js:1492
↓ 2 callersMethodbuildChangeFilesExceptGroup
buildChangeFilesExceptGroup returns a formatted list of changed files excluding all group members.
internal/agent/agent.go:1582
↓ 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:1003
↓ 2 callersFunctionbuildDiffLines
(comment model.LlmComment)
cmd/opencodereview/output.go:258
↓ 2 callersFunctionbuildEntries
()
extensions/vscode/src/webview/views/ConfigView.tsx:354
↓ 2 callersFunctionbuildFileList
(diffs []model.Diff)
internal/agent/grouping.go:149
↓ 2 callersFunctionbuildGroupFilterCommentsJSON
buildGroupFilterCommentsJSON serializes comments with path info for group-level filtering.
internal/agent/agent.go:1870
↓ 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:821
↓ 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:917
↓ 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 callersFunctioncallGroupingLLM
(ctx context.Context, diffs []model.Diff, client llm.LLMClient, modelName string, task *template.LlmConversati
internal/agent/grouping.go:76
↓ 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:443
↓ 2 callersFunctioncaptureDelegateStdout
(t *testing.T, fn func())
cmd/opencodereview/delegate_exec_test.go:19
↓ 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:871
↓ 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:1166
↓ 2 callersFunctionclassifyMainLoopStop
classifyMainLoopStop maps a non-error, non-completed main-loop stop to an item failure class and a safe reason. Only the configured max-tool-request b
internal/agent/agent.go:1191
↓ 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 callersFunctioncopyMessages
copyMessages creates a shallow copy of a message slice.
internal/llmloop/compression.go:202
↓ 2 callersFunctioncopyProvider
(p Provider)
internal/llm/providers.go:518
↓ 2 callersFunctioncountCommentsRaw
(raw json.RawMessage)
internal/session/list.go:320
↓ 2 callersFunctioncountDispatchable
(diffs []model.Diff)
internal/agent/agent.go:887
↓ 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:1973
↓ 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:2135
↓ 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 callersFunctionencodingForModel
(modelName string)
internal/llm/client.go:368
↓ 2 callersMethodensureTelemetry
()
cmd/opencodereview/config_cmd.go:936
↓ 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
↓ 2 callersFunctionestimateFileTokens
estimateCost projects token usage for reviewing the given items under the supplied scan template. planEnabled / dedupEnabled / summaryEnabled reflect
internal/scan/estimate.go:45
↓ 2 callersFunctionexecuteReviewContext
(ctx context.Context, opts reviewOptions)
cmd/opencodereview/review_cmd.go:112
↓ 2 callersFunctionextFromPath
(path string)
internal/scan/agent.go:498
↓ 2 callersMethodextFromPath
extFromPath returns the file extension with leading dot, lowercased.
internal/agent/agent.go:2019
↓ 2 callersFunctionextractBlockText
(block ContentBlock)
internal/llm/client.go:122
↓ 2 callersFunctionextractCliError
(stderr: string)
extensions/vscode/src/extension/services/cliParse.ts:61
↓ 2 callersFunctionextractCodeBlock
extractCodeBlock extracts the content of the first fenced code block from text. Returns empty string if no code block is found.
internal/diff/relocation.go:99
↓ 2 callersMethodfalsePositive
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:177
↓ 2 callersFunctionfenced_block
Render ``content`` as a fenced code block with a safe fence.
examples/gitlab_ci/post_review.py:244
↓ 2 callersFunctionfileReadRef
fileReadRef picks the ref file_read resolves paths against. A sealed input replaces the ref the user typed with the commit that ref resolved to at ad
cmd/opencodereview/review_cmd.go:416
↓ 2 callersFunctionfilterByPaths
filterByPaths keeps only entries whose path equals a user-supplied path (for exact files) or lies under it (for directories).
internal/scan/provider.go:276
↓ 2 callersMethodfilterScanItems
filterScanItems drops items that should not be reviewed under the standard reviewability rules (binary, extension allowlist, user include/exclude, def
internal/scan/agent.go:428
↓ 2 callersFunctionfindLinesByExistingCode
(content: string, existingCode: string)
extensions/vscode/src/extension/providers/commentAnchor.ts:71
↓ 2 callersFunctionfind_summary_note
Return the newest note carrying the summary marker (or per-run tag). ``tag`` selects the matching needle: when provided, match this run's per
examples/gitlab_ci/post_review.py:1073
↓ 2 callersFunctionfinish
()
scripts/github-actions/action-contract.test.js:75
↓ 2 callersFunctionfinish
(callback: () => void)
plugins/open-code-review/opencode/open-code-review.ts:146
← previousnext →901–1,000 of 4,576, ranked by callers