MCPcopy Create free account

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

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

↓ 4 callersFunctionreadJSONLRecords
(t *testing.T, path string)
internal/session/persist_test.go:113
↓ 4 callersMethodrelease
()
internal/gitcmd/runner.go:44
↓ 4 callersMethodreloadConfigAfterSaveFailure
reloadConfigAfterSaveFailure reloads on-disk config and refreshes derived provider TUI state so the UI matches persisted data after a failed save. Ret
cmd/opencodereview/provider_tui.go:1699
↓ 4 callersMethodreloadConfigAfterSaveFailure
reloadConfigAfterSaveFailure reloads on-disk config so in-memory state matches persisted data after a failed save. Returns false when reload could not
cmd/opencodereview/provider_tui.go:2774
↓ 4 callersFunctionrenderListName
(name string, isCursor bool)
cmd/opencodereview/provider_tui.go:2090
↓ 4 callersMethodrequestCtx
requestCtx returns ctx carrying the identity of one logical LLM request, or ctx unchanged when identity is disabled (scan) or the meta is unusable. C
internal/llmloop/loop.go:73
↓ 4 callersFunctionresolveBackground
resolveBackground determines the effective background from the flag combination. --background-file wins over --background; the commit-message fallback
cmd/opencodereview/background_file.go:50
↓ 4 callersFunctionresolveEnv
(over = {})
scripts/github-actions/post-review-comments.test.js:4179
↓ 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:441
↓ 4 callersFunctionreviewModeString
(from, to, commit string)
internal/agent/util.go:147
↓ 4 callersFunctionreviseAttempt
reviseAttempt applies a client-boundary correction to the last attempt of the logical request identified by ctx. Requests without identity (scan, llm
internal/llm/retry_boundary.go:102
↓ 4 callersFunctionrollbackCfgActiveModel
(cfg *Config, providerName, prevModel string)
cmd/opencodereview/provider_tui.go:479
↓ 4 callersMethodruleConfigSHA256
ruleConfigSHA256 is the deterministic identity of the resolved rule configuration this run operates with: the resolver's effective rule-text layers (c
internal/agent/agent.go:1028
↓ 4 callersFunctionrunConfigSet
(key, value string)
cmd/opencodereview/config_cmd.go:110
↓ 4 callersFunctionrunLLMTest
()
cmd/opencodereview/llm_cmd.go:53
↓ 4 callersFunctionrunScanPreview
(cc *commonContext, scanTpl *template.ScanTemplate, scanPaths []string, outputFormat string, out io.Writer)
cmd/opencodereview/scan_cmd.go:266
↓ 4 callersMethodrun_main_with_captured_poster
(self, env_overrides, result=None)
examples/gitlab_ci/post_review_test.py:1515
↓ 4 callersMethodrun_with_urlopen
(self, fake_urlopen, config=None, discussion=None)
examples/gitlab_ci/post_review_test.py:1090
↓ 4 callersFunctionsarifInvocationFromRun
sarifInvocationFromRun builds the run.invocations entry from the manifest's terminal state and any warnings collected during the review. executionSuc
cmd/opencodereview/sarif.go:314
↓ 4 callersFunctionsarifResultFromComment
sarifResultFromComment maps a single LlmComment to a SARIF result. Field mapping follows FR-3 in the requirements spec: - Path → locations[].
cmd/opencodereview/sarif.go:228
↓ 4 callersMethodscanItemFingerprint
(it model.ScanItem)
internal/scan/agent.go:248
↓ 4 callersFunctionscanTaskDoneResponse
()
internal/scan/coverage_test.go:849
↓ 4 callersMethodselectedModel
()
cmd/opencodereview/provider_tui.go:3067
↓ 4 callersMethodselectedModelFromState
()
cmd/opencodereview/provider_tui.go:1952
↓ 4 callersFunctionsessionJSONLPath
(t *testing.T, repoDir, sessionID string)
internal/session/persist_test.go:133
↓ 4 callersFunctionsetRulesCheckRepo
setRulesCheckRepo points the rulesCheckCmd's package-level --repo flag at repo for the duration of the test, restoring it afterward. runRulesCheck rea
cmd/opencodereview/rules_cmd_test.go:46
↓ 4 callersFunctionsetupFileFindRepo
(t *testing.T)
internal/tool/file_find_test.go:92
↓ 4 callersMethodsourceArtifactSHA256
sourceArtifactSHA256 is the deterministic content identity of this run's selected input: for every non-deleted diff (the same set registerCoverage sea
internal/agent/agent.go:996
↓ 4 callersFunctionstatusBadge
statusBadge renders the per-file status tag. The letter carries the meaning, so with color disabled the bare "[A]"/"[M]"/... form is still unambiguous
cmd/opencodereview/output.go:772
↓ 4 callersMethodsummaryEnabled
()
internal/scan/agent.go:92
↓ 4 callersFunctiontaskDoneResponseWithArguments
(arguments string)
internal/llmloop/loop_test.go:41
↓ 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 callersMethodtriggerAsyncCompression
triggerAsyncCompression kicks off a background compression job for the conversation owning st. A no-op when a job is already pending — the check-and-s
internal/llmloop/compression.go:291
↓ 4 callersFunctionunquoteGitPath
(path: string)
extensions/vscode/src/extension/services/gitMap.ts:130
↓ 4 callersMethodupdateManualForm
(key string, msg tea.KeyPressMsg)
cmd/opencodereview/provider_tui.go:1469
↓ 4 callersFunctionuseSectionTitleStyle
()
pages/src/hooks/useResponsiveStyle.ts:15
↓ 4 callersMethodvalid
valid reports whether c is one of the fixed attempt error classes.
internal/llm/retry_report.go:38
↓ 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:221
↓ 4 callersFunctionwantMeta
(t *testing.T, got capturedRequest, want llm.RequestMeta)
internal/llmloop/retry_identity_test.go:84
↓ 4 callersFunctionwriteCommit
writeCommit writes content to name, stages it, and commits with msg.
internal/diff/git_resolve_test.go:41
↓ 4 callersFunctionwriteOutError
writeOutError surfaces deferred write errors from writers that record them (lazyFileWriter); plain writers such as os.Stdout report nil.
cmd/opencodereview/shared.go:548
↓ 3 callersMethodCallTool
CallTool invokes a tool on the MCP server and returns the text result.
internal/mcp/client.go:158
↓ 3 callersMethodCollectPendingComments
CollectPendingComments awaits any async comment-processing workers and returns the aggregated comments from the collector. Safe to call once per sessi
internal/llmloop/loop.go:201
↓ 3 callersMethodCompletionsWithCtx
CompletionsWithCtx sends a Responses API request and maps the result back to the shared ChatResponse shape. The deferred finalizeRequest is this clie
internal/llm/responses_client.go:90
↓ 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 callersFunctionEffortNames
EffortNames returns the accepted values for shell completion and error messages.
internal/config/template/effort.go:25
↓ 3 callersMethodFinalManifest
FinalManifest returns the frozen manifest stored for this run, or nil when the run produced none (legacy/scan, or a construction failure).
internal/session/history.go:209
↓ 3 callersMethodGet
Get returns the diff text for path.
internal/tool/file_read_diff.go:27
↓ 3 callersFunctionListSessions
ListSessions returns lightweight summaries for all sessions in a repo subdir.
internal/viewer/store.go:111
↓ 3 callersFunctionLoadReviewResumeState
LoadReviewResumeState replays a review session, dropping records it cannot parse. Review reuse is gated on the parent manifest rather than on these li
internal/session/resume.go:107
↓ 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 callersFunctionNewCommentWorkerPool
NewCommentWorkerPool delegates to llmloop.NewCommentWorkerPool.
internal/agent/agent.go:50
↓ 3 callersFunctionNewToolCallMessage
NewToolCallMessage creates an assistant message with text content and tool invocations.
internal/llm/client.go:86
↓ 3 callersFunctionOf
Of returns a checkpoint with data.
internal/tool/response_message.go:27
↓ 3 callersFunctionParseRetryCodes
ParseRetryCodes parses a comma-separated list of HTTP status codes that should trigger retry. Non-4xx codes return an error; SDK-default codes (408, 4
internal/llm/resolver.go:953
↓ 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:107
↓ 3 callersMethodRecordResumeLineage
RecordResumeLineage persists the run's single resume_lineage event. A nil lineage is a non-resumed run and writes nothing.
internal/session/history.go:286
↓ 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:149
↓ 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 callersMethodRunSplit
RunSplit executes a git command and returns stdout and stderr separately.
internal/gitcmd/runner.go:72
↓ 3 callersMethodSessionID
SessionID returns the current review's resumable session ID. It returns an empty string when the session file could not be created, so callers do not
internal/agent/agent.go:415
↓ 3 callersFunctionSessionsRoot
SessionsRoot returns the root directory where session JSONL files are stored.
internal/viewer/store.go:25
↓ 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 callersFunctionStartServer
(addr string)
internal/viewer/server.go:20
↓ 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:131
↓ 3 callersMethodTotalTokensUsed
TotalTokensUsed / TotalInputTokens / ... delegate to the underlying runner.
internal/scan/agent.go:213
↓ 3 callersMethodWrite
(p []byte)
cmd/opencodereview/shared.go:502
↓ 3 callersMethod_mock_response
(self, status=200, body=b'{"comment_biz_id": "abc"}')
examples/codeup_ci/post_review_test.py:138
↓ 3 callersFunction_num
(v)
examples/gitlab_ci/post_review.py:404
↓ 3 callersMethod_poster
(self, config_overrides=None)
examples/gitlab_ci/post_review_test.py:1032
↓ 3 callersMethod_read_with_pacing
Read with proactive pacing, mirroring the GitHub Action's readWithPacing. Reads are cheaper than writes but still consume the primary rate li
examples/gitlab_ci/post_review.py:828
↓ 3 callersFunctionaddExcludeFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:48
↓ 3 callersFunctionaddOutputFlags
(cmd *cobra.Command, format, audience *string)
cmd/opencodereview/shared_flags.go:34
↓ 3 callersFunctionaddRuleFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:19
↓ 3 callersMethodadjustModelIdxAfterDelete
()
cmd/opencodereview/provider_tui.go:2760
↓ 3 callersFunctionapplyProviderDeletions
(configPath string, cfg *Config, names []string)
cmd/opencodereview/provider_cmd.go:69
↓ 3 callersFunctionapplyProviderField
(providerName string, entry *ProviderEntry, field, key, value string)
cmd/opencodereview/config_cmd.go:610
↓ 3 callersFunctionapplyRecordToSummary
(s *Summary, rec summaryRecord)
internal/session/list.go:221
↓ 3 callersFunctionargCountError
argCountError assembles the guidance for a wrong argument count. The count the user supplied is deliberately not echoed back — it adds nothing they do
cmd/opencodereview/arg_errors.go:46
↓ 3 callersFunctionassertNoSessionStore
assertNoSessionStore fails if the session store was created under home. Preview neither runs nor finalizes a review, so it must not open persistence a
cmd/opencodereview/delegate_exec_test.go:109
↓ 3 callersFunctionbudgetAgentTestTemplate
budgetAgentTestTemplate returns a minimal template sufficient to drive dispatchSubtasks without plan/dedup/summary phases.
internal/agent/budget_test.go:53
↓ 3 callersFunctionbudgetTestTemplate
()
internal/scan/budget_test.go:49
↓ 3 callersFunctionbuildToolInputSchema
(params map[string]any)
internal/llm/client.go:1223
↓ 3 callersFunctionclassifyAttempt
classifyAttempt maps an observation to an ErrorClass and FailurePhase. A non-2xx status is the strongest available fact, so it decides the class befo
internal/llm/retry_report.go:182
↓ 3 callersFunctioncloneCustomProvidersMap
(src map[string]ProviderEntry)
cmd/opencodereview/provider_tui.go:1318
↓ 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 callersFunctioncmt
cmt builds a finding compactly: path, start line, category, snippet, content.
internal/session/compare_test.go:15
↓ 3 callersFunctioncolorOn
colorOn reports whether ANSI color should be emitted.
cmd/opencodereview/color.go:73
↓ 3 callersFunctioncompleteSessionIDs
completeSessionIDs offers the persisted session ids for the current repo (or --repo, when already typed) as shell completions, newest first, with a sh
cmd/opencodereview/session_cmd.go:101
↓ 3 callersMethodconfig
(self)
examples/gitlab_ci/post_review_test.py:1227
↓ 3 callersMethodconfigPath
()
extensions/vscode/src/extension/services/ConfigService.ts:16
← previousnext →601–700 of 4,576, ranked by callers