MCPcopy Create free account

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

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

↓ 3 callersFunctionrepairSerializedComments
repairSerializedComments escapes what makes a model-serialized `comments` string invalid JSON — prose quotes, bare control characters, illegal backsla
internal/tool/comment_args_repair.go:98
↓ 3 callersFunctionrepairedCommentsAcceptable
repairedCommentsAcceptable reports whether a repaired batch still carries every comment the original text described. Parsing again is not enough on it
internal/tool/comment_args_repair.go:188
↓ 3 callersFunctionreplayStreamedToolCall
replayStreamedToolCall runs one streamed completion against a fixture server and returns the assistant history message rebuilt for the next request.
internal/llm/tool_call_extra_content_test.go:65
↓ 3 callersFunctionresolveAllowedHostsFromEnv
resolveAllowedHostsFromEnv reads the OCR_VIEWER_ALLOWED_HOSTS environment variable and combines it with the bind host to produce the active allowlist.
internal/viewer/hostguard.go:136
↓ 3 callersFunctionresolveBackgroundFilePath
(repoDir, path string)
cmd/opencodereview/background_file.go:25
↓ 3 callersFunctionresolveBin
(name: string)
extensions/vscode/src/extension/services/shellEnv.ts:56
↓ 3 callersFunctionresolveChatGPT
(cfg configFile, entry providerEntryConfig, override string, ctx context.Context)
internal/llm/chatgpt.go:33
↓ 3 callersFunctionresolveColorFor
(writer io.Writer)
cmd/opencodereview/color.go:64
↓ 3 callersFunctionresolveConversation
(m manifestConversation)
internal/config/template/template.go:191
↓ 3 callersMethodresolveGitRef
(root: string, ref: string)
extensions/vscode/src/extension/services/GitService.ts:229
↓ 3 callersFunctionresolveIn
resolveIn builds a real resolver for dir/ref and resolves path.
internal/config/rules/sniffer_test.go:71
↓ 3 callersFunctionresolveInputExpressions
(value, values, stepOutputs = {})
scripts/github-actions/action-contract.test.js:179
↓ 3 callersFunctionresolveLang
resolveLang returns the resolved language name for the instruction.
internal/config/template/template.go:279
↓ 3 callersFunctionresolveNativeBinary
()
scripts/platform.js:39
↓ 3 callersFunctionresumedFromSession
(resume *session.ResumeState)
internal/agent/agent.go:1335
↓ 3 callersFunctionretryAttemptChain
retryAttemptChain renders one logical request as a short human-readable chain.
cmd/opencodereview/output.go:567
↓ 3 callersFunctionretryTestGit
retryTestGit runs git in dir with a fixed identity so the fixture repo does not depend on the developer's git config.
cmd/opencodereview/retry_fake_llm_test.go:226
↓ 3 callersMethodrollbackModelDelete
(prevEntry ProviderEntry, prevCfgModel string)
cmd/opencodereview/provider_tui.go:486
↓ 3 callersFunctionrouteComment
(comment, policy)
scripts/github-actions/post-review-comments.js:2351
↓ 3 callersMethodrun
(ctx context.Context, request Request, limits Limits, events chan Event, outcomes chan<- Outcome)
acp/internal/orchestrator/runner.go:17
↓ 3 callersMethodrunIdentity
runIdentity reads the identity off the agent's current selection. It is only meaningful once the selection is final: sourceArtifactSHA256 hashes what
internal/agent/identity.go:116
↓ 3 callersFunctionrunOcr
(args: string[], options: RunOptions)
plugins/open-code-review/opencode/open-code-review.ts:168
↓ 3 callersFunctionrunPrRefs
(sources)
scripts/github-actions/action-contract.test.js:387
↓ 3 callersFunctionrunReviewWithAudience
End-to-end coverage of #928: `--audience human --format json` used to run completely silent because the json format discarded stdout outright, ignorin
cmd/opencodereview/progress_stream_e2e_test.go:20
↓ 3 callersFunctionrunSessionExport
runSessionExport writes one session's standalone HTML page to --output, or to stdout when it is unset. The session id is optional because a *successfu
cmd/opencodereview/session_cmd.go:238
↓ 3 callersFunctionrunSessionList
()
cmd/opencodereview/session_cmd.go:274
↓ 3 callersFunctionrunSessionShow
(sessionID string)
cmd/opencodereview/session_cmd.go:314
↓ 3 callersFunctionsameCommentSpan
(cur, other, threshold)
scripts/github-actions/post-review-comments.js:1446
↓ 3 callersFunctionsanitizeMetadata
(value)
scripts/github-actions/post-review-comments.js:2205
↓ 3 callersFunctionsanitizeRetryCodes
sanitizeRetryCodes filters out SDK-default codes (408, 409, 429) and returns the remaining valid codes, any warnings for filtered codes, and an error
internal/llm/resolver.go:978
↓ 3 callersFunctionsarifFingerprints
sarifFingerprints builds a stable partialFingerprints entry for a finding. The fingerprint is based on Path + Category + ExistingCode (not message.tex
cmd/opencodereview/sarif.go:288
↓ 3 callersFunctionsavedSecretReplaceHint
savedSecretReplaceHint builds the replace hint text without leading indent.
cmd/opencodereview/provider_tui.go:2569
↓ 3 callersFunctionscanCodeCommentResponse
(contents ...string)
internal/scan/coverage_test.go:1373
↓ 3 callersFunctionscanLines
scanLines reads from r line by line, collecting at most maxLines lines starting from startLine (1-based), while counting the total number of lines. Th
internal/tool/filereader.go:163
↓ 3 callersFunctionsealRepo
sealRepo builds a two-commit repo on a branch, so `main..feature` is a real range whose head a later commit can move.
internal/agent/sealed_input_test.go:19
↓ 3 callersMethodsecure
()
internal/chatgptauth/store.go:92
↓ 3 callersFunctionsecurityHeaders
securityHeaders wraps a handler and sets defense-in-depth response headers on every reply. These harden the local viewer's browser-facing surface (the
internal/viewer/securityheaders.go:28
↓ 3 callersFunctionselectScanItemsForTest
(t *testing.T, a *Agent, items []model.ScanItem)
internal/scan/agent_test.go:366
↓ 3 callersFunctionselectedScanItems
(decisions []scanSelection)
internal/scan/agent.go:451
↓ 3 callersFunctionsemverGt
(a, b)
scripts/version.js:16
↓ 3 callersFunctionsensitiveHeader
(name string)
internal/llm/raw.go:149
↓ 3 callersMethodset
Writes a single config entry and returns the config after the write. [CliService.runRaw] throws [CliException] when the CLI exits non-zero. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigService.kt:183
↓ 3 callersFunctionsetCustomProviderValue
(cfg *Config, key, value string)
cmd/opencodereview/config_cmd.go:1022
↓ 3 callersFunctionsetHelperEnv
setHelperEnv steers children of this process into the helper branch. openBrowserCandidates builds its own exec.Cmd from an argv, so the inherited envi
internal/viewer/browser_exec_test.go:72
↓ 3 callersFunctionsetProviderEntryField
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigDraft.kt:103
↓ 3 callersMethodsetStatus
(index: number, status: CommentStatus)
extensions/vscode/src/extension/providers/CommentProvider.ts:179
↓ 3 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/llm/test_home_test.go:13
↓ 3 callersFunctionshouldSkipFile
shouldSkipFile returns true if a git ls-files output path should be skipped. Keeps only widely useful files (those with recognizable extensions).
internal/tool/file_find.go:218
↓ 3 callersFunctionsplitAndNormalize
splitAndNormalize splits code text into lines and normalizes each one.
internal/diff/resolver.go:299
↓ 3 callersFunctionsplitDiffLines
splitDiffLines splits unified diff text on "\n" and drops the carriage return that CRLF-terminated diff text leaves at the end of every line. Git wri
internal/diff/parser.go:42
↓ 3 callersFunctionstripEmptyPlanBlock
stripEmptyPlanBlock removes the "### Review Directive\n{{plan_guidance}}\n\n" wrapper from a MAIN_TASK user message when the plan phase produced no gu
internal/agent/util.go:29
↓ 3 callersFunctionsummary_tag_for
(run_tag)
examples/gitlab_ci/post_review.py:76
↓ 3 callersMethodsyncModelsFromConfig
()
cmd/opencodereview/provider_tui.go:2821
↓ 3 callersFunctiontest
(name, check)
scripts/github-actions/release-contract.test.js:121
↓ 3 callersFunctiontoConfigSetArgs
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigParse.kt:80
↓ 3 callersFunctiontoConfigSetArgs
(key: string, value: string)
extensions/vscode/src/extension/services/configParse.ts:50
↓ 3 callersFunctiontoSingleFileGroups
(diffs []model.Diff)
internal/agent/grouping.go:382
↓ 3 callersFunctiontoolRoundTripNote
toolRoundTripNote reports what the round trip proved. A provider that never calls the tool leaves it unproven, and saying so is the point: a bare succ
cmd/opencodereview/llm_cmd.go:239
↓ 3 callersFunctiontruncate
(s string, n int)
cmd/opencodereview/session_cmd.go:859
↓ 3 callersFunctionunquoteGitPath
Git writes a pathname in C-style quotes whenever it holds a byte it cannot print literally on one line: a control character such as a tab or a newline
internal/diff/quotedpath.go:30
↓ 3 callersMethoduntrackedFilesList
(ctx context.Context)
internal/diff/git.go:706
↓ 3 callersMethodupdateCustomProviderForm
(key string, msg tea.KeyPressMsg)
cmd/opencodereview/provider_tui.go:1055
↓ 3 callersMethodupdateDeleteModelConfirm
(key string)
cmd/opencodereview/provider_tui.go:2998
↓ 3 callersFunctionupsert_summary
Find-or-create/update a summary note. Sticky matches the cross-run :data:`SUMMARY_MARKER`; non-sticky matches this run's ``tag`` (per-run), s
examples/gitlab_ci/post_review.py:1186
↓ 3 callersMethodvalid
valid reports whether m can identify a logical request. Provider may be empty; Model, FilePath and TaskType may not. No field may contain NUL, becaus
internal/llm/retry_meta.go:57
↓ 3 callersFunctionvalidateCheckpointPayload
(payload, { prNumber } = {})
scripts/github-actions/post-review-comments.js:3084
↓ 3 callersFunctionvalidateDelegateOptions
(opts *delegateOptions)
cmd/opencodereview/shared_flags.go:197
↓ 3 callersFunctionvalidateResumeIdentity
validateResumeIdentity rejects a resume whose input, rules, provider or model no longer match the parent run. It must run before agent.New: agent.New
cmd/opencodereview/review_cmd.go:451
↓ 3 callersMethodverify
(ctx context.Context, token, clientID, nonce string)
internal/chatgptauth/jwt.go:97
↓ 3 callersFunctionvisibleRunesLen
(runes []rune)
cmd/opencodereview/output.go:251
↓ 3 callersFunctionvisit
(tokens: Token[])
pages/src/utils/headingId.ts:85
↓ 3 callersMethodwaitForRepo
Wait for at least one repository (the Git extension scans asynchronously and may initially return none).
extensions/vscode/src/extension/services/GitService.ts:47
↓ 3 callersFunctionwantMeta
(t *testing.T, got capturedRequest, want llm.RequestMeta)
internal/reviewtask/retry_identity_test.go:84
↓ 3 callersMethodwhyExcluded
whyExcluded mirrors agent.whyExcluded but for ScanItem inputs.
internal/scan/agent.go:495
↓ 3 callersMethodwithShellEnv
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/CliService.kt:332
↓ 3 callersFunctionworkspaceResumeBody
(name, marker, variant string)
cmd/opencodereview/workspace_resume_e2e_test.go:48
↓ 3 callersFunctionworkspaceResumeChild
workspaceResumeChild returns the session that resumed parentID. Sessions can share a start timestamp, so the newest entry is not a reliable identifier
cmd/opencodereview/workspace_resume_e2e_test.go:212
↓ 3 callersFunctionwriteFile
(t *testing.T, dir, rel, content string)
internal/config/rules/sniffer_test.go:16
↓ 3 callersFunctionwriteGarbageExternalDiff
writeGarbageExternalDiff writes a shell script that emits non-diff output and returns its path. When git invokes it via GIT_EXTERNAL_DIFF / diff.exter
internal/diff/git_test.go:35
↓ 3 callersFunctionwriteMarkIdentityFixture
writeMarkIdentityFixture writes a session jsonl with a uuid-bearing review_item_done record (two comments, identical content) plus a legacy uuid-less
internal/viewer/handler_test.go:274
↓ 3 callersFunctionwriteRangeResumeSession
writeRangeResumeSession persists a range-mode session with the given completed file checkpoints and returns its ID. HOME must already point at a temp
cmd/opencodereview/review_resume_more_test.go:24
↓ 3 callersMethodwriteReviewItemRecord
(recordType, filePath, oldPath, newPath, fingerprint, sourceSessionID, errorMsg string, comments []model.LlmCo
internal/session/persist.go:194
↓ 3 callersFunctionwriteRulesCheckTestFile
(t *testing.T, repo, relPath, content string)
cmd/opencodereview/rules_cmd_test.go:31
↓ 3 callersFunctionwriteTarget
(fixture, name, source)
bin/ocr.test.js:132
↓ 3 callersFunctionwriteWorkspaceResumeFile
(t *testing.T, dir, name, body string)
cmd/opencodereview/workspace_resume_e2e_test.go:58
↓ 2 callersMethodAddToolFailure
AddToolFailure appends and persists a failed tool call result.
internal/session/history.go:563
↓ 2 callersMethodAddToolResult
AddToolResult appends a tool call result to this task record and writes a tool_call record to the JSONL stream.
internal/session/history.go:558
↓ 2 callersMethodApplyEffort
ApplyEffort overwrites the effort-controlled template scalars.
internal/config/template/effort.go:58
↓ 2 callersMethodApplyLanguage
ApplyLanguage injects a language directive into all system-role messages of this conversation.
internal/config/testconnection/testconnection.go:64
↓ 2 callersMethodAtLeast
AtLeast reports whether v is greater than or equal to o.
internal/gitcmd/version.go:27
↓ 2 callersMethodBedrockContext
BedrockContext reports the AWS region and profile a Bedrock client resolved, so callers can show what a request actually used. ok is false for every o
internal/llm/client.go:1350
↓ 2 callersMethodCallTool
CallTool invokes a tool on the MCP server and returns the text result.
internal/mcp/client.go:188
↓ 2 callersMethodCanonicalConfig
()
internal/config/rules/canonical_config_test.go:17
↓ 2 callersFunctionCheckGitVersion
()
internal/gitcmd/version.go:66
↓ 2 callersFunctionCheckSessionRepo
CheckSessionRepo reports whether a session may be operated on from repoDir.
internal/session/delete.go:41
↓ 2 callersFunctionClarifyResult
ClarifyResult asks the user for the missing slots.
acp/internal/intent/result.go:55
↓ 2 callersFunctionComplete
Complete returns a checkpoint signaling task completion.
internal/tool/response_message.go:21
↓ 2 callersFunctionCountTokensForModel
(text string, modelName string)
internal/llm/client.go:565
↓ 2 callersFunctionDisplayAddr
DisplayAddr rewrites a wildcard listen address (empty host, 0.0.0.0, or ::) to a localhost form so printed URLs are always openable in a browser. Non-
internal/viewer/hostguard.go:122
↓ 2 callersFunctionEndSpan
EndSpan ends the span and records error status if present.
internal/telemetry/span.go:57
← previousnext →1,201–1,300 of 7,128, ranked by callers