MCPcopy Create free account

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

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

↓ 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 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 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:1041
↓ 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:982
↓ 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:762
↓ 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:233
↓ 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:31
↓ 4 callersMethodModels
(ctx context.Context, auth *Auth)
internal/chatgptauth/models.go:18
↓ 4 callersFunctionNewComparisonCodeAccess
(current, previous FileReader)
internal/tool/code_access.go:16
↓ 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:773
↓ 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:32
↓ 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 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:122
↓ 4 callersMethodSelect
(ctx context.Context, id string)
internal/chatgptauth/store.go:246
↓ 4 callersMethodSessionID
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 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 callersFunctionToToolDef
ToToolDef converts an MCP tool definition to an llm.ToolDef.
internal/mcp/provider.go:70
↓ 4 callersMethodToolFailures
()
cmd/opencodereview/shared.go:775
↓ 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:1416
↓ 4 callersMethodacquire
(ctx context.Context)
internal/gitcmd/runner.go:51
↓ 4 callersFunctionaddRepoFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:15
↓ 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:2280
↓ 4 callersFunctionbuildPolicy
({ severityThreshold, categories } = {})
scripts/github-actions/post-review-comments.js:2311
↓ 4 callersFunctionbuildToolRegistryWithCodeAccess
(collector *tool.CommentCollector, fr *tool.FileReader, access *tool.CodeAccess)
cmd/opencodereview/review_cmd.go:672
↓ 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:1767
↓ 4 callersFunctioncaptureConfigStderr
(t *testing.T, fn func())
cmd/opencodereview/config_cmd_test.go:1421
↓ 4 callersFunctioncheckKotlinNames
(data []byte, providers []llm.Provider)
internal/llm/gen/kotlin.go:67
↓ 4 callersFunctionclassifyStreamError
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 callersMethodclear
()
internal/chatgptauth/store.go:53
↓ 4 callersMethodclearPending
(st *State)
acp/internal/intent/parser.go:145
↓ 4 callersMethodcloned
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 callersFunctioncmt
cmt builds a finding compactly: path, start line, category, snippet, content.
internal/session/compare_test.go:15
↓ 4 callersFunctioncmt
(path, content string)
internal/scan/dedup_test.go:13
↓ 4 callersFunctioncodeCommentResponse
(reasoning, content string)
internal/reviewtask/loop_execute_more_test.go:61
↓ 4 callersFunctioncolorOn
colorOn reports whether ANSI color should be emitted.
cmd/opencodereview/color.go:79
↓ 4 callersFunctioncolorize
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 callersFunctioncommandChatGPTAccount
(t *testing.T)
cmd/opencodereview/chatgpt_auth_lifecycle_test.go:22
↓ 4 callersFunctioncommandNeedsGit
(cmd *cobra.Command)
cmd/opencodereview/root.go:69
↓ 4 callersFunctioncommitIn
(t *testing.T, dir, name, content, msg string)
internal/agent/sealed_input_test.go:39
↓ 4 callersFunctioncomparisonArgs
(name string)
internal/tool/code_access_test.go:59
↓ 4 callersFunctioncomparisonProviders
(current *FileReader, access *CodeAccess)
internal/tool/code_access_test.go:49
↓ 4 callersFunctioncomparisonReaders
(test *testing.T)
internal/tool/code_access_test.go:28
↓ 4 callersFunctioncompleteSessionIDs
(cmd *cobra.Command, args []string, toComplete string)
cmd/opencodereview/session_cmd.go:177
↓ 4 callersFunctioncomputeRetryDelayMs
(error, attempt)
scripts/github-actions/post-review-comments.js:1926
↓ 4 callersMethodconfig
(self)
examples/gitlab_ci/post_review_test.py:787
↓ 4 callersMethodconfirmDeleteCustomProviderModel
()
cmd/opencodereview/provider_tui.go:3019
↓ 4 callersMethodconfirmDeleteOfficialModel
()
cmd/opencodereview/provider_tui.go:3057
↓ 4 callersMethodcss
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 callersMethodcustomProviderActiveModel
(cp customProviderListItem)
cmd/opencodereview/provider_tui.go:234
↓ 4 callersMethoddedupEnabled
()
internal/scan/agent.go:99
↓ 4 callersFunctiondefaultAuthHeader
(protocol string)
internal/llm/resolver.go:844
↓ 4 callersFunctiondescribeTimeout
(ctx context.Context, err error)
internal/llm/request_timeout.go:14
↓ 4 callersFunctiondiffsFixture
()
internal/diff/relocate_across_files_test.go:36
↓ 4 callersFunctionenforceGroupTokenBudget
enforceGroupTokenBudget splits groups whose combined diffs exceed the token limit.
internal/agent/grouping.go:345
↓ 4 callersFunctionenforceMaxFilesPerGroup
enforceMaxFilesPerGroup splits groups that exceed maxFilesPerGroup into smaller chunks.
internal/agent/grouping.go:323
← previousnext →801–900 of 7,169, ranked by callers