MCPcopy Create free account

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

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

↓ 12 callersFunctionresolveLocale
(raw: string)
extensions/frontend/src/shared/i18n.ts:820
↓ 12 callersFunctionresultToState
Only recognized, non-failing terminal results can report an empty review. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ReviewSession.kt:20
↓ 12 callersFunctionretryTestRepo
retryTestRepo builds a repo with one reviewable commit range (HEAD~1..HEAD), each file carrying its own marker in the second commit only. The file se
cmd/opencodereview/retry_fake_llm_test.go:249
↓ 12 callersFunctionrun
({ github, context, core })
scripts/github-actions/check-pr-commit-policy.js:130
↓ 12 callersFunctionrunSessionCompare
(beforeID, afterID string)
cmd/opencodereview/session_cmd.go:407
↓ 12 callersFunctionsanitizeTerminal
(s string)
cmd/opencodereview/output.go:261
↓ 11 callersMethodCredentials
(ctx context.Context, s Store, account string)
internal/chatgptauth/oauth.go:490
↓ 11 callersFunctionLoadDefault
LoadDefault parses the embedded task_template.json and resolves prompt file references.
internal/config/template/template.go:219
↓ 11 callersMethodRecordReviewItemFailed
RecordReviewItemFailed persists an incomplete file-level checkpoint.
internal/session/history.go:304
↓ 11 callersMethodResolve
(path string)
internal/config/rules/sniffer.go:27
↓ 11 callersMethodRunManifest
RunManifest returns the frozen v1 coverage result for review runs. Scan remains legacy and returns nil.
cmd/opencodereview/shared.go:790
↓ 11 callersMethodSessionID
SessionID returns the current scan's persisted session ID. It returns an empty string when no session file exists.
internal/scan/agent.go:190
↓ 11 callersFunctionSetAttr
SetAttr sets a single attribute on a span.
internal/telemetry/span.go:66
↓ 11 callersFunctionSwap
Swap replaces the stdout writer with replacement and returns a restore function. It lets tests capture output written through Writer(), and lets calle
internal/stdout/stdout.go:57
↓ 11 callersMethodTotalTokensUsed
()
cmd/opencodereview/shared.go:766
↓ 11 callersMethodVisibleContent
VisibleContent extracts visible text only, never falling back to ReasoningContent. History builders must use this to avoid duplicating reasoning that
internal/llm/client.go:350
↓ 11 callersFunctionapplyOfficialProviderConfig
(configPath string, cfg *Config, result providerTUIResult)
cmd/opencodereview/provider_cmd.go:273
↓ 11 callersMethodapplyResumeLine
applyResumeLine folds one record into the index. It reports an unparseable line to the caller, which decides whether that is fatal.
internal/session/resume.go:154
↓ 11 callersMethodbeginAPIKeyReplace
beginAPIKeyReplace switches from the fixed-length mask placeholder to edit mode so the next keystroke or paste fully replaces the saved key. While edi
cmd/opencodereview/provider_tui.go:899
↓ 11 callersFunctioncm
(path, content string)
internal/tool/comment_collector_test.go:12
↓ 11 callersFunctionformatReport
(result *orchestrator.Result)
acp/internal/adapter/presentation/helpers_test.go:76
↓ 11 callersFunctionfreezeOne
freezeOne freezes c and returns the single listed request.
internal/llm/retry_boundary_test.go:47
↓ 11 callersFunctiongenerateUUID
()
internal/session/persist.go:65
↓ 11 callersFunctionhttp_error
(code, body=b"", reason="error")
examples/gerrit_ci/post_review_test.py:275
↓ 11 callersFunctioninitBareRepo
initBareRepo creates an empty (unborn) git repository with identity configured but no commits, returning the repo dir.
internal/diff/git_resolve_test.go:30
↓ 11 callersFunctionofficialConfigModelTUI
(t *testing.T, configPath string, extraModels []string)
cmd/opencodereview/provider_tui_funcs_test.go:1055
↓ 11 callersFunctionoutputRetryReportText
outputRetryReportText groups noteworthy requests by review stage. It renders only stable classes and status codes; raw provider errors stay out.
cmd/opencodereview/output.go:477
↓ 11 callersFunctionoutputSARIF
outputSARIF writes a SARIF v2.1.0 document to the provided writer. The document always contains a single run with the 8 built-in category rules, one r
cmd/opencodereview/sarif.go:131
↓ 11 callersFunctionparseCheckpointMarker
(body)
scripts/github-actions/post-review-comments.js:3057
↓ 11 callersFunctionparseTemplate
(name string)
internal/viewer/server.go:326
↓ 11 callersFunctionpost
(msg: WebviewToHost)
extensions/frontend/src/webview/bridge.vsc.ts:13
↓ 11 callersMethodpost
(msg: WebviewToHost)
extensions/frontend/src/webview/bridge.ts:14
↓ 11 callersFunctionrequireReject
(t *testing.T, r Result)
acp/internal/intent/fake_test.go:116
↓ 11 callersFunctionresolveKeyCmd
resolveKeyCmd runs a credential-fetching shell command and returns its trimmed, single-line stdout. label names the source (e.g. `api_key_cmd for prov
internal/llm/keycmd.go:94
↓ 11 callersFunctionretryReportFixture
retryReportFixture is the report used by most rendering assertions: one request recovered after two errors, one request that never succeeded, and a to
cmd/opencodereview/retry_report_render_test.go:24
↓ 11 callersFunctionrunAgentCheck
({ json = {}, dirs = {}, files = {} } = {})
scripts/github-actions/check-plugin-contract.test.js:541
↓ 11 callersFunctionrunSessionRm
(cmd *cobra.Command, sessionID string)
cmd/opencodereview/session_cmd.go:601
↓ 11 callersMethodsetPending
(p *Pending)
acp/internal/intent/state.go:41
↓ 11 callersMethodtokens
()
internal/chatgptauth/auth_test.go:181
↓ 11 callersFunctionuseCompareRepo
useCompareRepo points the compare command at repoDir and restores the shared command flags afterwards.
cmd/opencodereview/session_cmd_test.go:583
↓ 11 callersFunctionuseResponsive
()
pages/src/hooks/useResponsive.ts:12
↓ 11 callersMethodwhyExcluded
whyExcluded applies the static gates — binary, the built-in secret paths, user exclude/include, then the extension allowlist and default-path patterns
internal/agent/selection.go:70
↓ 11 callersFunctionwriteOpenAISSE
(t *testing.T, w http.ResponseWriter, events ...string)
internal/llm/client_test.go:758
↓ 11 callersFunctionwriteTempFile
writeTempFile writes content to a temporary file and returns its path.
cmd/opencodereview/background_file_test.go:16
↓ 10 callersFunctionBuildScanArgs
BuildScanArgs constructs OCR CLI arguments from ScanIntent. Returns error if a path escapes the scan root or Extra contains a flag outside scanExtraFl
acp/internal/contract/intent.go:138
↓ 10 callersMethodClear
Clear drops any pending clarification. Phase 6 calls it on session/cancel and on task completion; the parser also clears it when a command replaces or
acp/internal/intent/state.go:53
↓ 10 callersMethodCollect
Collect uses one native tool call for the entire OCR process. Log snapshots replace prior content at a bounded rate, not once per stderr line.
acp/internal/adapter/presentation/progress.go:27
↓ 10 callersMethodCommentsForPath
CommentsForPath returns a copy of comments whose Path matches the given path.
internal/tool/comment_collector.go:41
↓ 10 callersMethodCompletionTokenLimit
CompletionTokenLimit returns the output cap for LLM requests. Runtime prompt-limit overrides must not silently expand the model's output budget.
internal/config/template/template.go:142
↓ 10 callersFunctionFileURLString
FileURLString formats a local path and optional line as a file URL.
acp/internal/adapter/workspace/fileurl.go:25
↓ 10 callersFunctionLoadDefault
LoadDefault parses the embedded system_rules.json and resolves rule file references.
internal/config/rules/system_rules.go:93
↓ 10 callersFunctionNewManifestBuilder
NewManifestBuilder creates a builder for a run identified by runID (the canonical session ID) and operation ("review" or "scan").
internal/session/manifest.go:371
↓ 10 callersMethodPlanEnabled
()
internal/chatgptauth/store.go:45
↓ 10 callersMethodRecordUsage
RecordUsage adds the prompt/completion/cache tokens reported by an LLM response to the runner's aggregate counters. Used by callers (plan phase in age
internal/llmloop/loop.go:197
↓ 10 callersMethodRegisterExcluded
RegisterExcluded requires a defined exclusion reason and an item_id outside the selected set. It rejects calls after seal or freeze and keeps the firs
internal/session/manifest.go:554
↓ 10 callersMethodSetRunFailure
SetRunFailure records why the whole run stopped. It rejects an invalid class (so an unclassifiable stop is never silently downgraded) and a change of
internal/session/manifest.go:435
↓ 10 callersMethodbuildGrepArgs
(searchText string, caseSensitive bool, usePerlRegexp bool, noIndex bool, pathspec []string)
internal/tool/code_search.go:68
↓ 10 callersMethodbuildOpenAIParams
buildOpenAIParams converts the shared ChatRequest into OpenAI SDK parameters.
internal/llm/client.go:889
↓ 10 callersFunctioneffectivePath
(d model.Diff)
internal/agent/preview.go:129
↓ 10 callersFunctionencodeRepoPath
(p string)
internal/session/persist.go:78
↓ 10 callersFunctionescapedCount
escapedCount reads the escaped-character count out of a repair description, reporting zero for a declined repair so assertions stay compact.
internal/tool/comment_args_repair_test.go:29
↓ 10 callersFunctiongitOut
gitOut runs a git command in dir and returns its trimmed stdout, failing the test on error. Used to capture the SHAs a ResolveInput result must match.
internal/diff/git_resolve_test.go:17
↓ 10 callersFunctionisolateLLMConnectionTest
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:15
↓ 10 callersFunctionmakeDiff
()
internal/diff/relocation_test.go:44
↓ 10 callersFunctionmatchConsecutive
matchConsecutive scans sideLines for a consecutive run matching all targetLines.
internal/diff/resolver.go:230
↓ 10 callersFunctionmockCore
()
scripts/github-actions/post-review-comments.test.js:405
↓ 10 callersFunctionnewManifestFlowAgent
(t *testing.T, diffs []model.Diff, resume *session.ResumeState)
internal/agent/manifest_integration_test.go:69
↓ 10 callersFunctionnewTestClient
(name string, tools []*mcp.Tool)
internal/mcp/provider_test.go:14
↓ 10 callersMethodrecordWarning
recordWarning adds a non-fatal warning to the agent's warning list.
internal/agent/agent.go:549
↓ 10 callersFunctionrenderComment
(comment model.LlmComment, out io.Writer)
cmd/opencodereview/output.go:114
↓ 10 callersFunctionresolveLogLines
(core)
scripts/github-actions/post-review-comments.test.js:6209
↓ 10 callersFunctionresolveUsage
resolveUsage parses raw JSON bytes into a map and extracts token usage by probing configured paths sequentially. Returns nil if no total_tokens found.
internal/llm/usage_resolver.go:76
↓ 10 callersFunctionsetTestHome
setTestHome redirects the user home resolved by os.UserHomeDir() to dir for the duration of the test. Setting HOME alone is NOT enough on Windows: os.
internal/agent/test_home_test.go:13
↓ 10 callersFunctionsilenceStdout
silenceStdout redirects os.Stdout to /dev/null for the duration of fn so the delegate commands' Printf output does not clutter test logs.
cmd/opencodereview/delegate_exec_test.go:67
↓ 10 callersMethodwithLock
(ctx context.Context, fn func() error)
internal/chatgptauth/store.go:166
↓ 10 callersFunctionwriteConfig
writeConfig writes an OCR config file to a temp dir and returns its path.
internal/llm/bedrock_test.go:16
↓ 10 callersFunctionyKey
()
cmd/opencodereview/provider_tui_test.go:1142
↓ 9 callersFunctionAnyToAttr
AnyToAttr converts an arbitrary value to an OTel attribute.KeyValue.
internal/telemetry/span.go:132
↓ 9 callersFunctionPreview
Preview loads diffs and applies the same selection the real run applies before dispatch, returning structured preview data without dispatching any LLM
internal/agent/preview.go:51
↓ 9 callersFunctionPromptTokenLimit
PromptTokenLimit returns tokenWarningThreshold (80%) of maxTokens. It is shared by the agent and scan pre-flight gates, their large-input filters, and
internal/llmloop/compression.go:28
↓ 9 callersFunctionResolve
(entries []ToolConfigEntry, names []string)
internal/config/toolsconfig/toolsconfig.go:34
↓ 9 callersFunctionResolve
Resolve builds the parsing endpoint from the startup flags and the OCR_ACP_PARSER_* environment variables, with the flags taking precedence.
acp/internal/intent/llm/resolve.go:75
↓ 9 callersMethodRestore
Restore re-enables stdout. Safe to call multiple times.
cmd/opencodereview/shared.go:403
↓ 9 callersMethodRun
(ctx context.Context, messages []llm.Message, taskKey string)
internal/llmloop/loop.go:288
↓ 9 callersMethodRunSplit
RunSplit executes a git command and returns stdout and stderr separately.
internal/gitcmd/runner.go:306
↓ 9 callersMethodSealSelected
SealSelected closes the selected set. After it returns, RegisterSelected and RegisterExcluded fail and the coverage denominator is fixed; per-item Mar
internal/session/manifest.go:590
↓ 9 callersMethodTotalInputTokens
()
cmd/opencodereview/shared.go:764
↓ 9 callersFunctionValidateProtocol
ValidateProtocol accepts the four canonical protocol names and rejects everything else.
internal/llm/protocol.go:65
↓ 9 callersFunctionWithRequestMeta
WithRequestMeta attaches m to ctx so the retry observer can associate every HTTP attempt made under that context with one logical request. It is the o
internal/llm/retry_meta.go:132
↓ 9 callersFunctionconfigValues
(calls)
scripts/github-actions/action-contract.test.js:331
↓ 9 callersFunctiondownKey
()
cmd/opencodereview/provider_tui_test.go:34
↓ 9 callersFunctionemit
(result runResult)
acp/testdata/mock-ocr/main.go:82
↓ 9 callersMethodexecuteGroupReviewFilter
executeGroupReviewFilter runs the REVIEW_FILTER_TASK for a file group. When from is non-nil, only comments at indices >= from[path] for each path are
internal/agent/agent.go:1841
↓ 9 callersFunctionexpandBraces
expandBraces turns "{a,b,c}" style patterns into individual strings. e.g. "*.go.{java,kotlin}" → ["*.go.java", "*.go.kotlin"]. If no braces exist, ret
internal/config/rules/system_rules.go:182
↓ 9 callersMethodfile
extensions/idea/src/test/kotlin/com/alibaba/opencodereview/idea/FrontendSources.kt:29
↓ 9 callersFunctiongit
(args, allowedStatuses = [0])
scripts/github-actions/check-pr-commit-policy.test.js:370
↓ 9 callersFunctiongroupingSkipTemplate
groupingSkipTemplate is a template whose GROUPING_TASK is configured, so that a test asserting client.called == false proves the fast path skipped the
internal/agent/grouping_test.go:296
↓ 9 callersFunctionisConfigReady
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigUtils.kt:22
↓ 9 callersFunctionmakeComments
(n)
scripts/github-actions/post-review-comments.test.js:1711
↓ 9 callersMethodmapResponsesResponse
mapResponsesResponse converts the SDK Response into the shared ChatResponse. Text output is read via the SDK's OutputText() helper (it walks all outpu
internal/llm/responses_client.go:516
← previousnext →301–400 of 7,128, ranked by callers