Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,390 in github.com/alibaba/open-code-review
⨍
Functions
7,390
◇
Types & classes
806
↓ 5 callers
Function
preserveCheckpointMarker
(newBody, oldBody)
scripts/github-actions/post-review-comments.js:3048
↓ 5 callers
Function
probeVersion
(binary string, timeout time.Duration)
acp/internal/orchestrator/resolve.go:140
↓ 5 callers
Function
promptContent
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 callers
Function
rawPath
(home, repoDir, sessionID string)
internal/session/raw_writer_test.go:21
↓ 5 callers
Function
read
()
scripts/github-actions/post-review-comments.test.js:6127
↓ 5 callers
Function
readAllPages
(tag, pageFn, log, maxPages = 50)
scripts/github-actions/post-review-comments.js:2077
↓ 5 callers
Method
release
()
internal/gitcmd/runner.go:165
↓ 5 callers
Function
render
(providers []llm.Provider)
internal/llm/gen/main.go:105
↓ 5 callers
Function
renderedRun
(step, values)
scripts/github-actions/action-contract.test.js:204
↓ 5 callers
Method
requests
()
internal/reviewtask/retry_identity_test.go:56
↓ 5 callers
Function
requireGitSh
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 callers
Method
resolveBin
* 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 callers
Function
resolveLinesInContent
* 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 callers
Function
resolveMaxTokens
resolveMaxTokens applies the per-run CLI override, then the saved setting, and finally the embedded task-template default.
cmd/opencodereview/shared.go:52
↓ 5 callers
Function
revParse
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 callers
Method
reviewMode
()
internal/agent/agent.go:933
↓ 5 callers
Function
reviseAttempt
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 callers
Method
run
(opts: CliRunOptions, cb: SessionCallbacks)
extensions/vscode/src/extension/services/ReviewSession.ts:35
↓ 5 callers
Function
runChatGPTLogin
(ctx context.Context, out io.Writer)
cmd/opencodereview/chatgpt_auth.go:34
↓ 5 callers
Function
runConfigSet
(key, value string)
cmd/opencodereview/config_cmd.go:101
↓ 5 callers
Method
runGit
(ctx context.Context, args ...string)
internal/diff/git.go:739
↓ 5 callers
Function
runLinksCheck
({ repoRoot = process.cwd(), minLinks = MIN_EXPECTED_LINKS, minFiles = MIN_EXPECTED_LINK_FILES, maxSca
scripts/github-actions/check-plugin-contract.js:883
↓ 5 callers
Function
runPreview
(cc *commonContext, opts reviewOptions, out io.Writer)
cmd/opencodereview/review_helpers_test.go:20
↓ 5 callers
Function
runSessionCommentsCompat
runSessionCommentsCompat provides test compatibility for old-style runSessionComments([]string{...}) calls.
cmd/opencodereview/compat_test.go:99
↓ 5 callers
Function
runShell
(script, env, fixture)
scripts/github-actions/action-contract.test.js:280
↓ 5 callers
Function
runWorkspaceResumeReview
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 callers
Function
sanitizeMarkdown
(s string)
cmd/opencodereview/background_file.go:116
↓ 5 callers
Method
search
(ctx context.Context, provider tool.Provider, args map[string]any, side string)
internal/behaviortask/search.go:98
↓ 5 callers
Function
seedRmSession
(t *testing.T, _ /*home*/, repoDir, sessionID string)
cmd/opencodereview/session_rm_test.go:19
↓ 5 callers
Function
selectDiffMarks
* 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 callers
Method
selected
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 callers
Method
selectedModel
()
cmd/opencodereview/provider_tui.go:3101
↓ 5 callers
Function
sessionFixture
sessionFixture writes a session JSONL under root/repo and returns root.
internal/viewer/export_test.go:15
↓ 5 callers
Function
setColorFlags
setColorFlags sets the flag-backed variable for one test and restores it.
cmd/opencodereview/color_test.go:37
↓ 5 callers
Function
setProviderValue
(cfg *Config, key, value string)
cmd/opencodereview/config_cmd.go:1002
↓ 5 callers
Method
sourceArtifactSHA256
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 callers
Function
splitBindHost
splitBindHost returns the host portion of a listen address as passed to http.Server.Addr. Empty input returns "".
internal/viewer/hostguard.go:109
↓ 5 callers
Function
splitPaths
(raw string)
cmd/opencodereview/scan_cmd.go:95
↓ 5 callers
Function
start
(options: CliRunOptions)
extensions/frontend/src/webview/App.tsx:30
↓ 5 callers
Function
unsetCustomProvider
(configPath, name string)
cmd/opencodereview/config_cmd.go:230
↓ 5 callers
Function
unsetMCPServer
(configPath, name string)
cmd/opencodereview/config_cmd.go:253
↓ 5 callers
Method
update
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/actions/OpenOcrToolWindowAction.kt:13
↓ 5 callers
Function
userAgent
(provider string)
internal/llm/client.go:83
↓ 5 callers
Function
validateAgentPluginManifest
(file, json)
scripts/github-actions/check-plugin-contract.js:629
↓ 5 callers
Function
wirePair
(t *testing.T, a *Agent)
acp/internal/adapter/connection_test.go:112
↓ 5 callers
Function
withProviderErrorBody
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 callers
Method
CanonicalConfig
()
internal/config/rules/sniffer.go:29
↓ 4 callers
Function
Cleanup
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 callers
Method
Clear
(ctx context.Context, id string)
internal/chatgptauth/store.go:232
↓ 4 callers
Function
Close
Close releases the OS resources owned by a managed command.
acp/internal/orchestrator/process/process_unix.go:24
↓ 4 callers
Method
Close
()
internal/mcp/client.go:206
↓ 4 callers
Method
CloseSession
(ctx context.Context, p acp.CloseSessionRequest)
acp/internal/adapter/session.go:58
↓ 4 callers
Function
DefaultConfig
DefaultConfig returns a disabled default configuration.
internal/telemetry/config.go:32
↓ 4 callers
Method
Diffs
()
cmd/opencodereview/shared.go:767
↓ 4 callers
Method
Get
Get returns the diff text for path.
internal/tool/file_read_diff.go:34
↓ 4 callers
Method
HasInclude
HasInclude reports whether any include patterns are configured.
internal/config/rules/system_rules.go:227
↓ 4 callers
Method
HasPersistence
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 callers
Function
ListSessions
ListSessions returns lightweight summaries for all sessions in a repo subdir.
internal/viewer/store.go:116
↓ 4 callers
Function
LoadGitignorePatterns
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 callers
Method
Matches
(relPath string)
internal/diff/git.go:317
↓ 4 callers
Method
Models
(ctx context.Context, auth *Auth)
internal/chatgptauth/models.go:18
↓ 4 callers
Function
NewRemoteClient
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 callers
Function
NewResumeLineage
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 callers
Function
Of
Of returns a checkpoint with data.
internal/tool/response_message.go:27
↓ 4 callers
Function
ParseExtraHeaders
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 callers
Method
Paths
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 callers
Method
ProjectSummary
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 callers
Function
ProviderDirPrefix
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 callers
Function
RecordToolCall
(ctx context.Context, name string, dur time.Duration, ok bool)
internal/telemetry/metrics.go:133
↓ 4 callers
Function
RecordToolResult
RecordToolResult sets the outcome of a tool execution on the span.
internal/telemetry/span.go:93
↓ 4 callers
Method
RefValue
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 callers
Method
RequestContext
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 callers
Method
ResolveCommitComparison
(ctx context.Context)
internal/diff/comparison.go:12
↓ 4 callers
Function
ResolveLocation
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 callers
Method
ResumeInfo
ResumeInfo returns resume metadata for output. Nil means this was not a resume run.
internal/scan/agent.go:203
↓ 4 callers
Method
ReusableItem
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 callers
Function
Run
(ctx context.Context, review func(context.Context) ([]model.LlmComment, error), analysis func(context.Context)
internal/workflow/run.go:23
↓ 4 callers
Function
SameRepoPath
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 callers
Method
Select
(ctx context.Context, id string)
internal/chatgptauth/store.go:246
↓ 4 callers
Method
SetParentRunID
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 callers
Method
SetReadDeadline
(t time.Time)
acp/cmd/ocr-acp/stdio.go:26
↓ 4 callers
Function
Start
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 callers
Method
ToolCalls
ToolCalls extracts tool calls from the first choice.
internal/llm/client.go:373
↓ 4 callers
Method
UnmarshalJSON
UnmarshalJSON preserves the key order from JSON's path_rule_map object.
internal/config/rules/system_rules.go:39
↓ 4 callers
Method
_retry
(self, endpoint, data=None, method="GET")
examples/gitlab_ci/post_review.py:914
↓ 4 callers
Method
_versions
(self, *triples)
examples/gitlab_ci/post_review_test.py:1443
↓ 4 callers
Function
addRepoFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:15
↓ 4 callers
Function
analysisInputForReview
(cc *commonContext, opts reviewOptions, runtime *llmRuntime, reviewID string, resolution diff.InputResolution)
cmd/opencodereview/analysis.go:54
↓ 4 callers
Function
analysisMarkdownForDisplay
(markdown string)
cmd/opencodereview/analysis_output.go:93
↓ 4 callers
Function
applyDedupGroups
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 callers
Function
argCountError
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 callers
Function
assertDeclined
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 callers
Function
assertErrorKind
(t *testing.T, err error, want ErrorKind)
acp/internal/orchestrator/runner_test.go:270
↓ 4 callers
Method
attach
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/CliCancellation.kt:30
↓ 4 callers
Function
batchPaths
(b [][]model.ScanItem)
internal/scan/batch_test.go:21
↓ 4 callers
Function
bridgeNonpollable
(raw *os.File, output bool)
acp/cmd/ocr-acp/stdio_windows.go:74
↓ 4 callers
Function
buildBadgeImage
(comment)
scripts/github-actions/post-review-comments.js:2283
↓ 4 callers
Function
buildPolicy
({ severityThreshold, categories } = {})
scripts/github-actions/post-review-comments.js:2314
↓ 4 callers
Function
buildToolRegistryWithCodeAccess
(collector *tool.CommentCollector, fr *tool.FileReader, access *tool.CodeAccess)
cmd/opencodereview/review_cmd.go:702
↓ 4 callers
Function
canonicalRoot
── 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
← previous
next →
801–900 of 7,390, ranked by callers