MCPcopy Create free account

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

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

↓ 5 callersFunctionpreserveCheckpointMarker
(newBody, oldBody)
scripts/github-actions/post-review-comments.js:3048
↓ 5 callersFunctionprobeVersion
(binary string, timeout time.Duration)
acp/internal/orchestrator/resolve.go:140
↓ 5 callersFunctionpromptContent
Resources select local scan targets; they are never fetched or interpreted as instructions, and never silently narrow a repository-wide review.
acp/internal/adapter/resources.go:24
↓ 5 callersFunctionrawPath
(home, repoDir, sessionID string)
internal/session/raw_writer_test.go:21
↓ 5 callersFunctionread
()
scripts/github-actions/post-review-comments.test.js:6127
↓ 5 callersFunctionreadAllPages
(tag, pageFn, log, maxPages = 50)
scripts/github-actions/post-review-comments.js:2077
↓ 5 callersMethodrelease
()
internal/gitcmd/runner.go:165
↓ 5 callersFunctionrender
(providers []llm.Provider)
internal/llm/gen/main.go:105
↓ 5 callersFunctionrenderedRun
(step, values)
scripts/github-actions/action-contract.test.js:204
↓ 5 callersMethodrequests
()
internal/reviewtask/retry_identity_test.go:56
↓ 5 callersFunctionrequireGitSh
requireGitSh skips when git cannot dispatch aliases (no bundled sh). On a stock Git for Windows install this is always present.
internal/gitcmd/runner_pipe_windows_test.go:145
↓ 5 callersMethodresolveBin
* Resolves a command name to an absolute path. When resolution fails, the original name is returned and left * to [ProcessBuilder] to find on the
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ShellEnv.kt:74
↓ 5 callersFunctionresolveLinesInContent
* Resolve CLI line numbers in [content]: use valid lines directly, otherwise relocate with an [existingCode] sliding-window match. * Return null if b
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/providers/CommentAnchor.kt:103
↓ 5 callersFunctionresolveMaxTokens
resolveMaxTokens applies the per-run CLI override, then the saved setting, and finally the embedded task-template default.
cmd/opencodereview/shared.go:52
↓ 5 callersFunctionrevParse
revParse resolves a ref to its full SHA, so a test can spell the same commit a different way.
cmd/opencodereview/review_resume_more_test.go:112
↓ 5 callersMethodreviewMode
()
internal/agent/agent.go:933
↓ 5 callersFunctionreviseAttempt
reviseAttempt applies a client-boundary correction to the last attempt of the logical request identified by ctx. Requests without identity (scan, llm
internal/llm/retry_boundary.go:103
↓ 5 callersMethodrun
(opts: CliRunOptions, cb: SessionCallbacks)
extensions/vscode/src/extension/services/ReviewSession.ts:35
↓ 5 callersFunctionrunChatGPTLogin
(ctx context.Context, out io.Writer)
cmd/opencodereview/chatgpt_auth.go:34
↓ 5 callersFunctionrunConfigSet
(key, value string)
cmd/opencodereview/config_cmd.go:101
↓ 5 callersMethodrunGit
(ctx context.Context, args ...string)
internal/diff/git.go:739
↓ 5 callersFunctionrunLinksCheck
({ repoRoot = process.cwd(), minLinks = MIN_EXPECTED_LINKS, minFiles = MIN_EXPECTED_LINK_FILES, maxSca
scripts/github-actions/check-plugin-contract.js:883
↓ 5 callersFunctionrunPreview
(cc *commonContext, opts reviewOptions, out io.Writer)
cmd/opencodereview/review_helpers_test.go:20
↓ 5 callersFunctionrunSessionCommentsCompat
runSessionCommentsCompat provides test compatibility for old-style runSessionComments([]string{...}) calls.
cmd/opencodereview/compat_test.go:99
↓ 5 callersFunctionrunShell
(script, env, fixture)
scripts/github-actions/action-contract.test.js:280
↓ 5 callersFunctionrunWorkspaceResumeReview
runWorkspaceResumeReview drives a workspace review through the CLI. An empty resumeID starts a fresh run; otherwise it resumes that session.
cmd/opencodereview/workspace_resume_e2e_test.go:154
↓ 5 callersFunctionsanitizeMarkdown
(s string)
cmd/opencodereview/background_file.go:116
↓ 5 callersMethodsearch
(ctx context.Context, provider tool.Provider, args map[string]any, side string)
internal/behaviortask/search.go:98
↓ 5 callersFunctionseedRmSession
(t *testing.T, _ /*home*/, repoDir, sessionID string)
cmd/opencodereview/session_rm_test.go:19
↓ 5 callersFunctionselectDiffMarks
* Select comments for this diff document by both path and side. A diff exposes both documents, so checking the side * prevents duplicate icons: each
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/providers/CommentAnchor.kt:207
↓ 5 callersMethodselected
selected reports whether the file enters the review's selected set — the same set registerCoverage seals and preview reports as will_review.
internal/agent/selection.go:24
↓ 5 callersMethodselectedModel
()
cmd/opencodereview/provider_tui.go:3101
↓ 5 callersFunctionsessionFixture
sessionFixture writes a session JSONL under root/repo and returns root.
internal/viewer/export_test.go:15
↓ 5 callersFunctionsetColorFlags
setColorFlags sets the flag-backed variable for one test and restores it.
cmd/opencodereview/color_test.go:37
↓ 5 callersFunctionsetProviderValue
(cfg *Config, key, value string)
cmd/opencodereview/config_cmd.go:1002
↓ 5 callersMethodsourceArtifactSHA256
sourceArtifactSHA256 is the deterministic content identity of this run's selected input: for every diff it pairs the content-independent item_id with
internal/agent/agent.go:1043
↓ 5 callersFunctionsplitBindHost
splitBindHost returns the host portion of a listen address as passed to http.Server.Addr. Empty input returns "".
internal/viewer/hostguard.go:109
↓ 5 callersFunctionsplitPaths
(raw string)
cmd/opencodereview/scan_cmd.go:95
↓ 5 callersFunctionstart
(options: CliRunOptions)
extensions/frontend/src/webview/App.tsx:30
↓ 5 callersFunctionunsetCustomProvider
(configPath, name string)
cmd/opencodereview/config_cmd.go:230
↓ 5 callersFunctionunsetMCPServer
(configPath, name string)
cmd/opencodereview/config_cmd.go:253
↓ 5 callersMethodupdate
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/actions/OpenOcrToolWindowAction.kt:13
↓ 5 callersFunctionuserAgent
(provider string)
internal/llm/client.go:83
↓ 5 callersFunctionvalidateAgentPluginManifest
(file, json)
scripts/github-actions/check-plugin-contract.js:629
↓ 5 callersFunctionwirePair
(t *testing.T, a *Agent)
acp/internal/adapter/connection_test.go:112
↓ 5 callersFunctionwithProviderErrorBody
withProviderErrorBody appends the provider's response body to an API error the SDK left without one. It extracts the payload with the gjson path "erro
internal/llm/client.go:998
↓ 4 callersMethodCanonicalConfig
()
internal/config/rules/sniffer.go:29
↓ 4 callersFunctionCleanup
Cleanup removes the cached build, including any partial build artifacts. Call it from TestMain only after m.Run returns and all stub users have stoppe
acp/internal/testutil/stub.go:65
↓ 4 callersMethodClear
(ctx context.Context, id string)
internal/chatgptauth/store.go:232
↓ 4 callersFunctionClose
Close releases the OS resources owned by a managed command.
acp/internal/orchestrator/process/process_unix.go:24
↓ 4 callersMethodClose
()
internal/mcp/client.go:206
↓ 4 callersMethodCloseSession
(ctx context.Context, p acp.CloseSessionRequest)
acp/internal/adapter/session.go:58
↓ 4 callersFunctionDefaultConfig
DefaultConfig returns a disabled default configuration.
internal/telemetry/config.go:32
↓ 4 callersMethodDiffs
()
cmd/opencodereview/shared.go:767
↓ 4 callersMethodGet
Get returns the diff text for path.
internal/tool/file_read_diff.go:34
↓ 4 callersMethodHasInclude
HasInclude reports whether any include patterns are configured.
internal/config/rules/system_rules.go:227
↓ 4 callersMethodHasPersistence
HasPersistence reports whether this session has a JSONL writer. A false value means no resumable session file exists, even though the run still has it
internal/session/history.go:247
↓ 4 callersFunctionListSessions
ListSessions returns lightweight summaries for all sessions in a repo subdir.
internal/viewer/store.go:116
↓ 4 callersFunctionLoadGitignorePatterns
LoadGitignorePatterns reads and parses .gitignore patterns from the given repository root. Returns nil if the file is missing or unreadable.
internal/diff/gitignore.go:65
↓ 4 callersMethodMatches
(relPath string)
internal/diff/git.go:317
↓ 4 callersMethodModels
(ctx context.Context, auth *Auth)
internal/chatgptauth/models.go:18
↓ 4 callersFunctionNewRemoteClient
NewRemoteClient connects to a remote MCP server via Streamable HTTP transport. Header values may contain $ENV_VAR references which are expanded at run
internal/mcp/client.go:84
↓ 4 callersFunctionNewResumeLineage
NewResumeLineage builds the lineage for an accepted resume of parent. It returns nil when there is nothing to record — no parent, or a parent with no
internal/session/resume_identity.go:191
↓ 4 callersFunctionOf
Of returns a checkpoint with data.
internal/tool/response_message.go:27
↓ 4 callersFunctionParseExtraHeaders
ParseExtraHeaders parses a string of comma-separated key=value pairs into a dictionary. Values may be double-quoted to include commas, e.g. X-Forwarde
internal/llm/resolver.go:894
↓ 4 callersMethodPaths
Paths returns the snapshot's paths in sorted order, so a message built from it reads the same way on every run.
internal/tool/file_read_diff.go:41
↓ 4 callersMethodProjectSummary
ProjectSummary is the markdown project-level summary produced by scan's PROJECT_SUMMARY_TASK. Empty for review mode and for scans that skipped / faile
cmd/opencodereview/shared.go:778
↓ 4 callersFunctionProviderDirPrefix
ProviderDirPrefix returns the blocklist prefix that excludes relPath, including the trailing slash (for example "vendor/"), or "" if none match.
internal/diff/gitignore.go:53
↓ 4 callersFunctionRecordToolCall
(ctx context.Context, name string, dur time.Duration, ok bool)
internal/telemetry/metrics.go:133
↓ 4 callersFunctionRecordToolResult
RecordToolResult sets the outcome of a tool execution on the span.
internal/telemetry/span.go:93
↓ 4 callersMethodRefValue
RefValue returns the git ref that should be used for reading file contents in range or commit mode. Returns ("", false) for workspace mode.
internal/tool/filereader.go:47
↓ 4 callersMethodRequestContext
RequestContext must be called after AppendTaskRecord: request identity joins the retry report to the existing session record by its RequestNo.
internal/llmloop/loop.go:34
↓ 4 callersMethodResolveCommitComparison
(ctx context.Context)
internal/diff/comparison.go:12
↓ 4 callersFunctionResolveLocation
ResolveLocation only adds navigation when the existing file and the full reported line range are valid. Callers must retain finding text on failure.
acp/internal/adapter/workspace/files.go:77
↓ 4 callersMethodResumeInfo
ResumeInfo returns resume metadata for output. Nil means this was not a resume run.
internal/scan/agent.go:203
↓ 4 callersMethodReusableItem
ReusableItem returns the checkpoint for fingerprint only if the parent manifest also recorded that fingerprint as completed or reused. The manifest i
internal/session/resume.go:244
↓ 4 callersFunctionRun
(ctx context.Context, review func(context.Context) ([]model.LlmComment, error), analysis func(context.Context)
internal/workflow/run.go:23
↓ 4 callersFunctionSameRepoPath
SameRepoPath reports whether two repository paths name the same directory. A session records whichever spelling the caller used: `C:\repo` arrives fr
internal/session/delete.go:147
↓ 4 callersMethodSelect
(ctx context.Context, id string)
internal/chatgptauth/store.go:246
↓ 4 callersMethodSetParentRunID
SetParentRunID links this run to the session it resumed from. It only records the direct parent; the parent's input is never copied into this run.
internal/session/manifest.go:381
↓ 4 callersMethodSetReadDeadline
(t time.Time)
acp/cmd/ocr-acp/stdio.go:26
↓ 4 callersFunctionStart
Start applies OS process-tree membership and starts cmd. On Windows the process is born suspended, assigned to a Job Object, then resumed so descendan
acp/internal/orchestrator/process/process.go:15
↓ 4 callersMethodToolCalls
ToolCalls extracts tool calls from the first choice.
internal/llm/client.go:373
↓ 4 callersMethodUnmarshalJSON
UnmarshalJSON preserves the key order from JSON's path_rule_map object.
internal/config/rules/system_rules.go:39
↓ 4 callersMethod_retry
(self, endpoint, data=None, method="GET")
examples/gitlab_ci/post_review.py:914
↓ 4 callersMethod_versions
(self, *triples)
examples/gitlab_ci/post_review_test.py:1443
↓ 4 callersFunctionaddRepoFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:15
↓ 4 callersFunctionanalysisInputForReview
(cc *commonContext, opts reviewOptions, runtime *llmRuntime, reviewID string, resolution diff.InputResolution)
cmd/opencodereview/analysis.go:54
↓ 4 callersFunctionanalysisMarkdownForDisplay
(markdown string)
cmd/opencodereview/analysis_output.go:93
↓ 4 callersFunctionapplyDedupGroups
applyDedupGroups parses the DEDUP_TASK output and returns the deduped comment slice. Returns (nil, false) when the response is malformed OR when the g
internal/scan/agent.go:1073
↓ 4 callersFunctionargCountError
argCountError assembles the guidance for a wrong argument count. The count the user supplied is deliberately not echoed back — it adds nothing they do
cmd/opencodereview/arg_errors.go:57
↓ 4 callersFunctionassertDeclined
assertDeclined is the shared assertion for a batch the repair must refuse: no comments, no repair description, and the parser's own wording handed bac
internal/tool/comment_args_repair_test.go:420
↓ 4 callersFunctionassertErrorKind
(t *testing.T, err error, want ErrorKind)
acp/internal/orchestrator/runner_test.go:270
↓ 4 callersMethodattach
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/CliCancellation.kt:30
↓ 4 callersFunctionbatchPaths
(b [][]model.ScanItem)
internal/scan/batch_test.go:21
↓ 4 callersFunctionbridgeNonpollable
(raw *os.File, output bool)
acp/cmd/ocr-acp/stdio_windows.go:74
↓ 4 callersFunctionbuildBadgeImage
(comment)
scripts/github-actions/post-review-comments.js:2283
↓ 4 callersFunctionbuildPolicy
({ severityThreshold, categories } = {})
scripts/github-actions/post-review-comments.js:2314
↓ 4 callersFunctionbuildToolRegistryWithCodeAccess
(collector *tool.CommentCollector, fr *tool.FileReader, access *tool.CodeAccess)
cmd/opencodereview/review_cmd.go:702
↓ 4 callersFunctioncanonicalRoot
── project-layer confinement tests ── canonicalRoot returns the canonical (symlink-resolved) form of dir, mirroring loadProjectRule's pathutil.Canonic
internal/config/rules/system_rules_test.go:1862
← previousnext →801–900 of 7,390, ranked by callers