MCPcopy Create free account

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

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

↓ 5 callersFunctioncopyLlmComments
(in []model.LlmComment)
internal/session/resume.go:353
↓ 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 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:750
↓ 5 callersFunctionexactArgs
Positional-argument validators that replace Cobra's raw count message ("accepts 2 arg(s), received 1") with an actionable one built from metadata the
cmd/opencodereview/arg_errors.go:23
↓ 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:709
↓ 5 callersMethodexecuteSubtask
executeSubtask performs the Plan Phase + Main Loop for a single file. It returns (completed, stop, err): a hard Go error (err) for provider/config/ctx
internal/agent/agent.go:1211
↓ 5 callersFunctionextractFilenameFromURL
extractFilenameFromURL returns the filename part (last path segment) of a URL pattern.
internal/release/asset_naming_test.go:57
↓ 5 callersMethodfilterDiffs
filterDiffs drops diffs that should not be reviewed based on user-configured include/exclude patterns and default extension/path filters.
internal/agent/agent.go:1646
↓ 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:129
↓ 5 callersMethodfindCustomIdx
(name string)
cmd/opencodereview/provider_tui.go:1412
↓ 5 callersFunctionfindMissingTranslations
(changedFiles)
scripts/github-actions/check-translation-sync.js:183
↓ 5 callersFunctiongetChangedFiles
(env, exec = execFileSync)
scripts/github-actions/check-translation-sync.js:224
↓ 5 callersFunctiongetCommitMessage
(repoDir, commit string)
cmd/opencodereview/git.go:27
↓ 5 callersFunctiongitOut
gitOut runs a git command in dir and returns its trimmed stdout, failing the test on error. Used to capture the SHAs a ResolveInput result must match.
internal/diff/git_resolve_test.go:17
↓ 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:1016
↓ 5 callersFunctioninitRepo
(t *testing.T)
internal/gitcmd/runner_test.go:17
↓ 5 callersFunctionisConfigReady
(config: OcrConfig | null)
extensions/vscode/src/shared/configUtils.ts:81
↓ 5 callersMethodisUserAddedModel
(name string)
cmd/opencodereview/provider_tui.go:2737
↓ 5 callersMethodisUserAddedOfficialModel
(name string)
cmd/opencodereview/provider_tui.go:498
↓ 5 callersFunctionloadDelegateContext
(opts delegateOptions)
cmd/opencodereview/delegate_cmd.go:95
↓ 5 callersMethodloadDiffs
loadDiffs populates the diff-related fields.
internal/agent/agent.go:495
↓ 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 callersMethodmanifestItemID
manifestItemID derives the content-independent item_id for a diff, keyed on operation, input mode and the normalized old/new paths. RegisterSelected a
internal/agent/agent.go:1045
↓ 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:883
↓ 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:805
↓ 5 callersFunctionmergeBackground
mergeBackground combines the inline --background value (or an auto-populated commit message) with the content read from --background-file, separated b
cmd/opencodereview/background_file.go:37
↓ 5 callersMethodmodelCount
()
cmd/opencodereview/provider_tui.go:626
↓ 5 callersMethodofficialProviderActiveModel
(p llm.Provider)
cmd/opencodereview/provider_tui.go:241
↓ 5 callersFunctionparentState
parentState builds a resumable parent: a v1 review manifest whose identity is parentIdentity, run on anthropic/claude, with one selected item. mutate
internal/session/resume_identity_test.go:25
↓ 5 callersFunctionparseShellRC
(path, modelOverride string)
internal/llm/resolver.go:755
↓ 5 callersMethodplanEnabled
planEnabled / dedupEnabled / summaryEnabled report whether each optional phase will actually run: template must define it AND the corresponding --no-*
internal/scan/agent.go:84
↓ 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:561
↓ 5 callersFunctionreadRuleFileSafe
readRuleFileSafe reads and validates a rule file. It enforces extension whitelist (.md / .txt / .markdown), a 512 KB size cap, and resolves symlinks b
internal/config/rules/system_rules.go:581
↓ 5 callersMethodresolvedModel
resolvedModel returns the model to persist, falling back to the in-session pick for the provider being finalized when result.model is empty.
cmd/opencodereview/provider_tui.go:99
↓ 5 callersMethodreviewMode
()
internal/agent/agent.go:842
↓ 5 callersFunctionreviewModeFromOptions
(opts reviewOptions)
cmd/opencodereview/review_cmd.go:423
↓ 5 callersFunctionrunSessionCommentsCompat
runSessionCommentsCompat provides test compatibility for old-style runSessionComments([]string{...}) calls.
cmd/opencodereview/compat_test.go:98
↓ 5 callersFunctionsetProviderValue
(cfg *Config, key, value string)
cmd/opencodereview/config_cmd.go:762
↓ 5 callersFunctionsleep
(ms)
scripts/github-actions/post-review-comments.js:1055
↓ 5 callersFunctionsplitPaths
(raw string)
cmd/opencodereview/scan_cmd.go:93
↓ 5 callersFunctionunsetCustomProvider
(configPath, name string)
cmd/opencodereview/config_cmd.go:220
↓ 5 callersFunctionunsetMCPServer
(configPath, name string)
cmd/opencodereview/config_cmd.go:243
↓ 5 callersFunctionuserAgent
(provider string)
internal/llm/client.go:45
↓ 4 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/llmloop/pool.go:141
↓ 4 callersMethodCanonicalConfig
()
internal/config/rules/canonical_config_test.go:17
↓ 4 callersFunctionDefaultConfig
DefaultConfig returns a disabled default configuration.
internal/telemetry/config.go:32
↓ 4 callersMethodDiffs
()
cmd/opencodereview/shared.go:331
↓ 4 callersMethodHasInclude
HasInclude reports whether any include patterns are configured.
internal/config/rules/system_rules.go:217
↓ 4 callersMethodHasPersistence
HasPersistence reports whether this session has a JSONL writer. A false value means no resumable session file exists, even though the run still has it
internal/session/history.go:224
↓ 4 callersFunctionIsReserved
IsReserved reports whether name matches any built-in tool name (including Unknown).
internal/tool/definitions.go:41
↓ 4 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
↓ 4 callersFunctionLoadGitignorePatterns
LoadGitignorePatterns reads and parses .gitignore patterns from the given repository root. Returns nil if the file is missing or unreadable.
internal/diff/gitignore.go:17
↓ 4 callersFunctionNewRemoteClient
NewRemoteClient connects to a remote MCP server via Streamable HTTP transport. Header values may contain $ENV_VAR references which are expanded at run
internal/mcp/client.go:71
↓ 4 callersFunctionNewResumeLineage
NewResumeLineage builds the lineage for an accepted resume of parent. It returns nil when there is nothing to record — no parent, or a parent with no
internal/session/resume_identity.go:168
↓ 4 callersFunctionParseExtraHeaders
ParseExtraHeaders parses a string of comma-separated key=value pairs into a dictionary. Values may be double-quoted to include commas, e.g. X-Forwarde
internal/llm/resolver.go:851
↓ 4 callersMethodProjectSummary
ProjectSummary is the markdown project-level summary produced by scan's PROJECT_SUMMARY_TASK. Empty for review mode and for scans that skipped / faile
cmd/opencodereview/shared.go:342
↓ 4 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:33
↓ 4 callersFunctionRecordFilesReviewed
(ctx context.Context, n int64)
internal/telemetry/metrics.go:87
↓ 4 callersFunctionRecordToolResult
RecordToolResult sets the outcome of a tool execution on the span.
internal/telemetry/span.go:93
↓ 4 callersMethodResumeInfo
ResumeInfo returns resume metadata for output. Nil means this was not a resume run.
internal/scan/agent.go:190
↓ 4 callersMethodReusableItem
ReusableItem returns the checkpoint for fingerprint only if the parent manifest also recorded that fingerprint as completed or reused. The manifest i
internal/session/resume.go:240
↓ 4 callersMethodSessionID
SessionID returns the current scan's persisted session ID. It returns an empty string when no session file exists.
internal/scan/agent.go:177
↓ 4 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:347
↓ 4 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:361
↓ 4 callersFunctionShutdown
Shutdown flushes and shuts down all initialized providers. It should be called before process exit to ensure buffered data is exported.
internal/telemetry/shutdown.go:15
↓ 4 callersFunctionSwap
Swap replaces the stdout writer with replacement and returns a restore function. It lets tests capture output written through Writer(), and lets calle
internal/stdout/stdout.go:57
↓ 4 callersFunctionToToolDef
ToToolDef converts an MCP tool definition to an llm.ToolDef.
internal/mcp/provider.go:70
↓ 4 callersFunctionUseTestSessions
UseTestSessions redirects session persistence to the "test-sessions" subdirectory so that test runs do not pollute the real sessions store. It must b
internal/session/testing.go:11
↓ 4 callersFunctionWithinBase
WithinBase reports whether target is base itself or contained under base.
internal/pathutil/path.go:22
↓ 4 callersMethod_retry
(self, endpoint, data=None, method="GET")
examples/gitlab_ci/post_review.py:824
↓ 4 callersMethod_versions
(self, *triples)
examples/gitlab_ci/post_review_test.py:1306
↓ 4 callersMethodacquire
(ctx context.Context)
internal/gitcmd/runner.go:32
↓ 4 callersFunctionaddRepoFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:13
↓ 4 callersFunctionbatchPaths
(b [][]model.ScanItem)
internal/scan/batch_test.go:21
↓ 4 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
↓ 4 callersFunctionbuildBadgeImage
(comment)
scripts/github-actions/post-review-comments.js:1437
↓ 4 callersFunctionbuildPolicy
({ severityThreshold, categories } = {})
scripts/github-actions/post-review-comments.js:1468
↓ 4 callersFunctionbuildToolRegistry
(collector *tool.CommentCollector, fr *tool.FileReader)
cmd/opencodereview/review_cmd.go:572
↓ 4 callersMethodcancel
()
extensions/vscode/src/extension/services/CliService.ts:161
↓ 4 callersFunctioncaptureConfigStderr
(t *testing.T, fn func())
cmd/opencodereview/config_cmd_test.go:1179
↓ 4 callersFunctioncaptureStderr
captureStderr swaps os.Stderr for a pipe around fn and returns what was written. Output here is tiny, so reading after the writer is closed avoids any
internal/llm/resolver_keycmd_test.go:154
↓ 4 callersFunctioncmt
(path, content string)
internal/scan/dedup_test.go:13
↓ 4 callersFunctioncolorize
colorize wraps s in seq and a reset, or returns s untouched when color is off. Every escape sequence in the text output path is gated through here or
cmd/opencodereview/color.go:78
↓ 4 callersFunctioncomputeRetryDelayMs
(error, attempt)
scripts/github-actions/post-review-comments.js:1082
↓ 4 callersMethodconfig
(self)
examples/gitlab_ci/post_review_test.py:716
↓ 4 callersMethodconfirmDeleteCustomProviderModel
()
cmd/opencodereview/provider_tui.go:2985
↓ 4 callersMethodconfirmDeleteOfficialModel
()
cmd/opencodereview/provider_tui.go:3023
↓ 4 callersMethodcustomProviderActiveModel
(cp customProviderListItem)
cmd/opencodereview/provider_tui.go:233
↓ 4 callersMethoddedupEnabled
()
internal/scan/agent.go:88
↓ 4 callersFunctiondefaultAuthHeader
(protocol string)
internal/llm/resolver.go:801
↓ 4 callersFunctiondescribeStart
(s session.Summary)
cmd/opencodereview/session_cmd.go:412
↓ 4 callersFunctiondiffsFixture
()
internal/diff/relocate_across_files_test.go:36
↓ 4 callersFunctionensureMessagesSuffix
ensureMessagesSuffix appends /v1/messages to base URLs that lack a versioned path.
internal/llm/resolver.go:915
↓ 4 callersFunctionestimateCost
(items []model.ScanItem, planEnabled, dedupEnabled, summaryEnabled bool)
internal/scan/estimate.go:62
↓ 4 callersFunctionestimateDiffFileTokens
estimateDiffFileTokens projects the input+output token cost of reviewing a single diff (PLAN + MAIN_TASK rounds). It mirrors scan.estimateFileTokens b
internal/agent/estimate.go:55
↓ 4 callersMethodexecutePlanPhase
executePlanPhase runs the plan task for a single file, sending template messages with resolved placeholders and collecting the LLM response as plan gu
internal/agent/agent.go:1685
↓ 4 callersFunctionexpandSessionKeyInBody
expandSessionKeyInBody returns a copy of body with SessionKeyTemplateVar replaced by key in every string value, recursing into nested maps and slices.
internal/llm/sessionkey.go:101
↓ 4 callersFunctionexpandSessionKeyInHeaders
expandSessionKeyInHeaders returns a copy of headers with every occurrence of SessionKeyTemplateVar in the values replaced by key. The input map is nev
internal/llm/sessionkey.go:87
← previousnext →401–500 of 4,238, ranked by callers