Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,128 in github.com/alibaba/open-code-review
⨍
Functions
7,128
◇
Types & classes
771
↓ 9 callers
Function
newModelTUIConfig
(cfg modelTUIConfig)
cmd/opencodereview/provider_tui.go:2715
↓ 9 callers
Function
notifySink
(s progressSink)
acp/internal/adapter/presentation/helpers_test.go:70
↓ 9 callers
Function
officialDashscopeModelTUI
(t *testing.T, configPath string, extraModels []string)
cmd/opencodereview/provider_tui_test.go:1513
↓ 9 callers
Function
open
()
extensions/frontend/src/webview/components/CommentCard.tsx:18
↓ 9 callers
Function
outputPreviewText
(p *agent.DiffPreview, out io.Writer)
cmd/opencodereview/output.go:760
↓ 9 callers
Function
parsePorcelain
* Parses `git status --porcelain` output. * Each line is XY<space>path, where X is the staged status, Y the worktree status, and `??` means untracked
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:27
↓ 9 callers
Method
post_note
(self, body)
examples/gitlab_ci/post_review_test.py:151
↓ 9 callers
Function
readWorkspaceFileForDiff
(repoDir, relPath string)
internal/diff/workspace_file.go:19
↓ 9 callers
Function
requireClarify
(t *testing.T, r Result, wantMissing ...string)
acp/internal/intent/fake_test.go:94
↓ 9 callers
Function
resolveWorkingDir
resolveWorkingDir returns (absPath, isGitRepo, err). When requireGit is true, returns an error if the directory is not a git repo. When false, returns
cmd/opencodereview/shared.go:153
↓ 9 callers
Method
runCompression
runCompression performs three-zone memory compression on the given messages, summarizing the compress zone while preserving the active zone intact. Re
internal/llmloop/compression.go:222
↓ 9 callers
Function
runGit
(cwd: string, args: string[])
extensions/vscode/src/extension/services/GitService.ts:503
↓ 9 callers
Function
runSessionShowCompat
runSessionShowCompat provides test compatibility for old-style runSessionShow([]string{...}) calls.
cmd/opencodereview/compat_test.go:82
↓ 9 callers
Method
selectedCustomProvider
()
cmd/opencodereview/provider_tui.go:422
↓ 9 callers
Function
setBrowserWaitWindow
setBrowserWaitWindow overrides the wait window for one test. Tests in this package run sequentially, so mutating the package variable is safe.
internal/viewer/browser_exec_test.go:81
↓ 9 callers
Function
taskDoneResponseWithArguments
(arguments string)
internal/reviewtask/loop_test.go:41
↓ 9 callers
Function
validationStep
()
scripts/github-actions/action-contract.test.js:213
↓ 9 callers
Function
withTempDir
(fn)
scripts/github-actions/check-plugin-contract.test.js:834
↓ 9 callers
Function
writeCommit
writeCommit writes content to name, stages it, and commits with msg.
internal/diff/git_resolve_test.go:41
↓ 8 callers
Method
ApplyLanguage
ApplyLanguage injects a language directive into all system-role messages across MAIN_TASK, PLAN_TASK (if set), and MEMORY_COMPRESSION_TASK.
internal/config/template/template.go:288
↓ 8 callers
Function
BuildReviewArgs
BuildReviewArgs constructs OCR CLI arguments from ReviewIntent. Returns error if intent is invalid, required fields are missing, or Extra contains a f
acp/internal/contract/intent.go:87
↓ 8 callers
Function
CanonicalPath
CanonicalPath returns an absolute path with symlinks resolved.
internal/pathutil/path.go:13
↓ 8 callers
Method
Close
Close closes the capture file.
internal/session/raw_writer.go:108
↓ 8 callers
Function
CloseAll
CloseAll closes every client concurrently and returns all failures in configuration order, or stops waiting when ctx expires. CommandTransport bounds
internal/mcp/client.go:221
↓ 8 callers
Function
DefaultStore
()
internal/chatgptauth/store.go:85
↓ 8 callers
Method
GetDiffSet
GetDiffSet returns both reviewable diffs and those excluded by the provider's built-in directory rules. It preserves GetDiff's filtering behavior whil
internal/diff/git.go:218
↓ 8 callers
Function
Init
Init initializes global TracerProvider and MeterProvider based on environment variables and optional config file. Returns true when enabled. Safe to c
internal/telemetry/provider.go:32
↓ 8 callers
Method
IsUserIncluded
IsUserIncluded reports whether the given path matches any user include pattern. The check is case-insensitive: both path and pattern are lowercased. R
internal/config/rules/system_rules.go:249
↓ 8 callers
Function
LoadSummary
LoadSummary loads a single session's Summary. Errors when the session file is missing or unreadable.
internal/session/list.go:146
↓ 8 callers
Method
Name
Name returns the tool's identifier name.
internal/tool/definitions.go:62
↓ 8 callers
Function
NewProvider
NewProvider creates a Provider for range mode: from..to (via merge-base).
internal/diff/git.go:100
↓ 8 callers
Method
Reason
Reason is the safe, human-facing sentence for a stop, and the single source of truth for it: the diff-review manifest reason and the scan subtask warn
internal/llmloop/loop.go:271
↓ 8 callers
Method
RecordAttempt
RecordAttempt appends one observed HTTP attempt for m. startedAt and endedAt bracket the real HTTP call: the observer takes them immediately before a
internal/llm/retry_report.go:289
↓ 8 callers
Function
RecordLLMResult
RecordLLMResult sets the outcome of an LLM request on the span.
internal/telemetry/span.go:115
↓ 8 callers
Function
RegisterAll
RegisterAll registers tools from the MCP client into the tool registry. When allowedTools is non-empty, only tools whose names appear in the list are
internal/mcp/provider.go:33
↓ 8 callers
Function
ResolveBinary
ResolveBinary discovers and validates OCR exactly once. An invalid explicit path is an error and never falls back to the environment or PATH.
acp/internal/orchestrator/resolve.go:48
↓ 8 callers
Function
ResolveIdentity
ResolveIdentity computes the identity a review with these args would record, without creating anything: no session, manifest, runner or LLM call. Resu
internal/agent/identity.go:45
↓ 8 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
cmd/opencodereview/retry_fake_llm_test.go:151
↓ 8 callers
Method
SetPendingFailureCause
SetPendingFailureCause records the classification Finalize must use when it sweeps items that never received a Mark*. It records no run_failure and tr
internal/session/manifest.go:480
↓ 8 callers
Method
SetWriteDeadline
(time.Time)
acp/internal/adapter/transport/connection.go:34
↓ 8 callers
Method
Validate
()
internal/config/template/template.go:315
↓ 8 callers
Method
ValidateScanOptions
ValidateScanOptions verifies that the previous session was a full-file scan.
internal/session/resume.go:300
↓ 8 callers
Function
WithinBase
WithinBase reports whether target is base itself or contained under base.
internal/pathutil/path.go:22
↓ 8 callers
Function
agentTaskDoneResponse
()
internal/agent/agent_test.go:68
↓ 8 callers
Method
applyEditCustomProviderSave
()
cmd/opencodereview/provider_tui.go:1364
↓ 8 callers
Function
buildCheckpointMarker
(payload)
scripts/github-actions/post-review-comments.js:3025
↓ 8 callers
Function
clampLineRange
* Clamp a 1-based inclusive range to the document bounds and return a 0-based inclusive range. * Edits after review or differences between diff sides
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/providers/CommentAnchor.kt:215
↓ 8 callers
Method
clear
()
extensions/vscode/src/extension/providers/lineOffset.ts:20
↓ 8 callers
Function
completeEnum
(values ...string)
cmd/opencodereview/shared_flags.go:75
↓ 8 callers
Function
completionError
(t *testing.T, client *OpenAIClient)
internal/llm/provider_error_test.go:43
↓ 8 callers
Method
customProviderEntry
(name string, fallback ProviderEntry)
cmd/opencodereview/provider_tui.go:600
↓ 8 callers
Method
dispose
()
extensions/vscode/src/extension/providers/CommentProvider.ts:326
↓ 8 callers
Function
emitFailureUsage
emitFailureUsage writes a best-effort structured usage record to stderr when a review fails, so the outer caller still sees the cost of the failed att
cmd/opencodereview/output.go:691
↓ 8 callers
Function
entry_of
(ri, path="main.go")
examples/gerrit_ci/post_review_test.py:53
↓ 8 callers
Function
enumeratePaths
enumeratePaths returns the sorted paths NewProvider selects for the given --path selectors, so a case reads as selector in, file list out.
internal/scan/provider_paths_test.go:127
↓ 8 callers
Method
load
()
internal/chatgptauth/store.go:101
↓ 8 callers
Function
localAuthorization
(local string)
internal/chatgptauth/recovery_test.go:73
↓ 8 callers
Function
mergeModelLists
(lists ...[]string)
cmd/opencodereview/config_cmd.go:981
↓ 8 callers
Function
newQuietHandle
newQuietHandle routes [ocr] progress lines away from stdout so they cannot corrupt a structured output document. What it does depends on why stdout ne
cmd/opencodereview/shared.go:383
↓ 8 callers
Function
parseGroupingResponse
(content string, diffs []model.Diff)
internal/agent/grouping.go:263
↓ 8 callers
Function
parseNameStatus
* Parses `git diff --name-status` / `git show --name-status` output. * Tab-separated: `status<TAB>path`; a rename is `R<score><TAB>old<TAB>new`, take
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:199
↓ 8 callers
Method
read
(self)
examples/gitlab_ci/post_review_test.py:106
↓ 8 callers
Function
readCheckpointComment
({ github, owner, repo, prNumber, appSlug = "", resolveSelfLogin = null, log })
scripts/github-actions/post-review-comments.js:3204
↓ 8 callers
Function
readEnvAssignments
(file)
scripts/github-actions/action-contract.test.js:319
↓ 8 callers
Function
retryCodesMiddleware
retryCodesMiddleware returns an HTTP middleware that forces the SDK to retry responses whose status code is in the given set, by injecting the x-shoul
internal/llm/client.go:449
↓ 8 callers
Function
runBrowserCmd
runBrowserCmd starts one opener and reports whether it worked. Checking only Start() is not enough: it returns as soon as fork/exec succeeds, while xd
internal/viewer/browser.go:165
↓ 8 callers
Function
runMock
runMock executes the test double, returning stdout and the exit code. stderr is discarded: these tests assert on the stdout contract only.
acp/internal/contract/mock_contract_test.go:57
↓ 8 callers
Method
runRaw
* Runs arbitrary CLI arguments: stderr is streamed back line by line, the full stdout is returned at the end, * and a non-zero exit throws CliExc
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/CliService.kt:167
↓ 8 callers
Function
sanitizeReason
sanitizeReason is the single, best-effort redaction+truncation floor applied to every reason the builder stores, so no caller path can write an unreda
internal/session/manifest.go:721
↓ 8 callers
Function
taskMessages
()
internal/llmloop/task_test.go:72
↓ 8 callers
Function
testTask
()
internal/llmloop/task_test.go:35
↓ 8 callers
Function
testTaskResponse
(name, arguments string)
internal/llmloop/task_test.go:26
↓ 8 callers
Function
validateSkillFrontmatter
(file, dirName, content)
scripts/github-actions/check-plugin-contract.js:427
↓ 8 callers
Method
waitFor
extensions/idea/src/test/kotlin/com/alibaba/opencodereview/idea/services/CliServiceTreeKillTest.kt:69
↓ 8 callers
Function
withCapturedStdout
(fn)
scripts/github-actions/check-plugin-contract.test.js:945
↓ 7 callers
Method
BudgetExceeded
BudgetExceeded reports whether the aggregate token budget gate stopped the run before all files were reviewed. It is a diagnostic signal only — it fee
cmd/opencodereview/shared.go:787
↓ 7 callers
Function
BuildReLocationMessages
BuildReLocationMessages renders the re-location prompt for cm against d. Returns nil when the task template is absent or empty, which the caller treat
internal/diff/relocation.go:28
↓ 7 callers
Method
CollectPendingComments
CollectPendingComments awaits any async comment-processing workers and returns the aggregated comments from the collector. Safe to call once per sessi
internal/reviewtask/task.go:129
↓ 7 callers
Function
CountMessagesTokens
CountMessagesTokens returns the rough token count of msgs by summing the per-message token count. Exported because both review and scan top layers may
internal/llmloop/compression.go:74
↓ 7 callers
Function
DeleteSession
DeleteSession removes one persisted session for a repository.
internal/session/delete.go:82
↓ 7 callers
Function
DiscoverRepos
DiscoverRepos walks the sessions root and returns one entry per subdirectory.
internal/viewer/store.go:45
↓ 7 callers
Function
ErrorEvent
ErrorEvent emits an error event with error status.
internal/telemetry/events.go:38
↓ 7 callers
Method
Finalize
Finalize performs the hard-validated close of the run and returns the immutable manifest. In order it: sweeps any item still selected into failed (col
internal/session/manifest.go:801
↓ 7 callers
Function
FindSessionsByID
FindSessionsByID returns every session file matching an id, in any repository.
internal/session/delete.go:144
↓ 7 callers
Method
Host
(ctx context.Context)
internal/chatgptauth/store.go:202
↓ 7 callers
Method
Init
()
cmd/opencodereview/provider_tui.go:2894
↓ 7 callers
Function
IsPathExcluded
IsPathExcluded returns true when relPath matches any of the supplied gitignore-style patterns or any default excluded directory prefix (see ExcludedDi
internal/diff/gitignore.go:39
↓ 7 callers
Function
LoadAppConfig
LoadAppConfig loads config from path. Returns nil, nil if file does not exist.
cmd/opencodereview/config_cmd.go:586
↓ 7 callers
Function
NewRawFileWriter
NewRawFileWriter opens (creating if needed) the raw capture file for sessionID under repoDir's encoded raw directory. Directories are created 0700 and
internal/session/raw_writer.go:49
↓ 7 callers
Function
ParseHunks
ParseHunks parses raw unified diff text for a single file into a slice of Hunks. Lines before the first @@ header (file-level headers like "diff --git
internal/diff/hunk.go:40
↓ 7 callers
Function
RecordFilesReviewed
(ctx context.Context, n int64)
internal/telemetry/metrics.go:93
↓ 7 callers
Method
SetExecution
SetExecution sets the non-secret execution provenance.
internal/session/manifest.go:418
↓ 7 callers
Method
SetRepository
SetRepository sets the redacted repository identity.
internal/session/manifest.go:393
↓ 7 callers
Function
Shutdown
Shutdown flushes and shuts down all initialized providers. It should be called before process exit to ensure buffered data is exported.
internal/telemetry/shutdown.go:15
↓ 7 callers
Method
Snapshot
()
internal/chatgptauth/store.go:125
↓ 7 callers
Method
Tools
()
internal/mcp/client.go:185
↓ 7 callers
Method
TotalCacheReadTokens
()
cmd/opencodereview/shared.go:767
↓ 7 callers
Method
TotalCacheWriteTokens
()
cmd/opencodereview/shared.go:768
↓ 7 callers
Method
TotalInputTokens
TotalInputTokens returns the accumulated input/prompt tokens from all LLM calls.
internal/llmloop/loop.go:104
↓ 7 callers
Method
TotalOutputTokens
()
cmd/opencodereview/shared.go:765
← previous
next →
401–500 of 7,128, ranked by callers