MCPcopy Create free account

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

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

↓ 2 callersMethodBedrockContext
BedrockContext reports the AWS region and profile a Bedrock client resolved, so callers can show what a request actually used. ok is false for every o
internal/llm/client.go:1361
↓ 2 callersMethodCallTool
CallTool invokes a tool on the MCP server and returns the text result.
internal/mcp/client.go:188
↓ 2 callersMethodCanonicalConfig
()
internal/config/rules/canonical_config_test.go:17
↓ 2 callersFunctionCheckGitVersion
()
internal/gitcmd/version.go:66
↓ 2 callersFunctionCheckSessionRepo
CheckSessionRepo reports whether a session may be operated on from repoDir.
internal/session/delete.go:41
↓ 2 callersFunctionClarifyResult
ClarifyResult asks the user for the missing slots.
acp/internal/intent/result.go:55
↓ 2 callersFunctionComplete
Complete returns a checkpoint signaling task completion.
internal/tool/response_message.go:21
↓ 2 callersFunctionCountTokensForModel
(text string, modelName string)
internal/llm/client.go:576
↓ 2 callersFunctionDisplayAddr
DisplayAddr rewrites a wildcard listen address (empty host, 0.0.0.0, or ::) to a localhost form so printed URLs are always openable in a browser. Non-
internal/viewer/hostguard.go:122
↓ 2 callersFunctionEndSpan
EndSpan ends the span and records error status if present.
internal/telemetry/span.go:57
↓ 2 callersMethodError
()
acp/internal/testutil/stub.go:98
↓ 2 callersFunctionErrorWriter
()
internal/stdout/style.go:15
↓ 2 callersFunctionEventf
Eventf is like Event but includes a message attribute.
internal/telemetry/events.go:33
↓ 2 callersFunctionFail
Fail returns a checkpoint signaling terminal task failure.
internal/tool/response_message.go:24
↓ 2 callersMethodFilesReviewed
FilesReviewed returns the number of items included in this scan.
internal/scan/agent.go:212
↓ 2 callersFunctionFormatDuration
FormatDuration returns a human-readable duration string for console output.
internal/telemetry/events.go:66
↓ 2 callersFunctionGroupRules
GroupRules groups the given file paths by their resolved rule content. Files are placed in the same group only when their source, matched pattern, and
internal/delegate/rulegroup.go:27
↓ 2 callersMethodGroupingPlan
GroupingPlan picks how to partition a change set. Two thresholds cooperate, and they answer different questions. GroupingMinFiles asks whether the par
internal/config/template/template.go:130
↓ 2 callersFunctionHomeConfigPath
HomeConfigPath returns the default path to ~/.opencodereview/config.json.
internal/telemetry/config.go:128
↓ 2 callersFunctionInitEmbeddedLoader
InitEmbeddedLoader configures tiktoken to use embedded BPE data instead of fetching from network. The package init already calls it, so callers only n
internal/llm/embedded_loader.go:34
↓ 2 callersFunctionIntentResult
IntentResult wraps a runnable intent.
acp/internal/intent/result.go:50
↓ 2 callersFunctionIsAllowedExt
IsAllowedExt returns true when the given file extension is in the supported types list. The check is case-insensitive.
internal/config/allowlist/allowed_ext.go:77
↓ 2 callersMethodIsTransition
IsTransition reports whether the resume changed provider or model, which is the condition that required an explicit flag to be accepted.
internal/session/resume_identity.go:209
↓ 2 callersFunctionItemID
ItemID is the single, canonical derivation of a manifest item_id. It is content-independent: it is derived from the operation, the input mode and the
internal/session/manifest.go:201
↓ 2 callersMethodLLMFailures
LLMFailures returns the total number of LLM request failures recorded during this session.
internal/session/history.go:552
↓ 2 callersFunctionLoadDetailAt
LoadDetailAt reads a session found by its saved path, even when its original checkout no longer exists or its metadata does not record a repository.
internal/session/list.go:165
↓ 2 callersFunctionLoadFromJSON
LoadFromJSON merges telemetry settings from a JSON config file if present. This has lower priority than environment variables.
internal/telemetry/config.go:74
↓ 2 callersMethodLoadTiktokenBpe
(tiktokenBpeFile string)
internal/llm/embedded_loader.go:50
↓ 2 callersMethodLogout
(context.Context, acp.LogoutRequest)
acp/internal/adapter/agent.go:55
↓ 2 callersMethodMessage
Message renders the repair as a single warning line.
internal/tool/comment_args_repair.go:266
↓ 2 callersFunctionNewWorkspaceCodeAccess
(current, previous FileReader)
internal/tool/code_access.go:26
↓ 2 callersFunctionOpenCodeReviewPlugin
({ client, worktree })
plugins/open-code-review/opencode/open-code-review.ts:358
↓ 2 callersFunctionOpenLocalFile
OpenLocalFile opens an existing regular file contained within root and returns its canonical path. The caller must close the file on success.
acp/internal/adapter/workspace/files.go:23
↓ 2 callersFunctionParseGitVersion
(s string)
internal/gitcmd/version.go:50
↓ 2 callersFunctionPhaseEvent
PhaseEvent records a review phase completion with duration and optional error.
internal/telemetry/events.go:52
↓ 2 callersMethodPlanRequired
PlanRequired reports whether a group warrants the plan phase based on its churn profile. Two thresholds cooperate: PlanModeLineThreshold gates on the
internal/config/template/template.go:70
↓ 2 callersMethodPreset
Preset returns the knob set for e.
internal/config/template/effort.go:50
↓ 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:117
↓ 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:126
↓ 2 callersFunctionRawLoggingEnabled
()
internal/llm/raw.go:26
↓ 2 callersMethodRawOutputText
()
internal/llm/client.go:335
↓ 2 callersMethodRead
(p []byte)
acp/internal/orchestrator/internal_test.go:19
↓ 2 callersMethodRead
(p []byte)
acp/cmd/ocr-acp/stdio.go:22
↓ 2 callersMethodRecordToolCall
(name string)
internal/llmloop/loop.go:163
↓ 2 callersMethodRecordToolFailure
(number int64, name, taskKey, errMsg string, rec *session.TaskRecord, rawArguments string, duration time.Dura
internal/llmloop/loop.go:174
↓ 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:475
↓ 2 callersFunctionResultRoot
ResultRoot follows the CLI contract: review paths are relative to the Git root; scan paths are relative to --repo, or the process cwd when omitted.
acp/internal/adapter/workspace/root.go:19
↓ 2 callersMethodResumeInfo
()
cmd/opencodereview/shared.go:794
↓ 2 callersMethodReviewRounds
ReviewRounds returns the effective per-group round count, never below 1.
internal/config/template/template.go:57
↓ 2 callersFunctionReviewedPaths
ReviewedPaths returns the paths a run actually decided on, or nil when the run recorded no manifest - nil tells Compare to treat every unmatched befor
internal/session/compare.go:152
↓ 2 callersMethodRoundTrip
(req *http.Request)
internal/llm/chatgpt_transport_test.go:10
↓ 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:462
↓ 2 callersMethodSealed
Sealed reports whether the selected set has been sealed.
internal/session/manifest.go:604
↓ 2 callersMethodSnapshot
Snapshot returns the current count of stored comments. Pair with Since / ReplaceSince to operate on the comments added between two points in time (e.g
internal/tool/comment_collector.go:56
↓ 2 callersFunctionStartToolSpan
StartToolSpan creates a span for a tool execution with standard attributes.
internal/telemetry/span.go:87
↓ 2 callersMethodString
()
internal/gitcmd/version.go:22
↓ 2 callersMethodString
()
acp/internal/orchestrator/resolve.go:208
↓ 2 callersMethodSummary
Summary returns a reproducible one-line description of the endpoint that never contains the token.
acp/internal/intent/llm/resolve.go:167
↓ 2 callersMethodToolCalls
ToolCalls returns per-tool call counts accumulated during scan.
internal/scan/agent.go:238
↓ 2 callersMethodToolCalls
ToolCalls returns a snapshot of the per-tool call counts.
internal/llmloop/loop.go:141
↓ 2 callersMethodToolFailures
ToolFailures returns failed registered-tool calls accumulated during scan.
internal/scan/agent.go:241
↓ 2 callersFunctionValidateOpenMode
ValidateOpenMode rejects unknown --open values instead of silently treating them as auto, so a typo like --open=yes is reported rather than ignored.
internal/viewer/browser.go:30
↓ 2 callersMethodWithRepo
WithRepo returns a copy bound to a session workspace without mutating the shared parser used by other sessions.
acp/internal/intent/parser.go:76
↓ 2 callersFunctionWithWorkspaceSides
(definitions []llm.ToolDef)
internal/config/toolsconfig/comparison.go:19
↓ 2 callersMethodWrite
(p []byte)
acp/internal/orchestrator/streams.go:35
↓ 2 callersMethodWriteSessionStart
WriteSessionStart writes the initial session_start record.
internal/session/persist.go:138
↓ 2 callersFunction_api_request_once
Single GitLab API attempt. Returns a rich result dict (no retry).
examples/gitlab_ci/post_review.py:681
↓ 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:778
↓ 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:729
↓ 2 callersFunction_field
Return the first present, non-empty field among several possible key names.
examples/codeup_ci/post_review.py:120
↓ 2 callersFunction_get_header
Case-insensitive header lookup.
examples/gitlab_ci/post_review.py:660
↓ 2 callersFunction_parse_rate_limit_header
(headers, name)
examples/gitlab_ci/post_review.py:671
↓ 2 callersMethod_print
(self, kind, discussion)
examples/gitlab_ci/post_review.py:1112
↓ 2 callersFunction_truncate_error
Collapse whitespace and cap length so log lines stay readable.
examples/gitlab_ci/post_review.py:1158
↓ 2 callersMethodabort
()
acp/internal/adapter/transport/connection.go:37
↓ 2 callersFunctionaddBackgroundFlags
(cmd *cobra.Command, background, backgroundFile *string)
cmd/opencodereview/shared_flags.go:29
↓ 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:36
↓ 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:63
↓ 2 callersFunctionaddProviderFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:67
↓ 2 callersMethodaddToolResult
(toolName, arguments, result string, ok bool, duration time.Duration)
internal/session/history.go:567
↓ 2 callersMethodadjustModelIdxAfterDelete
()
cmd/opencodereview/provider_tui.go:1712
↓ 2 callersMethodadjusted
(file: string, line: number)
extensions/vscode/src/extension/providers/lineOffset.ts:13
↓ 2 callersFunctionagentPluginNameProblem
(name)
scripts/github-actions/check-plugin-contract.js:584
↓ 2 callersFunctionallTools
()
internal/tool/definitions.go:36
↓ 2 callersFunctionanthropicMessagesURL
(rawURL string)
acp/internal/intent/llm/client.go:238
↓ 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:971
↓ 2 callersMethodapply
(a *Auth, refresh bool)
internal/chatgptauth/oauth.go:199
↓ 2 callersMethodapplyAt
(a *Auth, refresh bool, now time.Time)
internal/chatgptauth/oauth.go:203
↓ 2 callersFunctionapplyConfigEntries
(base: RawConfig, entries: ConfigEntry[])
extensions/vscode/src/extension/services/configDraft.ts:143
↓ 2 callersMethodapplyCreateCustomProvider
()
cmd/opencodereview/provider_tui.go:1234
↓ 2 callersFunctionapplyDedupGroupsWithCheckpoints
( rawJSON string, originals []model.LlmComment, )
internal/scan/agent.go:1078
↓ 2 callersFunctionapplyLanguage
applyLanguage appends instruction to all system-role messages in conv.
internal/config/template/template.go:270
↓ 2 callersFunctionapplyProviderField
(entry: RawProviderEntry, field: string, value: string)
extensions/vscode/src/extension/services/configDraft.ts:34
↓ 2 callersFunctionapplySessionEnd
(summary *SessionSummary, rec map[string]any)
internal/viewer/store.go:791
↓ 2 callersMethodargs
(example, patchPath string)
internal/delegate/instructions_test.go:193
↓ 2 callersFunctionasModelTUIModel
(t *testing.T, m tea.Model)
cmd/opencodereview/provider_tui_funcs_test.go:1114
↓ 2 callersFunctionassertContainsInOrder
(t *testing.T, args []string, vals ...string)
internal/tool/code_search_test.go:453
↓ 2 callersFunctionassertValidation
(value, expectedValid)
scripts/github-actions/action-contract.test.js:361
← previousnext →1,301–1,400 of 7,169, ranked by callers