MCPcopy Create free account

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

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

↓ 1 callersFunctionLoadSummary
LoadSummary loads a single session's Summary. Errors when the session file is missing or unreadable.
internal/session/list.go:123
↓ 1 callersFunctionMatchGitignorePattern
MatchGitignorePattern reports whether relPath matches a single gitignore-style pattern, using the simplified semantics that diff.Provider already impl
internal/diff/gitignore.go:31
↓ 1 callersFunctionNewBuiltin
(t Tool, fn func(ctx context.Context, args map[string]any) (string, error))
internal/tool/stub.go:25
↓ 1 callersFunctionOpenCodeReviewPlugin
({ client, worktree })
plugins/open-code-review/opencode/open-code-review.ts:272
↓ 1 callersMethodPrintDefaults
()
cmd/opencodereview/flags.go:61
↓ 1 callersMethodSession
Session returns the session history associated with this Agent.
internal/scan/agent.go:155
↓ 1 callersMethodSession
Session returns the session history associated with this Agent.
internal/agent/agent.go:264
↓ 1 callersMethodSessionID
SessionID returns the current scan's session id, or "" when no session has been created.
internal/scan/agent.go:158
↓ 1 callersFunctionSessionsDir
SessionsDir returns the on-disk directory that holds JSONL session files for a given repository. It does not create the directory.
internal/session/list.go:79
↓ 1 callersFunctionStartServer
(addr string)
internal/viewer/server.go:17
↓ 1 callersMethodTool
()
internal/mcp/provider.go:19
↓ 1 callersMethodTool
()
internal/tool/code_comment.go:51
↓ 1 callersMethodToolCalls
ToolCalls returns a snapshot of the per-tool call counts.
internal/llmloop/loop.go:100
↓ 1 callersMethodTotalCacheReadTokens
TotalCacheReadTokens returns the accumulated cache read tokens.
internal/llmloop/loop.go:69
↓ 1 callersMethodTotalCacheWriteTokens
TotalCacheWriteTokens returns the accumulated cache write tokens.
internal/llmloop/loop.go:72
↓ 1 callersMethodTotalTokensUsed
TotalTokensUsed returns input + output.
internal/llmloop/loop.go:75
↓ 1 callersMethodValidate
Validate checks that a ScanTemplate has the minimum fields populated.
internal/config/template/template.go:202
↓ 1 callersMethodWarnings
Warnings returns the warnings recorded by the LLM runner.
internal/scan/agent.go:189
↓ 1 callersMethodWarnings
Warnings returns a copy of the accumulated warnings.
internal/llmloop/loop.go:80
↓ 1 callersMethodWriteLLMError
WriteLLMError writes an llm_error entry recording a failed LLM request.
internal/session/persist.go:268
↓ 1 callersMethodWriteLLMRequest
WriteLLMRequest writes a request entry with the resolved messages.
internal/session/persist.go:216
↓ 1 callersMethodWriteLLMResponse
WriteLLMResponse writes a response entry with model, content, tool calls, usage.
internal/session/persist.go:238
↓ 1 callersMethodWriteReviewItemDone
WriteReviewItemDone writes a file-level resume checkpoint for a completed diff.
internal/session/persist.go:167
↓ 1 callersMethodWriteReviewItemFailed
WriteReviewItemFailed writes a file-level checkpoint for a failed diff.
internal/session/persist.go:177
↓ 1 callersMethodWriteReviewItemReused
WriteReviewItemReused writes a checkpoint reused from a previous session.
internal/session/persist.go:172
↓ 1 callersMethodWriteSessionEnd
WriteSessionEnd writes the final session_end summary record and closes the file.
internal/session/persist.go:316
↓ 1 callersMethodWriteToolCall
WriteToolCall writes a tool call result entry.
internal/session/persist.go:291
↓ 1 callersFunction_default_ref
Build an `origin/<branch>` ref from a CODEUP_*_BRANCH env var, if set.
examples/codeup_ci/post_review.py:224
↓ 1 callersFunction_env_flag
(name: str, default: bool = False)
examples/codeup_ci/post_review.py:217
↓ 1 callersFunction_get_comments
Normalize the top-level shape of ocr's JSON output to a list of comments.
examples/codeup_ci/post_review.py:105
↓ 1 callersFunction_git
(repo, *args)
examples/gitflic_ci/post_review.py:377
↓ 1 callersFunction_old_line_in_hunk
Walk a hunk's lines tracking both counters until reaching new_line.
examples/gitflic_ci/post_review.py:192
↓ 1 callersFunction_parse_rate_limit_header
Safely parse a rate-limit response header as an int.
examples/gitlab_ci/post_review.py:213
↓ 1 callersFunction_require_env
(name: str)
examples/codeup_ci/post_review.py:210
↓ 1 callersFunctionacquireLock
()
scripts/update.js:30
↓ 1 callersFunctionadd
(c)
scripts/github-actions/post-review-comments.test.js:247
↓ 1 callersFunctionappendChunk
( chunks: Uint8Array[], currentBytes: number, chunk: Uint8Array, maxBytes: number, )
plugins/open-code-review/opencode/open-code-review.ts:99
↓ 1 callersMethodapplyCreateCustomProvider
()
cmd/opencodereview/provider_tui.go:1119
↓ 1 callersFunctionbatchCallCount
()
scripts/github-actions/post-review-comments.test.js:141
↓ 1 callersFunctionbatchKeyFunc
batchKeyFunc returns the grouping key extractor for a strategy.
internal/scan/batch.go:82
↓ 1 callersFunctionbatchPostedComments
()
scripts/github-actions/post-review-comments.test.js:119
↓ 1 callersMethodbindConfigPanel
(open: (focus?: ConfigPanelFocus) => void)
extensions/vscode/src/extension/providers/SidebarProvider.ts:28
↓ 1 callersMethodbuildAnchorDeps
(root: string, ctx: ReviewContext)
extensions/vscode/src/extension/providers/CommentProvider.ts:97
↓ 1 callersMethodbuildCommentDiffUris
构造评论挂载用的 diff 两侧 URI 与挂载 ref。
extensions/vscode/src/extension/services/GitService.ts:438
↓ 1 callersFunctionbuildCreateEntries
()
extensions/vscode/src/webview/views/ConfigView.tsx:449
↓ 1 callersFunctionbuildCustomCreateSaveEntries
(params: { name: string; protocol: string; url: string; model: string; models: string; apiKey: str
extensions/vscode/src/shared/configUtils.ts:110
↓ 1 callersFunctionbuildCustomUpdateSaveEntries
(params: { name: string; protocol: string; url: string; model: string; models: string; apiKey: str
extensions/vscode/src/shared/configUtils.ts:136
↓ 1 callersFunctionbuildEditEntries
()
extensions/vscode/src/webview/views/ConfigView.tsx:459
↓ 1 callersFunctionbuildFileFilter
buildFileFilter picks the highest-priority layer that has any include/exclude configured. Priority order: custom (--rule) > project > global.
internal/config/rules/system_rules.go:293
↓ 1 callersFunctionbuildFlatDocList
()
pages/src/pages/DocsPage.tsx:104
↓ 1 callersFunctionbuildMessageXML
(msgs []llm.Message)
internal/agent/util.go:56
↓ 1 callersFunctionbuildOfficialSaveEntries
( providerName: string, model: string, apiKey: string, apiKeyChanged: boolean, )
extensions/vscode/src/shared/configUtils.ts:94
↓ 1 callersMethodbuildOpenAIParams
buildOpenAIParams converts the shared ChatRequest into OpenAI SDK parameters.
internal/llm/client.go:436
↓ 1 callersFunctionbuildPreReviewSummaryBody
(totalCount, summaryComments, routedComments, warnings)
scripts/github-actions/post-review-comments.js:1446
↓ 1 callersFunctionbuildReviewArgs
(input: ReviewInput)
plugins/open-code-review/opencode/open-code-review.ts:63
↓ 1 callersFunctionbuildSummaryBody
({ total, inline, summary, skipped, routed = 0, failed, warnings })
scripts/github-actions/post-review-comments.js:1415
↓ 1 callersFunctionbuildToolInputSchema
(params map[string]any)
internal/llm/client.go:762
↓ 1 callersFunctionbuildUrl
(pattern, vars)
scripts/install.js:83
↓ 1 callersFunctionbuild_config
Build the config dict from environment variables (with defaults). ``env`` is typically ``os.environ``; tests pass a plain dict.
examples/gitlab_ci/post_review.py:411
↓ 1 callersFunctionbuild_endpoint
Join base URL (context path kept, trailing slash tolerated) and route.
examples/gerrit_ci/post_review.py:188
↓ 1 callersFunctionbuild_review_input
Map `ocr review --format json` output to one Gerrit ReviewInput dict.
examples/gerrit_ci/post_review.py:94
↓ 1 callersFunctioncaptureConfigStderr
(t *testing.T, fn func())
cmd/opencodereview/config_cmd_test.go:1040
↓ 1 callersFunctioncaptureStderr
(t *testing.T, fn func())
internal/telemetry/events_test.go:46
↓ 1 callersFunctioncodeCommentResponse
(path string)
internal/agent/agent_test.go:56
↓ 1 callersMethodcompletionsStreaming
(ctx context.Context, params openai.ChatCompletionNewParams, opts ...openaiopt.RequestOption)
internal/llm/client.go:363
↓ 1 callersFunctioncomputeActiveZoneSize
computeActiveZoneSize returns how many trailing rounds fit within the remaining token budget after accounting for the frozen zone and the compressed s
internal/llmloop/compression.go:98
↓ 1 callersFunctioncomputeChecksum
(filePath)
scripts/install.js:142
↓ 1 callersMethodcomputeMergeBase
---- Internal helpers ----
internal/diff/git.go:259
↓ 1 callersFunctionconfigureProcessGroup
(cmd *exec.Cmd)
cmd/opencodereview/procattr_unix.go:10
↓ 1 callersMethodconfirmDeleteModel
()
cmd/opencodereview/provider_tui.go:2794
↓ 1 callersMethodconfirmDeleteOfficialModel
()
cmd/opencodereview/provider_tui.go:1522
↓ 1 callersMethodconfirmDeleteOfficialModel
()
cmd/opencodereview/provider_tui.go:2839
↓ 1 callersFunctioncontains
(s, substr string)
internal/session/resume_test.go:648
↓ 1 callersFunctioncontainsSubstring
(s, sub string)
internal/session/resume_test.go:652
↓ 1 callersFunctioncopyMessages
copyMessages returns a deep copy of a messages slice so that future mutations don't corrupt stored records.
internal/session/history.go:245
↓ 1 callersFunctioncopyMessages
(msgs []llm.Message)
internal/agent/util.go:71
↓ 1 callersFunctioncopyMessagesForJSON
copyMessagesForJSON produces a JSON-friendly slice for persistence.
internal/session/history.go:259
↓ 1 callersFunctioncountMessagesTokens
(msgs []llm.Message)
internal/agent/util.go:84
↓ 1 callersFunctioncountTokensWithEncoding
(text string, encName string)
internal/llm/client.go:261
↓ 1 callersMethodcreateGitFileUri
(relPath: string, ref: string)
extensions/vscode/src/extension/services/GitService.ts:485
↓ 1 callersFunctiondecodeFragment
(fragment: string)
pages/src/pages/DocsPage.tsx:18
↓ 1 callersMethoddeleteCustomProvider
(name: string)
extensions/vscode/src/extension/services/ConfigService.ts:56
↓ 1 callersFunctionderive_base_url
Derive the Gerrit base URL from a change URL. Modern URLs ({base}/c/{project}/+/{number}) split at "/c/", which keeps any context path; legac
examples/gerrit_ci/post_review.py:197
↓ 1 callersFunctiondescribeFiles
(s session.Summary)
cmd/opencodereview/session_cmd.go:221
↓ 1 callersFunctiondescribeHeading
(h)
scripts/github-actions/check-translation-sync.js:112
↓ 1 callersFunctiondetectBrowserLanguage
()
pages/src/i18n/context.tsx:22
↓ 1 callersFunctiondetectGitBranch
detectGitBranch returns the current git branch name for the given repo, or empty string on failure.
internal/agent/util.go:103
↓ 1 callersFunctiondetectInitialTab
(config: OcrConfig | null)
extensions/vscode/src/shared/configUtils.ts:18
↓ 1 callersFunctiondetectPlatform
()
scripts/install.js:27
↓ 1 callersMethoddispatchBatch
dispatchBatch fans out the files of a single batch concurrently and blocks until they all finish (or ctx is cancelled). Returns the number of files di
internal/scan/agent.go:466
↓ 1 callersFunctiondownloadBinary
(url, destPath)
scripts/install.js:124
↓ 1 callersFunctiondownloadText
(url)
scripts/install.js:114
↓ 1 callersMethodemptySideUri
空侧占位(等同 /dev/null),用于新增/删除文件的单侧 diff。
extensions/vscode/src/extension/services/GitService.ts:345
↓ 1 callersFunctionensureResponsesEndpoint
ensureResponsesEndpoint normalizes cfg.URL to end with /responses. The trailing /responses is kept on cfg.URL (so tests and logs see the full endpoint
internal/llm/responses_client.go:64
↓ 1 callersFunctionensureSummaryAnchor
({ github, owner, repo, prNumber, body, sticky, tag, log })
scripts/github-actions/post-review-comments.js:761
↓ 1 callersFunctionenvToCliStatus
(env: EnvCheckResult)
extensions/vscode/src/webview/configStore.ts:45
↓ 1 callersFunctionerror
(msg)
scripts/install.js:23
↓ 1 callersFunctionescapeAttr
(s: string)
pages/src/components/MarkdownRenderer.tsx:73
↓ 1 callersFunctionexactNTokens
exactNTokens builds a string that llm.CountTokens reports as exactly n tokens, failing loudly if the tokenizer disagrees so fixture drift cannot silen
internal/scan/agent_test.go:258
↓ 1 callersFunctionexactNTokens
exactNTokens builds a string that llm.CountTokens reports as exactly n tokens, failing loudly if the tokenizer disagrees so fixture drift cannot silen
internal/agent/agent_test.go:402
← previousnext →801–900 of 3,056, ranked by callers