MCPcopy Create free account

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

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

↓ 3 callersFunctionformatCommentMarkdown
(comment, error)
scripts/github-actions/post-review-comments.js:2371
↓ 3 callersFunctionformatDelegateResult
(result: RunResult)
plugins/open-code-review/opencode/open-code-review.ts:414
↓ 3 callersFunctionformatLocateNote
Prepend a relocation note to the comment body to indicate that its line number was inferred. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/providers/CommentAnchor.kt:125
↓ 3 callersFunctionformatSummaryComments
(summaryComments)
scripts/github-actions/post-review-comments.js:2612
↓ 3 callersFunctiongenerate
(output, kotlinOutput string)
internal/llm/gen/main.go:57
↓ 3 callersFunctiongetAllBlogMetas
(language: string)
pages/src/content/blog/index.ts:98
↓ 3 callersFunctiongetBlogMeta
(slug: BlogSlug, language: string)
pages/src/content/blog/index.ts:94
↓ 3 callersMethodgetCommitFiles
List files changed in a single commit relative to its parent.
extensions/vscode/src/extension/services/GitService.ts:240
↓ 3 callersFunctiongetPostedCommentIds
({ github, owner, repo, prNumber, log })
scripts/github-actions/post-review-comments.js:2109
↓ 3 callersMethodhandleCustomFormEnter
()
cmd/opencodereview/provider_tui.go:1167
↓ 3 callersFunctionhasReviewLimitWarning
hasReviewLimitWarning reports whether a declared review limit — the tool-request round budget or the aggregate token budget — was reached. llmloop rec
cmd/opencodereview/output.go:91
↓ 3 callersFunctionhasSubtaskErrors
(warnings []agent.AgentWarning)
cmd/opencodereview/output.go:51
↓ 3 callersFunctionhasTranslation
(slug: DocSlug, language: Language)
pages/src/content/docs/index.ts:60
↓ 3 callersFunctionhelperArgv
helperArgv is the argv that re-execs this test binary as the helper.
internal/viewer/browser_exec_test.go:46
↓ 3 callersFunctionhelperCmdStderr
helperCmdStderr is helperCmd with the child also writing msg to stderr.
internal/viewer/browser_exec_test.go:57
↓ 3 callersFunctionhostGuard
hostGuard returns a middleware that rejects requests whose Host header is not on the allowlist. This blocks DNS-rebinding attacks against the local vi
internal/viewer/hostguard.go:88
↓ 3 callersFunctioninheritedPipe
inheritedPipe registers a nonblocking duplicate with Go's poller. Closing an inherited blocking os.Stdout cannot reliably interrupt a system write.
acp/cmd/ocr-acp/stdio_unix.go:18
↓ 3 callersFunctioninitMCPClients
(ctx context.Context, cfg *Config, tools *tool.Registry, repoDir, version string)
cmd/opencodereview/review_cmd.go:624
↓ 3 callersFunctioninitOTLPHTTPProviders
initOTLPHTTPProviders sets up OTLP HTTP exporters for traces and metrics. Unlike the gRPC path this uses WithEndpointURL rather than WithEndpoint, so
internal/telemetry/exporter.go:153
↓ 3 callersFunctioninitOTLPProviders
initOTLPProviders dispatches to the gRPC or HTTP exporter based on cfg.OTLPProtocol.
internal/telemetry/exporter.go:86
↓ 3 callersFunctionisChunkLoadError
(error: Error)
pages/src/components/ErrorBoundary.tsx:21
↓ 3 callersMethodisCustomItem
(idx int)
cmd/opencodereview/provider_tui.go:2912
↓ 3 callersMethodisCustomModelItem
(idx int)
cmd/opencodereview/provider_tui.go:622
↓ 3 callersFunctionisErrorStatus
isErrorStatus reports whether an observed HTTP status proves the attempt failed on its own. Status 0 means no response was received, so it proves noth
internal/llm/retry_report.go:172
↓ 3 callersFunctionisPartialLocale
(language: Language)
pages/src/content/docs/index.ts:64
↓ 3 callersFunctionisUserAddedOfficialModelName
(name, providerName string, registryModels []string, cfg *Config)
cmd/opencodereview/provider_tui.go:441
↓ 3 callersMethoditemCount
()
cmd/opencodereview/provider_tui.go:2916
↓ 3 callersFunctionitemPaths
(items []model.ScanItem)
internal/scan/provider_more_test.go:138
↓ 3 callersFunctionkillUnixProcessGroup
(pid int, kill func(int, syscall.Signal) error)
acp/internal/orchestrator/process/process_unix.go:45
↓ 3 callersFunctionlistBotReviewThreads
({ github, owner, repo, prNumber, log, warn })
scripts/github-actions/post-review-comments.js:1523
↓ 3 callersFunctionlistCursorPrefixForModel
(isCursor, userAdded bool)
cmd/opencodereview/provider_tui.go:2129
↓ 3 callersFunctionlistCustomProviderNames
(config: OcrConfig | null)
extensions/frontend/src/shared/configUtils.ts:172
↓ 3 callersMethodlist_notes
(self)
examples/gitlab_ci/post_review_test.py:170
↓ 3 callersMethodlist_notes
Return all MR notes, or None when the read failed.
examples/gitlab_ci/post_review.py:1121
↓ 3 callersFunctionloadObjCRule
loadObjCRule reads the embedded Objective-C rule doc used by the ".m" content sniff.
internal/config/rules/system_rules.go:120
↓ 3 callersFunctionloadScanResumeState
(repoDir string, opts scanOptions, scanPaths []string)
cmd/opencodereview/scan_cmd.go:260
↓ 3 callersFunctionloadSummaryFromFile
(path, sessionID, repoDir string)
internal/session/list.go:187
↓ 3 callersFunctionlookupPreset
(name: string)
extensions/frontend/src/shared/providers.ts:22
↓ 3 callersFunctionmain
()
scripts/github-actions/action-contract.test.js:2162
↓ 3 callersFunctionmakeScanItems
(n int)
internal/scan/budget_test.go:63
↓ 3 callersMethodmanifestMode
manifestMode maps the review to the manifest input mode. It derives purely from From/To/Commit so the value is always one of the three valid input mod
internal/agent/agent.go:991
↓ 3 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:1145
↓ 3 callersMethodmapAnthropicResponse
mapAnthropicResponse converts the SDK response into ChatResponse.
internal/llm/client.go:1742
↓ 3 callersFunctionmapStatusCode
(code: string)
extensions/vscode/src/extension/services/gitMap.ts:7
↓ 3 callersMethodmergeBase
mergeBase computes the merge-base for range mode. Returns "" for other modes.
cmd/opencodereview/delegate_cmd.go:145
↓ 3 callersFunctionmessageTokens
messageTokens counts visible text plus the Native replay payload and tool calls that ExtractText() does not see.
internal/llmloop/compression.go:64
↓ 3 callersFunctionmetaFactory
metaFactory builds the same closure internal/agent injects, so these tests exercise the review wiring rather than a test-only shape.
internal/llmloop/retry_identity_test.go:67
↓ 3 callersFunctionmodelTUIEnterCustomModelName
(t *testing.T, m modelTUIModel, name string)
cmd/opencodereview/provider_tui_funcs_test.go:1127
↓ 3 callersFunctionmsg
(role, content string)
internal/reviewtask/runtime_test.go:22
↓ 3 callersMethodmust
(t *testing.T, args ...string)
internal/delegate/instructions_test.go:54
↓ 3 callersFunctionmutateObj
Read-modify-write of a nested object field: a missing object is treated as empty, and the whole object is written back after the change. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigDraft.kt:60
↓ 3 callersFunctionnewDelegateRepo
(t *testing.T)
internal/delegate/instructions_test.go:63
↓ 3 callersMethodnewRequestMeta
newRequestMeta builds the retry-report identity for one logical LLM request. It is the single place provider and model are read for that purpose — th
internal/agent/agent.go:274
↓ 3 callersFunctionnewThinkingTestRunner
newThinkingTestRunner builds a Runner wired for a full RunMainTask pass: a scripted LLM client, the code_comment tool, and a comment collector.
internal/reviewtask/loop_execute_more_test.go:40
↓ 3 callersFunctionnormalizeComparePath
(p)
scripts/github-actions/post-review-comments.js:1725
↓ 3 callersFunctionnormalizeLine
Remove leading diff markers (`+`/`-`) and surrounding whitespace for lenient comparison of existingCode with file content. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/providers/CommentAnchor.kt:51
↓ 3 callersFunctionnormalizeLine
(s: string)
extensions/vscode/src/extension/providers/commentAnchor.ts:55
↓ 3 callersFunctionnormalizeModelList
(models []string)
cmd/opencodereview/config_cmd.go:982
↓ 3 callersFunctionofficialAPIKeyRequiredError
officialAPIKeyRequiredError mirrors the wording applyOfficialProviderConfig uses for the same failure, so the interactive and non-interactive paths na
cmd/opencodereview/provider_tui.go:944
↓ 3 callersFunctionoutcomeLabel
(kind orchestrator.OutcomeKind)
acp/internal/adapter/presentation/progress_format.go:123
↓ 3 callersFunctionoutputPreview
outputPreview renders a preview in the requested output format. sarif is rejected with an error because a preview contains file/rule metadata, not rev
cmd/opencodereview/output.go:772
↓ 3 callersFunctionoverlapsHistory
(reviewComment, history, threshold = DEFAULT_OVERLAP_THRESHOLD)
scripts/github-actions/post-review-comments.js:1393
↓ 3 callersFunctionparseEnvBlock
(stdout: string)
extensions/vscode/src/extension/services/shellEnv.ts:9
↓ 3 callersFunctionparseExplicitHeadingId
(text: string)
pages/src/utils/headingId.ts:10
↓ 3 callersFunctionparseGitignorePatterns
(data []byte)
internal/diff/gitignore_match.go:11
↓ 3 callersFunctionparseLogLine
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/CliParse.kt:189
↓ 3 callersFunctionparseRecordTime
(s string)
internal/session/list.go:357
↓ 3 callersFunctionparseScalar
(raw)
scripts/github-actions/action-contract.test.js:30
↓ 3 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/reviewtask/tools.go:238
↓ 3 callersMethodpassThroughCPInput
(msg tea.Msg)
cmd/opencodereview/provider_tui.go:1485
↓ 3 callersFunctionpathBatches
(groups [][]string, pathspec func(string) string)
internal/behaviortask/search.go:24
↓ 3 callersFunctionpersistedRetryReport
(t *testing.T, repoDir, sessionID string)
internal/agent/retry_report_freeze_test.go:162
↓ 3 callersMethodplanEnabled
planEnabled / dedupEnabled / summaryEnabled report whether each optional phase will actually run: template must define it AND the corresponding --no-*
internal/scan/agent.go:87
↓ 3 callersMethodplanEnabledFor
(it model.ScanItem)
internal/scan/agent.go:91
↓ 3 callersFunctionpositionalSignature
positionalSignature extracts the positional-argument part of cmd.Use, e.g. "<key> <value>" from "set <key> <value>" and "<path...>" from "rule [flags]
cmd/opencodereview/arg_errors.go:92
↓ 3 callersFunctionpost
(review_input)
examples/gerrit_ci/post_review.py:229
↓ 3 callersMethodpostMessage
(msg: unknown)
extensions/frontend/src/webview/bridge.vsc.ts:7
↓ 3 callersMethodpost_note
(self, body)
examples/gitlab_ci/post_review.py:1101
↓ 3 callersMethodprepareModelSelection
(providerName, configModel string)
cmd/opencodereview/provider_tui.go:545
↓ 3 callersMethodpreview
preview is read-only with respect to the Agent: it does not mutate a.items. (Earlier versions did, which made a subsequent Run on the same Agent silen
internal/scan/preview.go:28
↓ 3 callersFunctionpreviewFixture
()
cmd/opencodereview/output_color_test.go:106
↓ 3 callersFunctionpreviewMaxTokens
previewMaxTokens resolves the per-file prompt ceiling the way a real run resolves it, but without building an LLM runtime: resolveMaxTokens needs only
cmd/opencodereview/shared.go:86
↓ 3 callersFunctionprintDiffLine
printDiffLine renders a single diff line with colored prefix and background on content. With color disabled it emits "<prefix> <content>", which keeps
cmd/opencodereview/output.go:208
↓ 3 callersFunctionprintWizardCancelled
printWizardCancelled prints the standard Esc-cancel message for config wizards. changesDescription is a short noun phrase, e.g. "Configuration changes
cmd/opencodereview/provider_cmd.go:61
↓ 3 callersFunctionpushValue
(args: string[], flag: string, value: string | number | undefined)
plugins/open-code-review/opencode/open-code-review.ts:95
↓ 3 callersFunctionrawFor
(slug: DocSlug, loaded: LoadedDocContent)
pages/src/content/docs/index.ts:106
↓ 3 callersFunctionreadFileOrNull
(abs, { maxBytes = MAX_SCAN_BYTES } = {})
scripts/github-actions/check-plugin-contract.js:749
↓ 3 callersFunctionreadPage
(content string, cursor, maxBytes int)
internal/behaviortask/observation.go:178
↓ 3 callersFunctionreadSessionRecords
(source io.Reader, path string, apply func(summaryRecord))
internal/session/list.go:227
↓ 3 callersFunctionreadWorkspaceFileForDiffWithLimit
(repoDir, relPath string, maxSize int64)
internal/diff/workspace_file.go:23
↓ 3 callersMethodrecordWarning
(warningType, file, message string)
internal/scan/agent.go:250
↓ 3 callersFunctionrecordedRepoDir
recordedRepoDir returns the working directory a session recorded, and whether it had one.
internal/session/delete.go:125
↓ 3 callersFunctionregistryModelsForProvider
(name string, fallback []string)
cmd/opencodereview/provider_tui.go:455
↓ 3 callersFunctionreloadAfterChunkError
()
pages/src/components/ErrorBoundary.tsx:34
↓ 3 callersMethodrender
()
pages/src/components/ErrorBoundary.tsx:69
↓ 3 callersFunctionrenderKotlin
(providers []llm.Provider)
internal/llm/gen/kotlin.go:36
↓ 3 callersFunctionrenderModelName
(name string, isCursor, userAdded bool)
cmd/opencodereview/provider_tui.go:2146
↓ 3 callersFunctionrepairSerializedComments
repairSerializedComments escapes what makes a model-serialized `comments` string invalid JSON — prose quotes, bare control characters, illegal backsla
internal/tool/comment_args_repair.go:98
↓ 3 callersFunctionrepairedCommentsAcceptable
repairedCommentsAcceptable reports whether a repaired batch still carries every comment the original text described. Parsing again is not enough on it
internal/tool/comment_args_repair.go:188
↓ 3 callersFunctionreplayStreamedToolCall
replayStreamedToolCall runs one streamed completion against a fixture server and returns the assistant history message rebuilt for the next request.
internal/llm/tool_call_extra_content_test.go:65
← previousnext →1,201–1,300 of 7,599, ranked by callers