MCPcopy Create free account

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

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

↓ 5 callersMethodlogicalRequestID
logicalRequestID computes the canonical logical_request_id for m under runID. Fields are NUL-terminated in a fixed order rather than concatenated, be
internal/llm/retry_meta.go:91
↓ 5 callersFunctionmakeBudgetDiffs
makeBudgetDiffs returns n small, non-deleted diffs that survive every selection gate.
internal/agent/budget_test.go:68
↓ 5 callersFunctionmanifestMessage
(manifest *session.RunManifest, findings int)
cmd/opencodereview/output.go:657
↓ 5 callersMethodmatches
(relPath string, directory bool)
internal/diff/git.go:312
↓ 5 callersMethodmaybeRunDedup
maybeRunDedup, when the template has a DedupTask and the batch produced at least DedupMinComments comments, invokes the DEDUP_TASK LLM to merge near-d
internal/scan/agent.go:987
↓ 5 callersMethodmaybeRunProjectSummary
maybeRunProjectSummary runs the post-batch PROJECT_SUMMARY_TASK over the union of all collected comments. Best-effort: any error / empty input no-temp
internal/scan/agent.go:901
↓ 5 callersFunctionmergeUnknownJSONFields
(data []byte, unknown map[string]json.RawMessage)
cmd/opencodereview/config_cmd.go:438
↓ 5 callersMethodmodelCount
()
cmd/opencodereview/provider_tui.go:626
↓ 5 callersFunctionnewJSONToolCalls
(toolCalls map[string]int64, failures []llmloop.ToolFailureDetail)
cmd/opencodereview/output.go:323
↓ 5 callersFunctionnewMux
newMux builds the viewer's routing table against a sessions root. The viewer is read-only: the document routes are registered with GET-only patterns (
internal/viewer/server.go:113
↓ 5 callersFunctionnormalizePath
normalizePath canonicalizes a path for identity derivation: it unifies separators to forward slashes and cleans redundant "." / ".." / duplicate separ
internal/session/manifest.go:218
↓ 5 callersMethodofficialProviderActiveModel
(p llm.Provider)
cmd/opencodereview/provider_tui.go:241
↓ 5 callersFunctionopenBrowserCandidates
openBrowserCandidates tries each candidate in turn. Every failure is reported, not just the first: with $BROWSER set to something uninstalled and no p
internal/viewer/browser.go:211
↓ 5 callersFunctionoutputTempFiles
--- lazyFileWriter ---
cmd/opencodereview/output_file_test.go:209
↓ 5 callersFunctionoutputTextWithWarnings
(comments []model.LlmComment, warnings []agent.AgentWarning, manifest *session.RunManifest, out io.Writer)
cmd/opencodereview/output.go:100
↓ 5 callersFunctionparseBranchList
* Parses `git branch -a --format=%(refname)` output. The full refname is used deliberately instead of * `%(refname:short)`: git abbreviates `refs/rem
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:99
↓ 5 callersMethodparseEnvBlock
Takes the key=value lines between the two delimiter markers in the login shell's `env` output. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ShellEnv.kt:36
↓ 5 callersFunctionparseModelList
* Parses the user input for the models field: try a JSON array first, falling back to comma splitting * when parsing fails or the value is not an arr
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigDraft.kt:75
↓ 5 callersFunctionparseNonNegInt
(val, defaultVal)
scripts/github-actions/post-review-comments.js:1889
↓ 5 callersFunctionparseShellRC
(path, modelOverride string)
internal/llm/resolver.go:797
↓ 5 callersFunctionpathSelectorRepo
(t *testing.T)
internal/scan/provider_paths_test.go:169
↓ 5 callersFunctionpinDefaultBranches
* Moves `origin/HEAD` and the default remote branch it points at ([defaultRemote]) to the front of the list, * right after the first local branch, ke
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:125
↓ 5 callersFunctionpinProductionTerminateDuration
pinProductionTerminateDuration restores the production shutdown budget for tests whose timing must not shift with the race detector's widened budget.
internal/mcp/closeall_test.go:32
↓ 5 callersMethodpost_seq
Drive post() over a sequence of per-call fake_urlopen outcomes. Each outcome is either the raw response body (bytes, returned) or an
examples/gerrit_ci/post_review_test.py:565
↓ 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 callersFunctionreadFileSync
(file)
scripts/github-actions/post-review-comments.test.js:54
↓ 5 callersMethodrelease
()
internal/gitcmd/runner.go:178
↓ 5 callersFunctionrender
(providers []llm.Provider)
internal/llm/gen/main.go:105
↓ 5 callersFunctionrenderedEnv
(step, values, stepOutputs = {})
scripts/github-actions/action-contract.test.js:197
↓ 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:53
↓ 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:945
↓ 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 callersFunctionrunChatGPTLogin
(ctx context.Context, out io.Writer)
cmd/opencodereview/chatgpt_auth.go:34
↓ 5 callersMethodrunGit
(ctx context.Context, args ...string)
internal/diff/git.go:653
↓ 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:21
↓ 5 callersFunctionrunSessionCommentsCompat
runSessionCommentsCompat provides test compatibility for old-style runSessionComments([]string{...}) calls.
cmd/opencodereview/compat_test.go:99
↓ 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:3115
↓ 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:1020
↓ 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:1055
↓ 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:239
↓ 5 callersFunctionunsetMCPServer
(configPath, name string)
cmd/opencodereview/config_cmd.go:262
↓ 5 callersFunctionuserAgent
(provider string)
internal/llm/client.go:84
↓ 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:997
↓ 5 callersFunctionwriteFile
(t *testing.T, dir, rel, content string)
internal/config/rules/sniffer_test.go:16
↓ 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:233
↓ 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:33
↓ 4 callersMethodDiffs
()
cmd/opencodereview/shared.go:848
↓ 4 callersMethodGet
Get returns the diff text for path.
internal/tool/file_read_diff.go:33
↓ 4 callersMethodHasInclude
HasInclude reports whether any include patterns are configured.
internal/config/rules/system_rules.go:228
↓ 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:264
↓ 4 callersFunctionListSessions
ListSessions returns lightweight summaries for all sessions in a repo subdir.
internal/viewer/store.go:118
↓ 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:893
↓ 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:40
↓ 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:859
↓ 4 callersFunctionReadWithLiveness
ReadWithLiveness samples the writer before parsing: it may finalize and unlock after the reader reaches EOF. An observed session_end always wins.
internal/session/liveness.go:46
↓ 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:35
↓ 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:76
↓ 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:245
↓ 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:150
↓ 4 callersMethodSelect
(ctx context.Context, id string)
internal/chatgptauth/store.go:247
↓ 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:374
↓ 4 callersMethodUnmarshalJSON
UnmarshalJSON preserves the key order from JSON's path_rule_map object.
internal/config/rules/system_rules.go:40
← previousnext →801–900 of 7,599, ranked by callers