MCPcopy Create free account

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

Functions4,576 in github.com/alibaba/open-code-review

↓ 3 callersMethodconfirmDeleteCustomModel
()
cmd/opencodereview/provider_tui.go:1600
↓ 3 callersFunctioncontains
(list []string, want string)
internal/scan/provider_more_test.go:146
↓ 3 callersMethodcpAmbientProtocol
cpProtocolIndex maps a protocol string (canonical name or legacy alias) to its index in cpProtocols. Unknown / empty values default to the OpenAI Chat
cmd/opencodereview/provider_tui.go:200
↓ 3 callersFunctioncpProtocolIndex
(protocol string)
cmd/opencodereview/provider_tui.go:204
↓ 3 callersMethodcustomProviderNameTaken
(name string)
cmd/opencodereview/provider_tui.go:225
↓ 3 callersFunctioncustomStepfunModelTUI
(t *testing.T, configPath string, models []string)
cmd/opencodereview/provider_tui_test.go:1539
↓ 3 callersFunctiondeleteCustomProvider
deleteCustomProvider removes a custom provider from cfg in memory. Returns true if the deleted provider was the active one.
cmd/opencodereview/config_cmd.go:290
↓ 3 callersFunctiondescribeFiles
(s session.Summary)
cmd/opencodereview/session_cmd.go:523
↓ 3 callersFunctiondiffs_from
(diff_text)
examples/gitflic_ci/post_review_test.py:153
↓ 3 callersFunctionemptyResponse
()
internal/llmloop/retry_identity_test.go:62
↓ 3 callersFunctionemptySHA256
emptySHA256 is the canonical digest of an empty input, which hashFields must return for an empty field sequence.
internal/agent/manifest_hash_test.go:18
↓ 3 callersFunctionenforceGroupTokenBudget
enforceGroupTokenBudget splits groups whose combined diffs exceed the token limit.
internal/agent/grouping.go:249
↓ 3 callersFunctionenforceMaxFilesPerGroup
enforceMaxFilesPerGroup splits groups that exceed maxFilesPerGroup into smaller chunks.
internal/agent/grouping.go:227
↓ 3 callersFunctionexcludeToolDef
excludeToolDef returns a copy of defs with any entries whose function name matches name removed. Used by `ocr scan` to hide tools that don't make sens
cmd/opencodereview/shared.go:294
↓ 3 callersFunctionexecuteDelegateRule
(opts delegateOptions, paths []string)
cmd/opencodereview/delegate_cmd.go:225
↓ 3 callersFunctionextractHeadings
(markdown: string)
pages/src/utils/extractHeadings.ts:7
↓ 3 callersFunctionfindSummaryIssueComment
({ github, owner, repo, prNumber, sticky, tag, log })
scripts/github-actions/post-review-comments.js:966
↓ 3 callersFunctionfingerprintDigestSource
()
scripts/github-actions/post-review-comments.test.js:4730
↓ 3 callersMethodfocusCPStep
()
cmd/opencodereview/provider_tui.go:1434
↓ 3 callersFunctionformatCommentMarkdown
(comment, error)
scripts/github-actions/post-review-comments.js:1665
↓ 3 callersFunctionformatWarnings
(warnings)
scripts/github-actions/post-review-comments.js:1769
↓ 3 callersFunctionfreshOCRHome
freshOCRHome points the OCR home at a temp dir so a test can assert on what a command wrote there. It also neutralizes global git config: git resolves
cmd/opencodereview/delegate_exec_test.go:97
↓ 3 callersFunctiongetAllBlogMetas
(language: string)
pages/src/content/blog/index.ts:98
↓ 3 callersFunctiongetBlogMeta
(slug: BlogSlug, language: string)
pages/src/content/blog/index.ts:94
↓ 3 callersMethodgetCommitFiles
单次提交:该 commit 相对父提交的改动文件。
extensions/vscode/src/extension/services/GitService.ts:240
↓ 3 callersFunctiongetCommitMessage
(repoDir, commit string)
cmd/opencodereview/git.go:27
↓ 3 callersFunctiongetPostedCommentIds
({ github, owner, repo, prNumber, log })
scripts/github-actions/post-review-comments.js:1402
↓ 3 callersFunctiongitIn
(t *testing.T, dir string, args ...string)
internal/agent/sealed_input_test.go:28
↓ 3 callersFunctiongroupIntoRounds
groupIntoRounds parses messages[start:] into logical (assistant + tool_results) pairs.
internal/llmloop/compression.go:79
↓ 3 callersMethodhandleCustomFormEnter
()
cmd/opencodereview/provider_tui.go:1143
↓ 3 callersMethodhandleManualFormEnter
()
cmd/opencodereview/provider_tui.go:1712
↓ 3 callersFunctionhasSubtaskErrors
(warnings []agent.AgentWarning)
cmd/opencodereview/output.go:33
↓ 3 callersFunctioninitMCPClients
(ctx context.Context, cfg *Config, tools *tool.Registry, repoDir, version string)
cmd/opencodereview/review_cmd.go:504
↓ 3 callersFunctioninitOTLPHTTPProviders
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 callersFunctioninitOTLPProviders
initOTLPProviders dispatches to the gRPC or HTTP exporter based on cfg.OTLPProtocol.
internal/telemetry/exporter.go:86
↓ 3 callersFunctioninstallStep
()
scripts/github-actions/action-contract.test.js:207
↓ 3 callersMethodisCustomItem
(idx int)
cmd/opencodereview/provider_tui.go:2864
↓ 3 callersMethodisCustomModelItem
(idx int)
cmd/opencodereview/provider_tui.go:622
↓ 3 callersFunctionisErrorStatus
isErrorStatus reports whether an observed HTTP status proves the attempt failed on its own. Status 0 means no response was received, so it proves noth
internal/llm/retry_report.go:172
↓ 3 callersMethodisPathExcluded
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:264
↓ 3 callersFunctionisPresetProvider
(name: string)
extensions/vscode/src/shared/providers.ts:149
↓ 3 callersFunctionisUserAddedOfficialModelName
(name, providerName string, registryModels []string, cfg *Config)
cmd/opencodereview/provider_tui.go:441
↓ 3 callersMethoditemCount
()
cmd/opencodereview/provider_tui.go:2868
↓ 3 callersFunctionitemPaths
(items []model.ScanItem)
internal/scan/provider_more_test.go:137
↓ 3 callersFunctionlistCursorPrefixForModel
(isCursor, userAdded bool)
cmd/opencodereview/provider_tui.go:2080
↓ 3 callersFunctionlistCustomProviderNames
(config: OcrConfig | null)
extensions/vscode/src/shared/configUtils.ts:168
↓ 3 callersMethodlist_notes
(self)
examples/gitlab_ci/post_review_test.py:158
↓ 3 callersMethodloadGitignorePatterns
loadGitignorePatterns reads and parses .gitignore patterns from the repo root.
internal/diff/git.go:239
↓ 3 callersFunctionloadObjCRule
loadObjCRule reads the embedded Objective-C rule doc used by the ".m" content sniff. It is not referenced from system_rules.json's path_rule_map, so i
internal/config/rules/system_rules.go:119
↓ 3 callersFunctionloadScanResumeState
(repoDir string, opts scanOptions, scanPaths []string)
cmd/opencodereview/scan_cmd.go:249
↓ 3 callersFunctionmakeBudgetDiffs
makeBudgetDiffs returns n small, non-deleted diffs that survive filterDiffs and filterLargeDiffs.
internal/agent/budget_test.go:68
↓ 3 callersFunctionmakeScanItems
(n int)
internal/scan/budget_test.go:62
↓ 3 callersMethodmanifestMode
manifestMode maps the review to the manifest input mode. It derives purely from From/To/Commit so the value is always one of the three valid input mod
internal/agent/agent.go:942
↓ 3 callersFunctionmapStatusCode
(code: string)
extensions/vscode/src/extension/services/gitMap.ts:7
↓ 3 callersMethodmergeBase
mergeBase computes the merge-base for range mode. Returns "" for other modes.
cmd/opencodereview/delegate_cmd.go:132
↓ 3 callersFunctionmodelTUIEnterCustomModelName
(t *testing.T, m modelTUIModel, name string)
cmd/opencodereview/provider_tui_funcs_test.go:1123
↓ 3 callersMethodnewRequestMeta
newRequestMeta builds the retry-report identity for one logical LLM request. It is the single place provider and model are read for that purpose — th
internal/agent/agent.go:267
↓ 3 callersFunctionnormalizeLine
(s: string)
extensions/vscode/src/extension/providers/commentAnchor.ts:55
↓ 3 callersFunctionnormalizeModelList
(models []string)
cmd/opencodereview/config_cmd.go:751
↓ 3 callersFunctionnormalizePath
normalizePath canonicalizes a path for identity derivation: it unifies separators to forward slashes and cleans redundant "." / ".." / duplicate separ
internal/session/manifest.go:216
↓ 3 callersFunctionofficialAPIKeyRequiredError
officialAPIKeyRequiredError mirrors the wording applyOfficialProviderConfig uses for the same failure, so the interactive and non-interactive paths na
cmd/opencodereview/provider_tui.go:944
↓ 3 callersFunctionoutputPreview
outputPreview renders a preview in the requested output format. sarif is rejected with an error because a preview contains file/rule metadata, not rev
cmd/opencodereview/output.go:699
↓ 3 callersFunctionparseExplicitHeadingId
(text: string)
pages/src/utils/headingId.ts:9
↓ 3 callersFunctionparseRecordTime
(s string)
internal/session/list.go:331
↓ 3 callersFunctionparseScalar
(raw)
scripts/github-actions/action-contract.test.js:30
↓ 3 callersMethodpassThroughCPInput
(msg tea.Msg)
cmd/opencodereview/provider_tui.go:1448
↓ 3 callersFunctionpositionalSignature
positionalSignature extracts the positional-argument part of cmd.Use, e.g. "<key> <value>" from "set <key> <value>" and "<path...>" from "rule [flags]
cmd/opencodereview/arg_errors.go:81
↓ 3 callersFunctionpost
(review_input)
examples/gerrit_ci/post_review.py:225
↓ 3 callersMethodpostMessage
(msg: unknown)
extensions/vscode/src/webview/bridge.ts:6
↓ 3 callersMethodprepareModelSelection
(providerName, configModel string)
cmd/opencodereview/provider_tui.go:545
↓ 3 callersMethodpreview
preview is read-only with respect to the Agent: it does not mutate a.items. (Earlier versions did, which made a subsequent Run on the same Agent silen
internal/scan/preview.go:28
↓ 3 callersMethodpreview
(ctx context.Context)
internal/agent/preview.go:72
↓ 3 callersFunctionpreviewFixture
()
cmd/opencodereview/output_color_test.go:106
↓ 3 callersFunctionprintDiffLine
printDiffLine renders a single diff line with colored prefix and background on content. With color disabled it emits "<prefix> <content>", which keeps
cmd/opencodereview/output.go:172
↓ 3 callersFunctionprintWizardCancelled
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:61
↓ 3 callersFunctionreadFileSync
(file)
scripts/github-actions/post-review-comments.test.js:53
↓ 3 callersFunctionreadJSONLLines
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 callersMethodrecordWarning
(warningType, file, message string)
internal/scan/agent.go:234
↓ 3 callersFunctionregistryModelsForProvider
(name string, fallback []string)
cmd/opencodereview/provider_tui.go:455
↓ 3 callersMethodrender
()
pages/src/components/ErrorBoundary.tsx:59
↓ 3 callersFunctionrenderModelName
(name string, isCursor, userAdded bool)
cmd/opencodereview/provider_tui.go:2097
↓ 3 callersFunctionrequest
request is a resume of parentState with the same provider and model, which is the accepted baseline every case below deviates from.
internal/session/resume_identity_test.go:50
↓ 3 callersFunctionresolveAllowedHostsFromEnv
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 callersFunctionresolveBackgroundFilePath
(repoDir, path string)
cmd/opencodereview/background_file.go:25
↓ 3 callersFunctionresolveBin
(name: string)
extensions/vscode/src/extension/services/shellEnv.ts:56
↓ 3 callersFunctionresolveConfigPath
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:103
↓ 3 callersMethodresolveGitRef
(root: string, ref: string)
extensions/vscode/src/extension/services/GitService.ts:229
↓ 3 callersFunctionresolveIn
resolveIn builds a real resolver for dir/ref and resolves path.
internal/config/rules/sniffer_test.go:71
↓ 3 callersFunctionresolveInputExpressions
(value, values, stepOutputs = {})
scripts/github-actions/action-contract.test.js:166
↓ 3 callersFunctionresolveLang
resolveLang returns the resolved language name for the instruction.
internal/config/template/template.go:214
↓ 3 callersFunctionresolveMaxTokens
resolveMaxTokens applies the per-run CLI override, then the saved setting, and finally the embedded task-template default.
cmd/opencodereview/shared.go:49
↓ 3 callersFunctionresolveNativeBinary
()
scripts/platform.js:39
↓ 3 callersFunctionresumedFromSession
(resume *session.ResumeState)
internal/agent/agent.go:1259
↓ 3 callersFunctionretryAttemptChain
retryAttemptChain renders one logical request as a short human-readable chain.
cmd/opencodereview/output.go:524
↓ 3 callersMethodrollbackModelDelete
(prevEntry ProviderEntry, prevCfgModel string)
cmd/opencodereview/provider_tui.go:485
↓ 3 callersFunctionrouteComment
(comment, policy)
scripts/github-actions/post-review-comments.js:1626
↓ 3 callersMethodrun
(opts: CliRunOptions, cb: SessionCallbacks)
extensions/vscode/src/extension/services/ReviewSession.ts:24
↓ 3 callersMethodrunIdentity
runIdentity reads the identity off the agent's current selection. It is only meaningful once the selection is final: sourceArtifactSHA256 hashes what
internal/agent/identity.go:109
↓ 3 callersFunctionrunPreview
(cc *commonContext, opts reviewOptions, out io.Writer)
cmd/opencodereview/review_helpers_test.go:16
↓ 3 callersFunctionrunReview
runReview provides test compatibility for the pre-cobra runReview(args) entry point: parse flags, then execute the review.
cmd/opencodereview/compat_test.go:36
← previousnext →701–800 of 4,576, ranked by callers