MCPcopy Create free account

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

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

↓ 1 callersFunction_default_ref
Build an `origin/<branch>` ref from a CODEUP_*_BRANCH env var, if set.
examples/codeup_ci/post_review.py:224
↓ 1 callersFunction_env_flag
(name: str, default: bool = False)
examples/codeup_ci/post_review.py:217
↓ 1 callersFunction_get_comments
Normalize the top-level shape of ocr's JSON output to a list of comments.
examples/codeup_ci/post_review.py:105
↓ 1 callersFunction_git
(repo, *args)
examples/gitflic_ci/post_review.py:377
↓ 1 callersFunction_old_line_in_hunk
Walk a hunk's lines tracking both counters until reaching new_line.
examples/gitflic_ci/post_review.py:192
↓ 1 callersFunction_parse_rate_limit_header
Safely parse a rate-limit response header as an int.
examples/gitlab_ci/post_review.py:213
↓ 1 callersFunction_require_env
(name: str)
examples/codeup_ci/post_review.py:210
↓ 1 callersFunctionacquireLock
()
scripts/update.js:30
↓ 1 callersFunctionadd
(c)
scripts/github-actions/post-review-comments.test.js:304
↓ 1 callersFunctionaddConcurrencyFlags
(cmd *cobra.Command, concurrency, timeout, maxTools, maxGitProcs, maxTokensBudget *int)
cmd/opencodereview/shared_flags.go:40
↓ 1 callersFunctionaddPreviewFlag
(cmd *cobra.Command, target *bool)
cmd/opencodereview/shared_flags.go:56
↓ 1 callersFunctionappendChunk
( chunks: Uint8Array[], currentBytes: number, chunk: Uint8Array, maxBytes: number, )
plugins/open-code-review/opencode/open-code-review.ts:99
↓ 1 callersMethodapplyCreateCustomProvider
()
cmd/opencodereview/provider_tui.go:1119
↓ 1 callersMethodapplyInputIdentity
applyInputIdentity fills the manifest's frozen input identity and repository identity, then hands them to the builder through its single setters. It i
internal/agent/agent.go:799
↓ 1 callersFunctionat
(rc)
scripts/github-actions/post-review-comments.test.js:2260
↓ 1 callersFunctionbatchCallCount
()
scripts/github-actions/post-review-comments.test.js:148
↓ 1 callersFunctionbatchKeyFunc
batchKeyFunc returns the grouping key extractor for a strategy.
internal/scan/batch.go:82
↓ 1 callersFunctionbatchPostedComments
()
scripts/github-actions/post-review-comments.test.js:126
↓ 1 callersMethodbindConfigPanel
(open: (focus?: ConfigPanelFocus) => void)
extensions/vscode/src/extension/providers/SidebarProvider.ts:28
↓ 1 callersMethodbuildAnchorDeps
(root: string, ctx: ReviewContext)
extensions/vscode/src/extension/providers/CommentProvider.ts:97
↓ 1 callersMethodbuildCommentDiffUris
构造评论挂载用的 diff 两侧 URI 与挂载 ref。
extensions/vscode/src/extension/services/GitService.ts:438
↓ 1 callersMethodbuildCoverageLocked
buildCoverageLocked assembles the five sorted, non-nil coverage sets from the current item map. Caller must hold b.mu.
internal/session/manifest.go:899
↓ 1 callersFunctionbuildCreateEntries
()
extensions/vscode/src/webview/views/ConfigView.tsx:449
↓ 1 callersFunctionbuildCustomCreateSaveEntries
(params: { name: string; protocol: string; url: string; model: string; models: string; apiKey: str
extensions/vscode/src/shared/configUtils.ts:110
↓ 1 callersFunctionbuildCustomUpdateSaveEntries
(params: { name: string; protocol: string; url: string; model: string; models: string; apiKey: str
extensions/vscode/src/shared/configUtils.ts:136
↓ 1 callersFunctionbuildEditEntries
()
extensions/vscode/src/webview/views/ConfigView.tsx:459
↓ 1 callersFunctionbuildFileFilter
buildFileFilter picks the highest-priority layer that has any include/exclude configured. Priority order: custom (--rule) > project > global.
internal/config/rules/system_rules.go:306
↓ 1 callersFunctionbuildFlatDocList
()
pages/src/pages/DocsPage.tsx:104
↓ 1 callersFunctionbuildMessageXML
(msgs []llm.Message)
internal/agent/util.go:56
↓ 1 callersFunctionbuildOfficialSaveEntries
( providerName: string, model: string, apiKey: string, apiKeyChanged: boolean, )
extensions/vscode/src/shared/configUtils.ts:94
↓ 1 callersMethodbuildOpenAIParams
buildOpenAIParams converts the shared ChatRequest into OpenAI SDK parameters.
internal/llm/client.go:445
↓ 1 callersFunctionbuildPreReviewSummaryBody
(totalCount, summaryComments, routedComments, warnings)
scripts/github-actions/post-review-comments.js:1550
↓ 1 callersFunctionbuildReviewArgs
(input: ReviewInput)
plugins/open-code-review/opencode/open-code-review.ts:63
↓ 1 callersFunctionbuildSummaryBody
({ total, inline, summary, skipped, routed = 0, failed, warnings })
scripts/github-actions/post-review-comments.js:1519
↓ 1 callersFunctionbuildToolInputSchema
(params map[string]any)
internal/llm/client.go:778
↓ 1 callersFunctionbuildUrl
(pattern, vars)
scripts/install.js:83
↓ 1 callersFunctionbuild_config
Build the config dict from environment variables (with defaults). ``env`` is typically ``os.environ``; tests pass a plain dict.
examples/gitlab_ci/post_review.py:411
↓ 1 callersFunctionbuild_endpoint
Join base URL (context path kept, trailing slash tolerated) and route.
examples/gerrit_ci/post_review.py:188
↓ 1 callersFunctionbuild_review_input
Map `ocr review --format json` output to one Gerrit ReviewInput dict.
examples/gerrit_ci/post_review.py:94
↓ 1 callersFunctioncaptureConfigStderr
(t *testing.T, fn func())
cmd/opencodereview/config_cmd_test.go:1040
↓ 1 callersFunctioncaptureStderr
(t *testing.T, fn func())
internal/telemetry/events_test.go:46
↓ 1 callersFunctionclassifyMainLoopStop
classifyMainLoopStop maps a non-error, non-completed main-loop stop to an item failure class and a safe reason. Only the configured max-tool-request b
internal/agent/agent.go:1015
↓ 1 callersFunctioncloneItems
(src []CoverageItem)
internal/session/manifest.go:891
↓ 1 callersFunctioncodeCommentResponse
(path string)
internal/agent/agent_test.go:56
↓ 1 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:509
↓ 1 callersMethodcompletionsStreaming
(ctx context.Context, params openai.ChatCompletionNewParams, opts ...openaiopt.RequestOption)
internal/llm/client.go:372
↓ 1 callersFunctioncomputeActiveZoneSize
computeActiveZoneSize returns how many trailing rounds fit within the remaining token budget after accounting for the frozen zone and the compressed s
internal/llmloop/compression.go:98
↓ 1 callersFunctioncomputeChecksum
(filePath)
scripts/install.js:142
↓ 1 callersMethodcomputeMergeBase
---- Internal helpers ----
internal/diff/git.go:372
↓ 1 callersFunctioncomputeTerminal
computeTerminal derives the terminal state from coverage plus run_failure. A run_failure forces failed while leaving the recorded outcomes intact. Aft
internal/session/manifest.go:938
↓ 1 callersFunctionconfigureProcessGroup
(cmd *exec.Cmd)
cmd/opencodereview/procattr_unix.go:10
↓ 1 callersMethodconfirmDeleteModel
()
cmd/opencodereview/provider_tui.go:2794
↓ 1 callersMethodconfirmDeleteOfficialModel
()
cmd/opencodereview/provider_tui.go:1522
↓ 1 callersMethodconfirmDeleteOfficialModel
()
cmd/opencodereview/provider_tui.go:2839
↓ 1 callersFunctioncontains
(s, substr string)
internal/session/resume_test.go:648
↓ 1 callersFunctioncontainsSubstring
(s, sub string)
internal/session/resume_test.go:652
↓ 1 callersFunctioncooldownAndReconcile
({ github, owner, repo, prNumber, log, error, items, tag, label, labelLower })
scripts/github-actions/post-review-comments.js:1656
↓ 1 callersFunctioncopyMessages
copyMessages returns a deep copy of a messages slice so that future mutations don't corrupt stored records.
internal/session/history.go:347
↓ 1 callersFunctioncopyMessages
(msgs []llm.Message)
internal/agent/util.go:71
↓ 1 callersFunctioncopyMessagesForJSON
copyMessagesForJSON produces a JSON-friendly slice for persistence.
internal/session/history.go:361
↓ 1 callersFunctioncountMessagesTokens
(msgs []llm.Message)
internal/agent/util.go:84
↓ 1 callersFunctioncountTokensWithEncoding
(text string, encName string)
internal/llm/client.go:261
↓ 1 callersMethodcoverageItem
coverageItem builds the selected-set entry for a diff: the content-independent item_id, the display path, the old path only on a rename, and the raw d
internal/agent/agent.go:939
↓ 1 callersMethodcreateGitFileUri
(relPath: string, ref: string)
extensions/vscode/src/extension/services/GitService.ts:485
↓ 1 callersFunctioncreateMockProcess
()
extensions/vscode/src/extension/services/__tests__/CliService.cancel.test.ts:14
↓ 1 callersFunctiondecodeFragment
(fragment: string)
pages/src/pages/DocsPage.tsx:18
↓ 1 callersMethoddeleteCustomProvider
(name: string)
extensions/vscode/src/extension/services/ConfigService.ts:56
↓ 1 callersFunctionderive_base_url
Derive the Gerrit base URL from a change URL. Modern URLs ({base}/c/{project}/+/{number}) split at "/c/", which keeps any context path; legac
examples/gerrit_ci/post_review.py:197
↓ 1 callersFunctiondescribeHeading
(h)
scripts/github-actions/check-translation-sync.js:112
↓ 1 callersFunctiondetectBrowserLanguage
()
pages/src/i18n/context.tsx:22
↓ 1 callersFunctiondetectGitBranch
detectGitBranch returns the current git branch name for the given repo, or empty string on failure.
internal/agent/util.go:103
↓ 1 callersFunctiondetectInitialTab
(config: OcrConfig | null)
extensions/vscode/src/shared/configUtils.ts:18
↓ 1 callersFunctiondetectPlatform
()
scripts/install.js:27
↓ 1 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:488
↓ 1 callersFunctiondownloadBinary
(url, destPath)
scripts/install.js:124
↓ 1 callersFunctiondownloadText
(url)
scripts/install.js:114
↓ 1 callersFunctionemptyManifest
emptyManifest is the well-formed, empty skipped manifest returned alongside an error from a nil-builder Finalize, so a mistaken nil receiver never pan
internal/session/manifest.go:823
↓ 1 callersMethodemptySideUri
空侧占位(等同 /dev/null),用于新增/删除文件的单侧 diff。
extensions/vscode/src/extension/services/GitService.ts:345
↓ 1 callersFunctionensureResponsesEndpoint
ensureResponsesEndpoint normalizes cfg.URL to end with /responses. The trailing /responses is kept on cfg.URL (so tests and logs see the full endpoint
internal/llm/responses_client.go:64
↓ 1 callersFunctionensureSummaryAnchor
({ github, owner, repo, prNumber, body, sticky, tag, log })
scripts/github-actions/post-review-comments.js:865
↓ 1 callersFunctionenvToCliStatus
(env: EnvCheckResult)
extensions/vscode/src/webview/configStore.ts:45
↓ 1 callersFunctionerror
(msg)
scripts/install.js:23
↓ 1 callersFunctionescapeAttr
(s: string)
pages/src/components/MarkdownRenderer.tsx:73
↓ 1 callersFunctionexactNTokens
exactNTokens builds a string that llm.CountTokens reports as exactly n tokens, failing loudly if the tokenizer disagrees so fixture drift cannot silen
internal/scan/agent_test.go:258
↓ 1 callersFunctionexactNTokens
exactNTokens builds a string that llm.CountTokens reports as exactly n tokens, failing loudly if the tokenizer disagrees so fixture drift cannot silen
internal/agent/agent_test.go:402
↓ 1 callersFunctionexecGit
(args: string[])
extensions/vscode/src/extension/services/__tests__/gitMap.test.ts:227
↓ 1 callersFunctionexecuteDelegatePreview
(opts delegateOptions)
cmd/opencodereview/delegate_cmd.go:156
↓ 1 callersFunctionexecuteDelegateRule
(opts delegateOptions, paths []string)
cmd/opencodereview/delegate_cmd.go:204
↓ 1 callersFunctionexecuteScan
(opts scanOptions)
cmd/opencodereview/scan_cmd.go:94
↓ 1 callersFunctionfailForOutputLimit
(error: Error)
plugins/open-code-review/opencode/open-code-review.ts:159
↓ 1 callersFunctionfallback
(_e: Error, reset: () => void)
pages/src/components/ErrorBoundary.test.tsx:58
↓ 1 callersFunctionfallbackCopy
(text: string)
pages/src/components/HeroSection.tsx:135
↓ 1 callersFunctionfallbackCopy
(value: string)
pages/src/hooks/useCopyToast.ts:7
↓ 1 callersFunctionfetchLatestVersion
(pkg)
scripts/update.js:72
↓ 1 callersFunctionfetch_diff_refs
Fetch MR diff refs from the ``/versions`` endpoint. Returns a dict with ``base_sha``/``start_sha``/``head_sha`` on success, or ``None`` on fa
examples/gitlab_ci/post_review.py:369
↓ 1 callersMethodfilterDiffs
filterDiffs removes diffs whose file paths are excluded.
internal/diff/git.go:355
↓ 1 callersFunctionfinalizeDiff
finalizeDiff reads the new file content. When ref is non-empty it uses git show to read the file at that ref; otherwise it reads from disk.
internal/diff/parser.go:117
↓ 1 callersFunctionfinalizeSummary
({ github, owner, repo, prNumber, anchor, body, sticky, tag, log })
scripts/github-actions/post-review-comments.js:889
↓ 1 callersMethodfindDiff
findDiff returns the Diff for the given file path, or nil if not found.
internal/agent/agent.go:1551
↓ 1 callersMethodfindEditorForUri
( uri: vscode.Uri, side?: MountableCommentAnchor['side'], )
extensions/vscode/src/extension/providers/CommentProvider.ts:271
← previousnext →901–1,000 of 3,271, ranked by callers