MCPcopy Create free account

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

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

↓ 3 callersMethodaddNextMessage
addNextMessage extends the conversation with the assistant message and tool responses, applying three-zone compression at the soft (60%) and warning (
internal/llmloop/loop.go:581
↓ 3 callersFunctionaddOutputFlags
(cmd *cobra.Command, format, audience *string)
cmd/opencodereview/shared_flags.go:34
↓ 3 callersFunctionaddOutputPathFlag
addOutputPathFlag registers --output/-o: write results to a UTF-8 file instead of stdout. "" or "-" keeps stdout; a real path is created lazily on the
cmd/opencodereview/shared_flags.go:44
↓ 3 callersFunctionaddRuleFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:19
↓ 3 callersMethodadjustModelIdxAfterDelete
()
cmd/opencodereview/provider_tui.go:2794
↓ 3 callersFunctionanalysisTestContext
(test *testing.T, repo string)
cmd/opencodereview/analysis_test.go:87
↓ 3 callersMethodapiKeyStepCanConfirm
()
cmd/opencodereview/provider_tui.go:995
↓ 3 callersMethodappend
(message string)
acp/internal/adapter/presentation/progress_format.go:27
↓ 3 callersMethodapply
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:141
↓ 3 callersFunctionapplyExtraHeaders
applyExtraHeaders copies configured headers but never lets them clobber the auth or content headers the client manages.
acp/internal/intent/llm/client.go:282
↓ 3 callersFunctionapplyLanguage
applyLanguage appends instruction to all system-role messages in conv.
internal/config/template/template.go:270
↓ 3 callersFunctionapplyProviderDeletions
(configPath string, cfg *Config, names []string)
cmd/opencodereview/provider_cmd.go:69
↓ 3 callersFunctionapplyProviderField
(providerName string, entry *ProviderEntry, field, key, value string)
cmd/opencodereview/config_cmd.go:806
↓ 3 callersFunctionapplyRecordToSummary
(s *Summary, rec summaryRecord)
internal/session/list.go:237
↓ 3 callersMethodapplyResume
(diffs []model.Diff)
internal/agent/agent.go:880
↓ 3 callersFunctionapplySessionStart
(summary *SessionSummary, rec map[string]any)
internal/viewer/store.go:759
↓ 3 callersFunctionassertNoSessionStore
assertNoSessionStore fails if the session store was created under home. Preview neither runs nor finalizes a review, so it must not open persistence a
cmd/opencodereview/delegate_exec_test.go:109
↓ 3 callersFunctionauthor
(login, typename)
scripts/github-actions/post-review-comments.test.js:6642
↓ 3 callersFunctionbranchRefCandidates
Builds branch ref candidates for `rev-parse --verify`: add the origin/ prefix and swap main with master. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:135
↓ 3 callersFunctionbuildGroupingIndex
buildGroupingIndex scans the grouping request messages for the numbered file list and returns an index→path map. reqMessages is the raw JSONL value (a
internal/viewer/store.go:349
↓ 3 callersFunctionbuildSummaryCommentsList
buildSummaryCommentsList renders comments as a compact path-anchored markdown list suitable for embedding in the PROJECT_SUMMARY_TASK prompt. Format:
internal/scan/agent.go:957
↓ 3 callersFunctionbuildToolInputSchema
(params map[string]any)
internal/llm/client.go:1718
↓ 3 callersFunctionbuildToolRegistry
(collector *tool.CommentCollector, fr *tool.FileReader)
cmd/opencodereview/review_cmd.go:698
↓ 3 callersFunctionbuildWorkspaceFiles
* Builds the workspace file list, matching the OCR CLI's workspace mode: * `diff HEAD` first, falling back to `diff --cached` when it is empty (no HE
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:86
↓ 3 callersFunctioncallGroupingLLM
(ctx context.Context, diffs []model.Diff, client llm.LLMClient, modelName string, task *template.LlmConversati
internal/agent/grouping.go:172
↓ 3 callersMethodcapture
capture runs a git command and returns its stdout and stderr. With combined set, stderr is folded into the same pipe so relative write order is preser
internal/gitcmd/runner.go:302
↓ 3 callersFunctioncheckAPIKeyRequirement
checkAPIKeyRequirement decides whether a provider selection may be saved with no api_key. It mirrors the resolver's precedence (static api_key -> api_
cmd/opencodereview/provider_cmd.go:246
↓ 3 callersFunctioncheckAgentPluginManifests
(specs, readJson, listDirs, readFile)
scripts/github-actions/check-plugin-contract.js:661
↓ 3 callersFunctioncheckResponseStatus
checkResponseStatus turns unsuccessful response objects into errors. The Responses API can return these states with HTTP 200, so the SDK does not reje
internal/llm/responses_client.go:213
↓ 3 callersFunctioncitedObservations
(markdown string)
internal/behaviortask/validate.go:16
↓ 3 callersFunctionclassifyAttempt
classifyAttempt maps an observation to an ErrorClass and FailurePhase. A non-2xx status is the strongest available fact, so it decides the class befo
internal/llm/retry_report.go:182
↓ 3 callersFunctionclient
(pages, comparisons = [])
scripts/github-actions/check-pr-commit-policy.test.js:57
↓ 3 callersFunctioncloneCustomProvidersMap
(src map[string]ProviderEntry)
cmd/opencodereview/provider_tui.go:1345
↓ 3 callersMethodcloseWrite
closeWrite drops the parent's copy of the write end so that EOF becomes visible once every child copy is closed.
internal/gitcmd/runner.go:190
↓ 3 callersMethodcommand
(ctx context.Context, repoDir string, args ...string)
internal/gitcmd/runner.go:121
↓ 3 callersFunctioncommit
(index, message = "fix: keep CI running")
scripts/github-actions/check-pr-commit-policy.test.js:34
↓ 3 callersFunctioncommitShowNameStatusArgs
* Arguments for `git show --name-status` when listing files changed by one commit. * * `--diff-merges=first-parent` is required: a plain `git show`
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:192
↓ 3 callersMethodconfig
(self)
examples/gitlab_ci/post_review_test.py:1364
↓ 3 callersMethodconfigPath
()
extensions/vscode/src/extension/services/ConfigService.ts:16
↓ 3 callersMethodconfirmDeleteCustomModel
()
cmd/opencodereview/provider_tui.go:1627
↓ 3 callersFunctioncontains
(list []string, want string)
internal/scan/provider_more_test.go:146
↓ 3 callersFunctioncountSessionFiles
(t *testing.T, repoDir string)
cmd/opencodereview/review_resume_more_test.go:225
↓ 3 callersMethodcpAmbientProtocol
cpProtocolIndex maps a protocol string (canonical name or legacy alias) to its index in cpProtocols. Unknown / empty values default to the OpenAI Chat
cmd/opencodereview/provider_tui.go:201
↓ 3 callersFunctioncpProtocolIndex
(protocol string)
cmd/opencodereview/provider_tui.go:205
↓ 3 callersMethodcustomProviderNameTaken
(name string)
cmd/opencodereview/provider_tui.go:226
↓ 3 callersFunctioncustomStepfunModelTUI
(t *testing.T, configPath string, models []string)
cmd/opencodereview/provider_tui_test.go:1539
↓ 3 callersFunctiondecodeResult
(args []string, stdout []byte)
acp/internal/orchestrator/decode.go:15
↓ 3 callersFunctiondeleteCustomProvider
deleteCustomProvider removes a custom provider from cfg in memory. Returns true if the deleted provider was the active one.
cmd/opencodereview/config_cmd.go:281
↓ 3 callersFunctiondiagnosticText
(text string, auth *Auth)
internal/chatgptauth/api_error.go:37
↓ 3 callersFunctiondiff_inventory
Build a diff inventory for ``path`` from ``{new_line: (type, old_line)}``.
examples/gitlab_ci/post_review_test.py:64
↓ 3 callersFunctiondiffsChurn
diffsChurn returns the set's aggregate churn and its largest single-file churn. Both feed Template.PlanRequired; the aggregate alone feeds Template.Gr
internal/agent/agent.go:1408
↓ 3 callersFunctiondiffs_from
(diff_text)
examples/gitflic_ci/post_review_test.py:157
↓ 3 callersFunctiondisplayURL
displayURL builds the URL to print and hand to the browser. The host comes from the requested address, not from the listener: net.Listen resolves a h
internal/viewer/server.go:164
↓ 3 callersFunctionemitAnnotation
(level, file, message, line)
scripts/github-actions/check-plugin-contract.js:736
↓ 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 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:2393
↓ 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 callersFunctiongetDocTitle
(slug: DocSlug, loaded: LoadedDocContent)
pages/src/content/docs/index.ts:126
↓ 3 callersFunctiongetPostedCommentIds
({ github, owner, repo, prNumber, log })
scripts/github-actions/post-review-comments.js:2131
↓ 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:91
↓ 3 callersFunctionhasSubtaskErrors
(warnings []agent.AgentWarning)
cmd/opencodereview/output.go:51
↓ 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:616
↓ 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: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 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 callersFunctionlistBotReviewThreads
({ github, owner, repo, prNumber, log, warn })
scripts/github-actions/post-review-comments.js:1545
↓ 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 callersFunctionloadLanguageContent
(language: Language)
pages/src/content/docs/index.ts:79
↓ 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:194
← previousnext →1,101–1,200 of 7,390, ranked by callers