MCPcopy Create free account

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

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

↓ 3 callersFunctionemitError
(file, message, line)
scripts/github-actions/check-plugin-contract.js:741
↓ 3 callersFunctionemptySHA256
emptySHA256 is the canonical digest of an empty input, which hashFields must return for an empty field sequence.
internal/agent/manifest_hash_test.go:19
↓ 3 callersFunctionenvFunc
(values map[string]string)
acp/internal/intent/llm/resolve_test.go:11
↓ 3 callersFunctionexecuteDelegateRule
(opts delegateOptions, paths []string)
cmd/opencodereview/delegate_cmd.go:235
↓ 3 callersFunctionextractHeadingInfo
(markdown: string)
pages/src/utils/headingId.ts:80
↓ 3 callersMethodfailAll
failAll makes every file in the fixture fail permanently. Tests that mean "the whole review failed" use this rather than naming files, so they keep me
cmd/opencodereview/retry_fake_llm_test.go:72
↓ 3 callersFunctionfakeProbe
(map)
scripts/github-actions/check-plugin-contract.test.js:193
↓ 3 callersFunctionfindLinesByExistingCode
Find [existingCode] in file content with a sliding window; return 1-based line numbers, or null when no match exists. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/providers/CommentAnchor.kt:69
↓ 3 callersFunctionfindTestToolCall
findTestToolCall returns the model's call to the self-test tool, ignoring any other tool it asked for. An empty name belongs to a task that offers no
cmd/opencodereview/llm_cmd.go:201
↓ 3 callersFunctionfinish
()
scripts/github-actions/action-contract.test.js:75
↓ 3 callersMethodfocusCPStep
()
cmd/opencodereview/provider_tui.go:1461
↓ 3 callersMethodforShell
* Adds a shell prefix for a command (Windows: cmd.exe /c). Only for fixed-argument commands (--version and * the like); commands that carry user
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ShellEnv.kt:98
↓ 3 callersFunctionformatCommentMarkdown
(comment, error)
scripts/github-actions/post-review-comments.js:2390
↓ 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 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:2128
↓ 3 callersMethodhandleCustomFormEnter
()
cmd/opencodereview/provider_tui.go:1153
↓ 3 callersMethodhandleManualFormEnter
()
cmd/opencodereview/provider_tui.go:1739
↓ 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:77
↓ 3 callersFunctionhasSubtaskErrors
(warnings []agent.AgentWarning)
cmd/opencodereview/output.go:37
↓ 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:586
↓ 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 callersMethodisCustomItem
(idx int)
cmd/opencodereview/provider_tui.go:2898
↓ 3 callersMethodisCustomModelItem
(idx int)
cmd/opencodereview/provider_tui.go:623
↓ 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 callersMethodisPathExcluded
isPathExcluded returns true when the given relative file path should be skipped based on hardcoded dir rules or .gitignore patterns. Patterns are res
internal/diff/git.go:302
↓ 3 callersFunctionisUserAddedOfficialModelName
(name, providerName string, registryModels []string, cfg *Config)
cmd/opencodereview/provider_tui.go:442
↓ 3 callersMethoditemCount
()
cmd/opencodereview/provider_tui.go:2902
↓ 3 callersFunctionitemPaths
(items []model.ScanItem)
internal/scan/provider_more_test.go:137
↓ 3 callersFunctionkillUnixProcessGroup
(pid int, kill func(int, syscall.Signal) error)
acp/internal/orchestrator/process/process_unix.go:45
↓ 3 callersFunctionlistAllTools
listAllTools returns every tool the server publishes. tools/list is a paginated method: a result carries at most one page plus a nextCursor, and a cli
internal/mcp/client.go:143
↓ 3 callersFunctionlistBotReviewThreads
({ github, owner, repo, prNumber, log, warn })
scripts/github-actions/post-review-comments.js:1542
↓ 3 callersFunctionlistCursorPrefixForModel
(isCursor, userAdded bool)
cmd/opencodereview/provider_tui.go:2114
↓ 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 callersMethodloadGitignorePatterns
loadGitignorePatterns reads and parses .gitignore patterns from the repo root.
internal/diff/git.go:277
↓ 3 callersFunctionloadObjCRule
loadObjCRule reads the embedded Objective-C rule doc used by the ".m" content sniff.
internal/config/rules/system_rules.go:119
↓ 3 callersFunctionloadScanResumeState
(repoDir string, opts scanOptions, scanPaths []string)
cmd/opencodereview/scan_cmd.go:262
↓ 3 callersFunctionloadSummaryFromFile
(path, sessionID, repoDir string)
internal/session/list.go:188
↓ 3 callersFunctionlookupPreset
(name: string)
extensions/frontend/src/shared/providers.ts:22
↓ 3 callersFunctionmain
()
scripts/github-actions/action-contract.test.js:2143
↓ 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:977
↓ 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:1131
↓ 3 callersMethodmapAnthropicResponse
mapAnthropicResponse converts the SDK response into ChatResponse.
internal/llm/client.go:1716
↓ 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:142
↓ 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 callersFunctionnewMux
newMux builds the viewer's routing table against a sessions root. The viewer is read-only: the document routes are registered with GET-only patterns (
internal/viewer/server.go:113
↓ 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:267
↓ 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:1744
↓ 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:964
↓ 3 callersMethodnotify
(ctx context.Context, id acp.SessionId, update acp.SessionUpdate)
acp/internal/adapter/agent.go:63
↓ 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:945
↓ 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:740
↓ 3 callersFunctionoverlapsHistory
(reviewComment, history, threshold = DEFAULT_OVERLAP_THRESHOLD)
scripts/github-actions/post-review-comments.js:1412
↓ 3 callersFunctionparseEnvBlock
(stdout: string)
extensions/vscode/src/extension/services/shellEnv.ts:9
↓ 3 callersFunctionparseExplicitHeadingId
(text: string)
pages/src/utils/headingId.ts:10
↓ 3 callersFunctionparseLogLine
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/CliParse.kt:189
↓ 3 callersFunctionparseRecordTime
(s string)
internal/session/list.go:341
↓ 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:1475
↓ 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 callersMethodprepareModelSelection
(providerName, configModel string)
cmd/opencodereview/provider_tui.go:546
↓ 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:85
↓ 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:194
↓ 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 callersFunctionreadFileOrNull
(abs, { maxBytes = MAX_SCAN_BYTES } = {})
scripts/github-actions/check-plugin-contract.js:749
↓ 3 callersFunctionreadJSONLLines
readJSONLLines visits each physical JSONL record without bufio.Scanner's fixed token ceiling. session_end embeds the complete run manifest and can leg
internal/viewer/store.go:222
↓ 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:97
↓ 3 callersFunctionregistryModelsForProvider
(name string, fallback []string)
cmd/opencodereview/provider_tui.go:456
↓ 3 callersMethodrender
()
pages/src/components/ErrorBoundary.tsx:59
↓ 3 callersFunctionrenderKotlin
(providers []llm.Provider)
internal/llm/gen/kotlin.go:36
↓ 3 callersFunctionrenderModelName
(name string, isCursor, userAdded bool)
cmd/opencodereview/provider_tui.go:2131
← previousnext →1,101–1,200 of 7,128, ranked by callers