MCPcopy Create free account

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

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

↓ 2 callersFunctionparseDiffHeaderLine
parseDiffHeaderLine extracts the two pathnames from a "diff --git" line, preferring the split a bare header names twice and falling back to parseQuote
internal/diff/parser.go:61
↓ 2 callersFunctionparseDiffHunkInventory
(patch)
scripts/github-actions/post-review-comments.js:2909
↓ 2 callersFunctionparseFilterResponse
parseFilterResponse extracts comment indices from the LLM filter response. Returns a set of 0-based indices. Invalid IDs or out-of-range indices are i
internal/agent/agent.go:2057
↓ 2 callersFunctionparseFilterToolCalls
parseFilterToolCalls extracts comment indices from the filter tool call response. Returns nil if no matching tool call is found, allowing fallback to
internal/agent/agent.go:2025
↓ 2 callersFunctionparseGroupingGroups
parseGroupingGroups parses the grouping LLM response into label + integer indices. It mirrors parseGroupingResponse's one-shot Unmarshal and markdown-
internal/viewer/store.go:404
↓ 2 callersFunctionparseInventory
(raw string)
internal/behaviortask/prepare.go:165
↓ 2 callersFunctionparseLogLine
(raw: string)
extensions/vscode/src/extension/services/cliParse.ts:80
↓ 2 callersFunctionparseModelListValue
(value string)
cmd/opencodereview/config_cmd.go:955
↓ 2 callersFunctionparseOTLPEndpoint
parseOTLPEndpoint strips a http:// or https:// scheme from the endpoint and reports whether the connection should be plaintext (insecure). Scheme matc
internal/telemetry/exporter.go:41
↓ 2 callersFunctionparseRepairedComments
parseRepairedComments attempts the deterministic repair of a serialized `comments` string. It returns (nil, nil) when the text needed no repair, the r
internal/tool/comment_args_repair.go:275
↓ 2 callersFunctionparseRetryAfterMS
parseRetryAfterMS reports the server's retry hint in milliseconds, mirroring the SDKs' parseRetryAfterHeader: Retry-After-Ms wins over Retry-After, ea
internal/llm/retry_observer.go:109
↓ 2 callersFunctionparseRetryDirective
parseRetryDirective reads x-should-retry, the header both SDKs consult ahead of the status code (and without excluding 2xx). Only the two values they
internal/llm/retry_observer.go:85
↓ 2 callersFunctionparseSteps
(text)
scripts/github-actions/action-contract.test.js:68
↓ 2 callersFunctionparseTimeoutEnv
parseTimeoutEnv reads and validates the OCR_LLM_TIMEOUT environment variable. Returns the parsed duration and true if set, or 0 and false if unset/emp
internal/llm/resolver.go:211
↓ 2 callersFunctionparseTimeoutSeconds
(value string)
cmd/opencodereview/config_cmd.go:913
↓ 2 callersFunctionparseUntrackedList
Parses the untracked path list produced by `git ls-files --others --exclude-standard`. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:65
↓ 2 callersFunctionparseUntrackedList
(output: string)
extensions/vscode/src/extension/services/gitMap.ts:52
↓ 2 callersFunctionparseVersionOutput
(output)
scripts/version.js:9
↓ 2 callersMethodpassThroughManualInput
(msg tea.Msg)
cmd/opencodereview/provider_tui.go:1828
↓ 2 callersFunctionpathMatches
pathMatches reports whether f is want itself or lies under it as a directory, so `src` also matches `src/loader.go` but never `srcx.go`.
internal/scan/provider.go:433
↓ 2 callersMethodpersistAddedModelName
persistAddedModelName appends a model to the provider's Models list in config and saves to disk. It does not change the active model.
cmd/opencodereview/provider_tui.go:2861
↓ 2 callersMethodpersistCustomModelName
persistCustomModelName appends a single model name to the active provider's Models list (official or custom) and saves the config. It does not change
cmd/opencodereview/provider_tui.go:814
↓ 2 callersFunctionpickRepoRoot
(roots: string[], workspacePath?: string)
extensions/vscode/src/extension/services/gitMap.ts:90
↓ 2 callersFunctionplaced
(path, line)
scripts/github-actions/post-review-comments.test.js:6931
↓ 2 callersFunctionplaceholders
(text: string)
pages/src/i18n/id.test.ts:10
↓ 2 callersFunctionpluginEntries
(json)
scripts/github-actions/check-plugin-contract.js:125
↓ 2 callersMethodpost
(self, review_input, body=b")]}'\n{}")
examples/gerrit_ci/post_review_test.py:531
↓ 2 callersFunctionprRefsStep
()
scripts/github-actions/action-contract.test.js:373
↓ 2 callersFunctionpreReviewHeader
(totalCount, routedComments, warnings, heading, scopeNote)
scripts/github-actions/post-review-comments.js:2598
↓ 2 callersMethodpresentDiff
( left: vscode.Uri, right: vscode.Uri, title: string, )
extensions/vscode/src/extension/services/GitService.ts:359
↓ 2 callersFunctionpresetProviderNames
Returns a defensive copy for tests and diagnostics. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/Providers.kt:16
↓ 2 callersFunctionprintSessionDetail
(w io.Writer, s *session.Summary, items []session.ItemDetail)
cmd/opencodereview/session_cmd.go:712
↓ 2 callersMethodprobeCommand
(bin: string)
extensions/vscode/src/extension/services/CliService.ts:57
↓ 2 callersFunctionprobeKind
(repoRoot, repoPath)
scripts/github-actions/check-plugin-contract.js:821
↓ 2 callersFunctionprobePathIndex
probePathIndex is like probePath but also returns the index of the matched path.
internal/llm/usage_resolver.go:125
↓ 2 callersFunctionprogressTitle
A short escaped activity label remains visible while the log is collapsed.
acp/internal/adapter/presentation/progress_format.go:59
↓ 2 callersFunctionprojectRoot
(t *testing.T)
internal/release/asset_naming_test.go:25
↓ 2 callersFunctionprotocolIndexIn
(list []string, protocol string)
cmd/opencodereview/provider_tui.go:215
↓ 2 callersFunctionproviderUsesExternalCredentials
(preset llm.Provider, entry ProviderEntry)
cmd/opencodereview/provider_cmd.go:269
↓ 2 callersFunctionquoteDiagnostic
(text string)
acp/internal/intent/llm/diagnostics.go:190
↓ 2 callersFunctionquoteKotlinString
(value string)
internal/llm/gen/kotlin.go:46
↓ 2 callersMethodreadAllText
Recursively read all source files in a subdirectory and combine them for regex scanning. */
extensions/idea/src/test/kotlin/com/alibaba/opencodereview/idea/FrontendSources.kt:34
↓ 2 callersFunctionreadAnalysis
(directory *os.Root, id string)
internal/viewer/analysis.go:68
↓ 2 callersFunctionreadDelegateExamples
(root fs.FS, docs []string)
internal/delegate/instructions_test.go:112
↓ 2 callersFunctionreadEnglishDocIdentifiers
()
pages/english-doc-identifiers.cjs:11
↓ 2 callersFunctionreadPullRequest
(github, variables)
scripts/github-actions/check-pr-commit-policy.js:75
↓ 2 callersMethodreadRaw
()
extensions/vscode/src/extension/services/ConfigService.ts:31
↓ 2 callersFunctionreadSession
(reader io.Reader, sessionID string)
internal/viewer/store.go:496
↓ 2 callersFunctionreadSummary
(path, sessionID, repoDir string, visit func(summaryRecord))
internal/session/list.go:191
↓ 2 callersFunctionreadWithPacing
(tag, fn, log)
scripts/github-actions/post-review-comments.js:2037
↓ 2 callersMethodrecord
(file: string, line: number, delta: number)
extensions/vscode/src/extension/providers/lineOffset.ts:7
↓ 2 callersFunctionrecordToItem
(rec summaryRecord)
internal/session/list.go:322
↓ 2 callersFunctionredactURL
(raw string)
acp/internal/intent/llm/resolve.go:171
↓ 2 callersFunctionreducer
(state: AppState, msg: HostToWebview | LocalAction)
extensions/frontend/src/webview/store.ts:47
↓ 2 callersMethodrefreshModelSelectionAfterAdd
(name string)
cmd/opencodereview/provider_tui.go:2844
↓ 2 callersMethodrefreshWorkspaceFiles
In workspace mode, refresh only changed files without waiting for the Git extension or fetching branches and history.
extensions/vscode/src/extension/services/GitService.ts:146
↓ 2 callersFunctionregisterDelegateFlags
registerDelegateFlags registers all delegate shared flags on cmd, binding to opts.
cmd/opencodereview/shared_flags.go:260
↓ 2 callersMethodregisterExclusions
registerExclusions records selection exclusions, including deletions.
internal/agent/agent.go:1298
↓ 2 callersFunctionremoveModels
(existing, toRemove []string)
cmd/opencodereview/provider_cmd.go:88
↓ 2 callersFunctionremoveReport
(path string)
internal/session/delete.go:99
↓ 2 callersFunctionremoveSessionLock
removeSessionLock drops the sidecar beside a removed session file. The JSONL removal is the operation that matters: a lock still held by a live proces
internal/session/delete.go:250
↓ 2 callersMethodrenderBody
( c: ReviewComment, _index: number, _status: CommentStatus, locateNote?: string, )
extensions/vscode/src/extension/providers/CommentProvider.ts:124
↓ 2 callersMethodrenderMessages
renderMessages substitutes placeholders in the scan template's MainTask for a single scan item. planGuidance is the output of maybeRunPlan and gets su
internal/scan/agent.go:1203
↓ 2 callersFunctionrenderTabBar
(active providerTab)
cmd/opencodereview/provider_tui.go:2173
↓ 2 callersMethodrepoRoot
Repository root; returns null when not inside a git repository. The result is cached and re-resolved after [invalidate]. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitService.kt:72
↓ 2 callersMethodrepoRootFast
Resolve the repository root with git rev-parse without waiting for VS Code Git extension initialization.
extensions/vscode/src/extension/services/GitService.ts:172
↓ 2 callersMethodrequest
(req *http.Request, target any)
internal/chatgptauth/oauth.go:89
↓ 2 callersMethodrequests
()
internal/llmloop/retry_identity_test.go:51
↓ 2 callersMethodrequireDefaultStorage
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/CliService.kt:61
↓ 2 callersFunctionrequireGitRepo
requireGitRepo validates that the given directory is part of a git repository.
cmd/opencodereview/review_cmd.go:557
↓ 2 callersFunctionrequireWhitespaceFilenames
(t *testing.T)
internal/scan/provider_paths_test.go:115
↓ 2 callersMethodresetCustomModelInput
()
cmd/opencodereview/provider_tui.go:3109
↓ 2 callersFunctionresolveBatchSize
(raw)
scripts/github-actions/post-review-comments.js:1042
↓ 2 callersFunctionresolveColor
resolveColor decides whether ANSI sequences may be written to stdout. Precedence, highest first: 1. --color=never → off 2. --color=always
cmd/opencodereview/color.go:60
↓ 2 callersMethodresolveCommit
resolveCommit returns the immutable commit SHA a ref points at, or "" when the ref does not resolve to a commit (e.g. an unborn HEAD, or a bad ref). T
internal/diff/git.go:502
↓ 2 callersMethodresolveDetail
(path string)
internal/config/rules/sniffer.go:28
↓ 2 callersMethodresolveDiffSide
( api: any, root: string, relPath: string, ref: string | null, status: FileChange['status'
extensions/vscode/src/extension/services/GitService.ts:340
↓ 2 callersFunctionresolveEnv
resolveEnv reads environment variables to override defaults. Environment takes highest priority.
internal/telemetry/config.go:46
↓ 2 callersFunctionresolveFromFileContent
resolveFromFileContent scans the new file content line-by-line for consecutive matches of the normalized existing_code.
internal/diff/resolver.go:251
↓ 2 callersFunctionresolveFromHunk
resolveFromHunk tries to find startLine/endLine by matching ExistingCode against hunk lines. It tries the new-side first (context + added lines → new-
internal/diff/resolver.go:155
↓ 2 callersMethodresolveGroupSystemRule
resolveGroupSystemRule merges the rules for every file in a group. Files that resolve to identical rule text share one block. When the group spans mo
internal/agent/agent.go:1765
↓ 2 callersFunctionresolveLang
(lang string)
internal/config/testconnection/testconnection.go:56
↓ 2 callersFunctionresolveLinesInContent
( content: string, startLine: number, endLine: number, existingCode?: string, )
extensions/vscode/src/extension/providers/commentAnchor.ts:101
↓ 2 callersFunctionresolveReviewMaxTools
(templateDefault, cliValue int)
cmd/opencodereview/review_cmd.go:382
↓ 2 callersMethodresolveSelector
resolveSelector returns the repo-relative path the working tree holds at the selector's spelling, or an error wrapping fs.ErrNotExist when nothing is
internal/scan/provider.go:364
↓ 2 callersFunctionresolveThreshold
(threshold)
scripts/github-actions/post-review-comments.js:1401
↓ 2 callersMethodresolveWorkspacePath
(path string)
internal/tool/filereader.go:97
↓ 2 callersFunctionresolve_threshold
(threshold)
examples/gitlab_ci/post_review.py:555
↓ 2 callersMethodresolver
resolver returns the rules Resolver, asserting DetailResolver if available.
cmd/opencodereview/delegate_cmd.go:166
↓ 2 callersMethodresponse
()
internal/llm/responses_client.go:358
↓ 2 callersFunctionresponseRequestID
responseRequestID reads the provider's request identifier. Anthropic sends request-id and OpenAI sends x-request-id; the observer is shared by all thr
internal/llm/retry_observer.go:74
↓ 2 callersFunctionresultStatus
(status string)
acp/internal/adapter/presentation/report.go:37
↓ 2 callersFunctionresultToState
(result: CliResult)
extensions/vscode/src/extension/services/ReviewSession.ts:17
↓ 2 callersFunctionresumeTestContext
(repoDir string)
cmd/opencodereview/review_resume_more_test.go:130
↓ 2 callersFunctionresumedFromSession
(resume *session.ResumeState)
internal/scan/agent.go:309
↓ 2 callersFunctionretryMeta
retryMeta is a minimal valid RequestMeta; RecordAttempt drops anything whose Model, FilePath or TaskType is empty, or whose RequestNo is not positive.
internal/agent/retry_report_freeze_test.go:23
↓ 2 callersFunctionretryOutcomeInfo
(o llm.Outcome)
cmd/opencodereview/output.go:494
↓ 2 callersFunctionreview
(folder, base, head, background, env)
skills/open-code-review/scripts/review_pr.py:151
↓ 2 callersFunctionreviewDuration
(provider ResultProvider, start time.Time)
cmd/opencodereview/analysis.go:203
↓ 2 callersFunctionreviewManifestRequiresNonZeroExit
reviewManifestRequiresNonZeroExit is the shared CLI/SARIF success policy. A partial review caused exclusively by declared budget limits keeps its hist
cmd/opencodereview/review_cmd.go:424
← previousnext →1,801–1,900 of 7,599, ranked by callers