Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
3,271 in github.com/alibaba/open-code-review
⨍
Functions
3,271
◇
Types & classes
309
↓ 2 callers
Function
renderTabBar
(active providerTab)
cmd/opencodereview/provider_tui.go:1980
↓ 2 callers
Method
repoRootFast
通过 git rev-parse 解析仓库根,避免等待 VS Code Git 扩展初始化。
extensions/vscode/src/extension/services/GitService.ts:169
↓ 2 callers
Function
requireExec
(t *testing.T)
internal/mcp/stdio_test.go:111
↓ 2 callers
Function
requireGitRepo
requireGitRepo validates that the given directory is part of a git repository.
cmd/opencodereview/review_cmd.go:314
↓ 2 callers
Method
resetCustomModelInput
()
cmd/opencodereview/provider_tui.go:2877
↓ 2 callers
Function
resolveBatchSize
(raw)
scripts/github-actions/post-review-comments.js:723
↓ 2 callers
Function
resolveConversation
(m manifestConversation)
internal/config/template/template.go:72
↓ 2 callers
Method
resolveDiffSide
( api: any, root: string, relPath: string, ref: string | null, status: FileChange['status'
extensions/vscode/src/extension/services/GitService.ts:330
↓ 2 callers
Function
resolveEnv
resolveEnv reads environment variables to override defaults. Environment takes highest priority.
internal/telemetry/config.go:42
↓ 2 callers
Function
resolveFromFileContent
resolveFromFileContent scans the new file content line-by-line for consecutive matches of the normalized existing_code.
internal/diff/resolver.go:169
↓ 2 callers
Function
resolveFromHunk
resolveFromHunk tries to find startLine/endLine by matching ExistingCode against hunk lines. It tries the new-side first (context + added lines → new-
internal/diff/resolver.go:82
↓ 2 callers
Function
resolveLang
(lang string)
internal/config/testconnection/testconnection.go:39
↓ 2 callers
Function
resolveLinesInContent
( content: string, startLine: number, endLine: number, existingCode?: string, )
extensions/vscode/src/extension/providers/commentAnchor.ts:98
↓ 2 callers
Method
resolveSystemRule
resolveSystemRule returns the rule text for a given file path, matching against PathRuleMap glob patterns, falling back to DefaultRule.
internal/agent/agent.go:1368
↓ 2 callers
Function
resolveThreshold
(threshold)
scripts/github-actions/post-review-comments.js:1008
↓ 2 callers
Function
resolveWorkingDirForSession
resolveWorkingDirForSession accepts an explicit --repo flag value and falls back to the current working directory. Unlike resolveRepoDir it does not r
cmd/opencodereview/session_cmd.go:115
↓ 2 callers
Method
resolveWorkspacePath
(path string)
internal/tool/filereader.go:91
↓ 2 callers
Function
resultToState
(result: CliResult)
extensions/vscode/src/extension/services/ReviewSession.ts:4
↓ 2 callers
Function
reviewModeFromOptions
(opts reviewOptions)
cmd/opencodereview/review_cmd.go:294
↓ 2 callers
Function
reviewResultError
(runErr error, manifest *session.RunManifest)
cmd/opencodereview/review_cmd.go:240
↓ 2 callers
Method
rollbackModelDelete
(prevEntry ProviderEntry, prevCfgModel string)
cmd/opencodereview/provider_tui.go:451
↓ 2 callers
Function
runConfigModel
()
cmd/opencodereview/provider_cmd.go:289
↓ 2 callers
Function
runConfigProvider
()
cmd/opencodereview/provider_cmd.go:14
↓ 2 callers
Function
runLLMProviders
()
cmd/opencodereview/llm_cmd.go:112
↓ 2 callers
Function
runeWrapCut
runeWrapCut returns a rune index suitable for breaking the line at ~maxW display width.
cmd/opencodereview/output.go:202
↓ 2 callers
Method
runtimeConfigSHA256
runtimeConfigSHA256 is the deterministic identity of the allowlisted, non-secret runtime settings: protocol, model, sanitized endpoint host, language,
internal/agent/agent.go:885
↓ 2 callers
Function
safeFence
(content)
scripts/github-actions/post-review-comments.js:1622
↓ 2 callers
Function
sameCommentSpan
(cur, other, threshold)
scripts/github-actions/post-review-comments.js:1034
↓ 2 callers
Function
sanitizeMetadata
(value)
scripts/github-actions/post-review-comments.js:1359
↓ 2 callers
Function
savedSecretFingerprint
savedSecretFingerprint returns a short fingerprint for display, e.g. "sk-a1b2...wxyz" (first 6 + "..." + last 4). Returns "" when the trimmed secret i
cmd/opencodereview/provider_tui.go:2361
↓ 2 callers
Method
selectRepo
* 选出与 workspace 匹配的仓库。嵌套仓库场景下 repositories 顺序不稳定, * 不能直接取 [0],否则会漂移到子仓库。
extensions/vscode/src/extension/services/GitService.ts:35
↓ 2 callers
Function
setCustomProviderField
(cfg *Config, name, field, key, value string)
cmd/opencodereview/config_cmd.go:645
↓ 2 callers
Function
setCustomProviderField
(cfg: RawConfig, name: string, field: string, value: string)
extensions/vscode/src/extension/services/configDraft.ts:56
↓ 2 callers
Function
severityColor
severityColor maps a finding severity to an ANSI color used for its badge. Unknown or empty severities fall back to dim.
cmd/opencodereview/output.go:149
↓ 2 callers
Function
showToast
(message: string)
pages/src/components/HeroSection.tsx:130
↓ 2 callers
Function
sortToSendDeterministically
(items)
scripts/github-actions/post-review-comments.js:737
↓ 2 callers
Method
sourceArtifactSHA256
sourceArtifactSHA256 is the deterministic content identity of this run's selected input: for every non-deleted diff (the same set registerCoverage sea
internal/agent/agent.go:827
↓ 2 callers
Function
splitAndNormalize
(code: string)
extensions/vscode/src/extension/providers/commentAnchor.ts:58
↓ 2 callers
Function
splitList
(raw)
scripts/github-actions/check-translation-sync.js:211
↓ 2 callers
Function
splitToLines
(s string)
cmd/opencodereview/output.go:239
↓ 2 callers
Function
staticFS
()
internal/viewer/server.go:231
↓ 2 callers
Function
statusBadge
(status string)
cmd/opencodereview/output.go:513
↓ 2 callers
Function
stripFrontmatter
(md: string)
pages/src/content/blog/index.ts:42
↓ 2 callers
Function
stripFrontmatter
* Strip YAML frontmatter from markdown content
pages/src/content/docs/index.ts:157
↓ 2 callers
Function
stripMarkdownFences
stripMarkdownFences is the package-private workhorse used by the internal compression code paths.
internal/llmloop/compression.go:163
↓ 2 callers
Function
stripModelSuffix
(model string)
internal/llm/resolver.go:509
↓ 2 callers
Method
submit
(f func() ([]model.LlmComment, error), kwg *sync.WaitGroup)
internal/llmloop/pool.go:86
↓ 2 callers
Function
summarizeArgs
summarizeArgs extracts a concise key=value summary from tool arguments for console display. It picks the most human-readable fields depending on the a
internal/telemetry/events.go:110
↓ 2 callers
Function
terminateChild
()
plugins/open-code-review/opencode/open-code-review.ts:149
↓ 2 callers
Function
toHtmlLang
(locale: SupportedLocale)
extensions/vscode/src/shared/i18n.ts:336
↓ 2 callers
Function
truncate
(s string, n int)
cmd/opencodereview/session_cmd.go:274
↓ 2 callers
Function
truncate_message
(msg)
examples/gerrit_ci/post_review.py:88
↓ 2 callers
Function
typeName
(v any)
internal/llm/client_test.go:1205
↓ 2 callers
Function
useCommandSearch
( runSearch: (query: string, language: string) => SearchResult<S>[], language: string, )
pages/src/hooks/useCommandSearch.ts:10
↓ 2 callers
Function
useCopyToast
(duration = 1200)
pages/src/hooks/useCopyToast.ts:3
↓ 2 callers
Function
useSearchKeyboardNav
( searchResults: readonly SearchResult<S>[], searchSelectedIdx: number, setSearchSelectedIdx: Dispatch<S
pages/src/hooks/useCommandSearch.ts:68
↓ 2 callers
Function
validateAudience
(audience string)
cmd/opencodereview/shared_flags.go:88
↓ 2 callers
Function
validateDiffMode
--- Validation functions ---
cmd/opencodereview/shared_flags.go:68
↓ 2 callers
Function
validateReviewOptions
(opts *reviewOptions)
cmd/opencodereview/shared_flags.go:97
↓ 2 callers
Function
validateScanOptions
(opts *scanOptions)
cmd/opencodereview/shared_flags.go:124
↓ 2 callers
Function
walkSessionFile
(path string, apply func(summaryRecord))
internal/session/list.go:182
↓ 2 callers
Function
withTemporaryDirectory
(callback)
plugins/open-code-review/opencode/test/open-code-review.test.mjs:21
↓ 2 callers
Function
wrapByRunes
wrapByRunes splits text into lines that fit within maxWidth **rune** columns. Respects existing newlines and wraps at word boundaries.
cmd/opencodereview/output.go:171
↓ 2 callers
Function
wrapSingleRuneLine
wrapSingleRuneLine breaks one paragraph (no newlines) into rune-width-constrained lines.
cmd/opencodereview/output.go:183
↓ 1 callers
Method
ApplyLanguage
ApplyLanguage injects a language directive into all system-role messages of the scan template (MAIN_TASK, PLAN_TASK if set, DEDUP_TASK if set, and MEM
internal/config/template/template.go:173
↓ 1 callers
Method
CanonicalConfig
CanonicalConfig returns a deterministic, order-stable field list describing this rule set's effective rule-text configuration, for hashing into the ru
internal/config/rules/system_rules.go:145
↓ 1 callers
Method
CollectPendingComments
CollectPendingComments awaits any async comment-processing workers and returns the aggregated comments from the collector. Safe to call once per sessi
internal/llmloop/loop.go:136
↓ 1 callers
Function
ExcludedDirs
ExcludedDirs is the list of directory prefixes that scanners and diff providers should always skip. Exposed so internal/scan and other consumers can r
internal/diff/gitignore.go:6
↓ 1 callers
Method
Execute
(ctx context.Context, args map[string]any)
internal/mcp/provider.go:23
↓ 1 callers
Method
Execute
(_ context.Context, args map[string]any)
internal/tool/code_comment.go:53
↓ 1 callers
Method
FilesReviewed
FilesReviewed returns the number of items included in this scan.
internal/scan/agent.go:173
↓ 1 callers
Function
IsAllowedExt
IsAllowedExt returns true when the given file extension is in the supported types list. The check is case-insensitive.
internal/config/allowlist/allowed_ext.go:74
↓ 1 callers
Method
IsCommitMode
IsCommitMode returns true when analyzing a single commit.
internal/diff/git.go:157
↓ 1 callers
Function
IsExcludedPath
IsExcludedPath returns true when the given file path matches any default exclude pattern. Patterns support ** (recursive directory matching), * (singl
internal/config/allowlist/allowed_ext.go:88
↓ 1 callers
Method
IsRangeMode
IsRangeMode returns true when comparing two refs.
internal/diff/git.go:152
↓ 1 callers
Function
MatchGitignorePattern
MatchGitignorePattern reports whether relPath matches a single gitignore-style pattern, using the simplified semantics that diff.Provider already impl
internal/diff/gitignore.go:31
↓ 1 callers
Function
NewBuiltin
(t Tool, fn func(ctx context.Context, args map[string]any) (string, error))
internal/tool/stub.go:25
↓ 1 callers
Function
OpenCodeReviewPlugin
({ client, worktree })
plugins/open-code-review/opencode/open-code-review.ts:272
↓ 1 callers
Method
Sealed
Sealed reports whether the selected set has been sealed.
internal/session/manifest.go:542
↓ 1 callers
Method
Session
Session returns the session history associated with this Agent.
internal/scan/agent.go:156
↓ 1 callers
Method
Session
Session returns the session history associated with this Agent.
internal/agent/agent.go:346
↓ 1 callers
Method
SessionID
SessionID returns the current scan's persisted session ID. It returns an empty string when no session file exists.
internal/scan/agent.go:160
↓ 1 callers
Function
SessionsDir
SessionsDir returns the on-disk directory that holds JSONL session files for a given repository. It does not create the directory.
internal/session/list.go:84
↓ 1 callers
Function
StartServer
(addr string)
internal/viewer/server.go:17
↓ 1 callers
Method
Tool
()
internal/mcp/provider.go:19
↓ 1 callers
Method
Tool
()
internal/tool/code_comment.go:51
↓ 1 callers
Method
ToolCalls
ToolCalls returns a snapshot of the per-tool call counts.
internal/llmloop/loop.go:100
↓ 1 callers
Method
TotalCacheReadTokens
TotalCacheReadTokens returns the accumulated cache read tokens.
internal/llmloop/loop.go:69
↓ 1 callers
Method
TotalCacheWriteTokens
TotalCacheWriteTokens returns the accumulated cache write tokens.
internal/llmloop/loop.go:72
↓ 1 callers
Method
TotalTokensUsed
TotalTokensUsed returns input + output.
internal/llmloop/loop.go:75
↓ 1 callers
Method
Validate
Validate checks that a ScanTemplate has the minimum fields populated.
internal/config/template/template.go:202
↓ 1 callers
Method
Warnings
Warnings returns a copy of the accumulated warnings.
internal/llmloop/loop.go:80
↓ 1 callers
Method
WriteLLMError
WriteLLMError writes an llm_error entry recording a failed LLM request.
internal/session/persist.go:268
↓ 1 callers
Method
WriteLLMRequest
WriteLLMRequest writes a request entry with the resolved messages.
internal/session/persist.go:216
↓ 1 callers
Method
WriteLLMResponse
WriteLLMResponse writes a response entry with model, content, tool calls, usage.
internal/session/persist.go:238
↓ 1 callers
Method
WriteReviewItemDone
WriteReviewItemDone writes a file-level resume checkpoint for a completed diff.
internal/session/persist.go:167
↓ 1 callers
Method
WriteReviewItemFailed
WriteReviewItemFailed writes a file-level checkpoint for a failed diff.
internal/session/persist.go:177
↓ 1 callers
Method
WriteReviewItemReused
WriteReviewItemReused writes a checkpoint reused from a previous session.
internal/session/persist.go:172
↓ 1 callers
Method
WriteSessionEnd
WriteSessionEnd writes the final session_end summary record and closes the file. When manifest is non-nil it is embedded under "run_manifest"; session
internal/session/persist.go:321
↓ 1 callers
Method
WriteToolCall
WriteToolCall writes a tool call result entry.
internal/session/persist.go:291
← previous
next →
801–900 of 3,271, ranked by callers