Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,169 in github.com/alibaba/open-code-review
⨍
Functions
7,169
◇
Types & classes
774
↓ 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
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
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:1041
↓ 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:982
↓ 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:762
↓ 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:233
↓ 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:31
↓ 4 callers
Method
Models
(ctx context.Context, auth *Auth)
internal/chatgptauth/models.go:18
↓ 4 callers
Function
NewComparisonCodeAccess
(current, previous FileReader)
internal/tool/code_access.go:16
↓ 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:773
↓ 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:32
↓ 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
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:122
↓ 4 callers
Method
Select
(ctx context.Context, id string)
internal/chatgptauth/store.go:246
↓ 4 callers
Method
SessionID
SessionID returns the persisted session identifier so callers can show it in JSON output or failure diagnostics. Returns "" when no session was create
cmd/opencodereview/shared.go:779
↓ 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
Function
ToToolDef
ToToolDef converts an MCP tool definition to an llm.ToolDef.
internal/mcp/provider.go:70
↓ 4 callers
Method
ToolFailures
()
cmd/opencodereview/shared.go:775
↓ 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:1416
↓ 4 callers
Method
acquire
(ctx context.Context)
internal/gitcmd/runner.go:51
↓ 4 callers
Function
addRepoFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:15
↓ 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:2280
↓ 4 callers
Function
buildPolicy
({ severityThreshold, categories } = {})
scripts/github-actions/post-review-comments.js:2311
↓ 4 callers
Function
buildToolRegistryWithCodeAccess
(collector *tool.CommentCollector, fr *tool.FileReader, access *tool.CodeAccess)
cmd/opencodereview/review_cmd.go:672
↓ 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:1767
↓ 4 callers
Function
captureConfigStderr
(t *testing.T, fn func())
cmd/opencodereview/config_cmd_test.go:1421
↓ 4 callers
Function
checkKotlinNames
(data []byte, providers []llm.Provider)
internal/llm/gen/kotlin.go:67
↓ 4 callers
Function
classifyStreamError
classifyStreamError classifies a failure that surfaced while consuming an already-established SSE stream. Unlike classifyBoundaryError it always retur
internal/llm/retry_boundary.go:80
↓ 4 callers
Method
clear
()
internal/chatgptauth/store.go:53
↓ 4 callers
Method
clearPending
(st *State)
acp/internal/intent/parser.go:145
↓ 4 callers
Method
cloned
cloned returns a copy of the manifest whose coverage slices are owned copies, so every Finalize caller gets an independent, non-aliased snapshot. The
internal/session/manifest.go:941
↓ 4 callers
Function
cmt
cmt builds a finding compactly: path, start line, category, snippet, content.
internal/session/compare_test.go:15
↓ 4 callers
Function
cmt
(path, content string)
internal/scan/dedup_test.go:13
↓ 4 callers
Function
codeCommentResponse
(reasoning, content string)
internal/reviewtask/loop_execute_more_test.go:61
↓ 4 callers
Function
colorOn
colorOn reports whether ANSI color should be emitted.
cmd/opencodereview/color.go:79
↓ 4 callers
Function
colorize
colorize wraps s in seq and a reset, or returns s untouched when color is off. Every escape sequence in the text output path is gated through here or
cmd/opencodereview/color.go:84
↓ 4 callers
Function
commandChatGPTAccount
(t *testing.T)
cmd/opencodereview/chatgpt_auth_lifecycle_test.go:22
↓ 4 callers
Function
commandNeedsGit
(cmd *cobra.Command)
cmd/opencodereview/root.go:69
↓ 4 callers
Function
commitIn
(t *testing.T, dir, name, content, msg string)
internal/agent/sealed_input_test.go:39
↓ 4 callers
Function
comparisonArgs
(name string)
internal/tool/code_access_test.go:59
↓ 4 callers
Function
comparisonProviders
(current *FileReader, access *CodeAccess)
internal/tool/code_access_test.go:49
↓ 4 callers
Function
comparisonReaders
(test *testing.T)
internal/tool/code_access_test.go:28
↓ 4 callers
Function
completeSessionIDs
(cmd *cobra.Command, args []string, toComplete string)
cmd/opencodereview/session_cmd.go:177
↓ 4 callers
Function
computeRetryDelayMs
(error, attempt)
scripts/github-actions/post-review-comments.js:1926
↓ 4 callers
Method
config
(self)
examples/gitlab_ci/post_review_test.py:787
↓ 4 callers
Method
confirmDeleteCustomProviderModel
()
cmd/opencodereview/provider_tui.go:3019
↓ 4 callers
Method
confirmDeleteOfficialModel
()
cmd/opencodereview/provider_tui.go:3057
↓ 4 callers
Method
css
Converts to a CSS color; translucent colors are emitted as rgba(). */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/jcef/IdeaTheme.kt:134
↓ 4 callers
Method
customProviderActiveModel
(cp customProviderListItem)
cmd/opencodereview/provider_tui.go:234
↓ 4 callers
Method
dedupEnabled
()
internal/scan/agent.go:99
↓ 4 callers
Function
defaultAuthHeader
(protocol string)
internal/llm/resolver.go:844
↓ 4 callers
Function
describeTimeout
(ctx context.Context, err error)
internal/llm/request_timeout.go:14
↓ 4 callers
Function
diffsFixture
()
internal/diff/relocate_across_files_test.go:36
↓ 4 callers
Function
enforceGroupTokenBudget
enforceGroupTokenBudget splits groups whose combined diffs exceed the token limit.
internal/agent/grouping.go:345
↓ 4 callers
Function
enforceMaxFilesPerGroup
enforceMaxFilesPerGroup splits groups that exceed maxFilesPerGroup into smaller chunks.
internal/agent/grouping.go:323
← previous
next →
801–900 of 7,169, ranked by callers