Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,169 in github.com/alibaba/open-code-review
⨍
Functions
7,169
◇
Types & classes
774
↓ 4 callers
Method
updateManualForm
(key string, msg tea.KeyPressMsg)
cmd/opencodereview/provider_tui.go:1496
↓ 4 callers
Function
useSectionTitleStyle
()
pages/src/hooks/useResponsiveStyle.ts:15
↓ 4 callers
Method
valid
valid reports whether c is one of the fixed attempt error classes.
internal/llm/retry_report.go:38
↓ 4 callers
Method
valid
valid reports whether c is one of the fixed item failure classes.
internal/session/manifest.go:69
↓ 4 callers
Function
validateProviderName
(name string)
cmd/opencodereview/config_cmd.go:1043
↓ 4 callers
Function
validateRepoLinks
(links, probe)
scripts/github-actions/check-plugin-contract.js:320
↓ 4 callers
Function
walkSessionFile
(path string, apply func(summaryRecord))
internal/session/list.go:206
↓ 4 callers
Function
withUsage
(resp *llm.ChatResponse, prompt int64)
internal/reviewtask/loop_test.go:1240
↓ 4 callers
Method
write
(name string, v any)
internal/chatgptauth/store.go:136
↓ 4 callers
Function
writeCodeBlock
(b *strings.Builder, path, code string)
acp/internal/adapter/presentation/markdown.go:16
↓ 4 callers
Function
writeOutError
writeOutError surfaces deferred write errors from writers that record them (lazyFileWriter); plain writers such as os.Stdout report nil.
cmd/opencodereview/shared.go:684
↓ 3 callers
Function
Build
Build compiles the stub once per test binary.
acp/internal/testutil/stub.go:55
↓ 3 callers
Method
CallTool
(ctx context.Context, req LLMRequest)
acp/internal/intent/parser.go:31
↓ 3 callers
Function
ChatGPTModels
(ctx context.Context)
internal/llm/chatgpt.go:26
↓ 3 callers
Function
ContentLogging
ContentLogging returns true when content logging is enabled via OCR_CONTENT_LOGGING.
internal/telemetry/provider.go:78
↓ 3 callers
Function
EffortNames
EffortNames returns the accepted values for shell completion and error messages.
internal/config/template/effort.go:25
↓ 3 callers
Method
FinalManifest
FinalManifest returns the frozen manifest stored for this run, or nil when the run produced none (legacy/scan, or a construction failure).
internal/session/history.go:217
↓ 3 callers
Method
ForEachInOrder
ForEachInOrder visits Included and Excluded in the original changeset order. providerExcluded is true for built-in directory exclusions. Files dropped
internal/diff/git.go:83
↓ 3 callers
Function
ListSessions
ListSessions returns lightweight summaries for all sessions in a repo subdir.
internal/viewer/store.go:115
↓ 3 callers
Function
LoadDefault
LoadDefault parses the embedded task.json and returns the TEST_TASK conversation.
internal/config/testconnection/testconnection.go:48
↓ 3 callers
Function
LoadReviewResumeState
LoadReviewResumeState replays a review session, dropping records it cannot parse. Review reuse is gated on the parent manifest rather than on these li
internal/session/resume.go:107
↓ 3 callers
Method
MergeBase
MergeBase returns the computed merge-base commit hash for range mode.
internal/diff/git.go:198
↓ 3 callers
Function
NativePathFromFileURL
NativePathFromFileURL converts a local file: URL path into an OS path. Callers must already have rejected non-file schemes, hosts, queries and fragmen
acp/internal/adapter/workspace/fileurl.go:16
↓ 3 callers
Function
NewAnthropicBedrockClient
NewAnthropicBedrockClient creates a client for Anthropic models served by AWS Bedrock. The wire format is the Messages API, so this reuses AnthropicC
internal/llm/client.go:1250
↓ 3 callers
Function
NewCommentWorkerPool
NewCommentWorkerPool delegates to reviewtask.NewCommentWorkerPool.
internal/agent/agent.go:50
↓ 3 callers
Function
NewWorkspaceProviderWithBase
(repoDir string, base InputResolution, runner *gitcmd.Runner)
internal/diff/workspace.go:16
↓ 3 callers
Function
OfName
(name string)
internal/tool/definitions.go:27
↓ 3 callers
Function
ParseRetryCodes
ParseRetryCodes parses a comma-separated list of HTTP status codes that should trigger retry. Non-4xx codes return an error; SDK-default codes (408, 4
internal/llm/resolver.go:996
↓ 3 callers
Function
PrintToolCallError
PrintToolCallError prints a line when a tool fails. Example: [ocr] ✘ file_read "internal/config/rules/loader.go" failed: permission denied
internal/telemetry/events.go:123
↓ 3 callers
Function
PrintToolCallStarted
PrintToolCallStarted prints a line when a tool begins execution. Args are summarized as key-value pairs (path, search terms, etc.). Example: [ocr] ▶
internal/telemetry/events.go:106
↓ 3 callers
Function
ProviderDirPrefix
ProviderDirPrefix returns the blocklist prefix that excludes relPath, including the trailing slash (for example "vendor/"), or "" if none match.
internal/diff/gitignore.go:19
↓ 3 callers
Method
RecordResumeLineage
RecordResumeLineage persists the run's single resume_lineage event. A nil lineage is a non-resumed run and writes nothing.
internal/session/history.go:294
↓ 3 callers
Method
RemoveByPathAndIndices
RemoveByPathAndIndices removes comments for a given path whose per-path index (0-based position among all comments with that path) is in the indices s
internal/tool/comment_collector.go:96
↓ 3 callers
Method
Resolve
Resolve returns the rule text for a given file path. Patterns with brace expansion like "*.{go,py}" are expanded into "*.go", "*.py". The first match
internal/config/rules/system_rules.go:149
↓ 3 callers
Method
ResolveCommit
ResolveCommit reports whether ref resolves to a commit in the target repo.
acp/internal/intent/validate.go:17
↓ 3 callers
Method
ResolveCommitComparison
(ctx context.Context)
internal/diff/comparison.go:12
↓ 3 callers
Function
ResolveComparisonInput
ResolveComparisonInput turns every moving head ref into an immutable commit before loading the diff. Range mode computes its merge-base against frozen
internal/agent/identity.go:71
↓ 3 callers
Function
ResolveConfig
ResolveConfig builds the final Config by merging defaults, JSON config, and env vars. Precedence: defaults < config.json < environment variables.
internal/telemetry/config.go:113
↓ 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:452
↓ 3 callers
Function
SessionsRoot
SessionsRoot returns the root directory where session JSONL files are stored.
internal/viewer/store.go:29
↓ 3 callers
Function
ShutdownWithTimeout
ShutdownWithTimeout creates a timeout context and calls Shutdown.
internal/telemetry/shutdown.go:39
↓ 3 callers
Function
StartServer
StartServer binds addr and serves until the listener fails. openMode is one of OpenAuto, OpenAlways or OpenNever; callers should have run ValidateOpen
internal/viewer/server.go:45
↓ 3 callers
Function
StyleProgress
(progressColor, errorColor bool)
internal/stdout/style.go:24
↓ 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/reviewtask/pool.go:60
↓ 3 callers
Function
SubmitIntentTool
SubmitIntentTool returns the tool definition sent to the parsing model.
acp/internal/intent/tool.go:96
↓ 3 callers
Method
ToolCalls
ToolCalls extracts tool calls from the first choice.
internal/llm/client.go:373
↓ 3 callers
Method
TotalCacheReadTokens
TotalCacheReadTokens returns the accumulated cache read tokens.
internal/llmloop/loop.go:110
↓ 3 callers
Method
TotalCacheWriteTokens
TotalCacheWriteTokens returns the accumulated cache write tokens.
internal/llmloop/loop.go:113
↓ 3 callers
Method
TotalTokensUsed
TotalTokensUsed / TotalInputTokens / ... delegate to the underlying runner.
internal/scan/agent.go:226
↓ 3 callers
Method
_mock_response
(self, status=200, body=b'{"comment_biz_id": "abc"}')
examples/codeup_ci/post_review_test.py:142
↓ 3 callers
Function
_num
(v)
examples/gitlab_ci/post_review.py:412
↓ 3 callers
Method
_poster
(self, config_overrides=None)
examples/gitlab_ci/post_review_test.py:1103
↓ 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:918
↓ 3 callers
Function
accumulateResponseStream
accumulateResponseStream rebuilds a complete response from output-item done events and the terminal response envelope, including streams whose termina
internal/llm/responses_client.go:387
↓ 3 callers
Function
add
(signal, handler)
bin/ocr.js:37
↓ 3 callers
Function
addExcludeFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:48
↓ 3 callers
Method
addNextMessage
addNextMessage extends the conversation with the assistant message and tool responses, applying three-zone compression at the soft (60%) and warning (
internal/llmloop/loop.go:551
↓ 3 callers
Function
addOutputFlags
(cmd *cobra.Command, format, audience *string)
cmd/opencodereview/shared_flags.go:34
↓ 3 callers
Function
addOutputPathFlag
addOutputPathFlag registers --output/-o: write results to a UTF-8 file instead of stdout. "" or "-" keeps stdout; a real path is created lazily on the
cmd/opencodereview/shared_flags.go:44
↓ 3 callers
Function
addRuleFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:19
↓ 3 callers
Method
adjustModelIdxAfterDelete
()
cmd/opencodereview/provider_tui.go:2794
↓ 3 callers
Method
apiKeyStepCanConfirm
()
cmd/opencodereview/provider_tui.go:995
↓ 3 callers
Method
apply
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:141
↓ 3 callers
Function
applyExtraHeaders
applyExtraHeaders copies configured headers but never lets them clobber the auth or content headers the client manages.
acp/internal/intent/llm/client.go:282
↓ 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:806
↓ 3 callers
Function
applyRecordToSummary
(s *Summary, rec summaryRecord)
internal/session/list.go:231
↓ 3 callers
Method
applyResume
(diffs []model.Diff)
internal/agent/agent.go:878
↓ 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:109
↓ 3 callers
Function
author
(login, typename)
scripts/github-actions/post-review-comments.test.js:6638
↓ 3 callers
Function
branchRefCandidates
Builds branch ref candidates for `rev-parse --verify`: add the origin/ prefix and swap main with master. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:135
↓ 3 callers
Function
buildGroupingIndex
buildGroupingIndex scans the grouping request messages for the numbered file list and returns an index→path map. reqMessages is the raw JSONL value (a
internal/viewer/store.go:368
↓ 3 callers
Function
buildSummaryCommentsList
buildSummaryCommentsList renders comments as a compact path-anchored markdown list suitable for embedding in the PROJECT_SUMMARY_TASK prompt. Format:
internal/scan/agent.go:957
↓ 3 callers
Function
buildToolInputSchema
(params map[string]any)
internal/llm/client.go:1702
↓ 3 callers
Function
buildToolRegistry
(collector *tool.CommentCollector, fr *tool.FileReader)
cmd/opencodereview/review_cmd.go:668
↓ 3 callers
Function
buildWorkspaceFiles
* Builds the workspace file list, matching the OCR CLI's workspace mode: * `diff HEAD` first, falling back to `diff --cached` when it is empty (no HE
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:86
↓ 3 callers
Function
callGroupingLLM
(ctx context.Context, diffs []model.Diff, client llm.LLMClient, modelName string, task *template.LlmConversati
internal/agent/grouping.go:172
↓ 3 callers
Method
capture
capture runs a git command and returns its stdout and stderr. With combined set, stderr is folded into the same pipe so relative write order is preser
internal/gitcmd/runner.go:200
↓ 3 callers
Function
checkAPIKeyRequirement
checkAPIKeyRequirement decides whether a provider selection may be saved with no api_key. It mirrors the resolver's precedence (static api_key -> api_
cmd/opencodereview/provider_cmd.go:246
↓ 3 callers
Function
checkAgentPluginManifests
(specs, readJson, listDirs, readFile)
scripts/github-actions/check-plugin-contract.js:661
↓ 3 callers
Function
checkResponseStatus
checkResponseStatus turns unsuccessful response objects into errors. The Responses API can return these states with HTTP 200, so the SDK does not reje
internal/llm/responses_client.go:213
↓ 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:1345
↓ 3 callers
Method
closeWrite
closeWrite drops the parent's copy of the write end so that EOF becomes visible once every child copy is closed.
internal/gitcmd/runner.go:88
↓ 3 callers
Function
commit
(index, message = "fix: keep CI running")
scripts/github-actions/check-pr-commit-policy.test.js:34
↓ 3 callers
Function
commitShowNameStatusArgs
* Arguments for `git show --name-status` when listing files changed by one commit. * * `--diff-merges=first-parent` is required: a plain `git show`
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:192
↓ 3 callers
Method
config
(self)
examples/gitlab_ci/post_review_test.py:1337
↓ 3 callers
Method
configPath
()
extensions/vscode/src/extension/services/ConfigService.ts:16
↓ 3 callers
Method
confirmDeleteCustomModel
()
cmd/opencodereview/provider_tui.go:1627
↓ 3 callers
Function
contains
(list []string, want string)
internal/scan/provider_more_test.go:146
↓ 3 callers
Function
countSessionFiles
(t *testing.T, repoDir string)
cmd/opencodereview/review_resume_more_test.go:225
↓ 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:201
↓ 3 callers
Function
cpProtocolIndex
(protocol string)
cmd/opencodereview/provider_tui.go:205
↓ 3 callers
Method
customProviderNameTaken
(name string)
cmd/opencodereview/provider_tui.go:226
↓ 3 callers
Function
customStepfunModelTUI
(t *testing.T, configPath string, models []string)
cmd/opencodereview/provider_tui_test.go:1539
↓ 3 callers
Function
decodeResult
(args []string, stdout []byte)
acp/internal/orchestrator/decode.go:15
↓ 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:281
↓ 3 callers
Function
diagnosticText
(text string, auth *Auth)
internal/chatgptauth/api_error.go:37
↓ 3 callers
Function
diff_inventory
Build a diff inventory for ``path`` from ``{new_line: (type, old_line)}``.
examples/gitlab_ci/post_review_test.py:64
↓ 3 callers
Function
diffsChurn
diffsChurn returns the set's aggregate churn and its largest single-file churn. Both feed Template.PlanRequired; the aggregate alone feeds Template.Gr
internal/agent/agent.go:1406
← previous
next →
1,001–1,100 of 7,169, ranked by callers