MCPcopy Create free account

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

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

↓ 4 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:789
↓ 4 callersFunctionmockManifest
(state session.TerminalState)
cmd/opencodereview/emit_run_result_test.go:55
↓ 4 callersMethodmodelProviderName
()
cmd/opencodereview/provider_tui.go:397
↓ 4 callersFunctionnKey
()
cmd/opencodereview/provider_tui_test.go:1146
↓ 4 callersFunctionnewModelTUIConfig
(cfg modelTUIConfig)
cmd/opencodereview/provider_tui.go:2500
↓ 4 callersFunctionnormalizeLine
normalizeLine removes leading/trailing whitespace and strips any leading '+' or '-' diff marker.
internal/diff/resolver.go:235
↓ 4 callersFunctionoutputJSONWithWarnings
(comments []model.LlmComment, warnings []agent.AgentWarning, filesReviewed, inputTokens, outputTokens, totalT
cmd/opencodereview/output.go:309
↓ 4 callersFunctionoutputTextWithWarnings
(comments []model.LlmComment, warnings []agent.AgentWarning, manifest *session.RunManifest)
cmd/opencodereview/output.go:64
↓ 4 callersFunctionparseNameStatus
(output: string)
extensions/vscode/src/extension/services/gitMap.ts:161
↓ 4 callersFunctionparseNonNegInt
(val, defaultVal)
scripts/github-actions/post-review-comments.js:1064
↓ 4 callersFunctionpartitionMessages
partitionMessages divides messages into frozen, compress, and active zones. Frozen zone is always messages[0:2]. Active zone preserves the K most rece
internal/llmloop/compression.go:126
↓ 4 callersMethodpost
(msg: ConfigPanelHostToWebview)
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:61
↓ 4 callersFunctionprintVersion
()
cmd/opencodereview/version.go:27
↓ 4 callersMethodread
(self)
examples/gerrit_ci/post_review_test.py:514
↓ 4 callersFunctionreadAllPages
(tag, pageFn, log, maxPages = 50)
scripts/github-actions/post-review-comments.js:1230
↓ 4 callersFunctionreadJSONLRecords
(t *testing.T, path string)
internal/session/persist_test.go:113
↓ 4 callersMethodrelease
()
internal/gitcmd/runner.go:44
↓ 4 callersFunctionrenderListName
(name string, isCursor bool)
cmd/opencodereview/provider_tui.go:1949
↓ 4 callersFunctionresolveBackgroundFilePath
(repoDir, path string)
cmd/opencodereview/background_file.go:25
↓ 4 callersFunctionresolveRepoDir
resolveRepoDir resolves the repo dir for `ocr rules check`. It delegates to resolveWorkingDir(requireGit=true) so it anchors at the git top-level just
cmd/opencodereview/review_cmd.go:323
↓ 4 callersFunctionresolveWorkingDirForSession
resolveWorkingDirForSession accepts an explicit --repo flag value and falls back to the current working directory. Unlike resolveRepoDir it does not r
cmd/opencodereview/session_cmd.go:244
↓ 4 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:88
↓ 4 callersMethodreviewMode
()
internal/agent/agent.go:729
↓ 4 callersFunctionreviewModeString
(from, to, commit string)
internal/agent/util.go:95
↓ 4 callersFunctionrunLLMTest
()
cmd/opencodereview/llm_cmd.go:51
↓ 4 callersMethodselectedModel
()
cmd/opencodereview/provider_tui.go:2886
↓ 4 callersMethodselectedModelFromState
()
cmd/opencodereview/provider_tui.go:1822
↓ 4 callersFunctionsessionJSONLPath
(t *testing.T, repoDir, sessionID string)
internal/session/persist_test.go:133
↓ 4 callersFunctionsetupFileFindRepo
(t *testing.T)
internal/tool/file_find_test.go:92
↓ 4 callersMethodsummaryEnabled
()
internal/scan/agent.go:92
↓ 4 callersFunctiontaskDoneResponse
()
internal/llmloop/loop_test.go:57
↓ 4 callersFunctiontaskDoneResponseWithArguments
(arguments string)
internal/llmloop/loop_test.go:36
↓ 4 callersMethodtransition
transition moves a selected item to a terminal state through the single coverage entry point. Unknown item_id, an invalid failed classification, an em
internal/session/manifest.go:559
↓ 4 callersFunctionunquoteGitPath
(path: string)
extensions/vscode/src/extension/services/gitMap.ts:130
↓ 4 callersFunctionunsetCustomProvider
(configPath, name string)
cmd/opencodereview/config_cmd.go:194
↓ 4 callersFunctionunsetMCPServer
(configPath, name string)
cmd/opencodereview/config_cmd.go:217
↓ 4 callersFunctionuseSectionTitleStyle
()
pages/src/hooks/useResponsiveStyle.ts:15
↓ 4 callersFunctionuserAgent
(provider string)
internal/llm/client.go:31
↓ 4 callersMethodvalid
valid reports whether c is one of the fixed item failure classes.
internal/session/manifest.go:67
↓ 4 callersFunctionvalidateTimeoutSec
validateTimeoutSec converts a config-file timeout (in seconds) to time.Duration. Returns 0 for zero input (use default). Rejects negative values and o
internal/llm/resolver.go:173
↓ 4 callersFunctionwriteCommit
writeCommit writes content to name, stages it, and commits with msg.
internal/diff/git_resolve_test.go:41
↓ 3 callersMethodCallTool
CallTool invokes a tool on the MCP server and returns the text result.
internal/mcp/client.go:158
↓ 3 callersMethodCompletionsWithCtx
CompletionsWithCtx sends a Responses API request and maps the result back to the shared ChatResponse shape.
internal/llm/responses_client.go:77
↓ 3 callersFunctionComputeLineDiff
ComputeLineDiff returns a line-level diff between oldLines and newLines. Uses Myers-style LCS to find common subsequences, then emits context/added/de
internal/suggestdiff/diff.go:27
↓ 3 callersFunctionContentLogging
ContentLogging returns true when content logging is enabled via OCR_CONTENT_LOGGING.
internal/telemetry/provider.go:78
↓ 3 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
↓ 3 callersMethodFrozen
Frozen reports whether Finalize has already run.
internal/session/manifest.go:718
↓ 3 callersMethodGet
Get returns the diff text for path.
internal/tool/file_read_diff.go:27
↓ 3 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
↓ 3 callersFunctionListSessions
ListSessions returns lightweight summaries for all sessions in a repo subdir.
internal/viewer/store.go:111
↓ 3 callersMethodMergeBase
MergeBase returns the computed merge-base commit hash for range mode.
internal/diff/git.go:165
↓ 3 callersFunctionNewClient
NewClient starts an MCP server subprocess (stdio transport), initializes the connection, and caches the list of available tools. The context governs t
internal/mcp/client.go:30
↓ 3 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
↓ 3 callersFunctionNewToolCallMessage
NewToolCallMessage creates an assistant message with text content and tool invocations.
internal/llm/client.go:72
↓ 3 callersFunctionOf
Of returns a checkpoint with data.
internal/tool/response_message.go:27
↓ 3 callersFunctionPrintToolCallStarted
PrintToolCallStarted prints a line when a tool begins execution. Args are summarized as key-value pairs (path, search terms, etc.). Example: [ocr] ▶
internal/telemetry/events.go:90
↓ 3 callersFunctionRecordLLMRequest
(ctx context.Context, model string, dur time.Duration, totalTokens int64, status string)
internal/telemetry/metrics.go:107
↓ 3 callersFunctionRecordToolCall
(ctx context.Context, name string, dur time.Duration, ok bool)
internal/telemetry/metrics.go:127
↓ 3 callersMethodRemoveByPathAndIndices
RemoveByPathAndIndices removes comments for a given path whose per-path index (0-based position among all comments with that path) is in the indices s
internal/tool/comment_collector.go:96
↓ 3 callersMethodResolve
Resolve returns the rule text for a given file path. Patterns with brace expansion like "*.{go,py}" are expanded into "*.go", "*.py". The first match
internal/config/rules/system_rules.go:130
↓ 3 callersFunctionResolveConfig
ResolveConfig builds the final Config by merging defaults, JSON config, and env vars. Precedence: defaults < config.json < environment variables.
internal/telemetry/config.go:113
↓ 3 callersMethodResumeInfo
ResumeInfo returns resume metadata for output. Nil means this was not a resume run.
internal/scan/agent.go:185
↓ 3 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:291
↓ 3 callersMethodSetDiffMap
SetDiffMap replaces the diff snapshot. Must be called before concurrent access begins.
internal/tool/file_read_diff.go:42
↓ 3 callersFunctionShutdownWithTimeout
ShutdownWithTimeout creates a timeout context and calls Shutdown.
internal/telemetry/shutdown.go:36
↓ 3 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
↓ 3 callersMethodSubmitFor
SubmitFor is Submit plus registration under key, so AwaitKey can wait for exactly the units submitted under that key instead of the whole pool. Calle
internal/llmloop/pool.go:74
↓ 3 callersMethodTotalOutputTokens
TotalOutputTokens returns the accumulated completion tokens from all LLM calls.
internal/llmloop/loop.go:69
↓ 3 callersMethodTotalTokensUsed
TotalTokensUsed / TotalInputTokens / ... delegate to the underlying runner.
internal/scan/agent.go:208
↓ 3 callersFunctionTraceIDFromContext
TraceIDFromContext returns the hex-encoded trace ID of the span carried by ctx, or "" if ctx carries no valid span (e.g. telemetry is disabled).
internal/telemetry/span.go:48
↓ 3 callersMethod_mock_response
(self, status=200, body=b'{"comment_biz_id": "abc"}')
examples/codeup_ci/post_review_test.py:138
↓ 3 callersFunctionaddExcludeFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:39
↓ 3 callersFunctionaddRuleFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:17
↓ 3 callersFunctionapplyProviderDeletions
(configPath string, cfg *Config, names []string)
cmd/opencodereview/provider_cmd.go:67
↓ 3 callersFunctionbudgetAgentTestTemplate
budgetAgentTestTemplate returns a minimal template sufficient to drive dispatchSubtasks without plan/dedup/summary phases.
internal/agent/budget_test.go:53
↓ 3 callersFunctionbuildBadge
(comment)
scripts/github-actions/post-review-comments.js:1374
↓ 3 callersFunctionbuildToolRegistry
(collector *tool.CommentCollector, fr *tool.FileReader)
cmd/opencodereview/review_cmd.go:461
↓ 3 callersMethodcancel
()
extensions/vscode/src/extension/services/CliService.ts:161
↓ 3 callersFunctioncaptureStderr
captureStderr captures everything written to os.Stderr during fn. Mirrors captureStdout; used to assert structured usage emitted on the failure path.
cmd/opencodereview/output_helpers_test.go:400
↓ 3 callersMethodclear
()
extensions/vscode/src/extension/providers/lineOffset.ts:20
↓ 3 callersFunctioncloneCustomProvidersMap
(src map[string]ProviderEntry)
cmd/opencodereview/provider_tui.go:1203
↓ 3 callersMethodcloned
cloned returns a copy of the manifest whose coverage slices are owned copies, so every Finalize caller gets an independent, non-aliased snapshot. The
internal/session/manifest.go:881
↓ 3 callersFunctioncompleteEnum
(values ...string)
cmd/opencodereview/shared_flags.go:67
↓ 3 callersMethodconfigPath
()
extensions/vscode/src/extension/services/ConfigService.ts:16
↓ 3 callersMethodconfirmDeleteCustomProviderModel
()
cmd/opencodereview/provider_tui.go:2804
↓ 3 callersFunctioncpProtocolIndex
cpProtocolIndex maps a protocol string (canonical name or legacy alias) to its index in cpProtocols. Unknown / empty values default to the OpenAI Chat
cmd/opencodereview/provider_tui.go:184
↓ 3 callersMethodcustomProviderNameTaken
(name string)
cmd/opencodereview/provider_tui.go:194
↓ 3 callersFunctioncustomStepfunModelTUI
(t *testing.T, configPath string, models []string)
cmd/opencodereview/provider_tui_test.go:1539
↓ 3 callersFunctiondeleteCustomProvider
deleteCustomProvider removes a custom provider from cfg in memory. Returns true if the deleted provider was the active one.
cmd/opencodereview/config_cmd.go:245
↓ 3 callersFunctiondescribeStart
(s session.Summary)
cmd/opencodereview/session_cmd.go:389
↓ 3 callersFunctiondiffs_from
(diff_text)
examples/gitflic_ci/post_review_test.py:153
↓ 3 callersFunctionemptySHA256
emptySHA256 is the canonical digest of an empty input, which hashFields must return for an empty field sequence.
internal/agent/manifest_hash_test.go:18
↓ 3 callersFunctionexcludeToolDef
excludeToolDef returns a copy of defs with any entries whose function name matches name removed. Used by `ocr scan` to hide tools that don't make sens
cmd/opencodereview/shared.go:233
↓ 3 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:1459
↓ 3 callersMethodexecuteToolCall
executeToolCall dispatches a single tool call from the LLM response and records the result in session history. code_comment handling includes optional
internal/llmloop/loop.go:310
↓ 3 callersFunctionextractHeadings
(markdown: string)
pages/src/utils/extractHeadings.ts:7
↓ 3 callersFunctionfileReadToolCallResponse
(callID, args string)
internal/llmloop/loop_test.go:61
↓ 3 callersFunctionfinish
(callback: () => void)
plugins/open-code-review/opencode/open-code-review.ts:145
↓ 3 callersFunctionfirstLine
firstLine returns the first non-empty trimmed line of git output, so a stray trailing newline or an unexpected second line never pollutes a resolved S
internal/diff/git.go:526
↓ 3 callersMethodfocusCPStep
()
cmd/opencodereview/provider_tui.go:1314
← previousnext →401–500 of 3,373, ranked by callers