MCPcopy Create free account

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

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

↓ 2 callersFunctionwithTemporaryDirectory
(callback)
plugins/open-code-review/opencode/test/open-code-review.test.mjs:21
↓ 2 callersFunctionwrapByRunes
wrapByRunes splits text into lines that fit within maxWidth **rune** columns. Respects existing newlines and wraps at word boundaries.
cmd/opencodereview/output.go:144
↓ 2 callersFunctionwrapSingleRuneLine
wrapSingleRuneLine breaks one paragraph (no newlines) into rune-width-constrained lines.
cmd/opencodereview/output.go:156
↓ 1 callersMethodApplyLanguage
ApplyLanguage injects a language directive into all system-role messages of the scan template (MAIN_TASK, PLAN_TASK if set, DEDUP_TASK if set, and MEM
internal/config/template/template.go:173
↓ 1 callersMethodCollectPendingComments
CollectPendingComments awaits any async comment-processing workers and returns the aggregated comments from the collector. Safe to call once per sessi
internal/llmloop/loop.go:136
↓ 1 callersFunctionExcludedDirs
ExcludedDirs is the list of directory prefixes that scanners and diff providers should always skip. Exposed so internal/scan and other consumers can r
internal/diff/gitignore.go:6
↓ 1 callersMethodExecute
(ctx context.Context, args map[string]any)
internal/mcp/provider.go:23
↓ 1 callersMethodExecute
(_ context.Context, args map[string]any)
internal/tool/code_comment.go:53
↓ 1 callersMethodFilesReviewed
FilesReviewed returns the number of items included in this scan.
internal/scan/agent.go:166
↓ 1 callersFunctionIsAllowedExt
IsAllowedExt returns true when the given file extension is in the supported types list. The check is case-insensitive.
internal/config/allowlist/allowed_ext.go:74
↓ 1 callersMethodIsCommitMode
IsCommitMode returns true when analyzing a single commit.
internal/diff/git.go:98
↓ 1 callersFunctionIsExcludedPath
IsExcludedPath returns true when the given file path matches any default exclude pattern. Patterns support ** (recursive directory matching), * (singl
internal/config/allowlist/allowed_ext.go:88
↓ 1 callersMethodIsRangeMode
IsRangeMode returns true when comparing two refs.
internal/diff/git.go:93
↓ 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 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:263
↓ 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 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:304
↓ 1 callersFunctionaddConcurrencyFlags
(cmd *cobra.Command, concurrency, timeout, maxTools, maxGitProcs, maxTokensBudget *int)
cmd/opencodereview/shared_flags.go:40
↓ 1 callersFunctionaddPreviewFlag
(cmd *cobra.Command, target *bool)
cmd/opencodereview/shared_flags.go:56
↓ 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 callersFunctionat
(rc)
scripts/github-actions/post-review-comments.test.js:2260
↓ 1 callersFunctionbatchCallCount
()
scripts/github-actions/post-review-comments.test.js:148
↓ 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:126
↓ 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:445
↓ 1 callersFunctionbuildPreReviewSummaryBody
(totalCount, summaryComments, routedComments, warnings)
scripts/github-actions/post-review-comments.js:1550
↓ 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:1519
↓ 1 callersFunctionbuildToolInputSchema
(params map[string]any)
internal/llm/client.go:778
↓ 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:372
↓ 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:313
↓ 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 callersFunctioncooldownAndReconcile
({ github, owner, repo, prNumber, log, error, items, tag, label, labelLower })
scripts/github-actions/post-review-comments.js:1656
↓ 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 callersFunctioncreateMockProcess
()
extensions/vscode/src/extension/services/__tests__/CliService.cancel.test.ts:14
↓ 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:213
← previousnext →801–900 of 3,095, ranked by callers