Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/open-code-review
/ functions
Functions
7,169 in github.com/alibaba/open-code-review
⨍
Functions
7,169
◇
Types & classes
774
↓ 3 callers
Function
readFileOrNull
(abs, { maxBytes = MAX_SCAN_BYTES } = {})
scripts/github-actions/check-plugin-contract.js:749
↓ 3 callers
Function
readJSONLLines
readJSONLLines visits each physical JSONL record without bufio.Scanner's fixed token ceiling. session_end embeds the complete run manifest and can leg
internal/viewer/store.go:222
↓ 3 callers
Function
readWorkspaceFileForDiffWithLimit
(repoDir, relPath string, maxSize int64)
internal/diff/workspace_file.go:23
↓ 3 callers
Method
recordWarning
(warningType, file, message string)
internal/scan/agent.go:250
↓ 3 callers
Function
recordedRepoDir
recordedRepoDir returns the working directory a session recorded, and whether it had one.
internal/session/delete.go:97
↓ 3 callers
Function
registryModelsForProvider
(name string, fallback []string)
cmd/opencodereview/provider_tui.go:456
↓ 3 callers
Function
reloadAfterChunkError
()
pages/src/components/ErrorBoundary.tsx:34
↓ 3 callers
Method
render
()
pages/src/components/ErrorBoundary.tsx:69
↓ 3 callers
Function
renderKotlin
(providers []llm.Provider)
internal/llm/gen/kotlin.go:36
↓ 3 callers
Function
renderModelName
(name string, isCursor, userAdded bool)
cmd/opencodereview/provider_tui.go:2131
↓ 3 callers
Function
repairSerializedComments
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 callers
Function
repairedCommentsAcceptable
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 callers
Function
replayStreamedToolCall
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 callers
Function
resolveAllowedHostsFromEnv
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 callers
Function
resolveBackgroundFilePath
(repoDir, path string)
cmd/opencodereview/background_file.go:25
↓ 3 callers
Function
resolveBin
(name: string)
extensions/vscode/src/extension/services/shellEnv.ts:56
↓ 3 callers
Function
resolveChatGPT
(cfg configFile, entry providerEntryConfig, override string, ctx context.Context)
internal/llm/chatgpt.go:33
↓ 3 callers
Function
resolveColorFor
(writer io.Writer)
cmd/opencodereview/color.go:64
↓ 3 callers
Function
resolveConversation
(m manifestConversation)
internal/config/template/template.go:191
↓ 3 callers
Method
resolveGitRef
(root: string, ref: string)
extensions/vscode/src/extension/services/GitService.ts:229
↓ 3 callers
Function
resolveIn
resolveIn builds a real resolver for dir/ref and resolves path.
internal/config/rules/sniffer_test.go:71
↓ 3 callers
Function
resolveInputExpressions
(value, values, stepOutputs = {})
scripts/github-actions/action-contract.test.js:179
↓ 3 callers
Function
resolveLang
resolveLang returns the resolved language name for the instruction.
internal/config/template/template.go:279
↓ 3 callers
Function
resolveNativeBinary
()
scripts/platform.js:39
↓ 3 callers
Function
resumedFromSession
(resume *session.ResumeState)
internal/agent/agent.go:1335
↓ 3 callers
Function
retryAttemptChain
retryAttemptChain renders one logical request as a short human-readable chain.
cmd/opencodereview/output.go:567
↓ 3 callers
Function
retryTestGit
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 callers
Method
rollbackModelDelete
(prevEntry ProviderEntry, prevCfgModel string)
cmd/opencodereview/provider_tui.go:486
↓ 3 callers
Function
routeComment
(comment, policy)
scripts/github-actions/post-review-comments.js:2351
↓ 3 callers
Method
run
(ctx context.Context, request Request, limits Limits, events chan Event, outcomes chan<- Outcome)
acp/internal/orchestrator/runner.go:17
↓ 3 callers
Method
runIdentity
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 callers
Function
runOcr
(args: string[], options: RunOptions)
plugins/open-code-review/opencode/open-code-review.ts:168
↓ 3 callers
Function
runPrRefs
(sources)
scripts/github-actions/action-contract.test.js:387
↓ 3 callers
Function
runReviewWithAudience
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 callers
Function
runSessionExport
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 callers
Function
runSessionList
()
cmd/opencodereview/session_cmd.go:274
↓ 3 callers
Function
runSessionShow
(sessionID string)
cmd/opencodereview/session_cmd.go:314
↓ 3 callers
Function
sameCommentSpan
(cur, other, threshold)
scripts/github-actions/post-review-comments.js:1446
↓ 3 callers
Function
sanitizeMetadata
(value)
scripts/github-actions/post-review-comments.js:2205
↓ 3 callers
Function
sanitizeRetryCodes
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 callers
Function
sarifFingerprints
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 callers
Function
savedSecretReplaceHint
savedSecretReplaceHint builds the replace hint text without leading indent.
cmd/opencodereview/provider_tui.go:2569
↓ 3 callers
Function
scanCodeCommentResponse
(contents ...string)
internal/scan/coverage_test.go:1373
↓ 3 callers
Function
scanLines
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 callers
Function
sealRepo
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 callers
Method
secure
()
internal/chatgptauth/store.go:92
↓ 3 callers
Function
securityHeaders
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 callers
Function
selectScanItemsForTest
(t *testing.T, a *Agent, items []model.ScanItem)
internal/scan/agent_test.go:366
↓ 3 callers
Function
selectedScanItems
(decisions []scanSelection)
internal/scan/agent.go:451
↓ 3 callers
Function
semverGt
(a, b)
scripts/version.js:16
↓ 3 callers
Function
sensitiveHeader
(name string)
internal/llm/raw.go:149
↓ 3 callers
Method
set
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 callers
Function
setCustomProviderValue
(cfg *Config, key, value string)
cmd/opencodereview/config_cmd.go:1022
↓ 3 callers
Function
setHelperEnv
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 callers
Function
setProviderEntryField
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigDraft.kt:103
↓ 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:218
↓ 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:859
↓ 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:706
↓ 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
validateCheckpointPayload
(payload, { prNumber } = {})
scripts/github-actions/post-review-comments.js:3084
↓ 3 callers
Function
validateDelegateOptions
(opts *delegateOptions)
cmd/opencodereview/shared_flags.go:197
↓ 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:451
↓ 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:251
↓ 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:274
↓ 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:194
↓ 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:563
↓ 2 callers
Method
AddToolResult
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 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
← previous
next →
1,201–1,300 of 7,169, ranked by callers