MCPcopy Create free account

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

Functions2,775 in github.com/alibaba/open-code-review

↓ 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:778
↓ 2 callersFunctionresolveThreshold
(threshold)
scripts/github-actions/post-review-comments.js:680
↓ 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:502
↓ 2 callersFunctionreviewModeFromOptions
(opts reviewOptions)
cmd/opencodereview/review_cmd.go:183
↓ 2 callersMethodrollbackModelDelete
(prevEntry ProviderEntry, prevCfgModel string)
cmd/opencodereview/provider_tui.go:451
↓ 2 callersMethodrun
(opts: CliRunOptions, cb: SessionCallbacks)
extensions/vscode/src/extension/services/ReviewSession.ts:21
↓ 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:1153
↓ 2 callersFunctionsameCommentSpan
(cur, other, threshold)
scripts/github-actions/post-review-comments.js:706
↓ 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:546
↓ 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:127
↓ 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:380
↓ 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:141
↓ 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 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
↓ 1 callersFunctionLoadSummary
LoadSummary loads a single session's Summary. Errors when the session file is missing or unreadable.
internal/session/list.go:123
↓ 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 callersMethodPrintDefaults
()
cmd/opencodereview/flags.go:61
↓ 1 callersMethodSession
Session returns the session history associated with this Agent.
internal/scan/agent.go:155
↓ 1 callersMethodSession
Session returns the session history associated with this Agent.
internal/agent/agent.go:239
↓ 1 callersMethodSessionID
SessionID returns the current scan's session id, or "" when no session has been created.
internal/scan/agent.go:158
↓ 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:79
↓ 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 the warnings recorded by the LLM runner.
internal/scan/agent.go:189
↓ 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.
internal/session/persist.go:316
↓ 1 callersMethodWriteToolCall
WriteToolCall writes a tool call result entry.
internal/session/persist.go:291
↓ 1 callersFunction_git
(repo, *args)
examples/gitflic_ci/post_review.py:377
↓ 1 callersFunction_old_line_in_hunk
Walk a hunk's lines tracking both counters until reaching new_line.
examples/gitflic_ci/post_review.py:192
↓ 1 callersFunctionacquireLock
()
scripts/update.js:30
↓ 1 callersFunctionadd
(c)
scripts/github-actions/post-review-comments.test.js:210
↓ 1 callersFunctionappendChunk
( chunks: Uint8Array[], currentBytes: number, chunk: Uint8Array, maxBytes: number, )
plugins/open-code-review/opencode/open-code-review.ts:99
↓ 1 callersMethodapplyCreateCustomProvider
()
cmd/opencodereview/provider_tui.go:1119
↓ 1 callersMethodapplyResumeLine
(line []byte)
internal/session/resume.go:105
↓ 1 callersFunctionbatchKeyFunc
batchKeyFunc returns the grouping key extractor for a strategy.
internal/scan/batch.go:82
↓ 1 callersFunctionbatchPostedComments
()
scripts/github-actions/post-review-comments.test.js:108
↓ 1 callersMethodbindConfigPanel
(open: (focus?: ConfigPanelFocus) => void)
extensions/vscode/src/extension/providers/SidebarProvider.ts:28
↓ 1 callersMethodbuildAnchorDeps
(root: string, ctx: ReviewContext)
extensions/vscode/src/extension/providers/CommentProvider.ts:97
↓ 1 callersMethodbuildCommentDiffUris
构造评论挂载用的 diff 两侧 URI 与挂载 ref。
extensions/vscode/src/extension/services/GitService.ts:437
↓ 1 callersFunctionbuildCreateEntries
()
extensions/vscode/src/webview/views/ConfigView.tsx:449
↓ 1 callersFunctionbuildCustomCreateSaveEntries
(params: { name: string; protocol: string; url: string; model: string; models: string; apiKey: str
extensions/vscode/src/shared/configUtils.ts:110
↓ 1 callersFunctionbuildCustomUpdateSaveEntries
(params: { name: string; protocol: string; url: string; model: string; models: string; apiKey: str
extensions/vscode/src/shared/configUtils.ts:136
↓ 1 callersFunctionbuildEditEntries
()
extensions/vscode/src/webview/views/ConfigView.tsx:459
↓ 1 callersFunctionbuildFileFilter
buildFileFilter picks the highest-priority layer that has any include/exclude configured. Priority order: custom (--rule) > project > global.
internal/config/rules/system_rules.go:293
← previousnext →701–800 of 2,775, ranked by callers