MCPcopy Create free account

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

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

↓ 1 callersFunctionIsExcludedPath
IsExcludedPath returns true when the given file path matches any default exclude pattern. Patterns support ** (recursive directory matching), * (singl
internal/config/allowlist/allowed_ext.go:91
↓ 1 callersMethodIsRangeMode
IsRangeMode returns true when comparing two refs.
internal/diff/git.go:154
↓ 1 callersFunctionMatchGitignorePattern
MatchGitignorePattern reports whether relPath matches a single gitignore-style pattern, using the simplified semantics that diff.Provider already impl
internal/diff/gitignore.go:34
↓ 1 callersFunctionNewBuiltin
(t Tool, fn func(ctx context.Context, args map[string]any) (string, error))
internal/tool/stub.go:28
↓ 1 callersFunctionPreview
Preview enumerates files and applies the standard reviewability filter without dispatching any LLM calls. Returns a *model.Preview ready for cmd/openc
internal/scan/preview.go:20
↓ 1 callersMethodReasoningContent
ReasoningContent extracts the reasoning content of the first choice, if any.
internal/llm/client.go:177
↓ 1 callersMethodResumeInfo
ResumeInfo returns resume metadata for output. Nil means this was not a resume run.
internal/agent/agent.go:371
↓ 1 callersMethodRunManifest
RunManifest returns nil because scan is intentionally outside the v1 run manifest scope. It exists so review and scan can share the output pipeline wi
internal/scan/agent.go:183
↓ 1 callersMethodSession
Session returns the session history associated with this Agent.
internal/scan/agent.go:169
↓ 1 callersMethodSession
Session returns the session history associated with this Agent.
internal/agent/agent.go:346
↓ 1 callersMethodTool
()
internal/mcp/provider.go:22
↓ 1 callersMethodTool
()
internal/tool/code_comment.go:54
↓ 1 callersMethodToolCalls
ToolCalls returns a snapshot of the per-tool call counts.
internal/llmloop/loop.go:103
↓ 1 callersMethodTotalCacheReadTokens
TotalCacheReadTokens returns the accumulated cache read tokens.
internal/llmloop/loop.go:72
↓ 1 callersMethodTotalCacheWriteTokens
TotalCacheWriteTokens returns the accumulated cache write tokens.
internal/llmloop/loop.go:75
↓ 1 callersMethodTotalTokensUsed
TotalTokensUsed returns input + output.
internal/llmloop/loop.go:78
↓ 1 callersMethodValidate
Validate checks that a ScanTemplate has the minimum fields populated.
internal/config/template/template.go:225
↓ 1 callersMethodWarnings
Warnings returns a copy of the accumulated warnings.
internal/llmloop/loop.go:83
↓ 1 callersMethodWriteLLMError
WriteLLMError writes an llm_error entry recording a failed LLM request.
internal/session/persist.go:276
↓ 1 callersMethodWriteLLMRequest
WriteLLMRequest writes a request entry with the resolved messages.
internal/session/persist.go:224
↓ 1 callersMethodWriteLLMResponse
WriteLLMResponse writes a response entry with model, content, tool calls, usage.
internal/session/persist.go:246
↓ 1 callersMethodWriteReviewItemDone
WriteReviewItemDone writes a file-level resume checkpoint for a completed diff.
internal/session/persist.go:175
↓ 1 callersMethodWriteReviewItemFailed
WriteReviewItemFailed writes a file-level checkpoint for a failed diff.
internal/session/persist.go:185
↓ 1 callersMethodWriteReviewItemReused
WriteReviewItemReused writes a checkpoint reused from a previous session.
internal/session/persist.go:180
↓ 1 callersMethodWriteSessionEnd
WriteSessionEnd writes the final session_end summary record and closes the file. When manifest is non-nil it is embedded under "run_manifest"; session
internal/session/persist.go:329
↓ 1 callersMethodWriteToolCall
WriteToolCall writes a tool call result entry.
internal/session/persist.go:299
↓ 1 callersMethod__init__
(self, note_outcomes=None, disc_outcomes=None, notes=None, notes_read_failure=False,
examples/gitlab_ci/post_review_test.py:118
↓ 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_extract_expected_shas
Pull the SHAs OCR actually reviewed out of the result manifest. Returns ``{"head": ..., "base": ...}`` (either key may be absent) or ``{}`` w
examples/gitlab_ci/post_review.py:783
↓ 1 callersMethod_failed_result
(resp, reason=None)
examples/gitlab_ci/post_review.py:962
↓ 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 callersMethod_is_comment_posted
True/False when the read succeeds; None when the read API failed.
examples/gitlab_ci/post_review.py:914
↓ 1 callersFunction_maybe_reached_server
True when a failed request may still have landed on the server.
examples/gitlab_ci/post_review.py:717
↓ 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_bool
(value, default=False)
examples/gitlab_ci/post_review.py:1364
↓ 1 callersFunction_pick_version
Select the MR diff version that matches what OCR reviewed. Prefers an exact ``head_commit_sha`` (and ``base_commit_sha`` when both are suppli
examples/gitlab_ci/post_review.py:756
↓ 1 callersFunction_require_env
(name: str)
examples/codeup_ci/post_review.py:210
↓ 1 callersMethod_success_result
(resp, reconciled=False)
examples/gitlab_ci/post_review.py:956
↓ 1 callersFunctionacquireLock
()
scripts/update.js:34
↓ 1 callersFunctionadd
(c)
scripts/github-actions/post-review-comments.test.js:308
↓ 1 callersFunctionaddConcurrencyFlags
(cmd *cobra.Command, concurrency, timeout, maxTools, maxGitProcs, maxTokens, maxTokensBudget *int)
cmd/opencodereview/shared_flags.go:43
↓ 1 callersFunctionaddPreviewFlag
(cmd *cobra.Command, target *bool)
cmd/opencodereview/shared_flags.go:64
↓ 1 callersFunctionappendChunk
( chunks: Uint8Array[], currentBytes: number, chunk: Uint8Array, maxBytes: number, )
plugins/open-code-review/opencode/open-code-review.ts:104
↓ 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:2264
↓ 1 callersFunctionbatchCallCount
()
scripts/github-actions/post-review-comments.test.js:152
↓ 1 callersFunctionbatchKeyFunc
batchKeyFunc returns the grouping key extractor for a strategy.
internal/scan/batch.go:85
↓ 1 callersFunctionbatchPostedComments
()
scripts/github-actions/post-review-comments.test.js:130
↓ 1 callersMethodbindConfigPanel
(open: (focus?: ConfigPanelFocus) => void)
extensions/vscode/src/extension/providers/SidebarProvider.ts:31
↓ 1 callersFunctionbodyColors
background-color / color out of a `body { ... }` block.
pages/src/index.html.test.ts:35
↓ 1 callersMethodbuildAnchorDeps
(root: string, ctx: ReviewContext)
extensions/vscode/src/extension/providers/CommentProvider.ts:100
↓ 1 callersMethodbuildCommentDiffUris
构造评论挂载用的 diff 两侧 URI 与挂载 ref。
extensions/vscode/src/extension/services/GitService.ts:441
↓ 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:902
↓ 1 callersFunctionbuildCreateEntries
()
extensions/vscode/src/webview/views/ConfigView.tsx:452
↓ 1 callersFunctionbuildCustomCreateSaveEntries
(params: { name: string; protocol: string; url: string; model: string; models: string; apiKey: str
extensions/vscode/src/shared/configUtils.ts:113
↓ 1 callersFunctionbuildCustomUpdateSaveEntries
(params: { name: string; protocol: string; url: string; model: string; models: string; apiKey: str
extensions/vscode/src/shared/configUtils.ts:139
↓ 1 callersFunctionbuildEditEntries
()
extensions/vscode/src/webview/views/ConfigView.tsx:462
↓ 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:309
↓ 1 callersFunctionbuildFlatDocList
()
pages/src/pages/DocsPage.tsx:107
↓ 1 callersFunctionbuildMessageXML
(msgs []llm.Message)
internal/agent/util.go:59
↓ 1 callersFunctionbuildOfficialSaveEntries
( providerName: string, model: string, apiKey: string, apiKeyChanged: boolean, )
extensions/vscode/src/shared/configUtils.ts:97
↓ 1 callersFunctionbuildPreReviewSummaryBody
(totalCount, summaryComments, routedComments, warnings)
scripts/github-actions/post-review-comments.js:1553
↓ 1 callersFunctionbuildReviewArgs
(input: ReviewInput, repo: string)
plugins/open-code-review/opencode/open-code-review.ts:65
↓ 1 callersFunctionbuildSummaryBody
({ total, inline, summary, skipped, routed = 0, failed, warnings })
scripts/github-actions/post-review-comments.js:1522
↓ 1 callersFunctionbuildUrl
(pattern, vars)
scripts/install.js:87
↓ 1 callersFunctionbuild_config
Build the config dict from environment variables (with defaults).
examples/gitlab_ci/post_review.py:1377
↓ 1 callersFunctionbuild_endpoint
Join base URL (context path kept, trailing slash tolerated) and route.
examples/gerrit_ci/post_review.py:188
↓ 1 callersFunctionbuild_policy
Parse the publication policy from the raw opt-in inputs. Returns a normalized policy dict, or :data:`NO_ROUTING` when no routing is requested
examples/gitlab_ci/post_review.py:162
↓ 1 callersFunctionbuild_pre_review_summary_body
Summary body shown in the sticky anchor while inline comments post.
examples/gitlab_ci/post_review.py:367
↓ 1 callersFunctionbuild_review_input
Map `ocr review --format json` output to one Gerrit ReviewInput dict.
examples/gerrit_ci/post_review.py:94
↓ 1 callersFunctionbuild_summary_body
Merged summary header. Counts are mutually exclusive and sum to total.
examples/gitlab_ci/post_review.py:349
↓ 1 callersFunctioncaptureStderr
(t *testing.T, fn func())
internal/telemetry/events_test.go:49
↓ 1 callersFunctioncardMatches
(card)
internal/viewer/static/session.js:44
↓ 1 callersFunctioncategoryCounts
(comments []*ReviewComment)
internal/viewer/server.go:133
↓ 1 callersFunctioncheck_fail_on_severity
True when any comment's severity is at-or-above ``threshold``.
examples/gitlab_ci/post_review.py:1426
↓ 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 callersFunctionclassify_comment_against_diff
Tri-state: ``"valid"`` | ``"invalid"`` | ``"unknown"``. ``invalid`` is provably outside the diff; ``unknown`` means we could not prove anythi
examples/gitlab_ci/post_review.py:534
↓ 1 callersFunctioncloneItems
(src []CoverageItem)
internal/session/manifest.go:894
↓ 1 callersFunctioncodeCommentResponse
(path string)
internal/agent/agent_test.go:59
↓ 1 callersFunctioncomment_span
Resolve a review comment into a line span tagged single/multi-line.
examples/gitlab_ci/post_review.py:414
↓ 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:535
↓ 1 callersMethodcompletionsStreaming
(ctx context.Context, params openai.ChatCompletionNewParams, opts ...openaiopt.RequestOption)
internal/llm/client.go:434
↓ 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:101
↓ 1 callersFunctioncomputeChecksum
(filePath)
scripts/install.js:146
↓ 1 callersMethodcomputeMergeBase
---- Internal helpers ----
internal/diff/git.go:398
↓ 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:941
↓ 1 callersFunctionconfigureProcessGroup
(cmd *exec.Cmd)
cmd/opencodereview/procattr_unix.go:13
↓ 1 callersMethodconfirmDeleteModel
()
cmd/opencodereview/provider_tui.go:2804
↓ 1 callersMethodconfirmDeleteOfficialModel
()
cmd/opencodereview/provider_tui.go:1532
↓ 1 callersFunctioncontainsStr
(list []string, want string)
cmd/opencodereview/provider_tui_savefail_test.go:143
↓ 1 callersFunctioncooldownAndReconcile
({ github, owner, repo, prNumber, log, error, items, tag, label, labelLower })
scripts/github-actions/post-review-comments.js:1659
↓ 1 callersFunctioncopyMessages
copyMessages returns a deep copy of a messages slice so that future mutations don't corrupt stored records.
internal/session/history.go:362
↓ 1 callersFunctioncopyMessages
(msgs []llm.Message)
internal/agent/util.go:74
↓ 1 callersFunctioncopyMessagesForJSON
copyMessagesForJSON produces a JSON-friendly slice for persistence.
internal/session/history.go:376
↓ 1 callersFunctioncountMessagesTokens
(msgs []llm.Message)
internal/agent/util.go:87
↓ 1 callersFunctioncountTokensWithEncoding
(text string, encName string)
internal/llm/client.go:303
↓ 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:488
← previousnext →1,001–1,100 of 3,747, ranked by callers