MCPcopy Create free account

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

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

↓ 2 callersFunctionparseDelegateFlags
(args []string)
cmd/opencodereview/delegate_cmd.go:46
↓ 2 callersFunctionparseEnvBlock
(stdout: string)
extensions/vscode/src/extension/services/shellEnv.ts:6
↓ 2 callersFunctionparseFilterResponse
parseFilterResponse extracts comment indices from the LLM filter response. Returns a set of 0-based indices. Invalid IDs or out-of-range indices are i
internal/agent/agent.go:783
↓ 2 callersFunctionparseLogLine
(raw: string)
extensions/vscode/src/extension/services/cliParse.ts:65
↓ 2 callersFunctionparseModelListValue
(value string)
cmd/opencodereview/config_cmd.go:495
↓ 2 callersFunctionparseRecordTime
(s string)
internal/session/list.go:282
↓ 2 callersFunctionparseTimeoutEnv
parseTimeoutEnv reads and validates the OCR_LLM_TIMEOUT environment variable. Returns the parsed duration and true if set, or 0 and false if unset/emp
internal/llm/resolver.go:128
↓ 2 callersFunctionparseUntrackedList
(output: string)
extensions/vscode/src/extension/services/gitMap.ts:49
↓ 2 callersMethodpassThroughCPInput
(msg tea.Msg)
cmd/opencodereview/provider_tui.go:1325
↓ 2 callersMethodpassThroughManualInput
(msg tea.Msg)
cmd/opencodereview/provider_tui.go:1661
↓ 2 callersFunctionpickRepoRoot
(roots: string[], workspacePath?: string)
extensions/vscode/src/extension/services/gitMap.ts:87
↓ 2 callersMethodpost
(self, review_input, body=b")]}'\n{}")
examples/gerrit_ci/post_review_test.py:527
↓ 2 callersMethodpresentDiff
( left: vscode.Uri, right: vscode.Uri, title: string, )
extensions/vscode/src/extension/services/GitService.ts:349
↓ 2 callersFunctionprintDiffLine
printDiffLine renders a single diff line with colored prefix and background on content.
cmd/opencodereview/output.go:134
↓ 2 callersFunctionprintReviewUsage
()
cmd/opencodereview/flags.go:200
↓ 2 callersFunctionprintRulesCheckUsage
()
cmd/opencodereview/rules_cmd.go:91
↓ 2 callersFunctionprintScanUsage
()
cmd/opencodereview/scan_cmd.go:255
↓ 2 callersFunctionprintTopLevelUsage
()
cmd/opencodereview/main.go:71
↓ 2 callersFunctionprintViewerUsage
()
cmd/opencodereview/viewer_cmd.go:42
↓ 2 callersFunctionprobePathIndex
probePathIndex is like probePath but also returns the index of the matched path.
internal/llm/usage_resolver.go:122
↓ 2 callersFunctionprojectRoot
(t *testing.T)
internal/release/asset_naming_test.go:22
↓ 2 callersFunctionreadFileSync
(file)
scripts/github-actions/post-review-comments.test.js:49
↓ 2 callersMethodreadRaw
()
extensions/vscode/src/extension/services/ConfigService.ts:27
↓ 2 callersMethodrecord
(file: string, line: number, delta: number)
extensions/vscode/src/extension/providers/lineOffset.ts:4
↓ 2 callersMethodrecordToolCall
(name string)
internal/llmloop/loop.go:110
↓ 2 callersMethodrefreshWorkspaceFiles
工作区模式仅刷新变更文件,不等待 VS Code Git 扩展,也不拉分支/提交历史。
extensions/vscode/src/extension/services/GitService.ts:143
↓ 2 callersFunctionregistryModelsForProvider
(name string, fallback []string)
cmd/opencodereview/provider_tui.go:421
↓ 2 callersFunctionremoveModels
(existing, toRemove []string)
cmd/opencodereview/provider_cmd.go:83
↓ 2 callersMethodrenderBody
( c: ReviewComment, _index: number, _status: CommentStatus, locateNote?: string, )
extensions/vscode/src/extension/providers/CommentProvider.ts:121
↓ 2 callersMethodrenderMessages
renderMessages substitutes placeholders in the scan template's MainTask for a single scan item. planGuidance is the output of maybeRunPlan and gets su
internal/scan/agent.go:898
↓ 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:215
↓ 2 callersMethodresetCustomModelInput
()
cmd/opencodereview/provider_tui.go:2877
↓ 2 callersFunctionresolveBatchSize
(raw)
scripts/github-actions/post-review-comments.js:619
↓ 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:833
↓ 2 callersFunctionresolveThreshold
(threshold)
scripts/github-actions/post-review-comments.js:904
↓ 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:123
↓ 2 callersMethodresolveWorkspacePath
(path string)
internal/tool/filereader.go:91
↓ 2 callersFunctionresultToState
(result: CliResult)
extensions/vscode/src/extension/services/ReviewSession.ts:4
↓ 2 callersMethodreviewMode
()
internal/agent/agent.go:557
↓ 2 callersFunctionreviewModeFromOptions
(opts reviewOptions)
cmd/opencodereview/review_cmd.go:195
↓ 2 callersMethodrollbackModelDelete
(prevEntry ProviderEntry, prevCfgModel string)
cmd/opencodereview/provider_tui.go:451
↓ 2 callersFunctionrunConfigSet
(key, value string)
cmd/opencodereview/config_cmd.go:68
↓ 2 callersFunctionrunLLMProviders
()
cmd/opencodereview/llm_cmd.go:99
↓ 2 callersFunctionrunSession
(args []string)
cmd/opencodereview/session_cmd.go:15
↓ 2 callersFunctionrunViewer
(args []string)
cmd/opencodereview/viewer_cmd.go:28
↓ 2 callersFunctionruneWrapCut
runeWrapCut returns a rune index suitable for breaking the line at ~maxW display width.
cmd/opencodereview/output.go:171
↓ 2 callersFunctionsafeFence
(content)
scripts/github-actions/post-review-comments.js:1518
↓ 2 callersFunctionsameCommentSpan
(cur, other, threshold)
scripts/github-actions/post-review-comments.js:930
↓ 2 callersFunctionsanitizeMetadata
(value)
scripts/github-actions/post-review-comments.js:1255
↓ 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:587
↓ 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:118
↓ 2 callersFunctionshowToast
(message: string)
pages/src/components/HeroSection.tsx:130
↓ 2 callersFunctionsortToSendDeterministically
(items)
scripts/github-actions/post-review-comments.js:633
↓ 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:208
↓ 2 callersFunctionstaticFS
()
internal/viewer/server.go:161
↓ 2 callersFunctionstatusBadge
(status string)
cmd/opencodereview/output.go:445
↓ 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:87
↓ 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:253
↓ 2 callersFunctiontruncate_message
(msg)
examples/gerrit_ci/post_review.py:88
↓ 2 callersFunctiontypeName
(v any)
internal/llm/client_test.go:1158
↓ 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 callersFunctionwalkSessionFile
(path string, apply func(summaryRecord))
internal/session/list.go:177
↓ 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:140
↓ 2 callersFunctionwrapSingleRuneLine
wrapSingleRuneLine breaks one paragraph (no newlines) into rune-width-constrained lines.
cmd/opencodereview/output.go:152
↓ 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 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 callersMethodDurationVar
(p *time.Duration, name string, value time.Duration, usage string)
cmd/opencodereview/flags.go:57
↓ 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:166
↓ 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:96
↓ 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:91
← previousnext →701–800 of 3,056, ranked by callers