MCPcopy Create free account

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

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

↓ 4 callersMethodvalid
valid reports whether c is one of the fixed attempt error classes.
internal/llm/retry_report.go:38
↓ 4 callersMethodvalid
valid reports whether c is one of the fixed item failure classes.
internal/session/manifest.go:69
↓ 4 callersFunctionvalidateProviderName
(name string)
cmd/opencodereview/config_cmd.go:1043
↓ 4 callersFunctionvalidateRepoLinks
(links, probe)
scripts/github-actions/check-plugin-contract.js:320
↓ 4 callersFunctionwalkSessionFile
(path string, apply func(summaryRecord))
internal/session/list.go:206
↓ 4 callersFunctionwithUsage
(resp *llm.ChatResponse, prompt int64)
internal/reviewtask/loop_test.go:1240
↓ 4 callersMethodwrite
(name string, v any)
internal/chatgptauth/store.go:136
↓ 4 callersFunctionwriteCodeBlock
(b *strings.Builder, path, code string)
acp/internal/adapter/presentation/markdown.go:16
↓ 4 callersFunctionwriteOutError
writeOutError surfaces deferred write errors from writers that record them (lazyFileWriter); plain writers such as os.Stdout report nil.
cmd/opencodereview/shared.go:684
↓ 3 callersFunctionBuild
Build compiles the stub once per test binary.
acp/internal/testutil/stub.go:55
↓ 3 callersMethodCallTool
(ctx context.Context, req LLMRequest)
acp/internal/intent/parser.go:31
↓ 3 callersFunctionChatGPTModels
(ctx context.Context)
internal/llm/chatgpt.go:26
↓ 3 callersFunctionContentLogging
ContentLogging returns true when content logging is enabled via OCR_CONTENT_LOGGING.
internal/telemetry/provider.go:78
↓ 3 callersFunctionEffortNames
EffortNames returns the accepted values for shell completion and error messages.
internal/config/template/effort.go:25
↓ 3 callersMethodFinalManifest
FinalManifest returns the frozen manifest stored for this run, or nil when the run produced none (legacy/scan, or a construction failure).
internal/session/history.go:217
↓ 3 callersMethodForEachInOrder
ForEachInOrder visits Included and Excluded in the original changeset order. providerExcluded is true for built-in directory exclusions. Files dropped
internal/diff/git.go:83
↓ 3 callersFunctionListSessions
ListSessions returns lightweight summaries for all sessions in a repo subdir.
internal/viewer/store.go:115
↓ 3 callersFunctionLoadDefault
LoadDefault parses the embedded task.json and returns the TEST_TASK conversation.
internal/config/testconnection/testconnection.go:48
↓ 3 callersFunctionLoadReviewResumeState
LoadReviewResumeState replays a review session, dropping records it cannot parse. Review reuse is gated on the parent manifest rather than on these li
internal/session/resume.go:107
↓ 3 callersMethodMergeBase
MergeBase returns the computed merge-base commit hash for range mode.
internal/diff/git.go:198
↓ 3 callersFunctionNativePathFromFileURL
NativePathFromFileURL converts a local file: URL path into an OS path. Callers must already have rejected non-file schemes, hosts, queries and fragmen
acp/internal/adapter/workspace/fileurl.go:16
↓ 3 callersFunctionNewAnthropicBedrockClient
NewAnthropicBedrockClient creates a client for Anthropic models served by AWS Bedrock. The wire format is the Messages API, so this reuses AnthropicC
internal/llm/client.go:1239
↓ 3 callersFunctionNewCommentWorkerPool
NewCommentWorkerPool delegates to reviewtask.NewCommentWorkerPool.
internal/agent/agent.go:50
↓ 3 callersFunctionNewWorkspaceProviderWithBase
(repoDir string, base InputResolution, runner *gitcmd.Runner)
internal/diff/workspace.go:16
↓ 3 callersFunctionOfName
(name string)
internal/tool/definitions.go:27
↓ 3 callersFunctionParseRetryCodes
ParseRetryCodes parses a comma-separated list of HTTP status codes that should trigger retry. Non-4xx codes return an error; SDK-default codes (408, 4
internal/llm/resolver.go:996
↓ 3 callersFunctionPrintToolCallError
PrintToolCallError prints a line when a tool fails. Example: [ocr] ✘ file_read "internal/config/rules/loader.go" failed: permission denied
internal/telemetry/events.go:123
↓ 3 callersFunctionPrintToolCallStarted
PrintToolCallStarted prints a line when a tool begins execution. Args are summarized as key-value pairs (path, search terms, etc.). Example: [ocr] ▶
internal/telemetry/events.go:106
↓ 3 callersFunctionProviderDirPrefix
ProviderDirPrefix returns the blocklist prefix that excludes relPath, including the trailing slash (for example "vendor/"), or "" if none match.
internal/diff/gitignore.go:19
↓ 3 callersMethodRecordResumeLineage
RecordResumeLineage persists the run's single resume_lineage event. A nil lineage is a non-resumed run and writes nothing.
internal/session/history.go:294
↓ 3 callersMethodRemoveByPathAndIndices
RemoveByPathAndIndices removes comments for a given path whose per-path index (0-based position among all comments with that path) is in the indices s
internal/tool/comment_collector.go:96
↓ 3 callersMethodResolve
Resolve returns the rule text for a given file path. Patterns with brace expansion like "*.{go,py}" are expanded into "*.go", "*.py". The first match
internal/config/rules/system_rules.go:149
↓ 3 callersMethodResolveCommit
ResolveCommit reports whether ref resolves to a commit in the target repo.
acp/internal/intent/validate.go:17
↓ 3 callersMethodResolveCommitComparison
(ctx context.Context)
internal/diff/comparison.go:12
↓ 3 callersFunctionResolveComparisonInput
ResolveComparisonInput turns every moving head ref into an immutable commit before loading the diff. Range mode computes its merge-base against frozen
internal/agent/identity.go:71
↓ 3 callersFunctionResolveConfig
ResolveConfig builds the final Config by merging defaults, JSON config, and env vars. Precedence: defaults < config.json < environment variables.
internal/telemetry/config.go:113
↓ 3 callersMethodSessionID
SessionID returns the current review's resumable session ID. It returns an empty string when the session file could not be created, so callers do not
internal/agent/agent.go:452
↓ 3 callersFunctionSessionsRoot
SessionsRoot returns the root directory where session JSONL files are stored.
internal/viewer/store.go:29
↓ 3 callersFunctionShutdownWithTimeout
ShutdownWithTimeout creates a timeout context and calls Shutdown.
internal/telemetry/shutdown.go:39
↓ 3 callersFunctionStartServer
StartServer binds addr and serves until the listener fails. openMode is one of OpenAuto, OpenAlways or OpenNever; callers should have run ValidateOpen
internal/viewer/server.go:45
↓ 3 callersFunctionStyleProgress
(progressColor, errorColor bool)
internal/stdout/style.go:24
↓ 3 callersMethodSubmitFor
SubmitFor is Submit plus registration under key, so AwaitKey can wait for exactly the units submitted under that key instead of the whole pool. Calle
internal/reviewtask/pool.go:60
↓ 3 callersFunctionSubmitIntentTool
SubmitIntentTool returns the tool definition sent to the parsing model.
acp/internal/intent/tool.go:96
↓ 3 callersMethodToolCalls
ToolCalls extracts tool calls from the first choice.
internal/llm/client.go:362
↓ 3 callersMethodTotalCacheReadTokens
TotalCacheReadTokens returns the accumulated cache read tokens.
internal/llmloop/loop.go:110
↓ 3 callersMethodTotalCacheWriteTokens
TotalCacheWriteTokens returns the accumulated cache write tokens.
internal/llmloop/loop.go:113
↓ 3 callersMethodTotalTokensUsed
TotalTokensUsed / TotalInputTokens / ... delegate to the underlying runner.
internal/scan/agent.go:226
↓ 3 callersMethod_mock_response
(self, status=200, body=b'{"comment_biz_id": "abc"}')
examples/codeup_ci/post_review_test.py:142
↓ 3 callersFunction_num
(v)
examples/gitlab_ci/post_review.py:412
↓ 3 callersMethod_poster
(self, config_overrides=None)
examples/gitlab_ci/post_review_test.py:1103
↓ 3 callersMethod_read_with_pacing
Read with proactive pacing, mirroring the GitHub Action's readWithPacing. Reads are cheaper than writes but still consume the primary rate li
examples/gitlab_ci/post_review.py:918
↓ 3 callersFunctionaccumulateResponseStream
accumulateResponseStream rebuilds a complete response from output-item done events and the terminal response envelope, including streams whose termina
internal/llm/responses_client.go:387
↓ 3 callersFunctionadd
(signal, handler)
bin/ocr.js:37
↓ 3 callersFunctionaddExcludeFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:48
↓ 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 callersMethodapiKeyStepCanConfirm
()
cmd/opencodereview/provider_tui.go:995
↓ 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 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:231
↓ 3 callersMethodapplyResume
(diffs []model.Diff)
internal/agent/agent.go:878
↓ 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:6638
↓ 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:368
↓ 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:1691
↓ 3 callersFunctionbuildToolRegistry
(collector *tool.CommentCollector, fr *tool.FileReader)
cmd/opencodereview/review_cmd.go:668
↓ 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:200
↓ 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 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 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:88
↓ 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:1337
↓ 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:1406
↓ 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
← previousnext →1,001–1,100 of 7,128, ranked by callers