MCPcopy Create free account

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

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

↓ 7 callersMethodValidateResume
ValidateResume reports whether req may reuse this parent's checkpoints. A mismatch on any input field rejects the whole resume rather than degrading
internal/session/resume_identity.go:52
↓ 7 callersMethodWaitBackground
WaitBackground blocks until every background job started by this Runner has returned. Background memory compression is the only such job, and cancelPe
internal/llmloop/loop.go:99
↓ 7 callersFunctionactiveModelForProvider
(cfg *Config, providerName string, entry ProviderEntry)
cmd/opencodereview/config_cmd.go:954
↓ 7 callersFunctionaliasGit
aliasGit configures a git alias so the spawned descendant inherits git's own stdout descriptor directly. A clean/smudge filter is NOT usable here: gi
internal/gitcmd/runner_pipe_test.go:25
↓ 7 callersFunctionapplyCustomProviderConfig
(configPath string, cfg *Config, result providerTUIResult)
cmd/opencodereview/provider_cmd.go:157
↓ 7 callersMethodapplySessionStart
(rec resumeRecord)
internal/session/resume.go:193
↓ 7 callersMethodawait
(ctx context.Context, deadline time.Time, cmd *exec.Cmd, waited <-chan error)
acp/internal/orchestrator/runner.go:229
↓ 7 callersFunctionclassifyCommentAgainstDiff
(item, diff)
scripts/github-actions/post-review-comments.js:2834
↓ 7 callersMethodclear
Clear all comments and highlights. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/providers/CommentService.kt:201
↓ 7 callersFunctioncustomConfigModelTUI
(t *testing.T, configPath string, models []string)
cmd/opencodereview/provider_tui_funcs_test.go:1085
↓ 7 callersFunctiondecodeReview
(t *testing.T, stdout string)
acp/internal/contract/mock_contract_test.go:77
↓ 7 callersFunctiondispatch
(ctx context.Context, a acp.Agent, method string, params json.RawMessage)
acp/internal/adapter/transport/dispatch.go:14
↓ 7 callersFunctionhandleRepos
(w http.ResponseWriter, r *http.Request, root string)
internal/viewer/handler.go:16
↓ 7 callersFunctionhandleSession
(w http.ResponseWriter, r *http.Request, root, repo, sessionID string)
internal/viewer/handler.go:77
↓ 7 callersFunctioninitRepoWithChange
initRepoWithChange creates a real git repository with one committed file and an uncommitted working-tree modification, returning the repo dir. There i
internal/diff/git_test.go:50
↓ 7 callersFunctioninstallStep
()
scripts/github-actions/action-contract.test.js:220
↓ 7 callersMethodjwt
()
internal/chatgptauth/auth_test.go:173
↓ 7 callersFunctionloadLLMRuntime
loadLLMRuntime reads the app config from the user's default config path (applying the configured language to tpl — defaulting when the config file is
cmd/opencodereview/shared.go:236
↓ 7 callersFunctionmarkdownLabel
(text string)
acp/internal/adapter/presentation/markdown.go:12
↓ 7 callersFunctionmax
(a, b int)
internal/suggestdiff/diff.go:79
↓ 7 callersFunctionnewErrorFixtureClient
These tests cover issue #1042. The SDK extracts an error payload with the gjson path "error", which does not match when a provider array-wraps its err
internal/llm/provider_error_test.go:24
↓ 7 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:27
↓ 7 callersFunctionparseRawConfig
Parses the config file text; blank input or invalid JSON yields an empty draft (semantically "no configuration" for callers). */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigDraft.kt:29
↓ 7 callersFunctionpeekSession
peekSession reads the first record, all review_item records (for comment count), and the last record of a JSONL file.
internal/viewer/store.go:153
↓ 7 callersMethodpost
(ctx context.Context, rawURL string, body any, headers map[string]string)
acp/internal/intent/llm/client.go:203
↓ 7 callersMethodrepoRoot
()
extensions/vscode/src/extension/services/GitService.ts:261
↓ 7 callersFunctionresolveOutdatedThreads
({ github, owner, repo, prNumber, core, log, botLogin, currentSpans = [], dryRun = false, })
scripts/github-actions/post-review-comments.js:1783
↓ 7 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:678
↓ 7 callersFunctionrunReviewCapturingBoth
End-to-end coverage of the #368 P5 wiring: a real review run against the fake Anthropic server, driven through runReview so review_cmd.go's own Freeze
cmd/opencodereview/retry_report_e2e_test.go:25
↓ 7 callersFunctionrunSessionListCompat
runSessionListCompat provides test compatibility for old-style runSessionList([]string{...}) calls.
cmd/opencodereview/compat_test.go:64
↓ 7 callersFunctionrunSessionRmForTest
(t *testing.T, repoFlag, sessionID, stdin string, yes bool)
cmd/opencodereview/session_rm_test.go:337
↓ 7 callersMethodsave
(d *Database)
internal/chatgptauth/store.go:165
↓ 7 callersFunctionseedSession
(t *testing.T, repoDir, sessionID string)
internal/session/delete_test.go:15
↓ 7 callersFunctionsel
(id string)
internal/session/manifest_test.go:18
↓ 7 callersFunctionsetupFileFindRepo
(t *testing.T)
internal/tool/file_find_test.go:92
↓ 7 callersFunctionshouldResolveThread
( thread, { botLogin, currentSpans = [], unlocatablePaths = new Set() } = {} )
scripts/github-actions/post-review-comments.js:1623
↓ 7 callersFunctionskipIfNoSh
skipIfNoSh skips tests that need a POSIX shell and sleep utility.
internal/gitcmd/runner_pipe_test.go:34
↓ 7 callersFunctionstartEnvServer
startEnvServer starts this test binary as the given child MCP server mode.
internal/mcp/closeall_test.go:16
↓ 7 callersFunctionsummarizeSelection
summarizeSelection returns the diffs the run keeps working with, plus the counts Run reports.
internal/agent/selection.go:112
↓ 7 callersMethodsyncSessionModelSelection
()
cmd/opencodereview/provider_tui.go:609
↓ 7 callersMethodtrace
(msg: string)
extensions/vscode/src/extension/services/GitService.ts:20
↓ 7 callersFunctionunmarshalResponsesBody
(t *testing.T, body string)
internal/llm/responses_client_test.go:1073
↓ 7 callersFunctionunquoteGitPath
* Decodes git's quotepath escapes (with `core.quotepath=true`, Chinese paths become `"\344\275\240"`). * Every git invocation passes `-c core.quotepa
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:150
↓ 7 callersFunctionvalidateReviewRefs
validateReviewRefs rejects ref-option injection (#112): any --from/--to/ --commit value must be a real commit ref and must not start with '-'.
cmd/opencodereview/review_cmd.go:533
↓ 7 callersFunctionwithEnv
(env, fn)
scripts/github-actions/post-review-comments.test.js:87
↓ 7 callersMethodwriteRecordLocked
(rec map[string]any)
internal/session/persist.go:127
↓ 6 callersMethodCancel
(_ context.Context, p acp.CancelNotification)
acp/internal/adapter/session.go:46
↓ 6 callersFunctionCompare
Compare buckets the findings of an earlier run (before) against a later one (after). Matching is a multiset match on findingKey, so N identical findin
internal/session/compare.go:35
↓ 6 callersFunctionDeleteSessionAt
DeleteSessionAt removes one session file found by FindSessionsByID.
internal/session/delete.go:204
↓ 6 callersFunctionExeName
ExeName returns name with a Windows .exe suffix when needed.
acp/internal/testutil/stub.go:47
↓ 6 callersMethodIsUserExcluded
IsUserExcluded reports whether the given path matches any user exclude pattern. The check is case-insensitive: both path and pattern are lowercased.
internal/config/rules/system_rules.go:233
↓ 6 callersFunctionLoadDetail
LoadDetail returns the summary plus per-file item records for one session.
internal/session/list.go:155
↓ 6 callersMethodMarkReused
MarkReused records that the item was reused from a parent session checkpoint.
internal/session/manifest.go:755
↓ 6 callersMethodMarkWaived
MarkWaived records that the user explicitly waived this selected item, which must still be in the pre-terminal (selected) state. reason is required an
internal/session/manifest.go:772
↓ 6 callersFunctionNewStub
(t Tool)
internal/tool/stub.go:14
↓ 6 callersFunctionNewToolResultMessage
NewToolResultMessage creates a tool-role message with the given result. Uses the OpenAI Chat Completions format: role="tool" with tool_call_id and pla
internal/llm/client.go:240
↓ 6 callersFunctionParseComments
ParseComments extracts LlmComment entries from tool call arguments without writing to the Collector. Returns parsed comments and an error message (emp
internal/tool/code_comment.go:96
↓ 6 callersFunctionParseEffort
ParseEffort validates a user-supplied effort value.
internal/config/template/effort.go:41
↓ 6 callersFunctionPrintTraceSummary
PrintTraceSummary prints a one-line summary of the review to stdout. If SessionID is non-empty, an "[ocr] Session: <id>" line follows the summary.
internal/telemetry/events.go:85
↓ 6 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
↓ 6 callersFunctionReLocateComment
ReLocateComment calls the LLM to regenerate a precise existing_code snippet when text-based matching fails, then retries ResolveComment with the new s
internal/diff/relocation.go:49
↓ 6 callersMethodRecordReviewItemReused
RecordReviewItemReused records that this run reused a checkpoint from another session.
internal/session/history.go:277
↓ 6 callersMethodRecordWarning
RecordWarning adds a non-fatal warning.
internal/llmloop/loop.go:130
↓ 6 callersFunctionRejectResult
RejectResult refuses the prompt with an actionable hint.
acp/internal/intent/result.go:60
↓ 6 callersFunctionResolveComment
ResolveComment attempts to resolve StartLine/EndLine for a single comment by matching ExistingCode against the diff. Returns true on success.
internal/diff/resolver.go:63
↓ 6 callersMethodReviseLastAttempt
ReviseLastAttempt rewrites the last attempt of m as an error. It is the client-boundary correction for what the observer cannot see: an error surfaci
internal/llm/retry_report.go:381
↓ 6 callersMethodSession
Session returns the session history associated with this Agent.
internal/agent/agent.go:445
↓ 6 callersFunctionSessionKeyFromContext
SessionKeyFromContext returns the session key carried by ctx, or "" when none was set.
internal/llm/sessionkey.go:85
↓ 6 callersFunctionStartLLMSpan
StartLLMSpan creates a span for an LLM request with standard attributes.
internal/telemetry/span.go:109
↓ 6 callersMethodString
String names the strategy for logs and telemetry attributes. An unhandled value reads as "unknown" rather than falling through to a real strategy name
internal/config/template/template.go:100
↓ 6 callersFunctionStripMarkdownFences
StripMarkdownFences removes ```json and ``` wrappers some models add around structured outputs. Exposed so callers (e.g. agent's review-filter post-st
internal/llmloop/compression.go:167
↓ 6 callersMethodToolFailures
ToolFailures returns failed tool calls ordered by their global call number.
internal/llmloop/loop.go:152
↓ 6 callersFunctionValidateSessionID
ValidateSessionID rejects ids that are not a single path element.
internal/session/delete.go:28
↓ 6 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:230
↓ 6 callersMethodWarnings
Warnings returns the warnings recorded by the LLM runner.
internal/scan/agent.go:235
↓ 6 callersMethodWarnings
Warnings returns a copy of the accumulated warnings.
internal/llmloop/loop.go:121
↓ 6 callersMethodWrite
Write appends rec as one JSONL line straight to disk, so a crashed run keeps every record written up to the crash. A failed encode or write drops that
internal/session/raw_writer.go:76
↓ 6 callersFunctionactionScriptSource
(stepName)
scripts/github-actions/post-review-comments.test.js:5039
↓ 6 callersFunctionapplyCLIExcludes
applyCLIExcludes appends user-supplied --exclude patterns (already split into a []string) onto cc.FileFilter.Exclude. Creates the FileFilter if none w
cmd/opencodereview/shared.go:328
↓ 6 callersMethodassert_line
(self, c, want_line)
examples/gerrit_ci/post_review_test.py:60
↓ 6 callersFunctionbuildReviewArgs
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/CliParse.kt:58
↓ 6 callersFunctioncharKey
(c rune)
cmd/opencodereview/provider_tui_test.go:42
↓ 6 callersFunctioncheckPresets
(data []byte, providers []llm.Provider)
internal/llm/gen/check.go:52
↓ 6 callersFunctioncommitFile
commitFile writes content to name and commits it.
cmd/opencodereview/review_resume_more_test.go:101
↓ 6 callersFunctioncompareReadmeStructures
(files)
scripts/github-actions/check-translation-sync.js:129
↓ 6 callersMethodconfig
(self)
examples/gitlab_ci/post_review_test.py:607
↓ 6 callersFunctionconfigOperations
(fixture)
scripts/github-actions/action-contract.test.js:343
↓ 6 callersFunctioncurrentIdeLocale
* Returns the current IDE UI language. `DynamicBundle.getLocale()` reflects the IDE UI language * (zh-CN once the Chinese language pack is installed)
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/model/Locale.kt:41
↓ 6 callersFunctiondecodeSinglePreviewJSON
decodeSinglePreviewJSON asserts that s is exactly one JSON value followed only by the encoder's trailing newline. Automation consuming --format json r
cmd/opencodereview/output_helpers_test.go:871
↓ 6 callersFunctiondescribeStart
(s session.Summary)
cmd/opencodereview/session_cmd.go:845
↓ 6 callersFunctiondescribeStatus
(s session.Summary)
cmd/opencodereview/session_cmd.go:827
↓ 6 callersFunctionensureMetrics
()
internal/telemetry/metrics.go:36
↓ 6 callersMethodenterEditCustomProvider
()
cmd/opencodereview/provider_tui.go:1112
↓ 6 callersFunctionenumeratePathsErr
enumeratePathsErr is enumeratePaths for selectors expected to fail, such as a path that names nothing in the working tree.
internal/scan/provider_paths_test.go:138
↓ 6 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
↓ 6 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
↓ 6 callersFunctionexc
(id string, reason model.ExcludeReason)
internal/session/manifest_test.go:870
↓ 6 callersFunctionexecuteDelegatePreview
(opts delegateOptions)
cmd/opencodereview/delegate_cmd.go:167
↓ 6 callersFunctionextractHeadings
(markdown)
scripts/github-actions/check-translation-sync.js:61
↓ 6 callersFunctionextractSideLines
extractSideLines extracts one side of the diff from a hunk. When newSide is true, returns context+added lines with new-file line numbers. When newSide
internal/diff/resolver.go:199
← previousnext →501–600 of 7,128, ranked by callers