MCPcopy Create free account

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

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

↓ 2 callersFunctionloadSummaryFromFile
(path, sessionID, repoDir string)
internal/session/list.go:178
↓ 2 callersFunctionlog
(msg)
examples/gerrit_ci/post_review.py:57
↓ 2 callersFunctionlog
(msg)
examples/gitflic_ci/post_review.py:43
↓ 2 callersFunctionlogRateLimitQuota
(response, tag, log)
scripts/github-actions/post-review-comments.js:1148
↓ 2 callersFunctionlookupPreset
(name: string)
extensions/vscode/src/shared/providers.ts:145
↓ 2 callersMethodmanifestInput
manifestInput builds the frozen input identity per the input-mode field matrix: range carries both requested refs, commit carries only the requested h
internal/agent/agent.go:948
↓ 2 callersFunctionmanifestPaths
manifestPaths returns the old/new paths for identity derivation with the "/dev/null" sentinel (added/deleted files) collapsed to empty, so it never po
internal/agent/agent.go:1084
↓ 2 callersMethodmanualAuthTokenCmd
manualAuthTokenCmd returns the configured llm.auth_token_cmd, which the resolver runs when llm.auth_token is empty. Trimmed for the same reason as api
cmd/opencodereview/provider_tui.go:1136
↓ 2 callersMethodmapOpenAIResponse
mapOpenAIResponse converts the SDK response into ChatResponse.
internal/llm/client.go:688
↓ 2 callersFunctionmaskKey
(key string)
cmd/opencodereview/provider_cmd.go:437
↓ 2 callersFunctionmatchGitignoreBody
matchGitignoreBody reports whether relPath matches a single pattern body — the pattern with any leading "!" already stripped.
internal/diff/git.go:311
↓ 2 callersFunctionmatchProjectRuleEntry
(pr *ProjectRule, path string)
internal/config/rules/system_rules.go:478
↓ 2 callersMethodmergeBase
(root: string, from: string, to: string)
extensions/vscode/src/extension/services/GitService.ts:402
↓ 2 callersMethodmergeWithSystemRule
(path, rule string)
internal/config/rules/system_rules.go:432
↓ 2 callersFunctionmergeWorkspaceFiles
(tracked: FileChange[], untrackedPaths: string[])
extensions/vscode/src/extension/services/gitMap.ts:57
↓ 2 callersFunctionminimumArgs
minimumArgs behaves like cobra.MinimumNArgs(n) but reports too few arguments with the command's own usage information.
cmd/opencodereview/arg_errors.go:34
↓ 2 callersFunctionnewBlockingCompressionClient
(c *llm.RetryCollector)
internal/llmloop/retry_background_test.go:31
↓ 2 callersFunctionnewCommentId
(runTag)
scripts/github-actions/post-review-comments.js:1338
↓ 2 callersFunctionnewJSONLWriter
newJSONLWriter creates and opens a new JSONL writer for the given session.
internal/session/persist.go:44
↓ 2 callersFunctionnewKeyCmd
newKeyCmd builds the OS-specific shell invocation (sh -c on Unix) that runs a credential command under ctx, so its timeout and cancellation are honore
internal/llm/keycmd_unix.go:32
↓ 2 callersFunctionnewResponsesSessionTestServer
newResponsesSessionTestServer returns an httptest server that captures each request's headers and JSON body and responds with a minimal completed resp
internal/llm/responses_client_test.go:721
↓ 2 callersFunctionnewStdoutMetricExporter
newStdoutMetricExporter creates a console metric exporter with pretty-print output.
internal/telemetry/exporter.go:30
↓ 2 callersFunctionnewStdoutTraceExporter
newStdoutTraceExporter creates a console trace exporter with pretty-print output.
internal/telemetry/exporter.go:25
↓ 2 callersFunctionnewThinkingTestRunner
newThinkingTestRunner builds a Runner wired for a full RunPerFile pass: a scripted LLM client, the code_comment tool, and a comment collector.
internal/llmloop/loop_execute_more_test.go:36
↓ 2 callersFunctionnonNegativeMillis
nonNegativeMillis converts d to milliseconds, flooring at zero. Timestamps taken from time.Now carry a monotonic reading, so a real attempt can never
internal/llm/retry_report.go:362
↓ 2 callersFunctionnormalizeScanPaths
(paths []string)
internal/session/resume.go:311
↓ 2 callersFunctionnormalizedCommentCategory
(category string)
internal/viewer/server.go:121
↓ 2 callersFunctionofficialAPIKeyEnvSetHint
(envVar string, hasSavedKey bool)
cmd/opencodereview/provider_tui.go:2547
↓ 2 callersFunctionofficialProviderEnvKeySet
(p llm.Provider)
cmd/opencodereview/provider_tui.go:937
↓ 2 callersMethodonly
(t *testing.T)
internal/agent/retry_identity_test.go:42
↓ 2 callersFunctionotlpSignalURL
otlpSignalURL builds the URL for one signal from the configured endpoint. OTEL_EXPORTER_OTLP_ENDPOINT is defined by the OpenTelemetry specification a
internal/telemetry/exporter.go:69
↓ 2 callersFunctionoutputJSON
(comments []model.LlmComment)
cmd/opencodereview/output.go:310
↓ 2 callersFunctionoutputJSONNoFiles
(traceID string, llmIdentity *jsonLLMIdentity, out io.Writer)
cmd/opencodereview/output.go:608
↓ 2 callersFunctionoutputText
(comments []model.LlmComment)
cmd/opencodereview/output.go:23
↓ 2 callersFunctionoverlapsHistory
(reviewComment, history, threshold = DEFAULT_OVERLAP_THRESHOLD)
scripts/github-actions/post-review-comments.js:992
↓ 2 callersFunctionparseBatchStrategy
parseBatchStrategy normalizes a user-supplied strategy string. Unknown or empty values fall back to BatchNone (safe v1 behavior).
internal/scan/batch.go:28
↓ 2 callersFunctionparseCliResult
(stdout: string)
extensions/vscode/src/extension/services/cliParse.ts:39
↓ 2 callersFunctionparseCommentsInner
(args map[string]any, defaultPath string)
internal/tool/code_comment.go:85
↓ 2 callersFunctionparseConfig
(raw: string)
extensions/vscode/src/extension/services/configParse.ts:30
↓ 2 callersFunctionparseDiffHunkInventory
(patch)
scripts/github-actions/post-review-comments.js:1926
↓ 2 callersFunctionparseEnvBlock
(stdout: string)
extensions/vscode/src/extension/services/shellEnv.ts:9
↓ 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:1924
↓ 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:1892
↓ 2 callersFunctionparseLogLine
(raw: string)
extensions/vscode/src/extension/services/cliParse.ts:68
↓ 2 callersFunctionparseModelListValue
(value string)
cmd/opencodereview/config_cmd.go:724
↓ 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 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 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:203
↓ 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:1786
↓ 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:2813
↓ 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 callersMethodpost
(self, review_input, body=b")]}'\n{}")
examples/gerrit_ci/post_review_test.py:527
↓ 2 callersMethodpost_note
(self, body)
examples/gitlab_ci/post_review.py:862
↓ 2 callersMethodpresentDiff
( left: vscode.Uri, right: vscode.Uri, title: string, )
extensions/vscode/src/extension/services/GitService.ts:359
↓ 2 callersFunctionprintSessionDetail
(w io.Writer, s *session.Summary, items []session.ItemDetail)
cmd/opencodereview/session_cmd.go:270
↓ 2 callersMethodprobeCommand
(bin: string)
extensions/vscode/src/extension/services/CliService.ts:36
↓ 2 callersFunctionprobePathIndex
probePathIndex is like probePath but also returns the index of the matched path.
internal/llm/usage_resolver.go:125
↓ 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 callersMethodreadRaw
()
extensions/vscode/src/extension/services/ConfigService.ts:30
↓ 2 callersFunctionreadWithPacing
(tag, fn, log)
scripts/github-actions/post-review-comments.js:1212
↓ 2 callersMethodrecord
(file: string, line: number, delta: number)
extensions/vscode/src/extension/providers/lineOffset.ts:7
↓ 2 callersFunctionrecordToItem
(rec summaryRecord)
internal/session/list.go:296
↓ 2 callersMethodrecordToolCall
(name string)
internal/llmloop/loop.go:175
↓ 2 callersMethodrefreshModelSelectionAfterAdd
(name string)
cmd/opencodereview/provider_tui.go:2796
↓ 2 callersMethodrefreshWorkspaceFiles
工作区模式仅刷新变更文件,不等待 VS Code Git 扩展,也不拉分支/提交历史。
extensions/vscode/src/extension/services/GitService.ts:146
↓ 2 callersFunctionregisterReviewFlags
registerReviewFlags registers all review command flags on cmd, binding to opts.
cmd/opencodereview/shared_flags.go:202
↓ 2 callersFunctionregisterScanFlags
registerScanFlags registers all scan command flags on cmd, binding to opts.
cmd/opencodereview/shared_flags.go:223
↓ 2 callersFunctionremoveModels
(existing, toRemove []string)
cmd/opencodereview/provider_cmd.go:88
↓ 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:1157
↓ 2 callersFunctionrenderTabBar
(active providerTab)
cmd/opencodereview/provider_tui.go:2124
↓ 2 callersMethodrepoRootFast
通过 git rev-parse 解析仓库根,避免等待 VS Code Git 扩展初始化。
extensions/vscode/src/extension/services/GitService.ts:172
↓ 2 callersFunctionrequireExec
(t *testing.T)
internal/mcp/stdio_test.go:114
↓ 2 callersFunctionrequireGitRepo
requireGitRepo validates that the given directory is part of a git repository.
cmd/opencodereview/review_cmd.go:446
↓ 2 callersMethodresetCustomModelInput
()
cmd/opencodereview/provider_tui.go:3061
↓ 2 callersFunctionresolveBatchSize
(raw)
scripts/github-actions/post-review-comments.js:726
↓ 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:59
↓ 2 callersFunctionresolveConversation
(m manifestConversation)
internal/config/template/template.go:128
↓ 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:45
↓ 2 callersFunctionresolveFromFileContent
resolveFromFileContent scans the new file content line-by-line for consecutive matches of the normalized existing_code.
internal/diff/resolver.go:238
↓ 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:151
↓ 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:1628
↓ 2 callersFunctionresolveLang
(lang string)
internal/config/testconnection/testconnection.go:42
↓ 2 callersFunctionresolveLinesInContent
( content: string, startLine: number, endLine: number, existingCode?: string, )
extensions/vscode/src/extension/providers/commentAnchor.ts:101
↓ 2 callersFunctionresolveThreshold
(threshold)
scripts/github-actions/post-review-comments.js:1011
↓ 2 callersMethodresolveWorkspacePath
(path string)
internal/tool/filereader.go:94
↓ 2 callersFunctionresolve_threshold
(threshold)
examples/gitlab_ci/post_review.py:396
↓ 2 callersMethodresolver
resolver returns the rules Resolver, asserting DetailResolver if available.
cmd/opencodereview/delegate_cmd.go:151
↓ 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 callersFunctionresultToState
(result: CliResult)
extensions/vscode/src/extension/services/ReviewSession.ts:7
↓ 2 callersFunctionresumedFromSession
(resume *session.ResumeState)
internal/scan/agent.go:293
↓ 2 callersFunctionretryOutcomeInfo
(o llm.Outcome)
cmd/opencodereview/output.go:418
↓ 2 callersMethodreviewMode
reviewMode returns the string mode identifier.
cmd/opencodereview/delegate_cmd.go:139
↓ 2 callersFunctionreviewResultError
(runErr error, manifest *session.RunManifest)
cmd/opencodereview/review_cmd.go:310
← previousnext →1,001–1,100 of 4,381, ranked by callers