MCPcopy Create free account

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

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

↓ 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:232
↓ 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:870
↓ 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:712
↓ 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 callersFunctionvalidAnalysis
(input Input)
internal/behaviortask/runner_test.go:111
↓ 3 callersMethodvalidateAnalysis
(analysis Analysis)
internal/behaviortask/validate.go:29
↓ 3 callersFunctionvalidateCheckpointPayload
(payload, { prNumber } = {})
scripts/github-actions/post-review-comments.js:3087
↓ 3 callersFunctionvalidateDelegateOptions
(opts *delegateOptions)
cmd/opencodereview/shared_flags.go:200
↓ 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:481
↓ 3 callersFunctionvalidateReviewOptions
(opts *reviewOptions)
cmd/opencodereview/shared_flags.go:129
↓ 3 callersMethodverify
(ctx context.Context, token, clientID, nonce string)
internal/chatgptauth/jwt.go:97
↓ 3 callersFunctionvisibleRunesLen
(runes []rune)
cmd/opencodereview/output.go:265
↓ 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:390
↓ 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:212
↓ 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:577
↓ 2 callersMethodAnalysisOutput
()
cmd/opencodereview/analysis.go:215
↓ 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:1377
↓ 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:576
↓ 2 callersFunctionCreateArtifacts
(repo, directory string)
internal/behaviortask/result.go:98
↓ 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
↓ 2 callersMethodError
()
acp/internal/testutil/stub.go:98
↓ 2 callersFunctionErrorWriter
()
internal/stdout/style.go:15
↓ 2 callersFunctionEventf
Eventf is like Event but includes a message attribute.
internal/telemetry/events.go:33
↓ 2 callersFunctionFail
Fail returns a checkpoint signaling terminal task failure.
internal/tool/response_message.go:24
↓ 2 callersMethodFilesReviewed
FilesReviewed returns the number of items included in this scan.
internal/scan/agent.go:212
↓ 2 callersMethodFinalSubmission
(ctx context.Context, request ChatRequest)
internal/llm/budget.go:14
↓ 2 callersFunctionFormatDuration
FormatDuration returns a human-readable duration string for console output.
internal/telemetry/events.go:66
↓ 2 callersFunctionGroupRules
GroupRules groups the given file paths by their resolved rule content. Files are placed in the same group only when their source, matched pattern, and
internal/delegate/rulegroup.go:27
↓ 2 callersMethodGroupingPlan
GroupingPlan picks how to partition a change set. Two thresholds cooperate, and they answer different questions. GroupingMinFiles asks whether the par
internal/config/template/template.go:130
↓ 2 callersFunctionHomeConfigPath
HomeConfigPath returns the default path to ~/.opencodereview/config.json.
internal/telemetry/config.go:128
↓ 2 callersFunctionInitEmbeddedLoader
InitEmbeddedLoader configures tiktoken to use embedded BPE data instead of fetching from network. The package init already calls it, so callers only n
internal/llm/embedded_loader.go:34
↓ 2 callersFunctionIntentResult
IntentResult wraps a runnable intent.
acp/internal/intent/result.go:50
↓ 2 callersFunctionIsAllowedExt
IsAllowedExt returns true when the given file extension is in the supported types list. The check is case-insensitive.
internal/config/allowlist/allowed_ext.go:77
↓ 2 callersMethodIsTransition
IsTransition reports whether the resume changed provider or model, which is the condition that required an explicit flag to be accepted.
internal/session/resume_identity.go:209
↓ 2 callersFunctionItemID
ItemID is the single, canonical derivation of a manifest item_id. It is content-independent: it is derived from the operation, the input mode and the
internal/session/manifest.go:201
↓ 2 callersMethodLLMFailures
LLMFailures returns the total number of LLM request failures recorded during this session.
internal/session/history.go:566
↓ 2 callersFunctionLoadDetailAt
LoadDetailAt reads a session found by its saved path, even when its original checkout no longer exists or its metadata does not record a repository.
internal/session/list.go:171
↓ 2 callersFunctionLoadFromJSON
LoadFromJSON merges telemetry settings from a JSON config file if present. This has lower priority than environment variables.
internal/telemetry/config.go:74
↓ 2 callersMethodLoadTiktokenBpe
(tiktokenBpeFile string)
internal/llm/embedded_loader.go:50
↓ 2 callersMethodLocalForRepository
(ctx context.Context, repo string)
internal/gitcmd/runner.go:70
↓ 2 callersMethodLocalOnly
()
internal/gitcmd/runner.go:48
↓ 2 callersMethodLogout
(context.Context, acp.LogoutRequest)
acp/internal/adapter/agent.go:55
↓ 2 callersMethodMessage
Message renders the repair as a single warning line.
internal/tool/comment_args_repair.go:266
↓ 2 callersFunctionNewWorkspaceCodeAccess
(current, previous FileReader)
internal/tool/code_access.go:26
↓ 2 callersFunctionOpenCodeReviewPlugin
({ client, worktree })
plugins/open-code-review/opencode/open-code-review.ts:358
↓ 2 callersFunctionOpenLocalFile
OpenLocalFile opens an existing regular file contained within root and returns its canonical path. The caller must close the file on success.
acp/internal/adapter/workspace/files.go:23
↓ 2 callersFunctionParseGitVersion
(s string)
internal/gitcmd/version.go:50
↓ 2 callersFunctionParsePatch
(diffText string)
internal/diff/parser.go:108
↓ 2 callersFunctionPhaseEvent
PhaseEvent records a review phase completion with duration and optional error.
internal/telemetry/events.go:52
↓ 2 callersMethodPlanRequired
PlanRequired reports whether a group warrants the plan phase based on its churn profile. Two thresholds cooperate: PlanModeLineThreshold gates on the
internal/config/template/template.go:70
↓ 2 callersMethodPreset
Preset returns the knob set for e.
internal/config/template/effort.go:50
↓ 2 callersFunctionPrintToolCallFinished
PrintToolCallFinished prints a line when a tool finishes successfully. Example: [ocr] ✔ file_read "internal/config/rules/loader.go" (12ms)
internal/telemetry/events.go:117
↓ 2 callersMethodProjectSummary
ProjectSummary returns the markdown project-level summary produced after all batches finish. Empty when SkipSummary is set, PROJECT_SUMMARY_TASK is ab
internal/scan/agent.go:126
↓ 2 callersMethodRawOutputText
()
internal/llm/client.go:335
↓ 2 callersMethodRead
(p []byte)
acp/internal/orchestrator/internal_test.go:19
↓ 2 callersMethodRead
(p []byte)
acp/cmd/ocr-acp/stdio.go:22
↓ 2 callersMethodRemoteIdentity
RemoteIdentity returns a stable, credential-free identity string for the repository's "origin" remote, suitable for hashing into the run manifest's re
internal/diff/git.go:481
↓ 2 callersFunctionResultRoot
ResultRoot follows the CLI contract: review paths are relative to the Git root; scan paths are relative to --repo, or the process cwd when omitted.
acp/internal/adapter/workspace/root.go:19
↓ 2 callersMethodResumeInfo
()
cmd/opencodereview/shared.go:799
↓ 2 callersMethodReviewRounds
ReviewRounds returns the effective per-group round count, never below 1.
internal/config/template/template.go:57
↓ 2 callersFunctionReviewedPaths
ReviewedPaths returns the paths a run actually decided on, or nil when the run recorded no manifest - nil tells Compare to treat every unmatched befor
internal/session/compare.go:152
← previousnext →1,301–1,400 of 7,390, ranked by callers