MCPcopy Create free account

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

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

↓ 4 callersFunctionrenderListName
(name string, isCursor bool)
cmd/opencodereview/provider_tui.go:2124
↓ 4 callersFunctionrenderedEnv
(step, values, stepOutputs = {})
scripts/github-actions/action-contract.test.js:196
↓ 4 callersMethodreportTimeout
(ctx context.Context, id acp.SessionId)
acp/internal/adapter/prompt.go:141
↓ 4 callersFunctionrequireExec
(t *testing.T)
internal/mcp/stdio_test.go:248
↓ 4 callersFunctionresolveBackground
resolveBackground determines the effective background from the flag combination. --background-file wins over --background; the commit-message fallback
cmd/opencodereview/background_file.go:50
↓ 4 callersFunctionresolveConversation
(m manifestConversation)
internal/config/template/template.go:191
↓ 4 callersFunctionresolveEnv
(over = {})
scripts/github-actions/post-review-comments.test.js:5092
↓ 4 callersFunctionresolveLang
resolveLang returns the resolved language name for the instruction.
internal/config/template/template.go:279
↓ 4 callersFunctionreviewModeString
(from, to, commit string)
internal/agent/util.go:147
↓ 4 callersFunctionrollbackCfgActiveModel
(cfg *Config, providerName, prevModel string)
cmd/opencodereview/provider_tui.go:480
↓ 4 callersMethodruleConfigSHA256
ruleConfigSHA256 is the deterministic identity of the resolved rule configuration this run operates with: the resolver's effective rule-text layers (c
internal/agent/agent.go:1076
↓ 4 callersFunctionrunChatGPTLogout
(ctx context.Context, out io.Writer)
cmd/opencodereview/chatgpt_auth.go:90
↓ 4 callersMethodrunGitSplit
runGitSplit runs git with stdout and stderr kept apart, for the callers that quote the failure back to the user. runGit's combined output cannot be q
internal/diff/git.go:766
↓ 4 callersFunctionrunLauncher
(fixture, args, signal, readyToken)
bin/ocr.test.js:138
↓ 4 callersFunctionrunScanPreview
(cc *commonContext, scanTpl *template.ScanTemplate, scanPaths []string, outputFormat string, out io.Writer)
cmd/opencodereview/scan_cmd.go:279
↓ 4 callersMethodrun_main_with_captured_poster
(self, env_overrides, result=None)
examples/gitlab_ci/post_review_test.py:1652
↓ 4 callersMethodrun_with_urlopen
(self, fake_urlopen, config=None, discussion=None)
examples/gitlab_ci/post_review_test.py:1188
↓ 4 callersFunctionsarifFingerprints
sarifFingerprints builds a stable partialFingerprints entry for a finding. The fingerprint is based on Path + Category + ExistingCode (not message.tex
cmd/opencodereview/sarif.go:288
↓ 4 callersFunctionsarifInvocationFromRun
sarifInvocationFromRun builds the run.invocations entry from the manifest's terminal state and any warnings collected during the review. executionSuc
cmd/opencodereview/sarif.go:314
↓ 4 callersFunctionsarifResultFromComment
sarifResultFromComment maps a single LlmComment to a SARIF result. Field mapping follows FR-3 in the requirements spec: - Path → locations[].
cmd/opencodereview/sarif.go:228
↓ 4 callersMethodscanItemFingerprint
(it model.ScanItem)
internal/scan/agent.go:264
↓ 4 callersMethodselectScanItems
selectScanItems is the single pre-dispatch selection pass shared by Run and Preview. Keep the size check after the normal reviewability rules so an it
internal/scan/agent.go:432
↓ 4 callersMethodselectedModelFromState
()
cmd/opencodereview/provider_tui.go:1986
↓ 4 callersMethodset
(stage string)
acp/internal/intent/llm/diagnostics.go:30
↓ 4 callersFunctionsetRulesCheckRepo
setRulesCheckRepo points the rulesCheckCmd's package-level --repo flag at repo for the duration of the test, restoring it afterward. runRulesCheck rea
cmd/opencodereview/rules_cmd_test.go:46
↓ 4 callersFunctionsetupRecordingTelemetry
setupRecordingTelemetry enables telemetry through the public Init entrypoint, then redirects the global tracer provider to an in-process span recorder
internal/scan/trace_parent_test.go:49
↓ 4 callersFunctionstartCancellableCopy
(dst, src *os.File, acquireThread func() (syscall.Handle, error))
acp/cmd/ocr-acp/stdio_windows.go:158
↓ 4 callersFunctionstatusBadge
statusBadge renders the per-file status tag. The letter carries the meaning, so with color disabled the bare "[A]"/"[M]"/... form is still unambiguous
cmd/opencodereview/output.go:867
↓ 4 callersMethodstop
(cmd *exec.Cmd, waited <-chan error)
acp/internal/orchestrator/runner.go:266
↓ 4 callersFunctionstripThinkTags
stripThinkTags removes reasoning wrapper tags from content.
internal/llm/client.go:1827
↓ 4 callersFunctionstubForceExit
stubForceExit replaces the process-level force-exit hook with a recording stub so tests can observe the second-signal path without terminating the tes
cmd/opencodereview/interrupt_test.go:25
↓ 4 callersMethodsummaryEnabled
()
internal/scan/agent.go:103
↓ 4 callersFunctiontoolResultMessages
toolResultMessages answers every tool call in the turn. Both supported protocols reject an assistant turn whose tool calls are not all answered, so le
cmd/opencodereview/llm_cmd.go:222
↓ 4 callersMethodtransition
transition moves a selected item to a terminal state through the single coverage entry point. Unknown item_id, an invalid failed classification, an em
internal/session/manifest.go:618
↓ 4 callersMethodtriggerAsyncCompression
triggerAsyncCompression kicks off a background compression job for the conversation owning st. A no-op when a job is already pending — the check-and-s
internal/llmloop/compression.go:382
↓ 4 callersFunctiontrimGitUsage
(stderr string, exitCode int)
internal/tool/code_search.go:268
↓ 4 callersFunctionunmarshalChatCompletionBody
These tests are the deterministic, no-live-model reproductions for issue #805: a response that carries provider reasoning must still carry it, byte fo
internal/llm/native_turn_test.go:22
↓ 4 callersFunctionunquoteGitPath
(path: string)
extensions/vscode/src/extension/services/gitMap.ts:130
↓ 4 callersMethodupdateManualForm
(key string, msg tea.KeyPressMsg)
cmd/opencodereview/provider_tui.go:1496
↓ 4 callersFunctionuseSectionTitleStyle
()
pages/src/hooks/useResponsiveStyle.ts:15
↓ 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:212
↓ 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:689
↓ 3 callersMethodAddToolResult
AddToolResult appends a tool call result to this task record and writes a tool_call record to the JSONL stream.
internal/session/history.go:572
↓ 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 callersMethodExecutionStatus
(runErr error)
internal/behaviortask/result.go:123
↓ 3 callersFunctionFailureSummary
(err error)
internal/behaviortask/runner.go:283
↓ 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:231
↓ 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 callersFunctionLoadDefault
LoadDefault parses the embedded task.json and returns the TEST_TASK conversation.
internal/config/testconnection/testconnection.go:48
↓ 3 callersFunctionLoadGitignoreAtRef
(ctx context.Context, repoDir, ref string, runner *gitcmd.Runner)
internal/diff/gitignore.go:16
↓ 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 callersFunctionMatchFileNames
(ctx context.Context, files []string, queryName string, caseSensitive bool, limit int, allowed func(string) bo
internal/tool/file_find.go:63
↓ 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:1266
↓ 3 callersFunctionNewCommentWorkerPool
NewCommentWorkerPool delegates to reviewtask.NewCommentWorkerPool.
internal/agent/agent.go:50
↓ 3 callersFunctionNewRunner
(ctx context.Context, deps Deps, input Input)
internal/behaviortask/runner.go:57
↓ 3 callersFunctionNewWorkspaceProviderWithBase
(repoDir string, base InputResolution, runner *gitcmd.Runner)
internal/diff/workspace.go:16
↓ 3 callersFunctionOfName
(name string)
internal/tool/definitions.go:29
↓ 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 callersFunctionRawLoggingEnabled
()
internal/llm/raw.go:26
↓ 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:308
↓ 3 callersMethodRecordToolCall
(name string)
internal/llmloop/loop.go:172
↓ 3 callersMethodRecordToolFailure
(number int64, name, taskKey, errMsg string, rec *session.TaskRecord, rawArguments string, duration time.Dura
internal/llmloop/loop.go:183
↓ 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 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 callersMethodSave
(result Result, status string)
internal/behaviortask/result.go:137
↓ 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:454
↓ 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 callersMethodTotalCacheReadTokens
TotalCacheReadTokens returns the accumulated cache read tokens.
internal/llmloop/loop.go:119
↓ 3 callersMethodTotalCacheWriteTokens
TotalCacheWriteTokens returns the accumulated cache write tokens.
internal/llmloop/loop.go:122
↓ 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:1130
↓ 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
← previousnext →1,001–1,100 of 7,390, ranked by callers