MCPcopy Create free account

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

Functions3,271 in github.com/alibaba/open-code-review

↓ 3 callersMethodisPathExcluded
isPathExcluded returns true when the given relative file path should be skipped based on hardcoded dir rules or .gitignore patterns. Patterns are res
internal/diff/git.go:255
↓ 3 callersFunctionisPresetProvider
(name: string)
extensions/vscode/src/shared/providers.ts:138
↓ 3 callersFunctionisSubtaskErrorType
(warningType string)
cmd/opencodereview/output.go:57
↓ 3 callersFunctionisUserAddedOfficialModelName
(name, providerName string, registryModels []string, cfg *Config)
cmd/opencodereview/provider_tui.go:407
↓ 3 callersFunctionisUserEditMsg
isUserEditMsg reports whether msg represents user text input (typing or paste).
cmd/opencodereview/provider_tui.go:852
↓ 3 callersFunctionlistCursorPrefixForModel
(isCursor, userAdded bool)
cmd/opencodereview/provider_tui.go:1936
↓ 3 callersFunctionlistCustomProviderNames
(config: OcrConfig | null)
extensions/vscode/src/shared/configUtils.ts:165
↓ 3 callersFunctionloadCommonContext
loadCommonContext validates the working directory, loads the embedded template, raises MaxToolRequestTimes when maxTools exceeds the default, resolves
cmd/opencodereview/shared.go:51
↓ 3 callersMethodloadGitignorePatterns
loadGitignorePatterns reads and parses .gitignore patterns from the repo root.
internal/diff/git.go:230
↓ 3 callersFunctionlog
(msg)
examples/gitlab_ci/post_review.py:37
↓ 3 callersFunctionmakeBudgetDiffs
makeBudgetDiffs returns n small, non-deleted diffs that survive filterDiffs and filterLargeDiffs.
internal/agent/budget_test.go:65
↓ 3 callersFunctionmakeErr
(message, status, headers, data)
scripts/github-actions/post-review-comments.test.js:57
↓ 3 callersFunctionmakeTask
()
internal/diff/relocation_test.go:30
↓ 3 callersFunctionmapStatusCode
(code: string)
extensions/vscode/src/extension/services/gitMap.ts:4
↓ 3 callersMethodmaybeRunPlan
maybeRunPlan invokes PLAN_TASK on the file and returns a human-readable guidance string suitable for {{plan_guidance}} substitution. Returns "(no pre-
internal/scan/agent.go:613
↓ 3 callersFunctionmodelTUIEnterCustomModelName
(t *testing.T, m modelTUIModel, name string)
cmd/opencodereview/provider_tui_funcs_test.go:1011
↓ 3 callersFunctionnormalizeLine
(s: string)
extensions/vscode/src/extension/providers/commentAnchor.ts:52
↓ 3 callersFunctionnormalizeModelList
(models []string)
cmd/opencodereview/config_cmd.go:580
↓ 3 callersFunctionpost
(review_input)
examples/gerrit_ci/post_review.py:225
↓ 3 callersMethodpostMessage
(msg: unknown)
extensions/vscode/src/webview/bridge.ts:3
↓ 3 callersMethodprepareModelSelection
(providerName, configModel string)
cmd/opencodereview/provider_tui.go:511
↓ 3 callersFunctionprintWizardCancelled
printWizardCancelled prints the standard Esc-cancel message for config wizards. changesDescription is a short noun phrase, e.g. "Configuration changes
cmd/opencodereview/provider_cmd.go:56
↓ 3 callersFunctionreadJSONLLines
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:206
↓ 3 callersMethodrecordWarning
(warningType, file, message string)
internal/scan/agent.go:209
↓ 3 callersMethodreloadConfigAfterSaveFailure
reloadConfigAfterSaveFailure reloads on-disk config and refreshes derived provider TUI state so the UI matches persisted data after a failed save. Ret
cmd/opencodereview/provider_tui.go:1576
↓ 3 callersMethodreloadConfigAfterSaveFailure
reloadConfigAfterSaveFailure reloads on-disk config so in-memory state matches persisted data after a failed save. Returns false when reload could not
cmd/opencodereview/provider_tui.go:2590
↓ 3 callersMethodrender
()
pages/src/components/ErrorBoundary.tsx:56
↓ 3 callersFunctionrenderModelName
(name string, isCursor, userAdded bool)
cmd/opencodereview/provider_tui.go:1953
↓ 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:133
↓ 3 callersFunctionresolveBin
(name: string)
extensions/vscode/src/extension/services/shellEnv.ts:53
↓ 3 callersFunctionresolveConfigPath
resolveConfigPath returns OCR_CONFIG_PATH when set, otherwise the default user config path. Intentionally used only by read-only commands (e.g. ocr ll
cmd/opencodereview/config_cmd.go:95
↓ 3 callersMethodresolveGitRef
(root: string, ref: string)
extensions/vscode/src/extension/services/GitService.ts:226
↓ 3 callersFunctionresolveLang
resolveLang returns the resolved language name for the instruction.
internal/config/template/template.go:152
↓ 3 callersFunctionresolveNativeBinary
()
scripts/platform.js:36
↓ 3 callersFunctionresumedFromSession
(resume *session.ResumeState)
internal/agent/agent.go:1085
↓ 3 callersFunctionrollbackCfgActiveModel
(cfg *Config, providerName, prevModel string)
cmd/opencodereview/provider_tui.go:445
↓ 3 callersFunctionrouteComment
(comment, policy)
scripts/github-actions/post-review-comments.js:1438
↓ 3 callersMethodruleConfigSHA256
ruleConfigSHA256 is the deterministic identity of the resolved rule configuration this run operates with: the resolver's effective rule-text layers (c
internal/agent/agent.go:859
↓ 3 callersMethodrun
(opts: CliRunOptions, cb: SessionCallbacks)
extensions/vscode/src/extension/services/ReviewSession.ts:21
↓ 3 callersFunctionrunConfigSet
(key, value string)
cmd/opencodereview/config_cmd.go:102
↓ 3 callersFunctionrunSessionList
()
cmd/opencodereview/session_cmd.go:60
↓ 3 callersFunctionrunSessionListCompat
runSessionListCompat provides test compatibility for old-style runSessionList([]string{...}) calls.
cmd/opencodereview/compat_test.go:53
↓ 3 callersFunctionrunSessionShow
(sessionID string)
cmd/opencodereview/session_cmd.go:87
↓ 3 callersFunctionrunSessionShowCompat
runSessionShowCompat provides test compatibility for old-style runSessionShow([]string{...}) calls.
cmd/opencodereview/compat_test.go:70
↓ 3 callersMethodrun_main_with_captured_poster
Run main() with make_poster mocked; return (rc, captured_auth_header).
examples/gitlab_ci/post_review_test.py:833
↓ 3 callersFunctionsavedSecretReplaceHint
savedSecretReplaceHint builds the replace hint text without leading indent.
cmd/opencodereview/provider_tui.go:2373
↓ 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:155
↓ 3 callersMethodsetStatus
(index: number, status: CommentStatus)
extensions/vscode/src/extension/providers/CommentProvider.ts:176
↓ 3 callersMethodshouldReview
shouldReview applies the filter algorithm via whyExcluded.
internal/agent/agent.go:1417
↓ 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:173
↓ 3 callersFunctionsplitAndNormalize
splitAndNormalize splits code text into lines and normalizes each one.
internal/diff/resolver.go:217
↓ 3 callersFunctionsplitBindHost
splitBindHost returns the host portion of a listen address as passed to http.Server.Addr. Empty input returns "".
internal/viewer/hostguard.go:106
↓ 3 callersFunctionstripEmptyPlanBlock
stripEmptyPlanBlock removes the "### Review Plan …\n{{plan_guidance}}\n\n" wrapper from a MAIN_TASK user message when the plan phase produced no guida
internal/agent/util.go:32
↓ 3 callersFunctionstripThinkTags
stripThinkTags removes reasoning wrapper tags from content.
internal/llm/client.go:875
↓ 3 callersMethodsyncModelsFromConfig
()
cmd/opencodereview/provider_tui.go:2603
↓ 3 callersFunctiontoConfigSetArgs
(key: string, value: string)
extensions/vscode/src/extension/services/configParse.ts:47
↓ 3 callersMethodtriggerAsyncCompression
triggerAsyncCompression kicks off a background compression job for the conversation owning st. A no-op when a job is already pending — the check-and-s
internal/llmloop/compression.go:277
↓ 3 callersFunctionvisibleRunesLen
(runes []rune)
cmd/opencodereview/output.go:218
↓ 3 callersMethodwaitForRepo
等待至少一个仓库就绪(git 扩展异步扫描,首次可能为空)。
extensions/vscode/src/extension/services/GitService.ts:44
↓ 3 callersMethodwhyExcluded
whyExcluded mirrors agent.whyExcluded but for ScanItem inputs.
internal/scan/agent.go:374
↓ 3 callersFunctionwithEnv
(env, fn)
scripts/github-actions/post-review-comments.test.js:82
↓ 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:30
↓ 3 callersMethodwriteReviewItemRecord
(recordType, filePath, oldPath, newPath, fingerprint, sourceSessionID, errorMsg string, comments []model.LlmCo
internal/session/persist.go:181
↓ 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:456
↓ 2 callersMethodApplyLanguage
ApplyLanguage injects a language directive into all system-role messages of this conversation.
internal/config/testconnection/testconnection.go:47
↓ 2 callersFunctionBuildToolDefs
BuildToolDefs converts toolsconfig.ToolConfigEntry slice into []llm.ToolDef, filtering by phase (planOnly=true for plan_task, false for main_task).
internal/agent/agent.go:1562
↓ 2 callersFunctionComplete
Complete returns a checkpoint signaling task completion.
internal/tool/response_message.go:18
↓ 2 callersFunctionCountTokensForModel
(text string, modelName string)
internal/llm/client.go:273
↓ 2 callersFunctionEndSpan
EndSpan ends the span and records error status if present.
internal/telemetry/span.go:54
↓ 2 callersFunctionEventf
Eventf is like Event but includes a message attribute.
internal/telemetry/events.go:31
↓ 2 callersFunctionFail
Fail returns a checkpoint signaling terminal task failure.
internal/tool/response_message.go:21
↓ 2 callersMethodFinalManifest
FinalManifest returns the frozen manifest stored for this run, or nil when the run produced none (legacy/scan, or a construction failure).
internal/session/history.go:193
↓ 2 callersFunctionFormatDuration
FormatDuration returns a human-readable duration string for console output.
internal/telemetry/events.go:64
↓ 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:24
↓ 2 callersFunctionHomeConfigPath
HomeConfigPath returns the default path to ~/.opencodereview/config.json.
internal/telemetry/config.go:125
↓ 2 callersMethodInit
()
cmd/opencodereview/provider_tui.go:2676
↓ 2 callersFunctionInitEmbeddedLoader
initEmbeddedLoader configures tiktoken to use embedded BPE data instead of fetching from network. Call this once during application startup, before an
internal/llm/embedded_loader.go:20
↓ 2 callersMethodIsKnown
IsKnown reports whether the tool is not UNKNOWN.
internal/tool/definitions.go:62
↓ 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:196
↓ 2 callersMethodLLMFailures
LLMFailures returns the total number of LLM request failures recorded during this session.
internal/session/history.go:450
↓ 2 callersFunctionLoadDefault
LoadDefault parses the embedded task.json and returns the TEST_TASK conversation.
internal/config/testconnection/testconnection.go:31
↓ 2 callersFunctionLoadFromJSON
LoadFromJSON merges telemetry settings from a JSON config file if present. This has lower priority than environment variables.
internal/telemetry/config.go:71
↓ 2 callersMethodLoadTiktokenBpe
(tiktokenBpeFile string)
internal/llm/embedded_loader.go:36
↓ 2 callersMethodName
Name returns the tool's identifier name.
internal/tool/definitions.go:59
↓ 2 callersFunctionNewCommentWorkerPool
NewCommentWorkerPool delegates to llmloop.NewCommentWorkerPool.
internal/agent/agent.go:43
↓ 2 callersFunctionNewToolResultMessage
NewToolResultMessage creates a tool-role message with the given result. Uses the OpenAI Chat Completions format: role="tool" with tool_call_id and pla
internal/llm/client.go:78
↓ 2 callersFunctionOfName
(name string)
internal/tool/definitions.go:24
↓ 2 callersFunctionParseReviewMode
ParseReviewMode returns the correct ReviewMode based on provided flag values.
internal/tool/filereader.go:31
↓ 2 callersFunctionPhaseEvent
PhaseEvent records a review phase completion with duration and optional error.
internal/telemetry/events.go:50
↓ 2 callersFunctionPrintToolCallError
PrintToolCallError prints a line when a tool fails. Example: [ocr] ✘ file_read "internal/config/rules/loader.go" failed: permission denied
internal/telemetry/events.go:104
↓ 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:98
↓ 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:104
↓ 2 callersFunctionQuiet
Quiet replaces stdout with io.Discard and returns a cleanup function. Usage: defer stdout.Quiet()() WARNING: Quiet must ONLY be called from the mai
internal/stdout/stdout.go:30
↓ 2 callersMethodRecordReviewItemReused
RecordReviewItemReused records that this run reused a checkpoint from another session.
internal/session/history.go:253
↓ 2 callersMethodRefValue
RefValue returns the git ref that should be used for reading file contents in range or commit mode. Returns ("", false) for workspace mode.
internal/tool/filereader.go:43
↓ 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:388
↓ 2 callersMethodResumeInfo
()
cmd/opencodereview/shared.go:304
↓ 2 callersFunctionRuleGroupsMarkdown
RuleGroupsMarkdown renders rule groups into a markdown section.
internal/delegate/format.go:9
↓ 2 callersMethodRunSplit
RunSplit executes a git command and returns stdout and stderr separately.
internal/gitcmd/runner.go:69
↓ 2 callersFunctionSessionsRoot
SessionsRoot returns the root directory where session JSONL files are stored.
internal/viewer/store.go:22
← previousnext →501–600 of 3,271, ranked by callers