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
↓ 2 callers
Method
RoundTrip
(req *http.Request)
internal/llm/chatgpt_transport_test.go:10
↓ 2 callers
Function
RuleGroupsMarkdown
RuleGroupsMarkdown renders rule groups into a markdown section.
internal/delegate/format.go:12
↓ 2 callers
Method
RunManifest
RunManifest returns the immutable coverage snapshot produced for this review, or nil when manifest construction failed. The scan path deliberately ret
internal/agent/agent.go:464
↓ 2 callers
Method
Sealed
Sealed reports whether the selected set has been sealed.
internal/session/manifest.go:604
↓ 2 callers
Method
Snapshot
Snapshot returns the current count of stored comments. Pair with Since / ReplaceSince to operate on the comments added between two points in time (e.g
internal/tool/comment_collector.go:56
↓ 2 callers
Function
StartToolSpan
StartToolSpan creates a span for a tool execution with standard attributes.
internal/telemetry/span.go:87
↓ 2 callers
Method
String
()
internal/gitcmd/version.go:22
↓ 2 callers
Method
String
()
acp/internal/orchestrator/resolve.go:208
↓ 2 callers
Method
Summary
Summary returns a reproducible one-line description of the endpoint that never contains the token.
acp/internal/intent/llm/resolve.go:167
↓ 2 callers
Method
ToolCalls
ToolCalls returns per-tool call counts accumulated during scan.
internal/scan/agent.go:238
↓ 2 callers
Method
ToolCalls
ToolCalls returns a snapshot of the per-tool call counts.
internal/llmloop/loop.go:150
↓ 2 callers
Method
ToolFailures
ToolFailures returns failed registered-tool calls accumulated during scan.
internal/scan/agent.go:241
↓ 2 callers
Function
ValidateOpenMode
ValidateOpenMode rejects unknown --open values instead of silently treating them as auto, so a typo like --open=yes is reported rather than ignored.
internal/viewer/browser.go:30
↓ 2 callers
Method
WithRepo
WithRepo returns a copy bound to a session workspace without mutating the shared parser used by other sessions.
acp/internal/intent/parser.go:76
↓ 2 callers
Function
WithWorkspaceSides
(definitions []llm.ToolDef)
internal/config/toolsconfig/comparison.go:19
↓ 2 callers
Method
Write
(p []byte)
acp/internal/orchestrator/streams.go:35
↓ 2 callers
Method
WriteSessionStart
WriteSessionStart writes the initial session_start record.
internal/session/persist.go:150
↓ 2 callers
Function
_api_request_once
Single GitLab API attempt. Returns a rich result dict (no retry).
examples/gitlab_ci/post_review.py:681
↓ 2 callers
Function
_api_request_with_retry
Make a GitLab API request with retry on rate-limit and transient errors. Used for reads and note writes (discussions go through the idempotency-a
examples/gitlab_ci/post_review.py:778
↓ 2 callers
Function
_compute_retry_delay
Compute a retry delay (seconds) for a failed attempt, or None if not retryable. Order: Retry-After header -> wait-until-reset (primary limit exha
examples/gitlab_ci/post_review.py:729
↓ 2 callers
Function
_field
Return the first present, non-empty field among several possible key names.
examples/codeup_ci/post_review.py:120
↓ 2 callers
Function
_get_header
Case-insensitive header lookup.
examples/gitlab_ci/post_review.py:660
↓ 2 callers
Function
_parse_rate_limit_header
(headers, name)
examples/gitlab_ci/post_review.py:671
↓ 2 callers
Method
_print
(self, kind, discussion)
examples/gitlab_ci/post_review.py:1112
↓ 2 callers
Function
_truncate_error
Collapse whitespace and cap length so log lines stay readable.
examples/gitlab_ci/post_review.py:1158
↓ 2 callers
Method
abort
()
acp/internal/adapter/transport/connection.go:37
↓ 2 callers
Function
addBackgroundFlags
(cmd *cobra.Command, background, backgroundFile *string)
cmd/opencodereview/shared_flags.go:29
↓ 2 callers
Function
addColorFlags
addColorFlags registers the color control. It is persistent on the root command so every subcommand inherits identical behavior, and so `ocr --color=n
cmd/opencodereview/color.go:36
↓ 2 callers
Function
addDiffFlags
(cmd *cobra.Command, from, to, commit *string)
cmd/opencodereview/shared_flags.go:23
↓ 2 callers
Function
addModelFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:63
↓ 2 callers
Function
addProviderFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:67
↓ 2 callers
Method
addToolResult
(toolName, arguments, result string, ok bool, duration time.Duration)
internal/session/history.go:581
↓ 2 callers
Method
adjustModelIdxAfterDelete
()
cmd/opencodereview/provider_tui.go:1712
↓ 2 callers
Method
adjusted
(file: string, line: number)
extensions/vscode/src/extension/providers/lineOffset.ts:13
↓ 2 callers
Function
agentPluginNameProblem
(name)
scripts/github-actions/check-plugin-contract.js:584
↓ 2 callers
Function
allTools
()
internal/tool/definitions.go:38
↓ 2 callers
Function
analysisFixture
(observations []behaviortask.Observation, partial bool)
cmd/opencodereview/analysis_test.go:209
↓ 2 callers
Function
anthropicMessagesURL
(rawURL string)
acp/internal/intent/llm/client.go:238
↓ 2 callers
Method
apiKeyCmdForStep
apiKeyCmdForStep returns the api_key_cmd already configured for the provider the API-key step is editing, reading the same config entry loadExistingAP
cmd/opencodereview/provider_tui.go:971
↓ 2 callers
Method
apply
(a *Auth, refresh bool)
internal/chatgptauth/oauth.go:199
↓ 2 callers
Method
applyAt
(a *Auth, refresh bool, now time.Time)
internal/chatgptauth/oauth.go:203
↓ 2 callers
Function
applyConfigEntries
(base: RawConfig, entries: ConfigEntry[])
extensions/vscode/src/extension/services/configDraft.ts:143
↓ 2 callers
Method
applyCreateCustomProvider
()
cmd/opencodereview/provider_tui.go:1234
↓ 2 callers
Function
applyDedupGroupsWithCheckpoints
( rawJSON string, originals []model.LlmComment, )
internal/scan/agent.go:1078
↓ 2 callers
Function
applyProviderField
(entry: RawProviderEntry, field: string, value: string)
extensions/vscode/src/extension/services/configDraft.ts:34
↓ 2 callers
Function
applySessionEnd
(summary *SessionSummary, rec map[string]any)
internal/viewer/store.go:773
↓ 2 callers
Method
args
(example, patchPath string)
internal/delegate/instructions_test.go:193
↓ 2 callers
Function
asModelTUIModel
(t *testing.T, m tea.Model)
cmd/opencodereview/provider_tui_funcs_test.go:1114
↓ 2 callers
Function
assertContainsInOrder
(t *testing.T, args []string, vals ...string)
internal/tool/code_search_test.go:453
↓ 2 callers
Function
assertSearchBoundaryPaths
(test *testing.T, code *codeTools, side string, patterns []any, want []string)
internal/behaviortask/search_test.go:178
↓ 2 callers
Function
assertValidation
(value, expectedValid)
scripts/github-actions/action-contract.test.js:361
↓ 2 callers
Function
assertWorkspaceResumeRejected
assertWorkspaceResumeRejected checks that a resume was refused before a child session or LLM request was made: the CLI must return an error mentioning
cmd/opencodereview/workspace_resume_e2e_test.go:177
↓ 2 callers
Function
attachRawWriter
(holder *llm.RawHolder, w *session.RawFileWriter, err error)
cmd/opencodereview/shared.go:297
↓ 2 callers
Function
authHeaderFormError
(raw string)
cmd/opencodereview/provider_tui.go:1134
↓ 2 callers
Method
authorize
(a attempt, old *Auth)
internal/chatgptauth/oauth.go:138
↓ 2 callers
Method
awaitExit
(t *testing.T, timeout time.Duration)
cmd/opencodereview/interrupt_test.go:174
↓ 2 callers
Method
awaitLine
(t *testing.T, marker string, timeout time.Duration)
cmd/opencodereview/interrupt_test.go:150
↓ 2 callers
Method
beginManualTokenReplace
beginManualTokenReplace is the manual-tab equivalent of beginAPIKeyReplace.
cmd/opencodereview/provider_tui.go:918
↓ 2 callers
Method
blurCPStep
()
cmd/opencodereview/provider_tui.go:1448
↓ 2 callers
Method
blurManualStep
()
cmd/opencodereview/provider_tui.go:1782
↓ 2 callers
Function
branchRefCandidates
(ref: string)
extensions/vscode/src/extension/services/gitMap.ts:114
↓ 2 callers
Function
browserCandidates
browserCandidates returns the argv lists to try, in preference order. $BROWSER comes first when set, parsed per the freedesktop convention as Python'
internal/viewer/browser.go:118
↓ 2 callers
Function
browserWarnf
browserWarnf emits one warning using the "[ocr] WARNING:" prefix the rest of the codebase uses for non-fatal problems.
internal/viewer/browser.go:47
↓ 2 callers
Function
buildBadge
buildBadge renders a compact "[category · severity]" tag for a finding. It returns an empty string when neither structured field is present, so text o
cmd/opencodereview/output.go:173
↓ 2 callers
Function
buildBadge
(comment)
scripts/github-actions/post-review-comments.js:2220
↓ 2 callers
Method
buildChangeFilesExceptGroup
buildChangeFilesExceptGroup returns a formatted list of changed files excluding all group members.
internal/agent/agent.go:1693
↓ 2 callers
Function
buildCustomCreateSaveEntries
(params: { name: string; protocol: string; url: string; model: string; models: string; apiKey: str
extensions/frontend/src/shared/configUtils.ts:117
↓ 2 callers
Function
buildDedupCommentsJSON
buildDedupCommentsJSON renders the batch comments as a JSON list with stable c-N ids that the LLM groups by. Only fields the LLM needs to judge simila
internal/scan/agent.go:1049
↓ 2 callers
Function
buildDiffLines
(comment model.LlmComment)
cmd/opencodereview/output.go:294
↓ 2 callers
Function
buildEntries
()
extensions/frontend/src/webview/views/ConfigView.tsx:358
↓ 2 callers
Function
buildFileList
buildFileList renders the change set for the grouping prompt, one file per line, each prefixed with its zero-based index. The index is what the model
internal/agent/grouping.go:255
↓ 2 callers
Function
buildGroupFilterCommentsJSON
buildGroupFilterCommentsJSON serializes comments with path info for group-level filtering.
internal/agent/agent.go:1971
↓ 2 callers
Function
buildMessageXML
buildMessageXML serializes msgs into the <message><content> form expected by the MEMORY_COMPRESSION_TASK prompt template.
internal/llmloop/compression.go:225
↓ 2 callers
Function
buildOfficialSaveEntries
( providerName: string, model: string, apiKey: string, apiKeyChanged: boolean, )
extensions/frontend/src/shared/configUtils.ts:101
↓ 2 callers
Method
buildPage
* Pure string assembly that touches no UI, so it can be unit-tested directly. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/jcef/WebviewHtml.kt:43
↓ 2 callers
Function
buildPhaseThreeMock
(t *testing.T)
acp/internal/orchestrator/runner_test.go:52
↓ 2 callers
Function
buildReviewArgs
(input: ReviewInput, repo: string, backgroundFile?: string)
plugins/open-code-review/opencode/open-code-review.ts:79
↓ 2 callers
Function
buildReviewArgs
(opts: CliRunOptions)
extensions/vscode/src/extension/services/cliParse.ts:6
↓ 2 callers
Function
buildRunTags
(runId, runAttempt)
scripts/github-actions/post-review-comments.js:1007
↓ 2 callers
Function
buildUserPrompt
(text string, st *State)
acp/internal/intent/tool.go:129
↓ 2 callers
Function
buildWorkspaceFiles
(diffHeadOut: string, diffCachedOut: string, untrackedOut: string)
extensions/vscode/src/extension/services/gitMap.ts:77
↓ 2 callers
Function
build_badge
Build the ``[category · severity]`` badge (middot U+00B7). Byte-matches the CLI's buildBadge degeneration so review output is consistent acro
examples/gitlab_ci/post_review.py:149
↓ 2 callers
Method
callback
(q url.Values, old *Auth)
internal/chatgptauth/oauth.go:160
↓ 2 callers
Function
canonicalRemote
canonicalRemote reduces a git remote URL to a stable, credential-free identity string for hashing into repository.identity_sha256, so the same reposit
internal/diff/git.go:503
↓ 2 callers
Function
captureBrowserWarnings
captureBrowserWarnings redirects browserWarnf for one test.
internal/viewer/browser_exec_test.go:108
↓ 2 callers
Function
captureDelegateStdout
(t *testing.T, fn func())
cmd/opencodereview/delegate_exec_test.go:19
↓ 2 callers
Function
captureStderr
(t *testing.T, fn func())
internal/telemetry/events_test.go:65
↓ 2 callers
Function
captureStderrForTest
captureStderrForTest captures everything written to os.Stderr during fn.
internal/session/raw_writer_test.go:260
↓ 2 callers
Function
captureToolTerminal
(t *testing.T, fn func())
internal/reviewtask/loop_execute_test.go:211
↓ 2 callers
Function
catalogError
(status int, requestID string, body []byte, auth *Auth)
internal/chatgptauth/api_error.go:60
↓ 2 callers
Method
checkCancelled
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/CliCancellation.kt:24
↓ 2 callers
Function
checkCorpusFloor
(linkCount, fileCount, minLinks, minFiles)
scripts/github-actions/check-plugin-contract.js:872
↓ 2 callers
Method
checkEnvironment
(force = false)
extensions/vscode/src/extension/services/CliService.ts:61
↓ 2 callers
Function
checkGitVersion
(getVersion func() ([]byte, error))
internal/gitcmd/version.go:72
↓ 2 callers
Function
checkMetricErr
checkMetricErr intentionally ignores metric registration errors: telemetry is best-effort and must not interrupt the main flow.
internal/telemetry/metrics.go:81
↓ 2 callers
Function
chunkArray
(items, size)
scripts/github-actions/post-review-comments.js:1057
↓ 2 callers
Function
clamp_line
(n)
examples/gitflic_ci/post_review.py:174
↓ 2 callers
Function
classifyBoundaryError
classifyBoundaryError classifies an error that only surfaced after the SDK retry loop finished, and reports whether it recognized it at all. The fals
internal/llm/retry_boundary.go:45
↓ 2 callers
Function
classifyItemError
classifyItemError maps a subtask error to a stable item failure class and a safe, generic reason. It never returns the raw error text (which may embed
internal/agent/agent.go:1214
↓ 2 callers
Function
classifyMainLoopStop
classifyMainLoopStop maps a non-error, non-completed main-loop stop to an item failure class and a safe reason. Only the configured limits — the max-t
internal/agent/agent.go:1242
← previous
next →
1,401–1,500 of 7,390, ranked by callers