MCPcopy Create free account

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

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

↓ 2 callersFunctionassertWorkspaceResumeRejected
assertWorkspaceResumeRejected checks that a resume was refused before a child session or LLM request was made: the CLI must return an error mentioning
cmd/opencodereview/workspace_resume_e2e_test.go:177
↓ 2 callersFunctionauthHeaderFormError
(raw string)
cmd/opencodereview/provider_tui.go:1134
↓ 2 callersMethodauthorize
(a attempt, old *Auth)
internal/chatgptauth/oauth.go:138
↓ 2 callersMethodawaitExit
(t *testing.T, timeout time.Duration)
cmd/opencodereview/interrupt_test.go:174
↓ 2 callersMethodawaitLine
(t *testing.T, marker string, timeout time.Duration)
cmd/opencodereview/interrupt_test.go:150
↓ 2 callersMethodbeginManualTokenReplace
beginManualTokenReplace is the manual-tab equivalent of beginAPIKeyReplace.
cmd/opencodereview/provider_tui.go:918
↓ 2 callersMethodblurCPStep
()
cmd/opencodereview/provider_tui.go:1448
↓ 2 callersMethodblurManualStep
()
cmd/opencodereview/provider_tui.go:1782
↓ 2 callersFunctionbranchRefCandidates
(ref: string)
extensions/vscode/src/extension/services/gitMap.ts:114
↓ 2 callersFunctionbrowserCandidates
browserCandidates returns the argv lists to try, in preference order. $BROWSER comes first when set, parsed per the freedesktop convention as Python'
internal/viewer/browser.go:118
↓ 2 callersFunctionbrowserWarnf
browserWarnf emits one warning using the "[ocr] WARNING:" prefix the rest of the codebase uses for non-fatal problems.
internal/viewer/browser.go:47
↓ 2 callersFunctionbuildBadge
buildBadge renders a compact "[category · severity]" tag for a finding. It returns an empty string when neither structured field is present, so text o
cmd/opencodereview/output.go:159
↓ 2 callersFunctionbuildBadge
(comment)
scripts/github-actions/post-review-comments.js:2217
↓ 2 callersMethodbuildChangeFilesExceptGroup
buildChangeFilesExceptGroup returns a formatted list of changed files excluding all group members.
internal/agent/agent.go:1691
↓ 2 callersFunctionbuildCustomCreateSaveEntries
(params: { name: string; protocol: string; url: string; model: string; models: string; apiKey: str
extensions/frontend/src/shared/configUtils.ts:117
↓ 2 callersFunctionbuildDedupCommentsJSON
buildDedupCommentsJSON renders the batch comments as a JSON list with stable c-N ids that the LLM groups by. Only fields the LLM needs to judge simila
internal/scan/agent.go:1049
↓ 2 callersFunctionbuildDiffLines
(comment model.LlmComment)
cmd/opencodereview/output.go:280
↓ 2 callersFunctionbuildEntries
()
extensions/frontend/src/webview/views/ConfigView.tsx:358
↓ 2 callersFunctionbuildFileList
buildFileList renders the change set for the grouping prompt, one file per line, each prefixed with its zero-based index. The index is what the model
internal/agent/grouping.go:255
↓ 2 callersFunctionbuildGroupFilterCommentsJSON
buildGroupFilterCommentsJSON serializes comments with path info for group-level filtering.
internal/agent/agent.go:1969
↓ 2 callersFunctionbuildMessageXML
buildMessageXML serializes msgs into the <message><content> form expected by the MEMORY_COMPRESSION_TASK prompt template.
internal/llmloop/compression.go:225
↓ 2 callersFunctionbuildOfficialSaveEntries
( providerName: string, model: string, apiKey: string, apiKeyChanged: boolean, )
extensions/frontend/src/shared/configUtils.ts:101
↓ 2 callersMethodbuildPage
* Pure string assembly that touches no UI, so it can be unit-tested directly. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/jcef/WebviewHtml.kt:43
↓ 2 callersFunctionbuildPhaseThreeMock
(t *testing.T)
acp/internal/orchestrator/runner_test.go:52
↓ 2 callersFunctionbuildReviewArgs
(input: ReviewInput, repo: string, backgroundFile?: string)
plugins/open-code-review/opencode/open-code-review.ts:79
↓ 2 callersFunctionbuildReviewArgs
(opts: CliRunOptions)
extensions/vscode/src/extension/services/cliParse.ts:6
↓ 2 callersFunctionbuildRunTags
(runId, runAttempt)
scripts/github-actions/post-review-comments.js:1004
↓ 2 callersFunctionbuildUserPrompt
(text string, st *State)
acp/internal/intent/tool.go:129
↓ 2 callersFunctionbuildWorkspaceFiles
(diffHeadOut: string, diffCachedOut: string, untrackedOut: string)
extensions/vscode/src/extension/services/gitMap.ts:77
↓ 2 callersFunctionbuild_badge
Build the ``[category · severity]`` badge (middot U+00B7). Byte-matches the CLI's buildBadge degeneration so review output is consistent acro
examples/gitlab_ci/post_review.py:149
↓ 2 callersMethodcallback
(q url.Values, old *Auth)
internal/chatgptauth/oauth.go:160
↓ 2 callersFunctioncanonicalRemote
canonicalRemote reduces a git remote URL to a stable, credential-free identity string for hashing into repository.identity_sha256, so the same reposit
internal/diff/git.go:497
↓ 2 callersFunctioncaptureBrowserWarnings
captureBrowserWarnings redirects browserWarnf for one test.
internal/viewer/browser_exec_test.go:108
↓ 2 callersFunctioncaptureDelegateStdout
(t *testing.T, fn func())
cmd/opencodereview/delegate_exec_test.go:19
↓ 2 callersFunctioncaptureStderr
(t *testing.T, fn func())
internal/telemetry/events_test.go:65
↓ 2 callersFunctioncaptureStderrForTest
captureStderrForTest captures everything written to os.Stderr during fn.
internal/session/raw_writer_test.go:260
↓ 2 callersFunctioncaptureToolTerminal
(t *testing.T, fn func())
internal/reviewtask/loop_execute_test.go:211
↓ 2 callersFunctioncatalogError
(status int, requestID string, body []byte, auth *Auth)
internal/chatgptauth/api_error.go:60
↓ 2 callersMethodcheckCancelled
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/CliCancellation.kt:24
↓ 2 callersFunctioncheckCorpusFloor
(linkCount, fileCount, minLinks, minFiles)
scripts/github-actions/check-plugin-contract.js:872
↓ 2 callersMethodcheckEnvironment
(force = false)
extensions/vscode/src/extension/services/CliService.ts:61
↓ 2 callersFunctioncheckGitVersion
(getVersion func() ([]byte, error))
internal/gitcmd/version.go:72
↓ 2 callersFunctioncheckMetricErr
checkMetricErr intentionally ignores metric registration errors: telemetry is best-effort and must not interrupt the main flow.
internal/telemetry/metrics.go:81
↓ 2 callersFunctionchunkArray
(items, size)
scripts/github-actions/post-review-comments.js:1054
↓ 2 callersFunctionclamp_line
(n)
examples/gitflic_ci/post_review.py:174
↓ 2 callersFunctionclassifyBoundaryError
classifyBoundaryError classifies an error that only surfaced after the SDK retry loop finished, and reports whether it recognized it at all. The fals
internal/llm/retry_boundary.go:45
↓ 2 callersFunctionclassifyItemError
classifyItemError maps a subtask error to a stable item failure class and a safe, generic reason. It never returns the raw error text (which may embed
internal/agent/agent.go:1212
↓ 2 callersFunctionclassifyMainLoopStop
classifyMainLoopStop maps a non-error, non-completed main-loop stop to an item failure class and a safe reason. Only the configured limits — the max-t
internal/agent/agent.go:1240
↓ 2 callersFunctioncleanupOutputTemp
(file *os.File, path string)
cmd/opencodereview/shared.go:578
↓ 2 callersMethodclear
()
extensions/vscode/src/extension/providers/CommentProvider.ts:314
↓ 2 callersFunctionclient
(pages, comparisons = [])
scripts/github-actions/check-pr-commit-policy.test.js:57
↓ 2 callersFunctioncloneCustomProviderList
(src []customProviderListItem)
cmd/opencodereview/provider_tui.go:1356
↓ 2 callersFunctionclonePending
(p *Pending)
acp/internal/intent/state.go:62
↓ 2 callersMethodcloseAll
()
internal/gitcmd/runner.go:103
↓ 2 callersMethodcloseRead
closeRead unblocks a pending read. It is safe to call repeatedly and concurrently with the reader: closing the file makes Read return.
internal/gitcmd/runner.go:97
↓ 2 callersFunctioncollectCommits
(commits, nodes)
scripts/github-actions/check-pr-commit-policy.js:34
↓ 2 callersFunctioncolorf
colorf formats then colorizes, so call sites need not nest fmt.Sprintf.
cmd/opencodereview/color.go:92
↓ 2 callersFunctioncommandExitCode
(err error)
acp/internal/orchestrator/runner.go:323
↓ 2 callersFunctioncomment_span
Resolve a review comment into a line span tagged single/multi-line.
examples/gitlab_ci/post_review.py:422
↓ 2 callersMethodcommitParents
commitParents returns the parent commit SHAs of ref: zero for a root commit, one for an ordinary commit, and 2+ for a merge. It uses `rev-list --paren
internal/diff/git.go:596
↓ 2 callersFunctioncompareFixture
compareFixture builds a sessions root with the sessions every TestHandleCompare row draws on and returns it. s1 (before) and s2 (after) share one fin
internal/viewer/compare_test.go:165
↓ 2 callersFunctioncomparisonDefinition
(function llm.FunctionDef, workspace bool)
internal/config/toolsconfig/comparison.go:39
↓ 2 callersFunctioncompleteSessionIDsAnywhere
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:152
↓ 2 callersFunctioncompressionSummary
(text string)
internal/llmloop/compression.go:185
↓ 2 callersFunctionconfiguredParser
(opts llm.Options)
acp/cmd/ocr-acp/main.go:72
↓ 2 callersFunctionconfirmDeletion
confirmDeletion reads a yes/no answer; a non-interactive stdin answers no.
cmd/opencodereview/session_cmd.go:663
↓ 2 callersFunctionconsumeStreams
(stdout, stderr io.Reader, limits Limits, emit func(Event))
acp/internal/orchestrator/streams.go:132
↓ 2 callersFunctioncontainsEvent
(events []Event, message string)
acp/internal/orchestrator/runner_test.go:278
↓ 2 callersMethodcontent
()
acp/internal/adapter/presentation/progress_format.go:44
↓ 2 callersFunctioncopyProvider
(p Provider)
internal/llm/providers.go:539
↓ 2 callersFunctioncountCommentsRaw
(raw json.RawMessage)
internal/session/list.go:330
↓ 2 callersFunctioncountDispatchable
(diffs []model.Diff)
internal/agent/agent.go:921
↓ 2 callersFunctioncountLines
countLines returns the number of lines in content. A file without a trailing newline still counts its final line. Empty input → 0.
internal/scan/provider.go:435
↓ 2 callersFunctioncounterpartPaths
(enPath)
scripts/github-actions/check-translation-sync.js:175
↓ 2 callersFunctioncreateHeadingIdResolver
()
pages/src/utils/headingId.ts:42
↓ 2 callersMethodcssVariables
Builds the injected `:root { ... }`. A value that cannot be read falls back to a default * color; this never throws. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/jcef/IdeaTheme.kt:116
↓ 2 callersFunctionctrlBreakUndeliverable
ctrlBreakUndeliverable reports whether err can only mean that a console control event reached no process, which is an expected outcome rather than a c
acp/internal/orchestrator/process/winapi_windows.go:241
↓ 2 callersMethodcursorOnDeletableModel
cursorOnDeletableModel reports whether the model-step cursor is on a row that can be deleted (not on "Enter custom model name...").
cmd/opencodereview/provider_tui.go:509
↓ 2 callersMethodcursorOnUserAddedModel
()
cmd/opencodereview/provider_tui.go:2780
↓ 2 callersMethodcustomAPIKeyForSave
customAPIKeyForSave reports the API key to persist and whether the user edited the field (vs left the masked placeholder untouched).
cmd/opencodereview/provider_tui.go:910
↓ 2 callersFunctiondelegateExamples
(t *testing.T)
internal/delegate/instructions_test.go:93
↓ 2 callersFunctiondelegateGitEnv
()
internal/delegate/instructions_test.go:29
↓ 2 callersFunctiondescribeActiveProvider
(config: OcrConfig | null)
extensions/frontend/src/shared/configUtils.ts:44
↓ 2 callersFunctiondescribeCommentLocation
(reviewComment)
scripts/github-actions/post-review-comments.js:2873
↓ 2 callersMethoddetach
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/CliCancellation.kt:42
↓ 2 callersMethoddetachSidebar
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/review/ReviewProjectService.kt:122
↓ 2 callersFunctiondetectInitialTab
(config: OcrConfig | null)
extensions/frontend/src/shared/configUtils.ts:25
↓ 2 callersFunctiondiffStatus
(d model.Diff)
internal/agent/preview.go:136
↓ 2 callersMethoddiscard
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:176
↓ 2 callersMethoddiscover
(ctx context.Context, d *discovery)
internal/chatgptauth/oauth.go:56
↓ 2 callersMethoddispatchBatch
dispatchBatch fans out the files of a single batch concurrently and blocks until they all finish (or ctx is cancelled). Returns the number of files di
internal/scan/agent.go:677
↓ 2 callersMethoddispose
()
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:54
↓ 2 callersFunctiondownload
(url, maxRedirects = 10)
scripts/install.js:94
↓ 2 callersFunctionemitError
(file, message)
scripts/github-actions/check-translation-sync.js:206
↓ 2 callersFunctionemitGroupingSkipped
emitGroupingSkipped records a partition that was decided without an LLM round trip. Both skip paths report through here so their attribute sets cannot
internal/agent/grouping.go:163
↓ 2 callersMethodemitSync
()
extensions/vscode/src/extension/providers/CommentProvider.ts:43
↓ 2 callersFunctionemitWarning
(file, message)
scripts/github-actions/check-translation-sync.js:211
↓ 2 callersFunctionemitWarning
(file, message, line)
scripts/github-actions/check-plugin-contract.js:742
↓ 2 callersFunctionemptyMarks
()
internal/viewer/static/session.js:188
↓ 2 callersFunctionemptyResponse
()
internal/reviewtask/retry_identity_test.go:62
← previousnext →1,401–1,500 of 7,169, ranked by callers