MCPcopy Create free account

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

Functions3,365 in github.com/alibaba/open-code-review

↓ 2 callersFunctionOfName
(name string)
internal/tool/definitions.go:24
↓ 2 callersFunctionParseReviewMode
ParseReviewMode returns the correct ReviewMode based on provided flag values.
internal/tool/filereader.go:31
↓ 2 callersFunctionPhaseEvent
PhaseEvent records a review phase completion with duration and optional error.
internal/telemetry/events.go:50
↓ 2 callersFunctionPrintToolCallError
PrintToolCallError prints a line when a tool fails. Example: [ocr] ✘ file_read "internal/config/rules/loader.go" failed: permission denied
internal/telemetry/events.go:104
↓ 2 callersFunctionPrintToolCallFinished
PrintToolCallFinished prints a line when a tool finishes successfully. Example: [ocr] ✔ file_read "internal/config/rules/loader.go" (12ms)
internal/telemetry/events.go:98
↓ 2 callersMethodProjectSummary
ProjectSummary returns the markdown project-level summary produced after all batches finish. Empty when SkipSummary is set, PROJECT_SUMMARY_TASK is ab
internal/scan/agent.go:111
↓ 2 callersFunctionQuiet
Quiet replaces stdout with io.Discard and returns a cleanup function. Usage: defer stdout.Quiet()() WARNING: Quiet must ONLY be called from the mai
internal/stdout/stdout.go:30
↓ 2 callersMethodRefValue
RefValue returns the git ref that should be used for reading file contents in range or commit mode. Returns ("", false) for workspace mode.
internal/tool/filereader.go:43
↓ 2 callersMethodRemoteIdentity
RemoteIdentity returns a stable, credential-free identity string for the repository's "origin" remote, suitable for hashing into the run manifest's re
internal/diff/git.go:388
↓ 2 callersMethodResumeInfo
()
cmd/opencodereview/shared.go:303
↓ 2 callersFunctionRuleGroupsMarkdown
RuleGroupsMarkdown renders rule groups into a markdown section.
internal/delegate/format.go:9
↓ 2 callersMethodRunSplit
RunSplit executes a git command and returns stdout and stderr separately.
internal/gitcmd/runner.go:69
↓ 2 callersFunctionSessionsRoot
SessionsRoot returns the root directory where session JSONL files are stored.
internal/viewer/store.go:22
↓ 2 callersMethodSetExecution
SetExecution sets the non-secret execution provenance.
internal/session/manifest.go:395
↓ 2 callersMethodSetParentRunID
SetParentRunID links this run to the session it resumed from. It only records the direct parent; the parent's input is never copied into this run.
internal/session/manifest.go:358
↓ 2 callersMethodSetRepository
SetRepository sets the redacted repository identity.
internal/session/manifest.go:370
↓ 2 callersFunctionStartToolSpan
StartToolSpan creates a span for a tool execution with standard attributes.
internal/telemetry/span.go:84
↓ 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:90
↓ 2 callersMethodToolCalls
ToolCalls extracts tool calls from the first choice.
internal/llm/client.go:165
↓ 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:45
↓ 2 callersMethodWarnings
Warnings returns the warnings recorded by the LLM runner.
internal/scan/agent.go:214
↓ 2 callersMethodWriteSessionStart
WriteSessionStart writes the initial session_start record.
internal/session/persist.go:133
↓ 2 callersFunction_api_request_with_retry
Make a GitLab API request with retry on rate-limit and transient errors. Returns a dict:: {'success': bool, 'data': response or None,
examples/gitlab_ci/post_review.py:390
↓ 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. urllib normalizes response header keys to title-case (e.g. 'Retry-After'), but this defensive check also hand
examples/gitlab_ci/post_review.py:363
↓ 2 callersFunctionaddBackgroundFlags
(cmd *cobra.Command, background, backgroundFile *string)
cmd/opencodereview/shared_flags.go:24
↓ 2 callersFunctionaddDiffFlags
(cmd *cobra.Command, from, to, commit *string)
cmd/opencodereview/shared_flags.go:18
↓ 2 callersFunctionaddModelFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:48
↓ 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:489
↓ 2 callersFunctionaddOutputFlags
(cmd *cobra.Command, format, audience *string)
cmd/opencodereview/shared_flags.go:29
↓ 2 callersFunctionaddProviderFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:52
↓ 2 callersFunctionaddToolsFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:56
↓ 2 callersMethodadjustModelIdxAfterDelete
()
cmd/opencodereview/provider_tui.go:1562
↓ 2 callersMethodadjustModelIdxAfterDelete
()
cmd/opencodereview/provider_tui.go:2576
↓ 2 callersMethodadjusted
(file: string, line: number)
extensions/vscode/src/extension/providers/lineOffset.ts:10
↓ 2 callersFunctionallTools
()
internal/tool/definitions.go:33
↓ 2 callersMethodapply
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:138
↓ 2 callersFunctionapplyConfigEntries
(base: RawConfig, entries: ConfigEntry[])
extensions/vscode/src/extension/services/configDraft.ts:141
↓ 2 callersFunctionapplyLanguage
applyLanguage appends instruction to all system-role messages in conv.
internal/config/template/template.go:143
↓ 2 callersFunctionapplyProviderField
(entry *ProviderEntry, field, key, value string)
cmd/opencodereview/config_cmd.go:513
↓ 2 callersFunctionapplyProviderField
(entry: RawProviderEntry, field: string, value: string)
extensions/vscode/src/extension/services/configDraft.ts:31
↓ 2 callersFunctionapplyRecordToSummary
(s *Summary, rec summaryRecord)
internal/session/list.go:207
↓ 2 callersMethodapplyResume
(diffs []model.Diff)
internal/agent/agent.go:676
↓ 2 callersFunctionapplySessionEnd
(summary *SessionSummary, rec map[string]any)
internal/viewer/store.go:568
↓ 2 callersFunctionasModelTUIModel
(t *testing.T, m tea.Model)
cmd/opencodereview/provider_tui_funcs_test.go:998
↓ 2 callersFunctionauthHeaderFormError
(raw string)
cmd/opencodereview/provider_tui.go:1039
↓ 2 callersMethodbeginManualTokenReplace
beginManualTokenReplace is the manual-tab equivalent of beginAPIKeyReplace.
cmd/opencodereview/provider_tui.go:883
↓ 2 callersMethodblurCPStep
()
cmd/opencodereview/provider_tui.go:1298
↓ 2 callersMethodblurManualStep
()
cmd/opencodereview/provider_tui.go:1630
↓ 2 callersFunctionbranchRefCandidates
(ref: string)
extensions/vscode/src/extension/services/gitMap.ts:111
↓ 2 callersFunctionbudgetTestTemplate
()
internal/scan/budget_test.go:46
↓ 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:132
↓ 2 callersMethodbuildChangeFilesExcept
buildChangeFilesExcept returns a formatted list of changed files except the given path.
internal/agent/agent.go:1334
↓ 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:921
↓ 2 callersFunctionbuildDiffLines
(comment model.LlmComment)
cmd/opencodereview/output.go:247
↓ 2 callersFunctionbuildEntries
()
extensions/vscode/src/webview/views/ConfigView.tsx:351
↓ 2 callersFunctionbuildFilterCommentsJSON
buildFilterCommentsJSON serializes comments into a JSON array with generated IDs.
internal/agent/agent.go:1292
↓ 2 callersFunctionbuildMessageXML
buildMessageXML serializes msgs into the <message><content> form expected by the MEMORY_COMPRESSION_TASK prompt template.
internal/llmloop/compression.go:183
↓ 2 callersFunctionbuildReviewArgs
(opts: CliRunOptions)
extensions/vscode/src/extension/services/cliParse.ts:3
↓ 2 callersFunctionbuildRunTags
(runId, runAttempt)
scripts/github-actions/post-review-comments.js:708
↓ 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:840
↓ 2 callersFunctionbuildWorkspaceFiles
(diffHeadOut: string, diffCachedOut: string, untrackedOut: string)
extensions/vscode/src/extension/services/gitMap.ts:74
↓ 2 callersFunctionbuild_badge
Build the category/severity badge for a comment.
examples/gitlab_ci/post_review.py:72
↓ 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:410
↓ 2 callersMethodcheckEnvironment
(force = false)
extensions/vscode/src/extension/services/CliService.ts:52
↓ 2 callersFunctioncheckMetricErr
checkMetricErr intentionally ignores metric registration errors: telemetry is best-effort and must not interrupt the main flow.
internal/telemetry/metrics.go:72
↓ 2 callersFunctionchunkArray
(items, size)
scripts/github-actions/post-review-comments.js:758
↓ 2 callersFunctionclamp_line
(n)
examples/gitflic_ci/post_review.py:170
↓ 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:991
↓ 2 callersMethodclear
()
extensions/vscode/src/extension/providers/CommentProvider.ts:311
↓ 2 callersFunctioncloneCustomProviderList
(src []customProviderListItem)
cmd/opencodereview/provider_tui.go:1211
↓ 2 callersMethodconfirmDeleteCustomModel
()
cmd/opencodereview/provider_tui.go:1477
↓ 2 callersFunctioncopyMessages
copyMessages creates a shallow copy of a message slice.
internal/llmloop/compression.go:199
↓ 2 callersFunctioncopyProvider
(p Provider)
internal/llm/providers.go:358
↓ 2 callersFunctioncountCommentsRaw
(raw json.RawMessage)
internal/session/list.go:290
↓ 2 callersFunctioncountDispatchable
(diffs []model.Diff)
internal/agent/agent.go:716
↓ 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:288
↓ 2 callersMethodcountReviewable
countReviewable counts diffs that will survive all filters and are not pure deletions.
internal/agent/agent.go:1396
↓ 2 callersFunctioncounterpartPaths
(enPath)
scripts/github-actions/check-translation-sync.js:170
↓ 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:474
↓ 2 callersMethodcursorOnUserAddedModel
()
cmd/opencodereview/provider_tui.go:2562
↓ 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:875
↓ 2 callersFunctiondescribeActiveProvider
(config: OcrConfig | null)
extensions/vscode/src/shared/configUtils.ts:37
↓ 2 callersFunctiondescribeCommentLocation
(reviewComment)
scripts/github-actions/post-review-comments.js:1947
↓ 2 callersFunctiondescribeFiles
(s session.Summary)
cmd/opencodereview/session_cmd.go:344
↓ 2 callersFunctiondescribeRange
(s session.Summary)
cmd/opencodereview/session_cmd.go:330
↓ 2 callersFunctiondiffStatus
(d model.Diff)
internal/agent/preview.go:108
↓ 2 callersMethoddiscard
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:173
↓ 2 callersFunctiondisplayMode
(m string)
cmd/opencodereview/session_cmd.go:323
↓ 2 callersMethoddispose
()
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:51
↓ 2 callersFunctiondownload
(url, maxRedirects = 10)
scripts/install.js:90
↓ 2 callersFunctionemitError
(file, message)
scripts/github-actions/check-translation-sync.js:201
↓ 2 callersMethodemitSync
()
extensions/vscode/src/extension/providers/CommentProvider.ts:40
↓ 2 callersFunctionemitWarning
(file, message)
scripts/github-actions/check-translation-sync.js:206
↓ 2 callersFunctionencodingForModel
(modelName string)
internal/llm/client.go:283
↓ 2 callersMethodensureTelemetry
()
cmd/opencodereview/config_cmd.go:769
↓ 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:70
↓ 2 callersFunctionestimateFileTokens
estimateCost projects token usage for reviewing the given items under the supplied scan template. planEnabled / dedupEnabled / summaryEnabled reflect
internal/scan/estimate.go:42
↓ 2 callersFunctionexecuteReview
(opts reviewOptions)
cmd/opencodereview/review_cmd.go:101
↓ 2 callersFunctionextFromPath
(path string)
internal/scan/agent.go:478
← previousnext →601–700 of 3,365, ranked by callers