MCPcopy Create free account

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

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

↓ 2 callersFunctioncleanupOutputTemp
(file *os.File, path string)
cmd/opencodereview/shared.go:583
↓ 2 callersMethodclear
()
extensions/vscode/src/extension/providers/CommentProvider.ts:314
↓ 2 callersFunctioncloneCustomProviderList
(src []customProviderListItem)
cmd/opencodereview/provider_tui.go:1356
↓ 2 callersFunctionclonePending
(p *Pending)
acp/internal/intent/state.go:62
↓ 2 callersMethodcloseAll
()
internal/gitcmd/runner.go:205
↓ 2 callersMethodcloseRead
closeRead unblocks a pending read. It is safe to call repeatedly and concurrently with the reader: closing the file makes Read return.
internal/gitcmd/runner.go:199
↓ 2 callersFunctioncollectCommits
(commits, nodes)
scripts/github-actions/check-pr-commit-policy.js:34
↓ 2 callersFunctioncolorf
colorf formats then colorizes, so call sites need not nest fmt.Sprintf.
cmd/opencodereview/color.go:92
↓ 2 callersFunctioncommandExitCode
(err error)
acp/internal/orchestrator/runner.go:323
↓ 2 callersFunctioncomment_span
Resolve a review comment into a line span tagged single/multi-line.
examples/gitlab_ci/post_review.py:422
↓ 2 callersMethodcommitParents
commitParents returns the parent commit SHAs of ref: zero for a root commit, one for an ordinary commit, and 2+ for a merge. It uses `rev-list --paren
internal/diff/git.go:602
↓ 2 callersFunctioncompareFixture
compareFixture builds a sessions root with the sessions every TestHandleCompare row draws on and returns it. s1 (before) and s2 (after) share one fin
internal/viewer/compare_test.go:165
↓ 2 callersFunctioncomparisonDefinition
(function llm.FunctionDef, workspace bool)
internal/config/toolsconfig/comparison.go:39
↓ 2 callersMethodcomplete
(ctx context.Context, request llm.ChatRequest, finalSubmission bool)
internal/behaviortask/budget.go:50
↓ 2 callersFunctioncompleteSessionIDsAnywhere
completeSessionIDs offers the persisted session ids for the current repo (or --repo, when already typed) as shell completions, newest first, with a sh
cmd/opencodereview/session_cmd.go:152
↓ 2 callersFunctioncompressionSummary
(text string)
internal/llmloop/compression.go:185
↓ 2 callersFunctionconfiguredParser
(opts llm.Options)
acp/cmd/ocr-acp/main.go:72
↓ 2 callersFunctionconfirmDeletion
confirmDeletion reads a yes/no answer; a non-interactive stdin answers no.
cmd/opencodereview/session_cmd.go:671
↓ 2 callersFunctionconsumeStreams
(stdout, stderr io.Reader, limits Limits, emit func(Event))
acp/internal/orchestrator/streams.go:132
↓ 2 callersFunctioncontainsEvent
(events []Event, message string)
acp/internal/orchestrator/runner_test.go:278
↓ 2 callersMethodcontent
()
acp/internal/adapter/presentation/progress_format.go:44
↓ 2 callersFunctioncontextIndex
(contexts []Context)
internal/behaviortask/observation.go:196
↓ 2 callersFunctioncopyProvider
(p Provider)
internal/llm/providers.go:539
↓ 2 callersFunctioncountCommentsRaw
(raw json.RawMessage)
internal/session/list.go:337
↓ 2 callersFunctioncountDispatchable
(diffs []model.Diff)
internal/agent/agent.go:923
↓ 2 callersFunctioncountLines
countLines returns the number of lines in content. A file without a trailing newline still counts its final line. Empty input → 0.
internal/scan/provider.go:435
↓ 2 callersFunctioncounterpartPaths
(enPath)
scripts/github-actions/check-translation-sync.js:175
↓ 2 callersFunctioncreateHeadingIdResolver
()
pages/src/utils/headingId.ts:42
↓ 2 callersMethodcssVariables
Builds the injected `:root { ... }`. A value that cannot be read falls back to a default * color; this never throws. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/jcef/IdeaTheme.kt:116
↓ 2 callersFunctionctrlBreakUndeliverable
ctrlBreakUndeliverable reports whether err can only mean that a console control event reached no process, which is an expected outcome rather than a c
acp/internal/orchestrator/process/winapi_windows.go:241
↓ 2 callersMethodcursorOnDeletableModel
cursorOnDeletableModel reports whether the model-step cursor is on a row that can be deleted (not on "Enter custom model name...").
cmd/opencodereview/provider_tui.go:509
↓ 2 callersMethodcursorOnUserAddedModel
()
cmd/opencodereview/provider_tui.go:2780
↓ 2 callersMethodcustomAPIKeyForSave
customAPIKeyForSave reports the API key to persist and whether the user edited the field (vs left the masked placeholder untouched).
cmd/opencodereview/provider_tui.go:910
↓ 2 callersFunctiondelegateExamples
(t *testing.T)
internal/delegate/instructions_test.go:93
↓ 2 callersFunctiondelegateGitEnv
()
internal/delegate/instructions_test.go:29
↓ 2 callersFunctiondescribeActiveProvider
(config: OcrConfig | null)
extensions/frontend/src/shared/configUtils.ts:44
↓ 2 callersFunctiondescribeCommentLocation
(reviewComment)
scripts/github-actions/post-review-comments.js:2876
↓ 2 callersMethoddetach
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/CliCancellation.kt:42
↓ 2 callersMethoddetachSidebar
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/review/ReviewProjectService.kt:122
↓ 2 callersFunctiondetectInitialTab
(config: OcrConfig | null)
extensions/frontend/src/shared/configUtils.ts:25
↓ 2 callersFunctiondiffStatus
(d model.Diff)
internal/agent/preview.go:136
↓ 2 callersMethoddiscard
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:176
↓ 2 callersMethoddiscover
(ctx context.Context, d *discovery)
internal/chatgptauth/oauth.go:56
↓ 2 callersMethoddispatchBatch
dispatchBatch fans out the files of a single batch concurrently and blocks until they all finish (or ctx is cancelled). Returns the number of files di
internal/scan/agent.go:677
↓ 2 callersMethoddispose
()
extensions/vscode/src/extension/providers/ConfigPanelProvider.ts:54
↓ 2 callersFunctiondownload
(url, maxRedirects = 10)
scripts/install.js:94
↓ 2 callersFunctionemitError
(file, message)
scripts/github-actions/check-translation-sync.js:206
↓ 2 callersFunctionemitGroupingSkipped
emitGroupingSkipped records a partition that was decided without an LLM round trip. Both skip paths report through here so their attribute sets cannot
internal/agent/grouping.go:163
↓ 2 callersMethodemitSync
()
extensions/vscode/src/extension/providers/CommentProvider.ts:43
↓ 2 callersFunctionemitWarning
(file, message)
scripts/github-actions/check-translation-sync.js:211
↓ 2 callersFunctionemitWarning
(file, message, line)
scripts/github-actions/check-plugin-contract.js:742
↓ 2 callersFunctionemptyMarks
()
internal/viewer/static/session.js:213
↓ 2 callersFunctionemptyResponse
()
internal/reviewtask/retry_identity_test.go:62
↓ 2 callersFunctionemptyResponse
()
internal/llmloop/retry_identity_test.go:57
↓ 2 callersFunctionencodingForModel
(modelName string)
internal/llm/client.go:584
↓ 2 callersFunctionendpointURL
(rawURL, suffix string)
acp/internal/intent/llm/client.go:242
↓ 2 callersMethodensureTelemetry
()
cmd/opencodereview/config_cmd.go:1201
↓ 2 callersMethodenv
The current process environment overlaid with the login shell environment; falls back to the process environment when parsing fails. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ShellEnv.kt:50
↓ 2 callersFunctionerrBedrockNotConfigurable
errBedrockNotConfigurable explains why the two url+token strategies reject the bedrock protocol. Both describe a single HTTP endpoint and carry no pla
internal/llm/resolver.go:254
↓ 2 callersFunctionerrCaller
()
acp/internal/testutil/stub.go:96
↓ 2 callersFunctionerrOutput
(err error, out []byte)
acp/internal/testutil/stub.go:105
↓ 2 callersFunctionescapeAnnotationData
(s)
scripts/github-actions/check-plugin-contract.js:732
↓ 2 callersFunctionescapeControl
escapeControl returns the JSON escape for a control character. JSON forbids every byte below 0x20 in a string, so those without a short form get \u00X
internal/tool/comment_args_repair.go:42
↓ 2 callersFunctionestimateDiffCost
estimateDiffCost projects token usage for reviewing the given diffs. It is the diff-path analogue of scan.estimateCost and is used for the pre-review
internal/agent/estimate.go:73
↓ 2 callersMethodexchange
(ctx context.Context, a attempt, code, id string, old *Auth)
internal/chatgptauth/oauth.go:243
↓ 2 callersFunctionexecuteScanContext
(ctx context.Context, opts scanOptions)
cmd/opencodereview/scan_cmd.go:114
↓ 2 callersMethodexecuteTool
Check the current request before dispatch so restricted rounds cannot invoke providers or completion actions that were only available in earlier round
internal/llmloop/loop.go:480
↓ 2 callersFunctionexecutionStats
executionStats shows aggregate CLI facts, not inferred per-invocation tool calls.
acp/internal/adapter/presentation/progress_format.go:137
↓ 2 callersFunctionexportTo
exportTo runs `session export` against repoDir, writing to a file under t.TempDir(), and returns the file's contents. The command reads its flags from
cmd/opencodereview/session_cmd_test.go:1088
↓ 2 callersFunctionextFromPath
(path string)
internal/scan/agent.go:524
↓ 2 callersMethodextFromPath
extFromPath returns the file extension with leading dot, lowercased.
internal/agent/agent.go:2087
↓ 2 callersFunctionextractBlockText
(block ContentBlock)
internal/llm/client.go:265
↓ 2 callersFunctionextractCliError
(stderr: string)
extensions/vscode/src/extension/services/cliParse.ts:73
↓ 2 callersFunctionextractCodeBlock
extractCodeBlock extracts the content of the first fenced code block from text. Returns empty string if no code block is found.
internal/diff/relocation.go:99
↓ 2 callersFunctionextractTopLevelJSON
Some OpenAI-compatible gateways forward a model's raw completion text verbatim as tool-call arguments. A model whose response format leaks control tok
internal/reviewtask/tool_args_json.go:34
↓ 2 callersFunctionfallback
(_e: Error, reset: () => void)
pages/src/components/ErrorBoundary.test.tsx:81
↓ 2 callersMethodfalsePositive
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:177
↓ 2 callersFunctionfenced_block
Render ``content`` as a fenced code block with a safe fence.
examples/gitlab_ci/post_review.py:249
↓ 2 callersFunctionfileReadRef
fileReadRef picks the ref file_read resolves paths against. A sealed input replaces the ref the user typed with the commit that ref resolved to at ad
cmd/opencodereview/review_cmd.go:518
↓ 2 callersMethodfinalizeReview
finalizeReview validates slots, builds argv, checks refs, and updates state.
acp/internal/intent/parser.go:150
↓ 2 callersMethodfinalizeScan
(ctx context.Context, st *State, s *pendingSlots)
acp/internal/intent/parser.go:199
↓ 2 callersFunctionfindLinesByExistingCode
(content: string, existingCode: string)
extensions/vscode/src/extension/providers/commentAnchor.ts:71
↓ 2 callersFunctionfindSkipDirectives
(message)
scripts/github-actions/check-pr-commit-policy.js:23
↓ 2 callersFunctionfindSummaryIssueComment
({ github, owner, repo, prNumber, sticky, tag, appSlug = "", resolveSelfLogin = null, log, }
scripts/github-actions/post-review-comments.js:1201
↓ 2 callersFunctionfind_summary_note
Return the newest note carrying the summary marker (or per-run tag). ``tag`` selects the matching needle: when provided, match this run's per
examples/gitlab_ci/post_review.py:1166
↓ 2 callersFunctionfinish
(callback: () => void)
plugins/open-code-review/opencode/open-code-review.ts:195
↓ 2 callersMethodfinishSend
(ctx context.Context, id acp.SessionId, err error, reason acp.StopReason)
acp/internal/adapter/prompt.go:122
↓ 2 callersFunctionfirstNonBlankLine
(content string)
internal/config/rules/sniffer.go:174
↓ 2 callersFunctionfirstNonEmpty
(values ...string)
acp/internal/intent/llm/resolve.go:156
↓ 2 callersFunctionfixtureChatGPTClient
(t *testing.T, handler http.HandlerFunc)
internal/llm/chatgpt_roundtrip_test.go:23
↓ 2 callersMethodfocusManualStep
()
cmd/opencodereview/provider_tui.go:1797
↓ 2 callersFunctionformatComment
(comment, id)
scripts/github-actions/post-review-comments.js:2381
↓ 2 callersFunctionformatDiffEntry
formatDiffEntry renders one changed file as STATUS path (+N/-M). It is the shared shape for both the grouping file list and the other-changed-files
internal/agent/agent.go:1679
↓ 2 callersFunctionformatReviewResult
(result: RunResult, preview: boolean)
plugins/open-code-review/opencode/open-code-review.ts:312
↓ 2 callersFunctionformatSummaryComments
(summaryComments)
scripts/github-actions/post-review-comments.js:2483
↓ 2 callersFunctionformatTime
(t time.Time)
internal/viewer/server.go:188
↓ 2 callersFunctionformat_summary_comments
Render a list of ``{comment, reason}`` as a continuous block.
examples/gitlab_ci/post_review.py:390
↓ 2 callersFunctionformat_warnings
Render warnings as a bulleted list under a heading ("" when empty).
examples/gitlab_ci/post_review.py:347
↓ 2 callersFunctiongenerateHeadingId
(text: string)
pages/src/utils/headingId.ts:27
↓ 2 callersMethodget
(ctx context.Context, endpoint string, target any)
internal/chatgptauth/oauth.go:65
← previousnext →1,501–1,600 of 7,390, ranked by callers