MCPcopy Create free account

hub / github.com/alibaba/open-code-review / functions

Functions3,271 in github.com/alibaba/open-code-review

↓ 2 callersFunctionrenderTabBar
(active providerTab)
cmd/opencodereview/provider_tui.go:1980
↓ 2 callersMethodrepoRootFast
通过 git rev-parse 解析仓库根,避免等待 VS Code Git 扩展初始化。
extensions/vscode/src/extension/services/GitService.ts:169
↓ 2 callersFunctionrequireExec
(t *testing.T)
internal/mcp/stdio_test.go:111
↓ 2 callersFunctionrequireGitRepo
requireGitRepo validates that the given directory is part of a git repository.
cmd/opencodereview/review_cmd.go:314
↓ 2 callersMethodresetCustomModelInput
()
cmd/opencodereview/provider_tui.go:2877
↓ 2 callersFunctionresolveBatchSize
(raw)
scripts/github-actions/post-review-comments.js:723
↓ 2 callersFunctionresolveConversation
(m manifestConversation)
internal/config/template/template.go:72
↓ 2 callersMethodresolveDiffSide
( api: any, root: string, relPath: string, ref: string | null, status: FileChange['status'
extensions/vscode/src/extension/services/GitService.ts:330
↓ 2 callersFunctionresolveEnv
resolveEnv reads environment variables to override defaults. Environment takes highest priority.
internal/telemetry/config.go:42
↓ 2 callersFunctionresolveFromFileContent
resolveFromFileContent scans the new file content line-by-line for consecutive matches of the normalized existing_code.
internal/diff/resolver.go:169
↓ 2 callersFunctionresolveFromHunk
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 callersFunctionresolveLang
(lang string)
internal/config/testconnection/testconnection.go:39
↓ 2 callersFunctionresolveLinesInContent
( content: string, startLine: number, endLine: number, existingCode?: string, )
extensions/vscode/src/extension/providers/commentAnchor.ts:98
↓ 2 callersMethodresolveSystemRule
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 callersFunctionresolveThreshold
(threshold)
scripts/github-actions/post-review-comments.js:1008
↓ 2 callersFunctionresolveWorkingDirForSession
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 callersMethodresolveWorkspacePath
(path string)
internal/tool/filereader.go:91
↓ 2 callersFunctionresultToState
(result: CliResult)
extensions/vscode/src/extension/services/ReviewSession.ts:4
↓ 2 callersFunctionreviewModeFromOptions
(opts reviewOptions)
cmd/opencodereview/review_cmd.go:294
↓ 2 callersFunctionreviewResultError
(runErr error, manifest *session.RunManifest)
cmd/opencodereview/review_cmd.go:240
↓ 2 callersMethodrollbackModelDelete
(prevEntry ProviderEntry, prevCfgModel string)
cmd/opencodereview/provider_tui.go:451
↓ 2 callersFunctionrunConfigModel
()
cmd/opencodereview/provider_cmd.go:289
↓ 2 callersFunctionrunConfigProvider
()
cmd/opencodereview/provider_cmd.go:14
↓ 2 callersFunctionrunLLMProviders
()
cmd/opencodereview/llm_cmd.go:112
↓ 2 callersFunctionruneWrapCut
runeWrapCut returns a rune index suitable for breaking the line at ~maxW display width.
cmd/opencodereview/output.go:202
↓ 2 callersMethodruntimeConfigSHA256
runtimeConfigSHA256 is the deterministic identity of the allowlisted, non-secret runtime settings: protocol, model, sanitized endpoint host, language,
internal/agent/agent.go:885
↓ 2 callersFunctionsafeFence
(content)
scripts/github-actions/post-review-comments.js:1622
↓ 2 callersFunctionsameCommentSpan
(cur, other, threshold)
scripts/github-actions/post-review-comments.js:1034
↓ 2 callersFunctionsanitizeMetadata
(value)
scripts/github-actions/post-review-comments.js:1359
↓ 2 callersFunctionsavedSecretFingerprint
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 callersMethodselectRepo
* 选出与 workspace 匹配的仓库。嵌套仓库场景下 repositories 顺序不稳定, * 不能直接取 [0],否则会漂移到子仓库。
extensions/vscode/src/extension/services/GitService.ts:35
↓ 2 callersFunctionsetCustomProviderField
(cfg *Config, name, field, key, value string)
cmd/opencodereview/config_cmd.go:645
↓ 2 callersFunctionsetCustomProviderField
(cfg: RawConfig, name: string, field: string, value: string)
extensions/vscode/src/extension/services/configDraft.ts:56
↓ 2 callersFunctionseverityColor
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 callersFunctionshowToast
(message: string)
pages/src/components/HeroSection.tsx:130
↓ 2 callersFunctionsortToSendDeterministically
(items)
scripts/github-actions/post-review-comments.js:737
↓ 2 callersMethodsourceArtifactSHA256
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 callersFunctionsplitAndNormalize
(code: string)
extensions/vscode/src/extension/providers/commentAnchor.ts:58
↓ 2 callersFunctionsplitList
(raw)
scripts/github-actions/check-translation-sync.js:211
↓ 2 callersFunctionsplitToLines
(s string)
cmd/opencodereview/output.go:239
↓ 2 callersFunctionstaticFS
()
internal/viewer/server.go:231
↓ 2 callersFunctionstatusBadge
(status string)
cmd/opencodereview/output.go:513
↓ 2 callersFunctionstripFrontmatter
(md: string)
pages/src/content/blog/index.ts:42
↓ 2 callersFunctionstripFrontmatter
* Strip YAML frontmatter from markdown content
pages/src/content/docs/index.ts:157
↓ 2 callersFunctionstripMarkdownFences
stripMarkdownFences is the package-private workhorse used by the internal compression code paths.
internal/llmloop/compression.go:163
↓ 2 callersFunctionstripModelSuffix
(model string)
internal/llm/resolver.go:509
↓ 2 callersMethodsubmit
(f func() ([]model.LlmComment, error), kwg *sync.WaitGroup)
internal/llmloop/pool.go:86
↓ 2 callersFunctionsummarizeArgs
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 callersFunctionterminateChild
()
plugins/open-code-review/opencode/open-code-review.ts:149
↓ 2 callersFunctiontoHtmlLang
(locale: SupportedLocale)
extensions/vscode/src/shared/i18n.ts:336
↓ 2 callersFunctiontruncate
(s string, n int)
cmd/opencodereview/session_cmd.go:274
↓ 2 callersFunctiontruncate_message
(msg)
examples/gerrit_ci/post_review.py:88
↓ 2 callersFunctiontypeName
(v any)
internal/llm/client_test.go:1205
↓ 2 callersFunctionuseCommandSearch
( runSearch: (query: string, language: string) => SearchResult<S>[], language: string, )
pages/src/hooks/useCommandSearch.ts:10
↓ 2 callersFunctionuseCopyToast
(duration = 1200)
pages/src/hooks/useCopyToast.ts:3
↓ 2 callersFunctionuseSearchKeyboardNav
( searchResults: readonly SearchResult<S>[], searchSelectedIdx: number, setSearchSelectedIdx: Dispatch<S
pages/src/hooks/useCommandSearch.ts:68
↓ 2 callersFunctionvalidateAudience
(audience string)
cmd/opencodereview/shared_flags.go:88
↓ 2 callersFunctionvalidateDiffMode
--- Validation functions ---
cmd/opencodereview/shared_flags.go:68
↓ 2 callersFunctionvalidateReviewOptions
(opts *reviewOptions)
cmd/opencodereview/shared_flags.go:97
↓ 2 callersFunctionvalidateScanOptions
(opts *scanOptions)
cmd/opencodereview/shared_flags.go:124
↓ 2 callersFunctionwalkSessionFile
(path string, apply func(summaryRecord))
internal/session/list.go:182
↓ 2 callersFunctionwithTemporaryDirectory
(callback)
plugins/open-code-review/opencode/test/open-code-review.test.mjs:21
↓ 2 callersFunctionwrapByRunes
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 callersFunctionwrapSingleRuneLine
wrapSingleRuneLine breaks one paragraph (no newlines) into rune-width-constrained lines.
cmd/opencodereview/output.go:183
↓ 1 callersMethodApplyLanguage
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 callersMethodCanonicalConfig
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 callersMethodCollectPendingComments
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 callersFunctionExcludedDirs
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 callersMethodExecute
(ctx context.Context, args map[string]any)
internal/mcp/provider.go:23
↓ 1 callersMethodExecute
(_ context.Context, args map[string]any)
internal/tool/code_comment.go:53
↓ 1 callersMethodFilesReviewed
FilesReviewed returns the number of items included in this scan.
internal/scan/agent.go:173
↓ 1 callersFunctionIsAllowedExt
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 callersMethodIsCommitMode
IsCommitMode returns true when analyzing a single commit.
internal/diff/git.go:157
↓ 1 callersFunctionIsExcludedPath
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 callersMethodIsRangeMode
IsRangeMode returns true when comparing two refs.
internal/diff/git.go:152
↓ 1 callersFunctionMatchGitignorePattern
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 callersFunctionNewBuiltin
(t Tool, fn func(ctx context.Context, args map[string]any) (string, error))
internal/tool/stub.go:25
↓ 1 callersFunctionOpenCodeReviewPlugin
({ client, worktree })
plugins/open-code-review/opencode/open-code-review.ts:272
↓ 1 callersMethodSealed
Sealed reports whether the selected set has been sealed.
internal/session/manifest.go:542
↓ 1 callersMethodSession
Session returns the session history associated with this Agent.
internal/scan/agent.go:156
↓ 1 callersMethodSession
Session returns the session history associated with this Agent.
internal/agent/agent.go:346
↓ 1 callersMethodSessionID
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 callersFunctionSessionsDir
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 callersFunctionStartServer
(addr string)
internal/viewer/server.go:17
↓ 1 callersMethodTool
()
internal/mcp/provider.go:19
↓ 1 callersMethodTool
()
internal/tool/code_comment.go:51
↓ 1 callersMethodToolCalls
ToolCalls returns a snapshot of the per-tool call counts.
internal/llmloop/loop.go:100
↓ 1 callersMethodTotalCacheReadTokens
TotalCacheReadTokens returns the accumulated cache read tokens.
internal/llmloop/loop.go:69
↓ 1 callersMethodTotalCacheWriteTokens
TotalCacheWriteTokens returns the accumulated cache write tokens.
internal/llmloop/loop.go:72
↓ 1 callersMethodTotalTokensUsed
TotalTokensUsed returns input + output.
internal/llmloop/loop.go:75
↓ 1 callersMethodValidate
Validate checks that a ScanTemplate has the minimum fields populated.
internal/config/template/template.go:202
↓ 1 callersMethodWarnings
Warnings returns a copy of the accumulated warnings.
internal/llmloop/loop.go:80
↓ 1 callersMethodWriteLLMError
WriteLLMError writes an llm_error entry recording a failed LLM request.
internal/session/persist.go:268
↓ 1 callersMethodWriteLLMRequest
WriteLLMRequest writes a request entry with the resolved messages.
internal/session/persist.go:216
↓ 1 callersMethodWriteLLMResponse
WriteLLMResponse writes a response entry with model, content, tool calls, usage.
internal/session/persist.go:238
↓ 1 callersMethodWriteReviewItemDone
WriteReviewItemDone writes a file-level resume checkpoint for a completed diff.
internal/session/persist.go:167
↓ 1 callersMethodWriteReviewItemFailed
WriteReviewItemFailed writes a file-level checkpoint for a failed diff.
internal/session/persist.go:177
↓ 1 callersMethodWriteReviewItemReused
WriteReviewItemReused writes a checkpoint reused from a previous session.
internal/session/persist.go:172
↓ 1 callersMethodWriteSessionEnd
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 callersMethodWriteToolCall
WriteToolCall writes a tool call result entry.
internal/session/persist.go:291
← previousnext →801–900 of 3,271, ranked by callers