Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
3,373 in github.com/alibaba/open-code-review
⨍
Functions
3,373
◇
Types & classes
315
↓ 3 callers
Function
formatCommentMarkdown
(comment, error)
scripts/github-actions/post-review-comments.js:1480
↓ 3 callers
Function
formatWarnings
(warnings)
scripts/github-actions/post-review-comments.js:1584
↓ 3 callers
Function
getAllBlogMetas
(language: string)
pages/src/content/blog/index.ts:91
↓ 3 callers
Function
getBlogMeta
(slug: BlogSlug, language: string)
pages/src/content/blog/index.ts:87
↓ 3 callers
Function
getPostedCommentIds
({ github, owner, repo, prNumber, log })
scripts/github-actions/post-review-comments.js:1284
↓ 3 callers
Function
groupIntoRounds
groupIntoRounds parses messages[start:] into logical (assistant + tool_results) pairs.
internal/llmloop/compression.go:79
↓ 3 callers
Function
hasSubtaskErrors
(warnings []agent.AgentWarning)
cmd/opencodereview/output.go:30
↓ 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:2683
↓ 3 callers
Method
isCustomModelItem
(idx int)
cmd/opencodereview/provider_tui.go:591
↓ 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:258
↓ 3 callers
Function
isPresetProvider
(name: string)
extensions/vscode/src/shared/providers.ts:141
↓ 3 callers
Function
isSubtaskErrorType
(warningType string)
cmd/opencodereview/output.go:60
↓ 3 callers
Function
isUserAddedOfficialModelName
(name, providerName string, registryModels []string, cfg *Config)
cmd/opencodereview/provider_tui.go:410
↓ 3 callers
Function
isUserEditMsg
isUserEditMsg reports whether msg represents user text input (typing or paste).
cmd/opencodereview/provider_tui.go:855
↓ 3 callers
Function
listCursorPrefixForModel
(isCursor, userAdded bool)
cmd/opencodereview/provider_tui.go:1939
↓ 3 callers
Function
listCustomProviderNames
(config: OcrConfig | null)
extensions/vscode/src/shared/configUtils.ts:168
↓ 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:54
↓ 3 callers
Method
loadGitignorePatterns
loadGitignorePatterns reads and parses .gitignore patterns from the repo root.
internal/diff/git.go:233
↓ 3 callers
Function
log
(msg)
examples/gitlab_ci/post_review.py:40
↓ 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
makeTask
()
internal/diff/relocation_test.go:33
↓ 3 callers
Function
mapStatusCode
(code: string)
extensions/vscode/src/extension/services/gitMap.ts:7
↓ 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:743
↓ 3 callers
Function
modelTUIEnterCustomModelName
(t *testing.T, m modelTUIModel, name string)
cmd/opencodereview/provider_tui_funcs_test.go:1014
↓ 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:587
↓ 3 callers
Function
parseExplicitHeadingId
(text: string)
pages/src/utils/headingId.ts:9
↓ 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:514
↓ 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:59
↓ 3 callers
Function
readFileSync
(file)
scripts/github-actions/post-review-comments.test.js:53
↓ 3 callers
Function
readJSONLLines
readJSONLLines visits each physical JSONL record without bufio.Scanner's fixed token ceiling. session_end embeds the complete run manifest and can leg
internal/viewer/store.go:209
↓ 3 callers
Method
recordWarning
(warningType, file, message string)
internal/scan/agent.go:230
↓ 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:1579
↓ 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:2593
↓ 3 callers
Method
render
()
pages/src/components/ErrorBoundary.tsx:59
↓ 3 callers
Function
renderModelName
(name string, isCursor, userAdded bool)
cmd/opencodereview/provider_tui.go:1956
↓ 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:136
↓ 3 callers
Function
resolveBin
(name: string)
extensions/vscode/src/extension/services/shellEnv.ts:56
↓ 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:102
↓ 3 callers
Method
resolveGitRef
(root: string, ref: string)
extensions/vscode/src/extension/services/GitService.ts:229
↓ 3 callers
Function
resolveLang
resolveLang returns the resolved language name for the instruction.
internal/config/template/template.go:155
↓ 3 callers
Function
resolveNativeBinary
()
scripts/platform.js:39
↓ 3 callers
Function
resumedFromSession
(resume *session.ResumeState)
internal/agent/agent.go:1082
↓ 3 callers
Function
rollbackCfgActiveModel
(cfg *Config, providerName, prevModel string)
cmd/opencodereview/provider_tui.go:448
↓ 3 callers
Function
routeComment
(comment, policy)
scripts/github-actions/post-review-comments.js:1441
↓ 3 callers
Method
ruleConfigSHA256
ruleConfigSHA256 is the deterministic identity of the resolved rule configuration this run operates with: the resolver's effective rule-text layers (c
internal/agent/agent.go:856
↓ 3 callers
Method
run
(opts: CliRunOptions, cb: SessionCallbacks)
extensions/vscode/src/extension/services/ReviewSession.ts:24
↓ 3 callers
Function
runConfigSet
(key, value string)
cmd/opencodereview/config_cmd.go:109
↓ 3 callers
Function
runSessionList
()
cmd/opencodereview/session_cmd.go:120
↓ 3 callers
Function
runSessionListCompat
runSessionListCompat provides test compatibility for old-style runSessionList([]string{...}) calls.
cmd/opencodereview/compat_test.go:56
↓ 3 callers
Function
runSessionShow
(sessionID string)
cmd/opencodereview/session_cmd.go:147
↓ 3 callers
Function
runSessionShowCompat
runSessionShowCompat provides test compatibility for old-style runSessionShow([]string{...}) calls.
cmd/opencodereview/compat_test.go:73
↓ 3 callers
Method
run_main_with_captured_poster
Run main() with make_poster mocked; return (rc, captured_auth_header).
examples/gitlab_ci/post_review_test.py:967
↓ 3 callers
Function
savedSecretReplaceHint
savedSecretReplaceHint builds the replace hint text without leading indent.
cmd/opencodereview/provider_tui.go:2376
↓ 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:158
↓ 3 callers
Function
securityHeaders
securityHeaders wraps a handler and sets defense-in-depth response headers on every reply. These harden the local viewer's browser-facing surface (the
internal/viewer/securityheaders.go:28
↓ 3 callers
Method
setStatus
(index: number, status: CommentStatus)
extensions/vscode/src/extension/providers/CommentProvider.ts:179
↓ 3 callers
Method
shouldReview
shouldReview applies the filter algorithm via whyExcluded.
internal/agent/agent.go:1414
↓ 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:176
↓ 3 callers
Function
splitAndNormalize
splitAndNormalize splits code text into lines and normalizes each one.
internal/diff/resolver.go:220
↓ 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:109
↓ 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:35
↓ 3 callers
Function
stripThinkTags
stripThinkTags removes reasoning wrapper tags from content.
internal/llm/client.go:897
↓ 3 callers
Method
syncModelsFromConfig
()
cmd/opencodereview/provider_tui.go:2606
↓ 3 callers
Function
toConfigSetArgs
(key: string, value: string)
extensions/vscode/src/extension/services/configParse.ts:50
↓ 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:280
↓ 3 callers
Function
visibleRunesLen
(runes []rune)
cmd/opencodereview/output.go:221
↓ 3 callers
Method
waitForRepo
等待至少一个仓库就绪(git 扩展异步扫描,首次可能为空)。
extensions/vscode/src/extension/services/GitService.ts:47
↓ 3 callers
Function
walkSessionFile
(path string, apply func(summaryRecord))
internal/session/list.go:185
↓ 3 callers
Method
whyExcluded
whyExcluded mirrors agent.whyExcluded but for ScanItem inputs.
internal/scan/agent.go:457
↓ 3 callers
Function
withEnv
(env, fn)
scripts/github-actions/post-review-comments.test.js:86
↓ 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:33
↓ 3 callers
Method
writeReviewItemRecord
(recordType, filePath, oldPath, newPath, fingerprint, sourceSessionID, errorMsg string, comments []model.LlmCo
internal/session/persist.go:189
↓ 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:471
↓ 2 callers
Method
ApplyLanguage
ApplyLanguage injects a language directive into all system-role messages of this conversation.
internal/config/testconnection/testconnection.go:50
↓ 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:1559
↓ 2 callers
Function
Complete
Complete returns a checkpoint signaling task completion.
internal/tool/response_message.go:21
↓ 2 callers
Function
CountTokensForModel
(text string, modelName string)
internal/llm/client.go:278
↓ 2 callers
Function
EndSpan
EndSpan ends the span and records error status if present.
internal/telemetry/span.go:57
↓ 2 callers
Function
Eventf
Eventf is like Event but includes a message attribute.
internal/telemetry/events.go:34
↓ 2 callers
Function
Fail
Fail returns a checkpoint signaling terminal task failure.
internal/tool/response_message.go:24
↓ 2 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:208
↓ 2 callers
Function
FormatDuration
FormatDuration returns a human-readable duration string for console output.
internal/telemetry/events.go:67
↓ 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:27
↓ 2 callers
Function
HomeConfigPath
HomeConfigPath returns the default path to ~/.opencodereview/config.json.
internal/telemetry/config.go:128
↓ 2 callers
Method
Init
()
cmd/opencodereview/provider_tui.go:2679
↓ 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:23
↓ 2 callers
Method
IsKnown
IsKnown reports whether the tool is not UNKNOWN.
internal/tool/definitions.go:65
↓ 2 callers
Function
ItemID
ItemID is the single, canonical derivation of a manifest item_id. It is content-independent: it is derived from the operation, the input mode and the
internal/session/manifest.go:199
↓ 2 callers
Method
LLMFailures
LLMFailures returns the total number of LLM request failures recorded during this session.
internal/session/history.go:465
↓ 2 callers
Function
LoadDefault
LoadDefault parses the embedded task.json and returns the TEST_TASK conversation.
internal/config/testconnection/testconnection.go:34
↓ 2 callers
Function
LoadFromJSON
LoadFromJSON merges telemetry settings from a JSON config file if present. This has lower priority than environment variables.
internal/telemetry/config.go:74
↓ 2 callers
Method
LoadTiktokenBpe
(tiktokenBpeFile string)
internal/llm/embedded_loader.go:39
↓ 2 callers
Method
Name
Name returns the tool's identifier name.
internal/tool/definitions.go:62
↓ 2 callers
Function
NewCommentWorkerPool
NewCommentWorkerPool delegates to llmloop.NewCommentWorkerPool.
internal/agent/agent.go:46
← previous
next →
501–600 of 3,373, ranked by callers