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
↓ 12 callers
Function
RequestMetaFromContext
RequestMetaFromContext returns the RequestMeta attached to ctx, if any. It is exported so the packages that stamp identity — internal/llmloop and int
internal/llm/retry_meta.go:148
↓ 12 callers
Function
Resolve
(entries []ToolConfigEntry, names []string)
internal/config/toolsconfig/toolsconfig.go:34
↓ 12 callers
Method
Resolve
(path string)
internal/config/rules/sniffer.go:27
↓ 12 callers
Method
ResolveInput
ResolveInput freezes this run's commit endpoints by asking git, following the input-mode matrix: - range: base = merge-base(from,to); head = the
internal/diff/git.go:159
↓ 12 callers
Method
Run
Run executes the full-scan pipeline: enumerate → filter → token-filter → dispatch one subtask per file → collect comments.
internal/scan/agent.go:318
↓ 12 callers
Method
SetFinalManifest
SetFinalManifest stores the frozen manifest the agent produced. It is embedded into session_end by Finalize and returned to the CLI via FinalManifest.
internal/session/history.go:220
↓ 12 callers
Method
Tool
Tool returns which tool this provider implements.
internal/tool/definitions.go:78
↓ 12 callers
Method
VisibleContent
VisibleContent extracts visible text only, never falling back to ReasoningContent. History builders must use this to avoid duplicating reasoning that
internal/llm/client.go:361
↓ 12 callers
Function
actionStepBlock
(name)
scripts/github-actions/post-review-comments.test.js:5031
↓ 12 callers
Method
apply
* Apply a suggestion, allowed only in workspace mode. Delete the marked range when suggestionCode is absent. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/providers/CommentService.kt:245
↓ 12 callers
Method
cancel
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ReviewSession.kt:85
↓ 12 callers
Method
dispatch
(ctx context.Context, name, raw string)
internal/behaviortask/runner.go:341
↓ 12 callers
Function
equalArgs
(a, b []string)
acp/internal/intent/fake_test.go:127
↓ 12 callers
Function
errAttempt
(class ErrorClass, phase FailurePhase, status int)
internal/llm/retry_report_test.go:30
↓ 12 callers
Function
generateUUID
()
internal/session/persist.go:73
↓ 12 callers
Function
initBareRepo
initBareRepo creates an empty (unborn) git repository with identity configured but no commits, returning the repo dir.
internal/diff/git_resolve_test.go:30
↓ 12 callers
Function
initPreviewRepo
(t *testing.T)
internal/agent/preview_run_test.go:22
↓ 12 callers
Function
jsonResponse
(body string)
internal/llm/raw_test.go:81
↓ 12 callers
Function
log
(msg)
examples/gitlab_ci/post_review.py:59
↓ 12 callers
Function
modelTUIIdxForName
(t *testing.T, m modelTUIModel, name string)
cmd/opencodereview/provider_tui_funcs_test.go:1140
↓ 12 callers
Function
mustUnmarshal
mustUnmarshal is a test helper that unmarshals SARIF output and fails the test on error, so malformed output produces a clear failure instead of a nil
cmd/opencodereview/sarif_test.go:24
↓ 12 callers
Function
newCompareSession
newCompareSession records one session with the given findings and returns it.
cmd/opencodereview/session_cmd_test.go:564
↓ 12 callers
Method
obj
extensions/idea/src/test/kotlin/com/alibaba/opencodereview/idea/services/ConfigDraftTest.kt:80
↓ 12 callers
Function
parseConfig
* Parses the config file content. Blank input returns null; invalid JSON throws * (caught by [ConfigService] and treated as "no configuration"). */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ConfigParse.kt:55
↓ 12 callers
Function
resolveLocale
(raw: string)
extensions/frontend/src/shared/i18n.ts:820
↓ 12 callers
Function
resultToState
Only recognized, non-failing terminal results can report an empty review. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ReviewSession.kt:20
↓ 12 callers
Function
run
({ github, context, core })
scripts/github-actions/check-pr-commit-policy.js:130
↓ 12 callers
Function
runSessionCompare
(beforeID, afterID string)
cmd/opencodereview/session_cmd.go:407
↓ 12 callers
Function
taskMessages
()
internal/llmloop/task_test.go:72
↓ 12 callers
Function
testTaskResponse
(name, arguments string)
internal/llmloop/task_test.go:26
↓ 11 callers
Function
CanonicalPath
CanonicalPath returns an absolute path with symlinks resolved.
internal/pathutil/path.go:13
↓ 11 callers
Method
Credentials
(ctx context.Context, s Store, account string)
internal/chatgptauth/oauth.go:500
↓ 11 callers
Method
Reason
Reason is the safe, human-facing sentence for a stop, and the single source of truth for it: the diff-review manifest reason and the scan subtask warn
internal/llmloop/loop.go:273
↓ 11 callers
Method
RecordReviewItemFailed
RecordReviewItemFailed persists an incomplete file-level checkpoint.
internal/session/history.go:318
↓ 11 callers
Method
SessionID
SessionID returns the current scan's persisted session ID. It returns an empty string when no session file exists.
internal/scan/agent.go:190
↓ 11 callers
Function
SetAttr
SetAttr sets a single attribute on a span.
internal/telemetry/span.go:66
↓ 11 callers
Function
Swap
Swap replaces the stdout writer with replacement and returns a restore function. It lets tests capture output written through Writer(), and lets calle
internal/stdout/stdout.go:57
↓ 11 callers
Method
TotalTokensUsed
()
cmd/opencodereview/shared.go:771
↓ 11 callers
Method
Validate
()
internal/config/template/template.go:315
↓ 11 callers
Function
WithinBase
WithinBase reports whether target is base itself or contained under base.
internal/pathutil/path.go:22
↓ 11 callers
Function
applyOfficialProviderConfig
(configPath string, cfg *Config, result providerTUIResult)
cmd/opencodereview/provider_cmd.go:273
↓ 11 callers
Method
applyResumeLine
applyResumeLine folds one record into the index. It reports an unparseable line to the caller, which decides whether that is fatal.
internal/session/resume.go:154
↓ 11 callers
Method
beginAPIKeyReplace
beginAPIKeyReplace switches from the fixed-length mask placeholder to edit mode so the next keystroke or paste fully replaces the saved key. While edi
cmd/opencodereview/provider_tui.go:899
↓ 11 callers
Function
cm
(path, content string)
internal/tool/comment_collector_test.go:12
↓ 11 callers
Function
formatReport
(result *orchestrator.Result)
acp/internal/adapter/presentation/helpers_test.go:76
↓ 11 callers
Function
freezeOne
freezeOne freezes c and returns the single listed request.
internal/llm/retry_boundary_test.go:47
↓ 11 callers
Function
gitOut
gitOut runs a git command in dir and returns its trimmed stdout, failing the test on error. Used to capture the SHAs a ResolveInput result must match.
internal/diff/git_resolve_test.go:17
↓ 11 callers
Function
http_error
(code, body=b"", reason="error")
examples/gerrit_ci/post_review_test.py:275
↓ 11 callers
Function
officialConfigModelTUI
(t *testing.T, configPath string, extraModels []string)
cmd/opencodereview/provider_tui_funcs_test.go:1055
↓ 11 callers
Function
outputRetryReportText
outputRetryReportText groups noteworthy requests by review stage. It renders only stable classes and status codes; raw provider errors stay out.
cmd/opencodereview/output.go:509
↓ 11 callers
Function
outputSARIF
outputSARIF writes a SARIF v2.1.0 document to the provided writer. The document always contains a single run with the 8 built-in category rules, one r
cmd/opencodereview/sarif.go:131
↓ 11 callers
Function
parseCheckpointMarker
(body)
scripts/github-actions/post-review-comments.js:3060
↓ 11 callers
Function
parseTemplate
(name string)
internal/viewer/server.go:326
↓ 11 callers
Function
post
(msg: WebviewToHost)
extensions/frontend/src/webview/bridge.vsc.ts:13
↓ 11 callers
Method
post
(msg: WebviewToHost)
extensions/frontend/src/webview/bridge.ts:14
↓ 11 callers
Function
requireReject
(t *testing.T, r Result)
acp/internal/intent/fake_test.go:116
↓ 11 callers
Function
resolveKeyCmd
resolveKeyCmd runs a credential-fetching shell command and returns its trimmed, single-line stdout. label names the source (e.g. `api_key_cmd for prov
internal/llm/keycmd.go:94
↓ 11 callers
Function
retryReportFixture
retryReportFixture is the report used by most rendering assertions: one request recovered after two errors, one request that never succeeded, and a to
cmd/opencodereview/retry_report_render_test.go:24
↓ 11 callers
Function
runAgentCheck
({ json = {}, dirs = {}, files = {} } = {})
scripts/github-actions/check-plugin-contract.test.js:541
↓ 11 callers
Function
runSessionRm
(cmd *cobra.Command, sessionID string)
cmd/opencodereview/session_cmd.go:602
↓ 11 callers
Method
setPending
(p *Pending)
acp/internal/intent/state.go:41
↓ 11 callers
Method
tokens
()
internal/chatgptauth/auth_test.go:181
↓ 11 callers
Function
useCompareRepo
useCompareRepo points the compare command at repoDir and restores the shared command flags afterwards.
cmd/opencodereview/session_cmd_test.go:583
↓ 11 callers
Function
useResponsive
()
pages/src/hooks/useResponsive.ts:12
↓ 11 callers
Method
whyExcluded
whyExcluded applies the static gates — binary, the built-in secret paths, user exclude/include, then the extension allowlist and default-path patterns
internal/agent/selection.go:70
↓ 11 callers
Function
writeOpenAISSE
(t *testing.T, w http.ResponseWriter, events ...string)
internal/llm/client_test.go:758
↓ 11 callers
Function
writeTempFile
writeTempFile writes content to a temporary file and returns its path.
cmd/opencodereview/background_file_test.go:16
↓ 10 callers
Method
ApplyLanguage
ApplyLanguage injects a language directive into all system-role messages across MAIN_TASK, PLAN_TASK (if set), and MEMORY_COMPRESSION_TASK.
internal/config/template/template.go:288
↓ 10 callers
Function
BuildScanArgs
BuildScanArgs constructs OCR CLI arguments from ScanIntent. Returns error if a path escapes the scan root or Extra contains a flag outside scanExtraFl
acp/internal/contract/intent.go:138
↓ 10 callers
Method
Clear
Clear drops any pending clarification. Phase 6 calls it on session/cancel and on task completion; the parser also clears it when a command replaces or
acp/internal/intent/state.go:53
↓ 10 callers
Method
Collect
Collect uses one native tool call for the entire OCR process. Log snapshots replace prior content at a bounded rate, not once per stderr line.
acp/internal/adapter/presentation/progress.go:27
↓ 10 callers
Method
CommentsForPath
CommentsForPath returns a copy of comments whose Path matches the given path.
internal/tool/comment_collector.go:41
↓ 10 callers
Method
CompletionTokenLimit
CompletionTokenLimit returns the output cap for LLM requests. Runtime prompt-limit overrides must not silently expand the model's output budget.
internal/config/template/template.go:142
↓ 10 callers
Function
FileURLString
FileURLString formats a local path and optional line as a file URL.
acp/internal/adapter/workspace/fileurl.go:25
↓ 10 callers
Function
LoadDefault
LoadDefault parses the embedded system_rules.json and resolves rule file references.
internal/config/rules/system_rules.go:93
↓ 10 callers
Function
NewManifestBuilder
NewManifestBuilder creates a builder for a run identified by runID (the canonical session ID) and operation ("review" or "scan").
internal/session/manifest.go:371
↓ 10 callers
Method
PlanEnabled
()
internal/chatgptauth/store.go:45
↓ 10 callers
Method
RecordUsage
RecordUsage adds the prompt/completion/cache tokens reported by an LLM response to the runner's aggregate counters. Used by callers (plan phase in age
internal/llmloop/loop.go:206
↓ 10 callers
Method
RegisterExcluded
RegisterExcluded requires a defined exclusion reason and an item_id outside the selected set. It rejects calls after seal or freeze and keeps the firs
internal/session/manifest.go:554
↓ 10 callers
Method
SetRunFailure
SetRunFailure records why the whole run stopped. It rejects an invalid class (so an unclassifiable stop is never silently downgraded) and a change of
internal/session/manifest.go:435
↓ 10 callers
Method
WaitBackground
WaitBackground blocks until every background job started by this Runner has returned. Background memory compression is the only such job, and cancelPe
internal/llmloop/loop.go:108
↓ 10 callers
Method
buildGrepArgs
(searchText string, caseSensitive bool, usePerlRegexp bool, noIndex bool, pathspec []string)
internal/tool/code_search.go:68
↓ 10 callers
Method
buildOpenAIParams
buildOpenAIParams converts the shared ChatRequest into OpenAI SDK parameters.
internal/llm/client.go:900
↓ 10 callers
Function
effectivePath
(d model.Diff)
internal/agent/preview.go:129
↓ 10 callers
Function
encodeRepoPath
(p string)
internal/session/persist.go:86
↓ 10 callers
Function
escapedCount
escapedCount reads the escaped-character count out of a repair description, reporting zero for a declined repair so assertions stay compact.
internal/tool/comment_args_repair_test.go:29
↓ 10 callers
Method
execute
(ctx context.Context, name string, args map[string]any)
internal/behaviortask/code.go:150
↓ 10 callers
Function
isolateLLMConnectionTest
(t *testing.T)
cmd/opencodereview/provider_cmd_test.go:15
↓ 10 callers
Function
makeDiff
()
internal/diff/relocation_test.go:44
↓ 10 callers
Method
mapResponsesResponse
mapResponsesResponse converts the SDK Response into the shared ChatResponse. Text output is read via the SDK's OutputText() helper (it walks all outpu
internal/llm/responses_client.go:516
↓ 10 callers
Function
matchConsecutive
matchConsecutive scans sideLines for a consecutive run matching all targetLines.
internal/diff/resolver.go:230
↓ 10 callers
Function
mockCore
()
scripts/github-actions/post-review-comments.test.js:405
↓ 10 callers
Function
newManifestFlowAgent
(t *testing.T, diffs []model.Diff, resume *session.ResumeState)
internal/agent/manifest_integration_test.go:69
↓ 10 callers
Function
outputJSONWithWarnings
(comments []model.LlmComment, warnings []agent.AgentWarning, filesReviewed, inputTokens, outputTokens, totalT
cmd/opencodereview/output.go:392
↓ 10 callers
Function
partitionMessages
partitionMessages divides messages into frozen, compress, and active zones. Frozen zone is always messages[0:2]. Active zone preserves the K most rece
internal/llmloop/compression.go:82
↓ 10 callers
Method
recordWarning
recordWarning adds a non-fatal warning to the agent's warning list.
internal/agent/agent.go:551
↓ 10 callers
Function
renderComment
(comment model.LlmComment, out io.Writer)
cmd/opencodereview/output.go:128
↓ 10 callers
Function
resolveLogLines
(core)
scripts/github-actions/post-review-comments.test.js:6213
↓ 10 callers
Function
resolveUsage
resolveUsage parses raw JSON bytes into a map and extracts token usage by probing configured paths sequentially. Returns nil if no total_tokens found.
internal/llm/usage_resolver.go:76
↓ 10 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/agent/test_home_test.go:13
← previous
next →
301–400 of 7,390, ranked by callers