Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,390 in github.com/alibaba/open-code-review
⨍
Functions
7,390
◇
Types & classes
806
↓ 3 callers
Method
setStatus
(index: number, status: CommentStatus)
extensions/vscode/src/extension/providers/CommentProvider.ts:179
↓ 3 callers
Function
setTestHome
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 callers
Function
shouldSkipFile
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 callers
Function
splitAndNormalize
splitAndNormalize splits code text into lines and normalizes each one.
internal/diff/resolver.go:299
↓ 3 callers
Function
splitDiffLines
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 callers
Function
stripEmptyPlanBlock
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 callers
Function
summary_tag_for
(run_tag)
examples/gitlab_ci/post_review.py:76
↓ 3 callers
Method
syncModelsFromConfig
()
cmd/opencodereview/provider_tui.go:2821
↓ 3 callers
Function
test
(name, check)
scripts/github-actions/release-contract.test.js:121
↓ 3 callers
Function
toConfigSetArgs
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigParse.kt:80
↓ 3 callers
Function
toConfigSetArgs
(key: string, value: string)
extensions/vscode/src/extension/services/configParse.ts:50
↓ 3 callers
Function
toSingleFileGroups
(diffs []model.Diff)
internal/agent/grouping.go:382
↓ 3 callers
Function
toolRoundTripNote
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 callers
Function
truncate
(s string, n int)
cmd/opencodereview/session_cmd.go:870
↓ 3 callers
Function
unquoteGitPath
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 callers
Method
untrackedFilesList
(ctx context.Context)
internal/diff/git.go:712
↓ 3 callers
Method
updateCustomProviderForm
(key string, msg tea.KeyPressMsg)
cmd/opencodereview/provider_tui.go:1055
↓ 3 callers
Method
updateDeleteModelConfirm
(key string)
cmd/opencodereview/provider_tui.go:2998
↓ 3 callers
Function
upsert_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 callers
Method
valid
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 callers
Function
validAnalysis
(input Input)
internal/behaviortask/runner_test.go:111
↓ 3 callers
Method
validateAnalysis
(analysis Analysis)
internal/behaviortask/validate.go:29
↓ 3 callers
Function
validateCheckpointPayload
(payload, { prNumber } = {})
scripts/github-actions/post-review-comments.js:3087
↓ 3 callers
Function
validateDelegateOptions
(opts *delegateOptions)
cmd/opencodereview/shared_flags.go:200
↓ 3 callers
Function
validateResumeIdentity
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 callers
Function
validateReviewOptions
(opts *reviewOptions)
cmd/opencodereview/shared_flags.go:129
↓ 3 callers
Method
verify
(ctx context.Context, token, clientID, nonce string)
internal/chatgptauth/jwt.go:97
↓ 3 callers
Function
visibleRunesLen
(runes []rune)
cmd/opencodereview/output.go:265
↓ 3 callers
Function
visit
(tokens: Token[])
pages/src/utils/headingId.ts:85
↓ 3 callers
Method
waitForRepo
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 callers
Function
wantMeta
(t *testing.T, got capturedRequest, want llm.RequestMeta)
internal/reviewtask/retry_identity_test.go:84
↓ 3 callers
Method
whyExcluded
whyExcluded mirrors agent.whyExcluded but for ScanItem inputs.
internal/scan/agent.go:495
↓ 3 callers
Method
withShellEnv
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/CliService.kt:332
↓ 3 callers
Function
workspaceResumeBody
(name, marker, variant string)
cmd/opencodereview/workspace_resume_e2e_test.go:48
↓ 3 callers
Function
workspaceResumeChild
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 callers
Function
writeFile
(t *testing.T, dir, rel, content string)
internal/config/rules/sniffer_test.go:16
↓ 3 callers
Function
writeGarbageExternalDiff
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 callers
Function
writeMarkIdentityFixture
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 callers
Function
writeRangeResumeSession
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 callers
Method
writeReviewItemRecord
(recordType, filePath, oldPath, newPath, fingerprint, sourceSessionID, errorMsg string, comments []model.LlmCo
internal/session/persist.go:212
↓ 3 callers
Function
writeRulesCheckTestFile
(t *testing.T, repo, relPath, content string)
cmd/opencodereview/rules_cmd_test.go:31
↓ 3 callers
Function
writeTarget
(fixture, name, source)
bin/ocr.test.js:132
↓ 3 callers
Function
writeWorkspaceResumeFile
(t *testing.T, dir, name, body string)
cmd/opencodereview/workspace_resume_e2e_test.go:58
↓ 2 callers
Method
AddToolFailure
AddToolFailure appends and persists a failed tool call result.
internal/session/history.go:577
↓ 2 callers
Method
AnalysisOutput
()
cmd/opencodereview/analysis.go:215
↓ 2 callers
Method
ApplyEffort
ApplyEffort overwrites the effort-controlled template scalars.
internal/config/template/effort.go:58
↓ 2 callers
Method
ApplyLanguage
ApplyLanguage injects a language directive into all system-role messages of this conversation.
internal/config/testconnection/testconnection.go:64
↓ 2 callers
Method
AtLeast
AtLeast reports whether v is greater than or equal to o.
internal/gitcmd/version.go:27
↓ 2 callers
Method
BedrockContext
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 callers
Method
CallTool
CallTool invokes a tool on the MCP server and returns the text result.
internal/mcp/client.go:188
↓ 2 callers
Method
CanonicalConfig
()
internal/config/rules/canonical_config_test.go:17
↓ 2 callers
Function
CheckGitVersion
()
internal/gitcmd/version.go:66
↓ 2 callers
Function
CheckSessionRepo
CheckSessionRepo reports whether a session may be operated on from repoDir.
internal/session/delete.go:41
↓ 2 callers
Function
ClarifyResult
ClarifyResult asks the user for the missing slots.
acp/internal/intent/result.go:55
↓ 2 callers
Function
Complete
Complete returns a checkpoint signaling task completion.
internal/tool/response_message.go:21
↓ 2 callers
Function
CountTokensForModel
(text string, modelName string)
internal/llm/client.go:576
↓ 2 callers
Function
CreateArtifacts
(repo, directory string)
internal/behaviortask/result.go:98
↓ 2 callers
Function
DisplayAddr
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 callers
Function
EndSpan
EndSpan ends the span and records error status if present.
internal/telemetry/span.go:57
↓ 2 callers
Method
Error
()
acp/internal/testutil/stub.go:98
↓ 2 callers
Function
ErrorWriter
()
internal/stdout/style.go:15
↓ 2 callers
Function
Eventf
Eventf is like Event but includes a message attribute.
internal/telemetry/events.go:33
↓ 2 callers
Function
Fail
Fail returns a checkpoint signaling terminal task failure.
internal/tool/response_message.go:24
↓ 2 callers
Method
FilesReviewed
FilesReviewed returns the number of items included in this scan.
internal/scan/agent.go:212
↓ 2 callers
Method
FinalSubmission
(ctx context.Context, request ChatRequest)
internal/llm/budget.go:14
↓ 2 callers
Function
FormatDuration
FormatDuration returns a human-readable duration string for console output.
internal/telemetry/events.go:66
↓ 2 callers
Function
GroupRules
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 callers
Method
GroupingPlan
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 callers
Function
HomeConfigPath
HomeConfigPath returns the default path to ~/.opencodereview/config.json.
internal/telemetry/config.go:128
↓ 2 callers
Function
InitEmbeddedLoader
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 callers
Function
IntentResult
IntentResult wraps a runnable intent.
acp/internal/intent/result.go:50
↓ 2 callers
Function
IsAllowedExt
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 callers
Method
IsTransition
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 callers
Function
ItemID
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 callers
Method
LLMFailures
LLMFailures returns the total number of LLM request failures recorded during this session.
internal/session/history.go:566
↓ 2 callers
Function
LoadDetailAt
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 callers
Function
LoadFromJSON
LoadFromJSON merges telemetry settings from a JSON config file if present. This has lower priority than environment variables.
internal/telemetry/config.go:74
↓ 2 callers
Method
LoadTiktokenBpe
(tiktokenBpeFile string)
internal/llm/embedded_loader.go:50
↓ 2 callers
Method
LocalForRepository
(ctx context.Context, repo string)
internal/gitcmd/runner.go:70
↓ 2 callers
Method
LocalOnly
()
internal/gitcmd/runner.go:48
↓ 2 callers
Method
Logout
(context.Context, acp.LogoutRequest)
acp/internal/adapter/agent.go:55
↓ 2 callers
Method
Message
Message renders the repair as a single warning line.
internal/tool/comment_args_repair.go:266
↓ 2 callers
Function
NewWorkspaceCodeAccess
(current, previous FileReader)
internal/tool/code_access.go:26
↓ 2 callers
Function
OpenCodeReviewPlugin
({ client, worktree })
plugins/open-code-review/opencode/open-code-review.ts:358
↓ 2 callers
Function
OpenLocalFile
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 callers
Function
ParseGitVersion
(s string)
internal/gitcmd/version.go:50
↓ 2 callers
Function
ParsePatch
(diffText string)
internal/diff/parser.go:108
↓ 2 callers
Function
PhaseEvent
PhaseEvent records a review phase completion with duration and optional error.
internal/telemetry/events.go:52
↓ 2 callers
Method
PlanRequired
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 callers
Method
Preset
Preset returns the knob set for e.
internal/config/template/effort.go:50
↓ 2 callers
Function
PrintToolCallFinished
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 callers
Method
ProjectSummary
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 callers
Method
RawOutputText
()
internal/llm/client.go:335
↓ 2 callers
Method
Read
(p []byte)
acp/internal/orchestrator/internal_test.go:19
↓ 2 callers
Method
Read
(p []byte)
acp/cmd/ocr-acp/stdio.go:22
↓ 2 callers
Method
RemoteIdentity
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 callers
Function
ResultRoot
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 callers
Method
ResumeInfo
()
cmd/opencodereview/shared.go:799
↓ 2 callers
Method
ReviewRounds
ReviewRounds returns the effective per-group round count, never below 1.
internal/config/template/template.go:57
↓ 2 callers
Function
ReviewedPaths
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
← previous
next →
1,301–1,400 of 7,390, ranked by callers