MCPcopy Create free account

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

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

↓ 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:239
↓ 2 callersFunctionexecuteReviewContext
(ctx context.Context, opts reviewOptions)
cmd/opencodereview/review_cmd.go:117
↓ 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:462
↓ 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:2085
↓ 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:61
↓ 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:488
↓ 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:1198
↓ 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 callersFunctionflush
()
examples/gitlab_ci/post_review.py:511
↓ 2 callersMethodfocusManualStep
()
cmd/opencodereview/provider_tui.go:1797
↓ 2 callersFunctionformatComment
(comment, id)
scripts/github-actions/post-review-comments.js:2378
↓ 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:1677
↓ 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:2480
↓ 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:61
↓ 2 callersFunctiongetAuthenticatedLogin
(github, log)
scripts/github-actions/post-review-comments.js:1334
↓ 2 callersMethodgetBranchDiff
Compare branches using a three-dot diff from the merge base.
extensions/vscode/src/extension/services/GitService.ts:207
↓ 2 callersFunctiongetBreakpoints
()
pages/src/hooks/useResponsive.ts:24
↓ 2 callersMethodgetCachedEnvironment
()
extensions/vscode/src/extension/services/CliService.ts:28
↓ 2 callersFunctiongetDocTitle
(slug: DocSlug, language: string)
pages/src/content/docs/index.ts:286
↓ 2 callersFunctiongetMeter
()
internal/telemetry/metrics.go:32
↓ 2 callersFunctiongetPlatformPackageName
()
scripts/platform.js:21
↓ 2 callersFunctiongetRawContent
(slug: BlogSlug, language: string)
pages/src/content/blog/index.ts:85
↓ 2 callersFunctiongetRawContent
* Get raw content for a slug in the given language, with English fallback.
pages/src/content/docs/index.ts:270
↓ 2 callersMethodgetReviewFileStatus
The change status of this path within the current review; returns null when it is out of scope. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitService.kt:289
↓ 2 callersMethodgetState
* Refreshes and returns the git state for the given review mode. * Only the data the current mode needs is queried: workspace mode does not need
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitService.kt:90
↓ 2 callersMethodgetState
(mode: ReviewMode)
extensions/vscode/src/extension/services/GitService.ts:70
↓ 2 callersFunctiongetTracer
()
internal/telemetry/span.go:19
↓ 2 callersFunctiongitIn
gitIn runs git in dir with a fixed identity so commits are reproducible.
cmd/opencodereview/review_resume_more_test.go:89
↓ 2 callersFunctiongraceRoundCommentResponse
()
internal/reviewtask/loop_test.go:696
↓ 2 callersMethodhandle
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/review/SidebarRouter.kt:57
↓ 2 callersFunctionhandleCompare
handleCompare renders the `ocr session compare` result for two sessions of the same repo. repo is the on-disk directory name, passed through from the
internal/viewer/handler.go:161
↓ 2 callersFunctionhandler
(e: MouseEvent)
pages/src/components/Navbar.tsx:55
↓ 2 callersMethodhasContent
Whether the config still has real content. Empty strings do not count -- a blank string is falsy in this check. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigService.kt:110
↓ 2 callersMethodhasErrorAttempt
()
internal/llm/retry_report.go:241
↓ 2 callersFunctionhasLine
hasLine reads bounded fragments even for an arbitrarily long source line. A trailing newline terminates its line; it does not create another one.
acp/internal/adapter/workspace/files.go:97
↓ 2 callersFunctionhasOddQuotes
hasOddQuotes reports whether v carries an odd number of double quotes — the signature of a value cut short at a misjudged terminator. Number a value'
internal/tool/comment_args_repair.go:231
↓ 2 callersMethodhasSuggestion
(c: ReviewComment)
extensions/vscode/src/extension/providers/CommentProvider.ts:120
↓ 2 callersFunctionhasSuspectTruncation
hasSuspectTruncation reports whether any entry carries a value a misjudged terminator may have cut short. Such a batch is refused outright rather than
internal/tool/comment_args_repair.go:242
↓ 2 callersFunctionheader
(name)
scripts/github-actions/post-review-comments.js:1935
↓ 2 callersFunctionholdDuration
(cfg config)
acp/testdata/ocr-stub/main.go:237
↓ 2 callersFunctionhostOnly
hostOnly returns the bare host portion of a Host header value, with any port stripped and surrounding brackets removed from IPv6 literals. Empty or ma
internal/viewer/hostguard.go:20
↓ 2 callersFunctionidentityArgs
(dir string, maxTokens int)
internal/agent/identity_test.go:35
↓ 2 callersFunctionids
ids renders a bucket as "path:startline" entries, so a case pins both the membership and the order Compare promises.
internal/session/compare_test.go:28
↓ 2 callersFunctioninfo
(msg)
scripts/install.js:19
↓ 2 callersFunctioninitConsoleProviders
initConsoleProviders sets up stdout exporters for traces and metrics.
internal/telemetry/exporter.go:184
↓ 2 callersFunctioninitIdentityRepo
initIdentityRepo builds a workspace with two reviewable files, one the extension rules drop, and one large enough for the token filter to drop.
internal/agent/identity_test.go:19
↓ 2 callersMethodinitManifest
initManifest seeds the run manifest with this run's input identity and execution provenance. It is nil-safe (the builder is absent on the delegate pre
internal/agent/agent.go:953
↓ 2 callersFunctioninitRepoWithCQuotedChange
initRepoWithCQuotedChange creates a repository with one committed file whose path forces git's C-quoting, then modifies it in the working tree. It mir
internal/diff/git_cquoted_test.go:31
↓ 2 callersFunctioninitRepoWithCommit
initRepoWithCommit creates a real git repository with a single commit whose message is `message`, and returns the repo directory and the commit hash.
cmd/opencodereview/background_file_test.go:294
↓ 2 callersFunctioninitRepoWithNonASCIIChange
initRepoWithNonASCIIChange creates a repository whose changed file path contains both non-ASCII characters and Next.js-style route groups. It forces G
internal/diff/git_test.go:307
↓ 2 callersMethodinitScanFingerprints
(items []model.ScanItem)
internal/scan/agent.go:254
↓ 2 callersMethodinjectDiffMap
injectDiffMap builds a read-only DiffMap from parsed diffs and sets it on the FileReadDiffProvider. Must be called after loadDiffs and before any conc
internal/agent/agent.go:617
↓ 2 callersFunctioninstallSignalHandlers
(child, platform, signalTarget)
bin/ocr.js:35
↓ 2 callersFunctionisBinaryFile
isBinaryFile reads up to binarySniffWindow bytes from path and reports whether they contain a NUL byte (git's "binary" heuristic).
internal/scan/provider.go:448
↓ 2 callersFunctionisLegalEscape
isLegalEscape reports whether s[i] opens a valid JSON escape sequence, given that s[i-1] is a backslash. \u additionally requires four hex digits.
internal/tool/comment_args_repair.go:61
↓ 2 callersFunctionisLineResolutionFailure
(error)
scripts/github-actions/post-review-comments.js:2728
↓ 2 callersFunctionisLoopbackHost
isLoopbackHost reports whether host is a loopback name or IP literal that is always safe to accept regardless of operator configuration.
internal/viewer/hostguard.go:42
↓ 2 callersFunctionisProcessRunning
(pid)
plugins/open-code-review/opencode/test/open-code-review.test.mjs:90
↓ 2 callersFunctionisProviderDirExcluded
isProviderDirExcluded reports whether relPath matches the provider's unconditional directory blocklist. A .gitignore negation cannot re-admit one of t
internal/diff/git.go:332
↓ 2 callersFunctionisValidProviderName
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigDraft.kt:116
↓ 2 callersFunctionjcefUnsupportedPlaceholder
* Fallback notice for when JCEF is unavailable (all of the plugin's UI is then unusable). * [locale] defaults to the IDE UI language: reaching this p
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/jcef/JcefReviewPanel.kt:100
↓ 2 callersFunctionjobText
(name)
scripts/github-actions/release-contract.test.js:19
↓ 2 callersFunctionjsGetSubstitution
jsGetSubstitution implements ECMAScript GetSubstitution for String.prototype.replace when replaceValue is a string: $$, $&, $`, $' and $1..$9 capture
internal/viewer/server_extra_test.go:1062
↓ 2 callersMethodjumpTo
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:201
↓ 2 callersFunctionkeyCmdConfiguredHint
keyCmdConfiguredHint explains why this step accepts an empty field. A provider configured only by command renders a blank input -- the command line is
cmd/opencodereview/provider_tui.go:2606
↓ 2 callersFunctionkeyCmdConfiguredHintLine
(indent, keyLabel string)
cmd/opencodereview/provider_tui.go:2610
↓ 2 callersFunctionkillPID
(pid int)
acp/internal/orchestrator/process_alive_unix_test.go:29
↓ 2 callersFunctionlauncherExitCode
(result)
bin/ocr.js:21
↓ 2 callersFunctionlegacyLLMShadowWarning
(provider, key string)
cmd/opencodereview/config_cmd.go:217
↓ 2 callersFunctionlevenshtein
(a, b string)
cmd/opencodereview/flag_suggest.go:63
↓ 2 callersFunctionlimitErrorBodyForLog
limitErrorBodyForLog bounds the payload included in terminal and session logs without truncating the response the SDK parsed. Control bytes are droppe
internal/llm/client.go:1013
↓ 2 callersFunctionlistEntries
(repoRoot, rel, want, ext)
scripts/github-actions/check-plugin-contract.js:839
↓ 2 callersMethodlistFiles
listFiles returns all source files under repoDir. In a git repo it uses `git ls-files` for full .gitignore semantics (nested + global excludes + negat
internal/scan/provider.go:177
↓ 2 callersMethodlist_discussions
Return all MR discussions, or None when the read failed.
examples/gitlab_ci/post_review.py:987
← previousnext →1,501–1,600 of 7,128, ranked by callers