Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
2,775 in github.com/alibaba/open-code-review
⨍
Functions
2,775
◇
Types & classes
260
↓ 3 callers
Function
assertContainsInOrder
(t *testing.T, args []string, vals ...string)
internal/tool/code_search_test.go:302
↓ 3 callers
Function
buildToolRegistry
(collector *tool.CommentCollector, fr *tool.FileReader)
cmd/opencodereview/review_cmd.go:315
↓ 3 callers
Function
cloneCustomProvidersMap
(src map[string]ProviderEntry)
cmd/opencodereview/provider_tui.go:1200
↓ 3 callers
Function
computeRetryDelayMs
(error, attempt)
scripts/github-actions/post-review-comments.js:751
↓ 3 callers
Method
configPath
()
extensions/vscode/src/extension/services/ConfigService.ts:13
↓ 3 callers
Method
confirmDeleteCustomProviderModel
()
cmd/opencodereview/provider_tui.go:2801
↓ 3 callers
Function
cpProtocolIndex
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:181
↓ 3 callers
Method
customProviderNameTaken
(name string)
cmd/opencodereview/provider_tui.go:191
↓ 3 callers
Function
customStepfunModelTUI
(t *testing.T, configPath string, models []string)
cmd/opencodereview/provider_tui_test.go:1480
↓ 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:167
↓ 3 callers
Function
diffs_from
(diff_text)
examples/gitflic_ci/post_review_test.py:153
↓ 3 callers
Function
ensureMessagesSuffix
ensureMessagesSuffix appends /v1/messages to base URLs that lack a versioned path.
internal/llm/resolver.go:673
↓ 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:199
↓ 3 callers
Method
executePlanPhase
executePlanPhase runs the plan task for a single file, sending template messages with resolved placeholders and collecting the LLM response as plan gu
internal/agent/agent.go:872
↓ 3 callers
Method
executeToolCall
executeToolCall dispatches a single tool call from the LLM response and records the result in session history. code_comment handling includes optional
internal/llmloop/loop.go:274
↓ 3 callers
Function
finish
(callback: () => void)
plugins/open-code-review/opencode/open-code-review.ts:139
↓ 3 callers
Method
focusCPStep
()
cmd/opencodereview/provider_tui.go:1311
↓ 3 callers
Function
formatWarnings
(warnings)
scripts/github-actions/post-review-comments.js:1112
↓ 3 callers
Function
generateHeadingId
(text: string)
pages/src/utils/headingId.ts:8
↓ 3 callers
Function
getAllBlogMetas
(language: string)
pages/src/content/blog/index.ts:88
↓ 3 callers
Function
getBlogMeta
(slug: BlogSlug, language: string)
pages/src/content/blog/index.ts:84
↓ 3 callers
Function
getPostedCommentIds
({ github, owner, repo, prNumber, log })
scripts/github-actions/post-review-comments.js:953
↓ 3 callers
Function
groupIntoRounds
groupIntoRounds parses messages[start:] into logical (assistant + tool_results) pairs.
internal/llmloop/compression.go:76
↓ 3 callers
Function
hasSubtaskErrors
(warnings []agent.AgentWarning)
cmd/opencodereview/output.go:26
↓ 3 callers
Function
initOTLPProviders
initOTLPProviders dispatches to the gRPC or HTTP exporter based on cfg.OTLPProtocol.
internal/telemetry/exporter.go:50
↓ 3 callers
Method
isCustomItem
(idx int)
cmd/opencodereview/provider_tui.go:2680
↓ 3 callers
Method
isCustomModelItem
(idx int)
cmd/opencodereview/provider_tui.go:588
↓ 3 callers
Method
isPathExcluded
isPathExcluded returns true when the given relative file path should be skipped based on hardcoded dir rules or .gitignore patterns.
internal/diff/git.go:187
↓ 3 callers
Function
isPresetProvider
(name: string)
extensions/vscode/src/shared/providers.ts:138
↓ 3 callers
Function
isUserAddedOfficialModelName
(name, providerName string, registryModels []string, cfg *Config)
cmd/opencodereview/provider_tui.go:407
↓ 3 callers
Function
isUserEditMsg
isUserEditMsg reports whether msg represents user text input (typing or paste).
cmd/opencodereview/provider_tui.go:852
↓ 3 callers
Function
listCursorPrefixForModel
(isCursor, userAdded bool)
cmd/opencodereview/provider_tui.go:1936
↓ 3 callers
Function
listCustomProviderNames
(config: OcrConfig | null)
extensions/vscode/src/shared/configUtils.ts:165
↓ 3 callers
Function
loadCommonContext
loadCommonContext validates the working directory, loads the embedded template, raises MaxToolRequestTimes when maxTools exceeds the default, resolves
cmd/opencodereview/shared.go:49
↓ 3 callers
Method
loadGitignorePatterns
loadGitignorePatterns reads and parses .gitignore patterns from the repo root.
internal/diff/git.go:169
↓ 3 callers
Function
makeTask
()
internal/diff/relocation_test.go:30
↓ 3 callers
Function
mapStatusCode
(code: string)
extensions/vscode/src/extension/services/gitMap.ts:3
↓ 3 callers
Method
maybeRunPlan
maybeRunPlan invokes PLAN_TASK on the file and returns a human-readable guidance string suitable for {{plan_guidance}} substitution. Returns "(no pre-
internal/scan/agent.go:577
↓ 3 callers
Function
modelTUIEnterCustomModelName
(t *testing.T, m modelTUIModel, name string)
cmd/opencodereview/provider_tui_funcs_test.go:1011
↓ 3 callers
Function
normalizeLine
(s: string)
extensions/vscode/src/extension/providers/commentAnchor.ts:52
↓ 3 callers
Function
normalizeModelList
(models []string)
cmd/opencodereview/config_cmd.go:481
↓ 3 callers
Function
open
()
extensions/vscode/src/webview/components/CommentCard.tsx:15
↓ 3 callers
Function
parseOTLPEndpoint
parseOTLPEndpoint strips a http:// or https:// scheme from the endpoint and reports whether the connection should be plaintext (insecure). Scheme matc
internal/telemetry/exporter.go:38
↓ 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:3
↓ 3 callers
Method
prepareModelSelection
(providerName, configModel string)
cmd/opencodereview/provider_tui.go:511
↓ 3 callers
Function
printVersion
()
cmd/opencodereview/version.go:15
↓ 3 callers
Function
printWizardCancelled
printWizardCancelled prints the standard Esc-cancel message for config wizards. changesDescription is a short noun phrase, e.g. "Configuration changes
cmd/opencodereview/provider_cmd.go:56
↓ 3 callers
Function
readJSONLRecords
(t *testing.T, path string)
internal/session/persist_test.go:108
↓ 3 callers
Method
recordWarning
(warningType, file, message string)
internal/scan/agent.go:194
↓ 3 callers
Method
recordWarning
recordWarning adds a non-fatal warning to the agent's warning list.
internal/agent/agent.go:298
↓ 3 callers
Method
reloadConfigAfterSaveFailure
reloadConfigAfterSaveFailure reloads on-disk config and refreshes derived provider TUI state so the UI matches persisted data after a failed save. Ret
cmd/opencodereview/provider_tui.go:1576
↓ 3 callers
Method
reloadConfigAfterSaveFailure
reloadConfigAfterSaveFailure reloads on-disk config so in-memory state matches persisted data after a failed save. Returns false when reload could not
cmd/opencodereview/provider_tui.go:2590
↓ 3 callers
Function
renderModelName
(name string, isCursor, userAdded bool)
cmd/opencodereview/provider_tui.go:1953
↓ 3 callers
Function
resolveAllowedHostsFromEnv
resolveAllowedHostsFromEnv reads the OCR_VIEWER_ALLOWED_HOSTS environment variable and combines it with the bind host to produce the active allowlist.
internal/viewer/hostguard.go:118
↓ 3 callers
Function
resolveBin
(name: string)
extensions/vscode/src/extension/services/shellEnv.ts:53
↓ 3 callers
Function
resolveConfigPath
resolveConfigPath returns OCR_CONFIG_PATH when set, otherwise the default user config path. Intentionally used only by read-only commands (e.g. ocr ll
cmd/opencodereview/config_cmd.go:26
↓ 3 callers
Method
resolveGitRef
(root: string, ref: string)
extensions/vscode/src/extension/services/GitService.ts:225
↓ 3 callers
Function
resolveLang
resolveLang returns the resolved language name for the instruction.
internal/config/template/template.go:152
↓ 3 callers
Function
resolveNativeBinary
()
scripts/platform.js:36
↓ 3 callers
Function
reviewModeString
(from, to, commit string)
internal/agent/util.go:92
↓ 3 callers
Function
rollbackCfgActiveModel
(cfg *Config, providerName, prevModel string)
cmd/opencodereview/provider_tui.go:445
↓ 3 callers
Function
runConfigUnset
(key string)
cmd/opencodereview/config_cmd.go:95
↓ 3 callers
Function
runLLM
(args []string)
cmd/opencodereview/llm_cmd.go:14
↓ 3 callers
Function
runRulesCheck
(args []string)
cmd/opencodereview/rules_cmd.go:26
↓ 3 callers
Function
savedSecretReplaceHint
savedSecretReplaceHint builds the replace hint text without leading indent.
cmd/opencodereview/provider_tui.go:2373
↓ 3 callers
Function
scanLines
scanLines reads from r line by line, collecting at most maxLines lines starting from startLine (1-based), while counting the total number of lines. Th
internal/tool/filereader.go:155
↓ 3 callers
Function
sessionJSONLPath
(t *testing.T, repoDir, sessionID string)
internal/session/persist_test.go:128
↓ 3 callers
Method
setStatus
(index: number, status: CommentStatus)
extensions/vscode/src/extension/providers/CommentProvider.ts:176
↓ 3 callers
Method
shouldReview
shouldReview applies the filter algorithm via whyExcluded.
internal/agent/agent.go:827
↓ 3 callers
Function
shouldSkipFile
shouldSkipFile returns true if a git ls-files output path should be skipped. Keeps only widely useful files (those with recognizable extensions).
internal/tool/file_find.go:173
↓ 3 callers
Function
sleep
(ms)
scripts/github-actions/post-review-comments.js:724
↓ 3 callers
Function
splitAndNormalize
splitAndNormalize splits code text into lines and normalizes each one.
internal/diff/resolver.go:217
↓ 3 callers
Function
splitBindHost
splitBindHost returns the host portion of a listen address as passed to http.Server.Addr. Empty input returns "".
internal/viewer/hostguard.go:106
↓ 3 callers
Function
stripEmptyPlanBlock
stripEmptyPlanBlock removes the "### Review Plan …\n{{plan_guidance}}\n\n" wrapper from a MAIN_TASK user message when the plan phase produced no guida
internal/agent/util.go:32
↓ 3 callers
Function
stripThinkTags
stripThinkTags removes reasoning wrapper tags from content.
internal/llm/client.go:859
↓ 3 callers
Method
syncModelsFromConfig
()
cmd/opencodereview/provider_tui.go:2603
↓ 3 callers
Function
toConfigSetArgs
(key: string, value: string)
extensions/vscode/src/extension/services/configParse.ts:47
↓ 3 callers
Method
triggerAsyncCompression
triggerAsyncCompression kicks off a background compression job for the conversation owning st. A no-op when a job is already pending — the check-and-s
internal/llmloop/compression.go:277
↓ 3 callers
Function
visibleRunesLen
(runes []rune)
cmd/opencodereview/output.go:187
↓ 3 callers
Method
waitForRepo
等待至少一个仓库就绪(git 扩展异步扫描,首次可能为空)。
extensions/vscode/src/extension/services/GitService.ts:44
↓ 3 callers
Method
whyExcluded
whyExcluded mirrors agent.whyExcluded but for ScanItem inputs.
internal/scan/agent.go:344
↓ 3 callers
Function
withEnv
(env, fn)
scripts/github-actions/post-review-comments.test.js:68
↓ 3 callers
Function
writeGarbageExternalDiff
writeGarbageExternalDiff writes a shell script that emits non-diff output and returns its path. When git invokes it via GIT_EXTERNAL_DIFF / diff.exter
internal/diff/git_test.go:30
↓ 3 callers
Method
writeReviewItemRecord
(recordType, filePath, oldPath, newPath, fingerprint, sourceSessionID, errorMsg string, comments []model.LlmCo
internal/session/persist.go:181
↓ 2 callers
Method
AddToolResult
AddToolResult appends a tool call result to this task record and writes a tool_call record to the JSONL stream.
internal/session/history.go:354
↓ 2 callers
Method
ApplyLanguage
ApplyLanguage injects a language directive into all system-role messages of this conversation.
internal/config/testconnection/testconnection.go:47
↓ 2 callers
Method
BoolVarP
BoolVarP registers --name with optional short form -s.
cmd/opencodereview/flags.go:36
↓ 2 callers
Function
BuildToolDefs
BuildToolDefs converts toolsconfig.ToolConfigEntry slice into []llm.ToolDef, filtering by phase (planOnly=true for plan_task, false for main_task).
internal/agent/agent.go:972
↓ 2 callers
Function
Complete
Complete returns a checkpoint signaling task completion.
internal/tool/response_message.go:17
↓ 2 callers
Function
CountTokensForModel
(text string, modelName string)
internal/llm/client.go:273
↓ 2 callers
Function
EndSpan
EndSpan ends the span and records error status if present.
internal/telemetry/span.go:54
↓ 2 callers
Function
Eventf
Eventf is like Event but includes a message attribute.
internal/telemetry/events.go:31
↓ 2 callers
Function
FormatDuration
FormatDuration returns a human-readable duration string for console output.
internal/telemetry/events.go:64
↓ 2 callers
Function
GroupRules
GroupRules groups the given file paths by their resolved rule content. Files are placed in the same group only when their source, matched pattern, and
internal/delegate/rulegroup.go:24
↓ 2 callers
Function
HomeConfigPath
HomeConfigPath returns the default path to ~/.opencodereview/config.json.
internal/telemetry/config.go:125
↓ 2 callers
Method
Init
()
cmd/opencodereview/provider_tui.go:2676
↓ 2 callers
Function
InitEmbeddedLoader
initEmbeddedLoader configures tiktoken to use embedded BPE data instead of fetching from network. Call this once during application startup, before an
internal/llm/embedded_loader.go:20
↓ 2 callers
Method
IsKnown
IsKnown reports whether the tool is not UNKNOWN.
internal/tool/definitions.go:62
↓ 2 callers
Method
LLMFailures
LLMFailures returns the total number of LLM request failures recorded during this session.
internal/session/history.go:348
← previous
next →
401–500 of 2,775, ranked by callers