Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
4,238 in github.com/alibaba/open-code-review
⨍
Functions
4,238
◇
Types & classes
393
↓ 3 callers
Method
Session
Session returns the session history associated with this Agent.
internal/scan/agent.go:173
↓ 3 callers
Method
SessionID
SessionID returns the current review's resumable session ID. It returns an empty string when the session file could not be created, so callers do not
internal/agent/agent.go:413
↓ 3 callers
Function
SessionsRoot
SessionsRoot returns the root directory where session JSONL files are stored.
internal/viewer/store.go:25
↓ 3 callers
Method
SetDiffMap
SetDiffMap replaces the diff snapshot. Must be called before concurrent access begins.
internal/tool/file_read_diff.go:42
↓ 3 callers
Function
ShutdownWithTimeout
ShutdownWithTimeout creates a timeout context and calls Shutdown.
internal/telemetry/shutdown.go:36
↓ 3 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
↓ 3 callers
Function
StartServer
(addr string)
internal/viewer/server.go:20
↓ 3 callers
Method
SubmitFor
SubmitFor is Submit plus registration under key, so AwaitKey can wait for exactly the units submitted under that key instead of the whole pool. Calle
internal/llmloop/pool.go:74
↓ 3 callers
Method
TotalOutputTokens
TotalOutputTokens returns the accumulated completion tokens from all LLM calls.
internal/llmloop/loop.go:131
↓ 3 callers
Method
TotalTokensUsed
TotalTokensUsed / TotalInputTokens / ... delegate to the underlying runner.
internal/scan/agent.go:213
↓ 3 callers
Method
WaitBackground
WaitBackground blocks until every background job started by this Runner has returned. Background memory compression is the only such job, and cancelPe
internal/llmloop/loop.go:123
↓ 3 callers
Method
_mock_response
(self, status=200, body=b'{"comment_biz_id": "abc"}')
examples/codeup_ci/post_review_test.py:138
↓ 3 callers
Function
_num
(v)
examples/gitlab_ci/post_review.py:404
↓ 3 callers
Method
_poster
(self, config_overrides=None)
examples/gitlab_ci/post_review_test.py:1032
↓ 3 callers
Method
_read_with_pacing
Read with proactive pacing, mirroring the GitHub Action's readWithPacing. Reads are cheaper than writes but still consume the primary rate li
examples/gitlab_ci/post_review.py:828
↓ 3 callers
Function
addExcludeFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:39
↓ 3 callers
Function
addOutputFlags
(cmd *cobra.Command, format, audience *string)
cmd/opencodereview/shared_flags.go:32
↓ 3 callers
Function
addRuleFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:17
↓ 3 callers
Method
adjustModelIdxAfterDelete
()
cmd/opencodereview/provider_tui.go:2760
↓ 3 callers
Function
applyProviderDeletions
(configPath string, cfg *Config, names []string)
cmd/opencodereview/provider_cmd.go:69
↓ 3 callers
Function
applyProviderField
(providerName string, entry *ProviderEntry, field, key, value string)
cmd/opencodereview/config_cmd.go:583
↓ 3 callers
Function
applyRecordToSummary
(s *Summary, rec summaryRecord)
internal/session/list.go:221
↓ 3 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:46
↓ 3 callers
Function
assertNoSessionStore
assertNoSessionStore fails if the session store was created under home. Preview neither runs nor finalizes a review, so it must not open persistence a
cmd/opencodereview/delegate_exec_test.go:97
↓ 3 callers
Function
budgetAgentTestTemplate
budgetAgentTestTemplate returns a minimal template sufficient to drive dispatchSubtasks without plan/dedup/summary phases.
internal/agent/budget_test.go:53
↓ 3 callers
Function
budgetTestTemplate
()
internal/scan/budget_test.go:49
↓ 3 callers
Method
buildOpenAIParams
buildOpenAIParams converts the shared ChatRequest into OpenAI SDK parameters.
internal/llm/client.go:616
↓ 3 callers
Function
buildToolInputSchema
(params map[string]any)
internal/llm/client.go:1223
↓ 3 callers
Function
classifyAttempt
classifyAttempt maps an observation to an ErrorClass and FailurePhase. A non-2xx status is the strongest available fact, so it decides the class befo
internal/llm/retry_report.go:182
↓ 3 callers
Function
cloneCustomProvidersMap
(src map[string]ProviderEntry)
cmd/opencodereview/provider_tui.go:1318
↓ 3 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:881
↓ 3 callers
Function
colorOn
colorOn reports whether ANSI color should be emitted.
cmd/opencodereview/color.go:73
↓ 3 callers
Method
config
(self)
examples/gitlab_ci/post_review_test.py:1227
↓ 3 callers
Method
configPath
()
extensions/vscode/src/extension/services/ConfigService.ts:16
↓ 3 callers
Method
confirmDeleteCustomModel
()
cmd/opencodereview/provider_tui.go:1600
↓ 3 callers
Function
contains
(list []string, want string)
internal/scan/provider_more_test.go:146
↓ 3 callers
Method
cpAmbientProtocol
cpProtocolIndex maps a protocol string (canonical name or legacy alias) to its index in cpProtocols. Unknown / empty values default to the OpenAI Chat
cmd/opencodereview/provider_tui.go:200
↓ 3 callers
Function
cpProtocolIndex
(protocol string)
cmd/opencodereview/provider_tui.go:204
↓ 3 callers
Method
customProviderNameTaken
(name string)
cmd/opencodereview/provider_tui.go:225
↓ 3 callers
Function
customStepfunModelTUI
(t *testing.T, configPath string, models []string)
cmd/opencodereview/provider_tui_test.go:1539
↓ 3 callers
Function
deleteCustomProvider
deleteCustomProvider removes a custom provider from cfg in memory. Returns true if the deleted provider was the active one.
cmd/opencodereview/config_cmd.go:271
↓ 3 callers
Function
describeFiles
(s session.Summary)
cmd/opencodereview/session_cmd.go:370
↓ 3 callers
Function
describeRange
(s session.Summary)
cmd/opencodereview/session_cmd.go:356
↓ 3 callers
Function
diffs_from
(diff_text)
examples/gitflic_ci/post_review_test.py:153
↓ 3 callers
Function
displayMode
(m string)
cmd/opencodereview/session_cmd.go:349
↓ 3 callers
Function
emptySHA256
emptySHA256 is the canonical digest of an empty input, which hashFields must return for an empty field sequence.
internal/agent/manifest_hash_test.go:18
↓ 3 callers
Function
excludeToolDef
excludeToolDef returns a copy of defs with any entries whose function name matches name removed. Used by `ocr scan` to hide tools that don't make sens
cmd/opencodereview/shared.go:268
↓ 3 callers
Function
executeDelegateRule
(opts delegateOptions, paths []string)
cmd/opencodereview/delegate_cmd.go:234
↓ 3 callers
Function
extractHeadings
(markdown: string)
pages/src/utils/extractHeadings.ts:7
↓ 3 callers
Function
finish
(callback: () => void)
plugins/open-code-review/opencode/open-code-review.ts:146
↓ 3 callers
Method
focusCPStep
()
cmd/opencodereview/provider_tui.go:1434
↓ 3 callers
Function
formatCommentMarkdown
(comment, error)
scripts/github-actions/post-review-comments.js:1547
↓ 3 callers
Function
formatWarnings
(warnings)
scripts/github-actions/post-review-comments.js:1651
↓ 3 callers
Function
freshOCRHome
freshOCRHome points the OCR home at a temp dir so a test can assert on what a command wrote there. It also neutralizes global git config: git resolves
cmd/opencodereview/delegate_exec_test.go:85
↓ 3 callers
Function
getAllBlogMetas
(language: string)
pages/src/content/blog/index.ts:98
↓ 3 callers
Function
getBlogMeta
(slug: BlogSlug, language: string)
pages/src/content/blog/index.ts:94
↓ 3 callers
Function
getPostedCommentIds
({ github, owner, repo, prNumber, log })
scripts/github-actions/post-review-comments.js:1284
↓ 3 callers
Function
gitIn
(t *testing.T, dir string, args ...string)
internal/agent/sealed_input_test.go:28
↓ 3 callers
Function
groupIntoRounds
groupIntoRounds parses messages[start:] into logical (assistant + tool_results) pairs.
internal/llmloop/compression.go:79
↓ 3 callers
Method
handleCustomFormEnter
()
cmd/opencodereview/provider_tui.go:1143
↓ 3 callers
Method
handleManualFormEnter
()
cmd/opencodereview/provider_tui.go:1712
↓ 3 callers
Function
hasSubtaskErrors
(warnings []agent.AgentWarning)
cmd/opencodereview/output.go:32
↓ 3 callers
Function
initMCPClients
(ctx context.Context, cfg *Config, tools *tool.Registry, repoDir, version string)
cmd/opencodereview/review_cmd.go:500
↓ 3 callers
Function
initOTLPHTTPProviders
initOTLPHTTPProviders sets up OTLP HTTP exporters for traces and metrics. Unlike the gRPC path this uses WithEndpointURL rather than WithEndpoint, so
internal/telemetry/exporter.go:153
↓ 3 callers
Function
initOTLPProviders
initOTLPProviders dispatches to the gRPC or HTTP exporter based on cfg.OTLPProtocol.
internal/telemetry/exporter.go:86
↓ 3 callers
Method
isCustomItem
(idx int)
cmd/opencodereview/provider_tui.go:2864
↓ 3 callers
Method
isCustomModelItem
(idx int)
cmd/opencodereview/provider_tui.go:622
↓ 3 callers
Function
isErrorStatus
isErrorStatus reports whether an observed HTTP status proves the attempt failed on its own. Status 0 means no response was received, so it proves noth
internal/llm/retry_report.go:172
↓ 3 callers
Method
isPathExcluded
isPathExcluded returns true when the given relative file path should be skipped based on hardcoded dir rules or .gitignore patterns. Patterns are res
internal/diff/git.go:257
↓ 3 callers
Function
isPresetProvider
(name: string)
extensions/vscode/src/shared/providers.ts:149
↓ 3 callers
Function
isUserAddedOfficialModelName
(name, providerName string, registryModels []string, cfg *Config)
cmd/opencodereview/provider_tui.go:441
↓ 3 callers
Method
itemCount
()
cmd/opencodereview/provider_tui.go:2868
↓ 3 callers
Function
itemPaths
(items []model.ScanItem)
internal/scan/provider_more_test.go:137
↓ 3 callers
Function
listCursorPrefixForModel
(isCursor, userAdded bool)
cmd/opencodereview/provider_tui.go:2080
↓ 3 callers
Function
listCustomProviderNames
(config: OcrConfig | null)
extensions/vscode/src/shared/configUtils.ts:168
↓ 3 callers
Method
list_notes
(self)
examples/gitlab_ci/post_review_test.py:158
↓ 3 callers
Method
loadGitignorePatterns
loadGitignorePatterns reads and parses .gitignore patterns from the repo root.
internal/diff/git.go:232
↓ 3 callers
Function
loadScanResumeState
(repoDir string, opts scanOptions, scanPaths []string)
cmd/opencodereview/scan_cmd.go:237
↓ 3 callers
Function
makeBudgetDiffs
makeBudgetDiffs returns n small, non-deleted diffs that survive filterDiffs and filterLargeDiffs.
internal/agent/budget_test.go:68
↓ 3 callers
Function
makeErr
(message, status, headers, data)
scripts/github-actions/post-review-comments.test.js:61
↓ 3 callers
Function
makeScanItems
(n int)
internal/scan/budget_test.go:62
↓ 3 callers
Method
manifestMode
manifestMode maps the review to the manifest input mode. It derives purely from From/To/Commit so the value is always one of the three valid input mod
internal/agent/agent.go:887
↓ 3 callers
Function
mapStatusCode
(code: string)
extensions/vscode/src/extension/services/gitMap.ts:7
↓ 3 callers
Method
mergeBase
mergeBase computes the merge-base for range mode. Returns "" for other modes.
cmd/opencodereview/delegate_cmd.go:141
↓ 3 callers
Function
modelTUIEnterCustomModelName
(t *testing.T, m modelTUIModel, name string)
cmd/opencodereview/provider_tui_funcs_test.go:1123
↓ 3 callers
Method
newRequestMeta
newRequestMeta builds the retry-report identity for one logical LLM request. It is the single place provider and model are read for that purpose — th
internal/agent/agent.go:265
↓ 3 callers
Function
normalizeLine
(s: string)
extensions/vscode/src/extension/providers/commentAnchor.ts:55
↓ 3 callers
Function
normalizeModelList
(models []string)
cmd/opencodereview/config_cmd.go:724
↓ 3 callers
Function
officialAPIKeyRequiredError
officialAPIKeyRequiredError mirrors the wording applyOfficialProviderConfig uses for the same failure, so the interactive and non-interactive paths na
cmd/opencodereview/provider_tui.go:944
↓ 3 callers
Function
outputPreview
outputPreview renders a preview in the requested output format. sarif is rejected with an error because a preview contains file/rule metadata, not rev
cmd/opencodereview/output.go:567
↓ 3 callers
Function
parseExplicitHeadingId
(text: string)
pages/src/utils/headingId.ts:9
↓ 3 callers
Function
parseRecordTime
(s string)
internal/session/list.go:331
↓ 3 callers
Method
passThroughCPInput
(msg tea.Msg)
cmd/opencodereview/provider_tui.go:1448
↓ 3 callers
Function
positionalSignature
positionalSignature extracts the positional-argument part of cmd.Use, e.g. "<key> <value>" from "set <key> <value>" and "<path...>" from "rule [flags]
cmd/opencodereview/arg_errors.go:81
↓ 3 callers
Function
post
(review_input)
examples/gerrit_ci/post_review.py:225
↓ 3 callers
Method
postMessage
(msg: unknown)
extensions/vscode/src/webview/bridge.ts:6
↓ 3 callers
Method
prepareModelSelection
(providerName, configModel string)
cmd/opencodereview/provider_tui.go:545
↓ 3 callers
Method
preview
preview is read-only with respect to the Agent: it does not mutate a.items. (Earlier versions did, which made a subsequent Run on the same Agent silen
internal/scan/preview.go:28
↓ 3 callers
Method
preview
(ctx context.Context)
internal/agent/preview.go:72
↓ 3 callers
Function
previewFixture
()
cmd/opencodereview/output_color_test.go:105
← previous
next →
601–700 of 4,238, ranked by callers