MCPcopy Create free account

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

Functions7,390 in github.com/alibaba/open-code-review

↓ 6 callersMethodWarnings
Warnings returns a copy of the accumulated warnings.
internal/llmloop/loop.go:130
↓ 6 callersFunctionWithComparisonSides
(definitions []llm.ToolDef)
internal/config/toolsconfig/comparison.go:15
↓ 6 callersMethodWrite
Write appends rec as one JSONL line straight to disk, so a crashed run keeps every record written up to the crash. A failed encode or write drops that
internal/session/raw_writer.go:84
↓ 6 callersFunctionactionScriptSource
(stepName)
scripts/github-actions/post-review-comments.test.js:5043
↓ 6 callersFunctionapplyCLIExcludes
applyCLIExcludes appends user-supplied --exclude patterns (already split into a []string) onto cc.FileFilter.Exclude. Creates the FileFilter if none w
cmd/opencodereview/shared.go:333
↓ 6 callersMethodassert_line
(self, c, want_line)
examples/gerrit_ci/post_review_test.py:60
↓ 6 callersFunctionbuildReviewArgs
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/CliParse.kt:58
↓ 6 callersFunctioncharKey
(c rune)
cmd/opencodereview/provider_tui_test.go:42
↓ 6 callersFunctioncheckPresets
(data []byte, providers []llm.Provider)
internal/llm/gen/check.go:52
↓ 6 callersFunctioncommitFile
commitFile writes content to name and commits it.
cmd/opencodereview/review_resume_more_test.go:101
↓ 6 callersFunctioncompareReadmeStructures
(files)
scripts/github-actions/check-translation-sync.js:129
↓ 6 callersMethodconfig
(self)
examples/gitlab_ci/post_review_test.py:634
↓ 6 callersFunctionconfigOperations
(fixture)
scripts/github-actions/action-contract.test.js:343
↓ 6 callersFunctioncurrentIdeLocale
* Returns the current IDE UI language. `DynamicBundle.getLocale()` reflects the IDE UI language * (zh-CN once the Chinese language pack is installed)
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/model/Locale.kt:41
↓ 6 callersFunctiondecodeSinglePreviewJSON
decodeSinglePreviewJSON asserts that s is exactly one JSON value followed only by the encoder's trailing newline. Automation consuming --format json r
cmd/opencodereview/output_helpers_test.go:871
↓ 6 callersFunctiondescribeStart
(s session.Summary)
cmd/opencodereview/session_cmd.go:856
↓ 6 callersFunctiondescribeStatus
(s session.Summary)
cmd/opencodereview/session_cmd.go:838
↓ 6 callersFunctionensureMetrics
()
internal/telemetry/metrics.go:36
↓ 6 callersMethodenterEditCustomProvider
()
cmd/opencodereview/provider_tui.go:1112
↓ 6 callersFunctionenumeratePathsErr
enumeratePathsErr is enumeratePaths for selectors expected to fail, such as a path that names nothing in the working tree.
internal/scan/provider_paths_test.go:138
↓ 6 callersFunctionestimateDiffFileTokens
estimateDiffFileTokens projects the input+output token cost of reviewing a single diff (PLAN + MAIN_TASK rounds). It mirrors scan.estimateFileTokens b
internal/agent/estimate.go:55
↓ 6 callersFunctionexactArgs
Positional-argument validators that replace Cobra's raw count message ("accepts 2 arg(s), received 1") with an actionable one built from metadata the
cmd/opencodereview/arg_errors.go:23
↓ 6 callersFunctionexc
(id string, reason model.ExcludeReason)
internal/session/manifest_test.go:870
↓ 6 callersFunctionexecuteDelegatePreview
(opts delegateOptions)
cmd/opencodereview/delegate_cmd.go:167
↓ 6 callersFunctionextractHeadings
(markdown)
scripts/github-actions/check-translation-sync.js:61
↓ 6 callersFunctionextractSideLines
extractSideLines extracts one side of the diff from a hunk. When newSide is true, returns context+added lines with new-file line numbers. When newSide
internal/diff/resolver.go:199
↓ 6 callersFunctionfileGroupKey
fileGroupKey returns a deterministic key for a file group: sorted paths joined by comma.
internal/agent/grouping.go:370
↓ 6 callersMethodfinalizeManifest
finalizeManifest freezes the run's coverage builder and stores the immutable manifest on the session for persistence and CLI consumption. Nil-safe. A
internal/agent/agent.go:1318
↓ 6 callersFunctionformatWarnings
(warnings)
scripts/github-actions/post-review-comments.js:2497
↓ 6 callersFunctionfsIsCaseInsensitive
fsIsCaseInsensitive reports whether the filesystem holding dir folds case, by asking it: one probe name spelled two ways must resolve to one file. Win
internal/scan/provider_paths_test.go:155
↓ 6 callersFunctiongetPrDiffHunks
({ github, owner, repo, prNumber, commitSha, log, cache })
scripts/github-actions/post-review-comments.js:2900
↓ 6 callersFunctiongroupBatches
groupBatches partitions items according to strategy, then slices each natural group into BatchSize-sized chunks (when size > 0). Within a batch the in
internal/scan/batch.go:45
↓ 6 callersFunctioninitRepo
initRepo creates a git repo with one commit containing the given files and returns the repo dir and the commit SHA.
internal/config/rules/sniffer_test.go:29
↓ 6 callersFunctioninterruptContextWithForcedExit
interruptContextWithForcedExit returns a child of parent that is canceled by the first os.Interrupt or syscall.SIGTERM, together with a stop function
cmd/opencodereview/interrupt.go:42
↓ 6 callersFunctionisConfigReady
(config: OcrConfig | null)
extensions/frontend/src/shared/configUtils.ts:85
↓ 6 callersFunctionlineSpan
(c)
scripts/github-actions/post-review-comments.js:1435
↓ 6 callersFunctionlistCursorPrefix
(isCursor bool)
cmd/opencodereview/provider_tui.go:2107
↓ 6 callersMethodloadDiffs
loadDiffs populates the diff-related fields used by normal review runs.
internal/agent/agent.go:590
↓ 6 callersFunctionloadPackageJSON
(t *testing.T)
internal/release/asset_naming_test.go:34
↓ 6 callersFunctionloadReviewResumeState
(repoDir string, opts reviewOptions)
cmd/opencodereview/review_cmd.go:443
↓ 6 callersFunctionloadTestTemplate
loadTestTemplate returns a validated default template for runtime tests.
cmd/opencodereview/shared_llmruntime_test.go:350
↓ 6 callersFunctionloadToolDefs
(names []string)
cmd/opencodereview/shared.go:343
↓ 6 callersFunctionlooksLikeFilePath
looksLikeFilePath returns true when s is likely a file path (not inline content). Heuristic: multi-line text is always inline; single-line text withou
internal/config/rules/system_rules.go:562
↓ 6 callersMethodmanifestItemID
manifestItemID derives the content-independent item_id for a diff, keyed on operation, input mode and the normalized old/new paths. RegisterSelected a
internal/agent/agent.go:1148
↓ 6 callersMethodmapOpenAIResponse
mapOpenAIResponse converts the SDK response into ChatResponse.
internal/llm/client.go:1094
↓ 6 callersFunctionmarshal
(test *testing.T, value any)
internal/behaviortask/runner_test.go:102
↓ 6 callersFunctionmaskedSecretPlaceholder
()
cmd/opencodereview/provider_tui.go:882
↓ 6 callersFunctionmetaFactory
metaFactory builds the same closure internal/agent injects, so these tests exercise the review wiring rather than a test-only shape.
internal/reviewtask/retry_identity_test.go:72
↓ 6 callersFunctionnewCompressionRunner
newCompressionRunner returns a Runner whose template forces runCompression to issue a request, plus the message slice to feed it.
internal/llmloop/retry_identity_test.go:91
↓ 6 callersFunctionnewCustomModelTUI
newCustomModelTUI builds a modelTUIModel backed by a custom provider with a writable config path, so add/delete/persist operations exercise the save p
cmd/opencodereview/provider_tui_modeltui_test.go:16
↓ 6 callersFunctionnewError
(kind ErrorKind, format string, args ...any)
acp/internal/orchestrator/types.go:138
↓ 6 callersFunctionnewOpenAITestServer
newOpenAITestServer returns an httptest server that captures each request's headers and JSON body and responds with a minimal valid chat completion.
internal/llm/client_test.go:1657
↓ 6 callersMethodobserve
()
pages/src/pages/DocsPage.test.tsx:183
↓ 6 callersFunctionparseBpeData
parseBpeData parses the base64-encoded BPE data format. Each line: <base64-token> <rank>
internal/llm/embedded_loader.go:67
↓ 6 callersFunctionparseFrontmatter
(content)
scripts/github-actions/check-plugin-contract.js:370
↓ 6 callersMethodread
()
extensions/vscode/src/extension/services/ConfigService.ts:20
↓ 6 callersFunctionreadRuleFileSafe
readRuleFileSafe reads and validates a rule file: extension whitelist, 512 KB cap, and symlink resolution. When confineRoot is non-empty, the resolved
internal/config/rules/system_rules.go:635
↓ 6 callersFunctionreadme
(headings)
scripts/github-actions/check-translation-sync.test.js:32
↓ 6 callersFunctionregisterReviewFlags
registerReviewFlags registers all review command flags on cmd, binding to opts.
cmd/opencodereview/shared_flags.go:212
↓ 6 callersFunctionregisterScanFlags
registerScanFlags registers all scan command flags on cmd, binding to opts.
cmd/opencodereview/shared_flags.go:234
↓ 6 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:54
↓ 6 callersFunctionresolveArgs
(gh, core, over = {})
scripts/github-actions/post-review-comments.test.js:6193
↓ 6 callersFunctionresolveDeclaredPath
(manifestFile, base, value)
scripts/github-actions/check-plugin-contract.js:499
↓ 6 callersMethodresolvedModel
resolvedModel returns the model to persist, falling back to the in-session pick for the provider being finalized when result.model is empty.
cmd/opencodereview/provider_tui.go:100
↓ 6 callersFunctionresponseStreamEvents
--- helpers ---
internal/llm/responses_client_test.go:1072
↓ 6 callersFunctionrunActionScript
(source, { github, context, core, env })
scripts/github-actions/post-review-comments.test.js:5060
↓ 6 callersFunctionrunChatGPTStatus
(out io.Writer)
cmd/opencodereview/chatgpt_auth.go:53
↓ 6 callersFunctionrunConfig
runConfig provides test compatibility: dispatches config subcommands through a fresh cobra command tree that mirrors the production config command, so
cmd/opencodereview/compat_test.go:144
↓ 6 callersFunctionrunConfigUnset
(key string)
cmd/opencodereview/config_cmd.go:140
↓ 6 callersFunctionrunGitCmd
(repoDir string, args ...string)
cmd/opencodereview/git.go:12
↓ 6 callersMethodrunRaw
Run arbitrary arguments, stream logs via a callback, and return stdout on completion. Reject nonzero exits with the CLI error text.
extensions/vscode/src/extension/services/CliService.ts:114
↓ 6 callersFunctionrunRulesCheck
(filePath string)
cmd/opencodereview/rules_cmd.go:45
↓ 6 callersFunctionscanTaskDoneResponse
()
internal/scan/coverage_test.go:1362
↓ 6 callersFunctionscriptCore
()
scripts/github-actions/post-review-comments.test.js:5078
↓ 6 callersFunctionseedParentManifest
seedParentManifest gives a hand-built ResumeState the parent manifest a real resume always has, matching the identity a already resolved. Without one
internal/agent/manifest_integration_test.go:123
↓ 6 callersMethodselected
(id string)
internal/chatgptauth/store.go:71
↓ 6 callersFunctionsendCallback
(q url.Values, id string)
internal/chatgptauth/recovery_test.go:86
↓ 6 callersFunctionsleep
(ms)
scripts/github-actions/post-review-comments.js:1902
↓ 6 callersMethodsubmit
(f func() ([]model.LlmComment, error), kwg *sync.WaitGroup)
internal/reviewtask/pool.go:75
↓ 6 callersMethodtryApplyPendingCompression
tryApplyPendingCompression checks whether a background compression has completed and swaps the rebuilt messages into place. Returns true if applied.
internal/llmloop/compression.go:427
↓ 6 callersFunctionunwritableConfigPath
unwritableConfigPath returns a config path that is itself a directory, so any saveConfig / loadOrCreateConfig against it fails. This is the lever used
cmd/opencodereview/provider_tui_savefail_test.go:24
↓ 6 callersFunctionupKey
()
cmd/opencodereview/provider_tui_funcs_test.go:386
↓ 6 callersFunctionvalidateAuthProvider
()
cmd/opencodereview/chatgpt_auth.go:28
↓ 5 callersMethodAsDiff
AsDiff returns a Diff suitable for handing to code that expects the diff-based shape (line-number resolver, file_read_diff tool). The Diff field stays
internal/model/scan.go:22
↓ 5 callersMethodAwaitKey
AwaitKey blocks until every unit submitted under key so far has completed. It never touches the pool-wide WaitGroup, so it is safe to call while other
internal/reviewtask/pool.go:127
↓ 5 callersMethodBudgetExceeded
BudgetExceeded reports whether the aggregate token budget gate stopped dispatch before every file was reviewed. Diagnostic only: scan still returns it
internal/scan/agent.go:248
↓ 5 callersFunctionComputeLineDiff
ComputeLineDiff returns a line-level diff between oldLines and newLines. Uses Myers-style LCS to find common subsequences, then emits context/added/de
internal/suggestdiff/diff.go:27
↓ 5 callersFunctionContextWithTraceParentFromEnv
ContextWithTraceParentFromEnv extracts W3C traceparent from the TRACEPARENT environment variable and returns a context carrying the upstream span cont
internal/telemetry/span.go:35
↓ 5 callersMethodError
()
internal/gitcmd/version.go:43
↓ 5 callersMethodEstimatedTokens
EstimatedTokens returns a rough token estimate for the portion of Message not already counted by ExtractText() (thinking blocks, reasoning items, and
internal/llm/client.go:192
↓ 5 callersMethodFilesReviewed
()
cmd/opencodereview/shared.go:768
↓ 5 callersFunctionFormatResult
FormatResult renders OCR findings with safe local navigation when root is set.
acp/internal/adapter/presentation/report.go:18
↓ 5 callersMethodFrozen
Frozen reports whether Finalize has already run.
internal/session/manifest.go:777
↓ 5 callersFunctionIsReserved
IsReserved reports whether a name is unavailable to Review MCP providers.
internal/tool/definitions.go:43
↓ 5 callersFunctionKill
Kill forcibly terminates the managed process tree, including descendants.
acp/internal/orchestrator/process/process_unix.go:38
↓ 5 callersFunctionLoadComments
LoadComments replays one session's JSONL and returns every review comment recorded in it, in file-completion order. It mirrors resume replay semantics
internal/session/comments.go:17
↓ 5 callersMethodLogout
(ctx context.Context, s Store, account string)
internal/chatgptauth/oauth.go:649
↓ 5 callersFunctionNewClient
NewClient starts an MCP server subprocess (stdio transport), initializes the connection, and caches the list of available tools. The context governs t
internal/mcp/client.go:43
↓ 5 callersFunctionNewComparisonCodeAccess
(current, previous FileReader)
internal/tool/code_access.go:16
↓ 5 callersFunctionNewConnection
NewConnection binds notifications before any request can acquire the agent lock.
acp/internal/adapter/connection.go:17
← previousnext →601–700 of 7,390, ranked by callers