MCPcopy Create free account

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

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

↓ 3 callersMethodRemoveByPathAndIndices
RemoveByPathAndIndices removes comments for a given path whose per-path index (0-based position among all comments with that path) is in the indices s
internal/tool/comment_collector.go:96
↓ 3 callersMethodResolve
Resolve returns the rule text for a given file path. Patterns with brace expansion like "*.{go,py}" are expanded into "*.go", "*.py". The first match
internal/config/rules/system_rules.go:130
↓ 3 callersFunctionResolveConfig
ResolveConfig builds the final Config by merging defaults, JSON config, and env vars. Precedence: defaults < config.json < environment variables.
internal/telemetry/config.go:113
↓ 3 callersMethodSessionID
SessionID returns the current scan's persisted session ID. It returns an empty string when no session file exists.
internal/scan/agent.go:173
↓ 3 callersMethodSessionID
SessionID returns the persisted session identifier so callers can show it in JSON output or failure diagnostics. Returns "" when no session was create
cmd/opencodereview/shared.go:309
↓ 3 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:87
↓ 3 callersFunctionSessionsRoot
SessionsRoot returns the root directory where session JSONL files are stored.
internal/viewer/store.go:25
↓ 3 callersMethodSetDiffMap
SetDiffMap replaces the diff snapshot. Must be called before concurrent access begins.
internal/tool/file_read_diff.go:42
↓ 3 callersFunctionShutdownWithTimeout
ShutdownWithTimeout creates a timeout context and calls Shutdown.
internal/telemetry/shutdown.go:36
↓ 3 callersMethodSnapshot
Snapshot returns the current count of stored comments. Pair with Since / ReplaceSince to operate on the comments added between two points in time (e.g
internal/tool/comment_collector.go:56
↓ 3 callersFunctionStartServer
(addr string)
internal/viewer/server.go:20
↓ 3 callersMethodSubmitFor
SubmitFor is Submit plus registration under key, so AwaitKey can wait for exactly the units submitted under that key instead of the whole pool. Calle
internal/llmloop/pool.go:74
↓ 3 callersMethodTotalOutputTokens
TotalOutputTokens returns the accumulated completion tokens from all LLM calls.
internal/llmloop/loop.go:69
↓ 3 callersMethodTotalTokensUsed
TotalTokensUsed / TotalInputTokens / ... delegate to the underlying runner.
internal/scan/agent.go:209
↓ 3 callersMethod_mock_response
(self, status=200, body=b'{"comment_biz_id": "abc"}')
examples/codeup_ci/post_review_test.py:138
↓ 3 callersFunction_num
(v)
examples/gitlab_ci/post_review.py:404
↓ 3 callersMethod_poster
(self, config_overrides=None)
examples/gitlab_ci/post_review_test.py:1032
↓ 3 callersMethod_read_with_pacing
Read with proactive pacing, mirroring the GitHub Action's readWithPacing. Reads are cheaper than writes but still consume the primary rate li
examples/gitlab_ci/post_review.py:828
↓ 3 callersFunctionaddExcludeFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:39
↓ 3 callersFunctionaddRuleFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:17
↓ 3 callersMethodadjustModelIdxAfterDelete
()
cmd/opencodereview/provider_tui.go:2586
↓ 3 callersFunctionapplyProviderDeletions
(configPath string, cfg *Config, names []string)
cmd/opencodereview/provider_cmd.go:67
↓ 3 callersFunctionapplyProviderField
(entry *ProviderEntry, field, key, value string)
cmd/opencodereview/config_cmd.go:554
↓ 3 callersFunctionassertNoSessionStore
assertNoSessionStore fails if the session store was created under home. Preview neither runs nor finalizes a review, so it must not open persistence a
cmd/opencodereview/delegate_exec_test.go:87
↓ 3 callersFunctionbudgetAgentTestTemplate
budgetAgentTestTemplate returns a minimal template sufficient to drive dispatchSubtasks without plan/dedup/summary phases.
internal/agent/budget_test.go:53
↓ 3 callersFunctionbuildBadge
(comment)
scripts/github-actions/post-review-comments.js:1374
↓ 3 callersMethodbuildOpenAIParams
buildOpenAIParams converts the shared ChatRequest into OpenAI SDK parameters.
internal/llm/client.go:507
↓ 3 callersFunctionbuildToolInputSchema
(params map[string]any)
internal/llm/client.go:853
↓ 3 callersFunctionbuildToolRegistry
(collector *tool.CommentCollector, fr *tool.FileReader)
cmd/opencodereview/review_cmd.go:465
↓ 3 callersMethodcancel
()
extensions/vscode/src/extension/services/CliService.ts:161
↓ 3 callersFunctioncaptureStderr
captureStderr captures everything written to os.Stderr during fn. Mirrors captureStdout; used to assert structured usage emitted on the failure path.
cmd/opencodereview/output_helpers_test.go:401
↓ 3 callersMethodclear
()
extensions/vscode/src/extension/providers/lineOffset.ts:20
↓ 3 callersFunctioncloneCustomProvidersMap
(src map[string]ProviderEntry)
cmd/opencodereview/provider_tui.go:1210
↓ 3 callersMethodcloned
cloned returns a copy of the manifest whose coverage slices are owned copies, so every Finalize caller gets an independent, non-aliased snapshot. The
internal/session/manifest.go:881
↓ 3 callersMethodconfig
(self)
examples/gitlab_ci/post_review_test.py:1227
↓ 3 callersMethodconfigPath
()
extensions/vscode/src/extension/services/ConfigService.ts:16
↓ 3 callersMethodconfirmDeleteCustomModel
()
cmd/opencodereview/provider_tui.go:1487
↓ 3 callersFunctioncontains
(list []string, want string)
internal/scan/provider_more_test.go:139
↓ 3 callersFunctioncpProtocolIndex
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:184
↓ 3 callersMethodcustomProviderNameTaken
(name string)
cmd/opencodereview/provider_tui.go:194
↓ 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:263
↓ 3 callersFunctiondescribeFiles
(s session.Summary)
cmd/opencodereview/session_cmd.go:348
↓ 3 callersFunctiondescribeRange
(s session.Summary)
cmd/opencodereview/session_cmd.go:334
↓ 3 callersFunctiondiffs_from
(diff_text)
examples/gitflic_ci/post_review_test.py:153
↓ 3 callersFunctiondisplayMode
(m string)
cmd/opencodereview/session_cmd.go:327
↓ 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 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:251
↓ 3 callersFunctionexecuteDelegateRule
(opts delegateOptions, paths []string)
cmd/opencodereview/delegate_cmd.go:234
↓ 3 callersMethodexecutePlanPhase
executePlanPhase runs the plan task for a single file, sending template messages with resolved placeholders and collecting the LLM response as plan gu
internal/agent/agent.go:1462
↓ 3 callersFunctionextractHeadings
(markdown: string)
pages/src/utils/extractHeadings.ts:7
↓ 3 callersFunctionfileReadToolCallResponse
(callID, args string)
internal/llmloop/loop_test.go:63
↓ 3 callersFunctionfinish
(callback: () => void)
plugins/open-code-review/opencode/open-code-review.ts:145
↓ 3 callersMethodfocusCPStep
()
cmd/opencodereview/provider_tui.go:1321
↓ 3 callersFunctionformatCommentMarkdown
(comment, error)
scripts/github-actions/post-review-comments.js:1480
↓ 3 callersFunctionformatWarnings
(warnings)
scripts/github-actions/post-review-comments.js:1584
↓ 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:75
↓ 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 callersFunctiongetPostedCommentIds
({ github, owner, repo, prNumber, log })
scripts/github-actions/post-review-comments.js:1284
↓ 3 callersFunctiongroupIntoRounds
groupIntoRounds parses messages[start:] into logical (assistant + tool_results) pairs.
internal/llmloop/compression.go:79
↓ 3 callersFunctionhasSubtaskErrors
(warnings []agent.AgentWarning)
cmd/opencodereview/output.go:30
↓ 3 callersFunctioninitMCPClients
(ctx context.Context, cfg *Config, tools *tool.Registry, repoDir, version string)
cmd/opencodereview/review_cmd.go:393
↓ 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 callersMethodisCustomItem
(idx int)
cmd/opencodereview/provider_tui.go:2690
↓ 3 callersMethodisCustomModelItem
(idx int)
cmd/opencodereview/provider_tui.go:591
↓ 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:257
↓ 3 callersFunctionisPresetProvider
(name: string)
extensions/vscode/src/shared/providers.ts:149
↓ 3 callersFunctionisSubtaskErrorType
(warningType string)
cmd/opencodereview/output.go:60
↓ 3 callersFunctionisUserAddedOfficialModelName
(name, providerName string, registryModels []string, cfg *Config)
cmd/opencodereview/provider_tui.go:410
↓ 3 callersMethoditemCount
()
cmd/opencodereview/provider_tui.go:2694
↓ 3 callersFunctionitemPaths
(items []model.ScanItem)
internal/scan/provider_more_test.go:130
↓ 3 callersFunctionlistCursorPrefixForModel
(isCursor, userAdded bool)
cmd/opencodereview/provider_tui.go:1946
↓ 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:232
↓ 3 callersFunctionloadReviewResumeState
(repoDir string, opts reviewOptions)
cmd/opencodereview/review_cmd.go:290
↓ 3 callersFunctionloadScanResumeState
(repoDir string, opts scanOptions, scanPaths []string)
cmd/opencodereview/scan_cmd.go:237
↓ 3 callersFunctionmakeBudgetDiffs
makeBudgetDiffs returns n small, non-deleted diffs that survive filterDiffs and filterLargeDiffs.
internal/agent/budget_test.go:68
↓ 3 callersFunctionmakeErr
(message, status, headers, data)
scripts/github-actions/post-review-comments.test.js:61
↓ 3 callersFunctionmakeTask
()
internal/diff/relocation_test.go:33
↓ 3 callersFunctionmanifestMessage
(manifest *session.RunManifest, findings int)
cmd/opencodereview/output.go:378
↓ 3 callersFunctionmapStatusCode
(code: string)
extensions/vscode/src/extension/services/gitMap.ts:7
↓ 3 callersMethodmaybeRunPlan
maybeRunPlan invokes PLAN_TASK on the file and returns a human-readable guidance string suitable for {{plan_guidance}} substitution. Returns "(no pre-
internal/scan/agent.go:744
↓ 3 callersMethodmergeBase
mergeBase computes the merge-base for range mode. Returns "" for other modes.
cmd/opencodereview/delegate_cmd.go:141
↓ 3 callersFunctionmodelTUIEnterCustomModelName
(t *testing.T, m modelTUIModel, name string)
cmd/opencodereview/provider_tui_funcs_test.go:1059
↓ 3 callersFunctionnormalizeLine
(s: string)
extensions/vscode/src/extension/providers/commentAnchor.ts:55
↓ 3 callersFunctionnormalizeModelList
(models []string)
cmd/opencodereview/config_cmd.go:634
↓ 3 callersFunctionparseExplicitHeadingId
(text: string)
pages/src/utils/headingId.ts:9
↓ 3 callersFunctionparseRecordTime
(s string)
internal/session/list.go:304
↓ 3 callersMethodpassThroughCPInput
(msg tea.Msg)
cmd/opencodereview/provider_tui.go:1335
↓ 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:514
↓ 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 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:59
↓ 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
← previousnext →501–600 of 3,747, ranked by callers