MCPcopy Create free account

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

Functions3,271 in github.com/alibaba/open-code-review

↓ 1 callersFunctionmake_poster
Return a ``post(discussion)`` callable that POSTs to the GitLab API. Discussions with a ``position`` key are posted as inline comments via ``
examples/gitlab_ci/post_review.py:336
↓ 1 callersFunctionmake_poster
Return a post(discussion) that POSTs to the GitFlic Discussions API.
examples/gitflic_ci/post_review.py:326
↓ 1 callersMethodmapAnthropicResponse
mapAnthropicResponse converts the SDK response into ChatResponse.
internal/llm/client.go:803
↓ 1 callersFunctionmapResponsesFinishReason
mapResponsesFinishReason applies the coarse-grained mapping from decision 8: - completed -> stop - incomplete -> length - failed/cancelled -> error -
internal/llm/responses_client.go:285
↓ 1 callersFunctionmapsEqual
(a, b map[string]string)
internal/llm/resolver_test.go:1046
↓ 1 callersMethodmarkChunkReloadAttempt
()
pages/src/components/ErrorBoundary.tsx:39
↓ 1 callersMethodmarkCompleted
markCompleted/markReused/markFailed are nil-safe manifest transitions. A non-nil error here is an internal invariant violation (a mis-keyed or duplica
internal/agent/agent.go:956
↓ 1 callersMethodmarkFailed
(d model.Diff, class session.FailureClass, reason string)
internal/agent/agent.go:976
↓ 1 callersMethodmarkReused
(d model.Diff)
internal/agent/agent.go:966
↓ 1 callersFunctionmatchGitignorePattern
matchGitignorePattern checks if relPath matches a single .gitignore pattern. Polarity is not this function's concern: a negated pattern reports false
internal/diff/git.go:293
↓ 1 callersMethodmatchProjectRuleDetail
(pr *ProjectRule, path string, source string)
internal/config/rules/system_rules.go:461
↓ 1 callersMethodmergeBase
mergeBase computes the merge-base for range mode. Returns "" for other modes.
cmd/opencodereview/delegate_cmd.go:131
↓ 1 callersFunctionmergeModelLists
(...lists: string[][])
extensions/vscode/src/shared/providers.ts:142
↓ 1 callersFunctionml
(a, b)
scripts/github-actions/post-review-comments.test.js:1303
↓ 1 callersFunctionmockCore
()
scripts/github-actions/post-review-comments.test.js:347
↓ 1 callersFunctionmockReload
()
pages/src/components/ErrorBoundary.test.tsx:9
↓ 1 callersFunctionnewModelTokenizerCache
()
internal/llm/client.go:233
↓ 1 callersFunctionnormalizeCodeCommentCategory
(category string)
internal/tool/code_comment.go:125
↓ 1 callersFunctionnormalizeCodeCommentSeverity
(severity string)
internal/tool/code_comment.go:133
↓ 1 callersFunctionnormalizePath
normalizePath canonicalizes a path for identity derivation: it unifies separators to forward slashes and cleans redundant "." / ".." / duplicate separ
internal/session/manifest.go:213
↓ 1 callersMethodnotifyConfig
(config: OcrConfig | null)
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:62
↓ 1 callersFunctionnum
(v)
scripts/github-actions/post-review-comments.js:1044
↓ 1 callersFunctionofficialAPIKeyEnvSetHintLine
(envVar string, hasSavedKey bool)
cmd/opencodereview/provider_tui.go:2392
↓ 1 callersFunctionofficialAPIKeyRequiredError
(p llm.Provider)
cmd/opencodereview/provider_tui.go:907
↓ 1 callersFunctionofficialProviderEnvKeySet
(p llm.Provider)
cmd/opencodereview/provider_tui.go:903
↓ 1 callersFunctionold_line_for
Map a new-side line number to the corresponding old-side line. Lines added by the diff have no old counterpart, so they are anchored to the c
examples/gitflic_ci/post_review.py:174
↓ 1 callersFunctiononModeChange
(mode: ReviewMode)
extensions/vscode/src/webview/App.tsx:29
↓ 1 callersMethodonSync
(fn: (s: CommentSyncState[]) => void)
extensions/vscode/src/extension/providers/CommentProvider.ts:36
↓ 1 callersMethodopen
()
internal/session/persist.go:98
↓ 1 callersMethodopen
(focus?: ConfigPanelFocus)
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:23
↓ 1 callersMethodopenDiff
在 VSCode 原生 diff 视图中打开某个待审查文件。三种模式各自决定 diff 的左右两侧。
extensions/vscode/src/extension/services/GitService.ts:260
↓ 1 callersMethodopenDiffEditor
(mount: MountableCommentAnchor)
extensions/vscode/src/extension/providers/CommentProvider.ts:238
↓ 1 callersFunctionoptionalPositiveInt
(description: string)
plugins/open-code-review/opencode/open-code-review.ts:252
↓ 1 callersFunctionoptionalString
(description: string)
plugins/open-code-review/opencode/open-code-review.ts:249
↓ 1 callersFunctionout
(name, value)
scripts/github-actions/post-review-comments.js:89
↓ 1 callersFunctionparseDiffHunkRanges
(patch)
scripts/github-actions/post-review-comments.js:1903
↓ 1 callersFunctionparseFrontmatter
(slug: BlogSlug, raw: string)
pages/src/content/blog/index.ts:52
↓ 1 callersFunctionparseMCPHeaders
parseMCPHeaders parses a JSON object of header key-value pairs. Example: {"Authorization": "Bearer $TOKEN", "X-Custom": "value"}
cmd/opencodereview/config_cmd.go:749
↓ 1 callersFunctionparseModelList
(value: string)
extensions/vscode/src/extension/services/configDraft.ts:15
↓ 1 callersFunctionparsePorcelain
(output: string)
extensions/vscode/src/extension/services/gitMap.ts:20
↓ 1 callersFunctionparseProviderEntry
(raw: Record<string, unknown> | undefined)
extensions/vscode/src/extension/services/configParse.ts:3
↓ 1 callersFunctionparseProviderMap
(raw: Record<string, unknown> | undefined)
extensions/vscode/src/extension/services/configParse.ts:18
↓ 1 callersFunctionparseStatValue
(value: string)
pages/src/components/HighlightsSection.tsx:6
↓ 1 callersFunctionparseToolArgs
parseToolArgs unmarshals a tool call's raw JSON arguments, always returning a non-nil map on success: some OpenAI-compatible gateways send "arguments"
internal/llmloop/loop.go:543
↓ 1 callersFunctionparse_args
(argv)
examples/gerrit_ci/post_review.py:323
↓ 1 callersFunctionparse_args
(argv)
examples/gitlab_ci/post_review.py:440
↓ 1 callersFunctionparse_args
(argv=None)
examples/codeup_ci/post_review.py:230
↓ 1 callersFunctionparse_args
(argv)
examples/gitflic_ci/post_review.py:409
↓ 1 callersFunctionparse_diff
Split combined unified diff text into per-file FileDiff sections.
examples/gitflic_ci/post_review.py:120
↓ 1 callersFunctionparse_hunks
Parse one file's unified diff text into a list of Hunks. Lines before the first @@ header (diff --git, ---, +++) are ignored.
examples/gitflic_ci/post_review.py:84
↓ 1 callersMethodpathExistsAtRef
(root: string, ref: string, relPath: string)
extensions/vscode/src/extension/services/GitService.ts:383
↓ 1 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:2629
↓ 1 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:780
↓ 1 callersFunctionpick
(v: string)
extensions/vscode/src/webview/components/Select.tsx:33
↓ 1 callersFunctionpost
(discussion)
examples/gitflic_ci/post_review.py:335
↓ 1 callersFunctionpostSummary
({ github, owner, repo, prNumber, body, sticky, log })
scripts/github-actions/post-review-comments.js:799
↓ 1 callersFunctionpost_global_comment
POST a GLOBAL_COMMENT to a CodeUp change request. Returns (status, body).
examples/codeup_ci/post_review.py:168
↓ 1 callersMethodprepareReviewFileStatus
审查开始前缓存 commit/branch 模式下的文件状态,供评论挂载查询。
extensions/vscode/src/extension/services/GitService.ts:402
↓ 1 callersMethodpresentPatchDiff
最后兜底:原生 diff 失败时才展示补丁文本。
extensions/vscode/src/extension/services/GitService.ts:364
↓ 1 callersMethodpresentRefDiff
分支/提交模式:用 git ref 或空文件构造两侧,走 VS Code 原生 diff 编辑器。
extensions/vscode/src/extension/services/GitService.ts:312
↓ 1 callersMethodpreview
preview runs the agent's file-selection logic and returns the preview result.
cmd/opencodereview/delegate_cmd.go:118
↓ 1 callersFunctionprintSessionTable
(w io.Writer, summaries []session.Summary)
cmd/opencodereview/session_cmd.go:123
↓ 1 callersFunctionprobePath
probePath walks through each candidate path in order, returning the first int64 value found along with true. Returns (0, false) if none match.
internal/llm/usage_resolver.go:116
↓ 1 callersMethodproviderNameForModelStep
()
cmd/opencodereview/provider_tui.go:539
↓ 1 callersFunctionpublish
Post the review result via the injectable ``post(discussion)`` callable. ``diff_refs`` is a dict with ``base_sha``/``start_sha``/``head_sha``
examples/gitlab_ci/post_review.py:95
↓ 1 callersFunctionpublish
Post the review result via the `post(discussion)` callable. `post` receives a discussion dict and must raise on failure. A general comment ca
examples/gitflic_ci/post_review.py:248
↓ 1 callersFunctionpublishBatch
({ chunk, github, owner, repo, prNumber, commitSha, reviewBody, REVIEW_TAG, log, diffCache
scripts/github-actions/post-review-comments.js:365
↓ 1 callersMethodpushConfig
(config: ReturnType<ConfigService['read']>)
extensions/vscode/src/extension/providers/SidebarProvider.ts:32
↓ 1 callersFunctionpushValue
(args: string[], flag: string, value: string | number | undefined)
plugins/open-code-review/opencode/open-code-review.ts:57
↓ 1 callersMethodreadFileAtRef
(ref: string, relPath: string)
extensions/vscode/src/extension/services/GitService.ts:417
↓ 1 callersMethodreadFromDisk
(path string)
internal/tool/filereader.go:79
↓ 1 callersMethodreadFromGitShow
(parentCtx context.Context, path string)
internal/tool/filereader.go:115
↓ 1 callersMethodreadLinesFromDisk
(path string, startLine, maxLines int)
internal/tool/filereader.go:190
↓ 1 callersMethodreadLinesFromGitShow
(ctx context.Context, path string, startLine, maxLines int)
internal/tool/filereader.go:204
↓ 1 callersMethodreadWorkspaceFile
(relPath: string)
extensions/vscode/src/extension/services/GitService.ts:427
↓ 1 callersFunctionread_error_body
(e)
examples/gerrit_ci/post_review.py:309
↓ 1 callersMethodrecordSessionModelPick
(model string)
cmd/opencodereview/provider_tui.go:551
↓ 1 callersFunctionrecordToItem
(rec summaryRecord)
internal/session/list.go:266
↓ 1 callersFunctionreducer
(state: AppState, msg: HostToWebview | LocalAction)
extensions/vscode/src/webview/store.ts:44
↓ 1 callersFunctionreferencedRuleFiles
referencedRuleFiles reads the embedded system_rules.json and returns the set of rule_docs filenames it references (default_rule + every path_rule_map
internal/config/rules/system_rules_test.go:1509
↓ 1 callersMethodrefreshBranches
(repo: any)
extensions/vscode/src/extension/services/GitService.ts:181
↓ 1 callersMethodrefreshModelSelectionAfterAdd
(name string)
cmd/opencodereview/provider_tui.go:2612
↓ 1 callersMethodrefreshModelSelectionForCustom
refreshModelSelectionForCustom moves the cursor to "Enter custom model name..." after the user adds models via the input field.
cmd/opencodereview/provider_tui.go:894
↓ 1 callersMethodrefreshRecentCommits
(repo: any)
extensions/vscode/src/extension/services/GitService.ts:190
↓ 1 callersFunctionreg
(id: string, fn: (...args: any[]) => any)
extensions/vscode/src/extension/commands.ts:10
↓ 1 callersFunctionregisterCommands
( comments: CommentProvider, openConfig: () => void, )
extensions/vscode/src/extension/commands.ts:5
↓ 1 callersMethodregisterCoverage
registerCoverage freezes the coverage denominator before any reuse or concurrent dispatch: it registers every non-deleted diff as a selected item and
internal/agent/agent.go:1044
↓ 1 callersFunctionregisterDelegateFlags
registerDelegateFlags registers all delegate shared flags on cmd, binding to opts.
cmd/opencodereview/shared_flags.go:183
↓ 1 callersFunctionreleaseLock
()
scripts/update.js:53
↓ 1 callersFunctionremoveHint
()
scripts/update.js:133
↓ 1 callersFunctionrenderMermaidBlocks
()
pages/src/components/MarkdownRenderer.tsx:121
↓ 1 callersMethodresolveBatchStrategy
resolveBatchStrategy reads the strategy from the scan template, defaulting to BatchNone for unrecognized / empty values.
internal/scan/agent.go:473
↓ 1 callersFunctionresolveCommentAnchor
( comment: ReviewComment, ctx: ReviewContext, deps: CommentAnchorDeps, )
extensions/vscode/src/extension/providers/commentAnchor.ts:123
↓ 1 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:494
↓ 1 callersMethodresolveDetail
(path string)
internal/config/rules/system_rules.go:153
↓ 1 callersFunctionresolveOptionalConversation
(m *manifestConversation, name string)
internal/config/template/template.go:88
↓ 1 callersFunctionresolvePanelState
(config: OcrConfig | null, panelFocus?: ConfigPanelFocus | null)
extensions/vscode/src/webview/views/ConfigView.tsx:38
↓ 1 callersFunctionresolveStepState
( active: boolean, checking: boolean, ok: boolean | undefined, )
extensions/vscode/src/webview/components/EnvSetupGuide.tsx:29
↓ 1 callersFunctionresolveVersion
(pkg)
scripts/install.js:71
↓ 1 callersMethodresolver
resolver returns the rules Resolver, asserting DetailResolver if available.
cmd/opencodereview/delegate_cmd.go:152
← previousnext →1,101–1,200 of 3,271, ranked by callers