MCPcopy Create free account

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

Functions4,075 in github.com/alibaba/open-code-review

↓ 3 callersFunctionrunSessionListCompat
runSessionListCompat provides test compatibility for old-style runSessionList([]string{...}) calls.
cmd/opencodereview/compat_test.go:56
↓ 3 callersFunctionrunSessionShow
(sessionID string)
cmd/opencodereview/session_cmd.go:148
↓ 3 callersFunctionrunSessionShowCompat
runSessionShowCompat provides test compatibility for old-style runSessionShow([]string{...}) calls.
cmd/opencodereview/compat_test.go:73
↓ 3 callersFunctionsanitizeMetadata
(value)
scripts/github-actions/post-review-comments.js:1362
↓ 3 callersFunctionsanitizeRetryCodes
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:752
↓ 3 callersFunctionsarifFingerprints
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 callersFunctionsavedSecretReplaceHint
savedSecretReplaceHint builds the replace hint text without leading indent.
cmd/opencodereview/provider_tui.go:2383
↓ 3 callersMethodscanItemFingerprint
(it model.ScanItem)
internal/scan/agent.go:248
↓ 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:158
↓ 3 callersFunctionsealRepo
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 callersFunctionsecurityHeaders
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 callersMethodsetStatus
(index: number, status: CommentStatus)
extensions/vscode/src/extension/providers/CommentProvider.ts:179
↓ 3 callersMethodshouldReview
shouldReview applies the filter algorithm via whyExcluded.
internal/agent/agent.go:1510
↓ 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:176
↓ 3 callersFunctionsplitAndNormalize
splitAndNormalize splits code text into lines and normalizes each one.
internal/diff/resolver.go:220
↓ 3 callersFunctionsplitBindHost
splitBindHost returns the host portion of a listen address as passed to http.Server.Addr. Empty input returns "".
internal/viewer/hostguard.go:109
↓ 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:1064
↓ 3 callersFunctionsummary_tag_for
(run_tag)
examples/gitlab_ci/post_review.py:71
↓ 3 callersMethodsyncModelsFromConfig
()
cmd/opencodereview/provider_tui.go:2613
↓ 3 callersFunctiontoConfigSetArgs
(key: string, value: string)
extensions/vscode/src/extension/services/configParse.ts:50
↓ 3 callersFunctiontruncate
(s string, n int)
cmd/opencodereview/session_cmd.go:426
↓ 3 callersMethodupdateCustomProviderForm
(key string, msg tea.KeyPressMsg)
cmd/opencodereview/provider_tui.go:963
↓ 3 callersMethodupdateDeleteModelConfirm
(key string)
cmd/opencodereview/provider_tui.go:2790
↓ 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:1093
↓ 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 callersFunctionvisibleRunesLen
(runes []rune)
cmd/opencodereview/output.go:223
↓ 3 callersMethodwaitForRepo
等待至少一个仓库就绪(git 扩展异步扫描,首次可能为空)。
extensions/vscode/src/extension/services/GitService.ts:47
↓ 3 callersFunctionwalkSessionFile
(path string, apply func(summaryRecord))
internal/session/list.go:196
↓ 3 callersFunctionwantMeta
(t *testing.T, got capturedRequest, want llm.RequestMeta)
internal/llmloop/retry_identity_test.go:77
↓ 3 callersMethodwhyExcluded
whyExcluded mirrors agent.whyExcluded but for ScanItem inputs.
internal/scan/agent.go:468
↓ 3 callersFunctionwithEnv
(env, fn)
scripts/github-actions/post-review-comments.test.js:86
↓ 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:33
↓ 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:189
↓ 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:482
↓ 2 callersMethodApplyLanguage
ApplyLanguage injects a language directive into all system-role messages of this conversation.
internal/config/testconnection/testconnection.go:50
↓ 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:1737
↓ 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:338
↓ 2 callersFunctionEndSpan
EndSpan ends the span and records error status if present.
internal/telemetry/span.go:57
↓ 2 callersFunctionEventf
Eventf is like Event but includes a message attribute.
internal/telemetry/events.go:34
↓ 2 callersFunctionFail
Fail returns a checkpoint signaling terminal task failure.
internal/tool/response_message.go:24
↓ 2 callersFunctionFormatDuration
FormatDuration returns a human-readable duration string for console output.
internal/telemetry/events.go:67
↓ 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 callersFunctionHomeConfigPath
HomeConfigPath returns the default path to ~/.opencodereview/config.json.
internal/telemetry/config.go:128
↓ 2 callersMethodInit
()
cmd/opencodereview/provider_tui.go:2686
↓ 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:23
↓ 2 callersMethodIsKnown
IsKnown reports whether the tool is not UNKNOWN.
internal/tool/definitions.go:65
↓ 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:186
↓ 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:199
↓ 2 callersMethodLLMFailures
LLMFailures returns the total number of LLM request failures recorded during this session.
internal/session/history.go:476
↓ 2 callersFunctionLoadDefault
LoadDefault parses the embedded task.json and returns the TEST_TASK conversation.
internal/config/testconnection/testconnection.go:34
↓ 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 callersFunctionLoadReviewResumeState
LoadReviewResumeState replays a review session, dropping records it cannot parse. Review reuse is gated on the parent manifest rather than on these li
internal/session/resume.go:107
↓ 2 callersMethodLoadTiktokenBpe
(tiktokenBpeFile string)
internal/llm/embedded_loader.go:39
↓ 2 callersMethodName
Name returns the tool's identifier name.
internal/tool/definitions.go:62
↓ 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:84
↓ 2 callersFunctionOfName
(name string)
internal/tool/definitions.go:27
↓ 2 callersFunctionOpenCodeReviewPlugin
({ client, worktree })
plugins/open-code-review/opencode/open-code-review.ts:294
↓ 2 callersFunctionPhaseEvent
PhaseEvent records a review phase completion with duration and optional error.
internal/telemetry/events.go:53
↓ 2 callersFunctionPreview
Preview loads diffs and applies the filter algorithm, returning structured preview data without dispatching any LLM calls. It builds none of the revi
internal/agent/preview.go:68
↓ 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:107
↓ 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:101
↓ 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:114
↓ 2 callersMethodReasoningContent
ReasoningContent extracts the reasoning content of the first choice, if any.
internal/llm/client.go:177
↓ 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:46
↓ 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:414
↓ 2 callersMethodResumeInfo
()
cmd/opencodereview/shared.go:350
↓ 2 callersFunctionRuleGroupsMarkdown
RuleGroupsMarkdown renders rule groups into a markdown section.
internal/delegate/format.go:12
↓ 2 callersMethodRunManifest
RunManifest returns the immutable coverage snapshot produced for this review, or nil when manifest construction failed. The scan path deliberately ret
internal/agent/agent.go:421
↓ 2 callersMethodRunSplit
RunSplit executes a git command and returns stdout and stderr separately.
internal/gitcmd/runner.go:72
↓ 2 callersMethodSealed
Sealed reports whether the selected set has been sealed.
internal/session/manifest.go:545
↓ 2 callersFunctionStartToolSpan
StartToolSpan creates a span for a tool execution with standard attributes.
internal/telemetry/span.go:87
↓ 2 callersMethodStream
Stream acquires the semaphore, starts a git command, and passes its stdout as an io.Reader to consume. The semaphore is held for the full duration. co
internal/gitcmd/runner.go:93
↓ 2 callersMethodToolCalls
ToolCalls extracts tool calls from the first choice.
internal/llm/client.go:169
↓ 2 callersMethodToolDefsByPhase
ToolDefsByPhase returns the parsed tool definitions filtered by phase. planOnly=true returns only tools with plan_task:true. planOnly=false returns on
internal/config/toolsconfig/toolsconfig.go:48
↓ 2 callersMethodWarnings
Warnings returns the warnings recorded by the LLM runner.
internal/scan/agent.go:221
↓ 2 callersMethodWriteSessionStart
WriteSessionStart writes the initial session_start record.
internal/session/persist.go:136
↓ 2 callersFunction_api_request_once
Single GitLab API attempt. Returns a rich result dict (no retry).
examples/gitlab_ci/post_review.py:591
↓ 2 callersFunction_api_request_with_retry
Make a GitLab API request with retry on rate-limit and transient errors. Used for reads and note writes (discussions go through the idempotency-a
examples/gitlab_ci/post_review.py:688
↓ 2 callersFunction_compute_retry_delay
Compute a retry delay (seconds) for a failed attempt, or None if not retryable. Order: Retry-After header -> wait-until-reset (primary limit exha
examples/gitlab_ci/post_review.py:639
↓ 2 callersFunction_field
Return the first present, non-empty field among several possible key names.
examples/codeup_ci/post_review.py:116
↓ 2 callersFunction_get_header
Case-insensitive header lookup.
examples/gitlab_ci/post_review.py:570
↓ 2 callersFunction_parse_rate_limit_header
(headers, name)
examples/gitlab_ci/post_review.py:581
↓ 2 callersMethod_print
(self, kind, discussion)
examples/gitlab_ci/post_review.py:1019
↓ 2 callersFunction_truncate_error
Collapse whitespace and cap length so log lines stay readable.
examples/gitlab_ci/post_review.py:1065
↓ 2 callersFunctionaddBackgroundFlags
(cmd *cobra.Command, background, backgroundFile *string)
cmd/opencodereview/shared_flags.go:27
↓ 2 callersFunctionaddDiffFlags
(cmd *cobra.Command, from, to, commit *string)
cmd/opencodereview/shared_flags.go:21
↓ 2 callersFunctionaddModelFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:52
↓ 2 callersMethodaddNextMessage
addNextMessage extends the conversation with the assistant message and tool responses, applying three-zone compression at the soft (60%) and warning (
internal/llmloop/loop.go:649
↓ 2 callersFunctionaddProviderFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:56
↓ 2 callersFunctionaddToolsFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:60
↓ 2 callersMethodadjustModelIdxAfterDelete
()
cmd/opencodereview/provider_tui.go:1572
↓ 2 callersMethodadjusted
(file: string, line: number)
extensions/vscode/src/extension/providers/lineOffset.ts:13
↓ 2 callersFunctionallTools
()
internal/tool/definitions.go:36
↓ 2 callersMethodapply
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:141
↓ 2 callersFunctionapplyConfigEntries
(base: RawConfig, entries: ConfigEntry[])
extensions/vscode/src/extension/services/configDraft.ts:144
↓ 2 callersMethodapplyCreateCustomProvider
()
cmd/opencodereview/provider_tui.go:1122
↓ 2 callersFunctionapplyLanguage
applyLanguage appends instruction to all system-role messages in conv.
internal/config/template/template.go:166
← previousnext →701–800 of 4,075, ranked by callers