MCPcopy Create free account

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

Functions7,599 in github.com/alibaba/open-code-review

↓ 3 callersFunctionRawLoggingEnabled
()
internal/llm/raw.go:26
↓ 3 callersMethodRecordResumeLineage
RecordResumeLineage persists the run's single resume_lineage event. A nil lineage is a non-resumed run and writes nothing.
internal/session/history.go:325
↓ 3 callersMethodRecordToolCall
(name string)
internal/llmloop/loop.go:171
↓ 3 callersMethodRecordToolFailure
(number int64, name, taskKey, errMsg string, rec *session.TaskRecord, rawArguments string, duration time.Dura
internal/llmloop/loop.go:182
↓ 3 callersMethodRemoveByPathAndIndices
RemoveByPathAndIndices removes comments for a given path whose per-path index (0-based position among all comments with that path) is in the indices s
internal/tool/comment_collector.go:96
↓ 3 callersMethodResolve
Resolve returns the rule text for a given file path. Patterns with brace expansion like "*.{go,py}" are expanded into "*.go", "*.py". The first match
internal/config/rules/system_rules.go:150
↓ 3 callersMethodResolveCommit
ResolveCommit reports whether ref resolves to a commit in the target repo.
acp/internal/intent/validate.go:17
↓ 3 callersFunctionResolveComparisonInput
ResolveComparisonInput turns every moving head ref into an immutable commit before loading the diff. Range mode computes its merge-base against frozen
internal/agent/identity.go:71
↓ 3 callersFunctionResolveConfig
ResolveConfig builds the final Config by merging defaults, JSON config, and env vars. Precedence: defaults < config.json < environment variables.
internal/telemetry/config.go:114
↓ 3 callersMethodRoundTrip
(req *http.Request)
internal/llm/chatgpt_transport_test.go:10
↓ 3 callersMethodSave
(result Result, status string)
internal/behaviortask/result.go:137
↓ 3 callersMethodSessionID
SessionID returns the current review's resumable session ID. It returns an empty string when the session file could not be created, so callers do not
internal/agent/agent.go:466
↓ 3 callersFunctionSessionsRoot
SessionsRoot returns the root directory where session JSONL files are stored.
internal/viewer/store.go:30
↓ 3 callersFunctionShutdownWithTimeout
ShutdownWithTimeout creates a timeout context and calls Shutdown.
internal/telemetry/shutdown.go:39
↓ 3 callersFunctionStartServer
StartServer binds addr and serves until the listener fails. openMode is one of OpenAuto, OpenAlways or OpenNever; callers should have run ValidateOpen
internal/viewer/server.go:45
↓ 3 callersFunctionStyleProgress
(progressColor, errorColor bool)
internal/stdout/style.go:24
↓ 3 callersMethodSubmitFor
SubmitFor is Submit plus registration under key, so AwaitKey can wait for exactly the units submitted under that key instead of the whole pool. Calle
internal/reviewtask/pool.go:60
↓ 3 callersFunctionSubmitIntentTool
SubmitIntentTool returns the tool definition sent to the parsing model.
acp/internal/intent/tool.go:96
↓ 3 callersMethodTotalCacheReadTokens
TotalCacheReadTokens returns the accumulated cache read tokens.
internal/llmloop/loop.go:120
↓ 3 callersMethodTotalCacheWriteTokens
TotalCacheWriteTokens returns the accumulated cache write tokens.
internal/llmloop/loop.go:123
↓ 3 callersMethodTotalTokensUsed
TotalTokensUsed / TotalInputTokens / ... delegate to the underlying runner.
internal/scan/agent.go:226
↓ 3 callersMethod_mock_response
(self, status=200, body=b'{"comment_biz_id": "abc"}')
examples/codeup_ci/post_review_test.py:142
↓ 3 callersFunction_num
(v)
examples/gitlab_ci/post_review.py:563
↓ 3 callersMethod_poster
(self, config_overrides=None)
examples/gitlab_ci/post_review_test.py:1269
↓ 3 callersMethod_read_with_pacing
Read with proactive pacing, mirroring the GitHub Action's readWithPacing. Reads are cheaper than writes but still consume the primary rate li
examples/gitlab_ci/post_review.py:1067
↓ 3 callersFunctionaccumulateResponseStream
accumulateResponseStream rebuilds a complete response from output-item done events and the terminal response envelope, including streams whose termina
internal/llm/responses_client.go:404
↓ 3 callersFunctionadd
(signal, handler)
bin/ocr.js:37
↓ 3 callersFunctionaddExcludeFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:48
↓ 3 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:580
↓ 3 callersFunctionaddOutputFlags
(cmd *cobra.Command, format, audience *string)
cmd/opencodereview/shared_flags.go:34
↓ 3 callersFunctionaddOutputPathFlag
addOutputPathFlag registers --output/-o: write results to a UTF-8 file instead of stdout. "" or "-" keeps stdout; a real path is created lazily on the
cmd/opencodereview/shared_flags.go:44
↓ 3 callersFunctionaddRepoFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:15
↓ 3 callersFunctionaddRuleFlag
(cmd *cobra.Command, target *string)
cmd/opencodereview/shared_flags.go:19
↓ 3 callersMethodadjustModelIdxAfterDelete
()
cmd/opencodereview/provider_tui.go:2808
↓ 3 callersFunctionanalysisTestContext
(test *testing.T, repo string)
cmd/opencodereview/analysis_test.go:87
↓ 3 callersMethodapiKeyStepCanConfirm
()
cmd/opencodereview/provider_tui.go:994
↓ 3 callersMethodappend
(message string)
acp/internal/adapter/presentation/progress_format.go:27
↓ 3 callersFunctionappend_review_info
(body, review_info)
examples/gitlab_ci/post_review.py:94
↓ 3 callersMethodapply
(index: number)
extensions/vscode/src/extension/providers/CommentProvider.ts:141
↓ 3 callersFunctionapplyExtraHeaders
applyExtraHeaders copies configured headers but never lets them clobber the auth or content headers the client manages.
acp/internal/intent/llm/client.go:281
↓ 3 callersFunctionapplyLanguage
applyLanguage appends instruction to all system-role messages in conv.
internal/config/template/template.go:270
↓ 3 callersFunctionapplyProviderDeletions
(configPath string, cfg *Config, names []string)
cmd/opencodereview/provider_cmd.go:69
↓ 3 callersFunctionapplyProviderField
(providerName string, entry *ProviderEntry, field, key, value string)
cmd/opencodereview/config_cmd.go:824
↓ 3 callersMethodapplyResume
(diffs []model.Diff)
internal/agent/agent.go:892
↓ 3 callersFunctionapplySessionStart
(summary *SessionSummary, rec map[string]any)
internal/viewer/store.go:768
↓ 3 callersFunctionassertNoSessionStore
assertNoSessionStore fails if the session store was created under home. Preview neither runs nor finalizes a review, so it must not open persistence a
cmd/opencodereview/delegate_exec_test.go:110
↓ 3 callersFunctionauthor
(login, typename)
scripts/github-actions/post-review-comments.test.js:6763
↓ 3 callersFunctionbranchRefCandidates
Builds branch ref candidates for `rev-parse --verify`: add the origin/ prefix and swap main with master. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:135
↓ 3 callersFunctionbuildGroupingIndex
buildGroupingIndex scans the grouping request messages for the numbered file list and returns an index→path map. reqMessages is the raw JSONL value (a
internal/viewer/store.go:354
↓ 3 callersFunctionbuildSummaryBody
({ total, inline, summary, skipped, routed = 0, failed, warnings, heading, scopeNote = "" })
scripts/github-actions/post-review-comments.js:2413
↓ 3 callersFunctionbuildSummaryCommentsList
buildSummaryCommentsList renders comments as a compact path-anchored markdown list suitable for embedding in the PROJECT_SUMMARY_TASK prompt. Format:
internal/scan/agent.go:957
↓ 3 callersFunctionbuildToolInputSchema
(params map[string]any)
internal/llm/client.go:1717
↓ 3 callersFunctionbuildToolRegistry
(collector *tool.CommentCollector, fr *tool.FileReader)
cmd/opencodereview/review_cmd.go:706
↓ 3 callersFunctionbuildWorkspaceFiles
* Builds the workspace file list, matching the OCR CLI's workspace mode: * `diff HEAD` first, falling back to `diff --cached` when it is empty (no HE
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:86
↓ 3 callersFunctioncallGroupingLLM
(ctx context.Context, diffs []model.Diff, client llm.LLMClient, modelName string, task *template.LlmConversati
internal/agent/grouping.go:172
↓ 3 callersMethodcapture
capture runs a git command and returns its stdout and stderr. With combined set, stderr is folded into the same pipe so relative write order is preser
internal/gitcmd/runner.go:312
↓ 3 callersFunctioncaptureDelegateStdout
(t *testing.T, fn func())
cmd/opencodereview/delegate_exec_test.go:20
↓ 3 callersFunctioncheckAPIKeyRequirement
checkAPIKeyRequirement decides whether a provider selection may be saved with no api_key. It mirrors the resolver's precedence (static api_key -> api_
cmd/opencodereview/provider_cmd.go:252
↓ 3 callersFunctioncheckAgentPluginManifests
(specs, readJson, listDirs, readFile)
scripts/github-actions/check-plugin-contract.js:661
↓ 3 callersFunctioncheckResponseStatus
checkResponseStatus turns unsuccessful response objects into errors. The Responses API can return these states with HTTP 200, so the SDK does not reje
internal/llm/responses_client.go:230
↓ 3 callersFunctioncitedObservations
(markdown string)
internal/behaviortask/validate.go:16
↓ 3 callersFunctionclassifyAttempt
classifyAttempt maps an observation to an ErrorClass and FailurePhase. A non-2xx status is the strongest available fact, so it decides the class befo
internal/llm/retry_report.go:182
↓ 3 callersFunctionclient
(pages, comparisons = [])
scripts/github-actions/check-pr-commit-policy.test.js:57
↓ 3 callersFunctioncloneCustomProvidersMap
(src map[string]ProviderEntry)
cmd/opencodereview/provider_tui.go:1355
↓ 3 callersMethodcloseWrite
closeWrite drops the parent's copy of the write end so that EOF becomes visible once every child copy is closed.
internal/gitcmd/runner.go:203
↓ 3 callersMethodcommand
(ctx context.Context, repoDir string, args ...string)
internal/gitcmd/runner.go:129
↓ 3 callersFunctioncommit
(index, message = "fix: keep CI running")
scripts/github-actions/check-pr-commit-policy.test.js:34
↓ 3 callersMethodcommit
(self, name, content=None)
scripts/github-actions/test_review_pr.py:118
↓ 3 callersFunctioncommitShowNameStatusArgs
* Arguments for `git show --name-status` when listing files changed by one commit. * * `--diff-merges=first-parent` is required: a plain `git show`
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/GitMap.kt:192
↓ 3 callersMethodconfig
(self)
examples/gitlab_ci/post_review_test.py:1503
↓ 3 callersMethodconfigPath
()
extensions/vscode/src/extension/services/ConfigService.ts:16
↓ 3 callersMethodconfirmDeleteCustomModel
()
cmd/opencodereview/provider_tui.go:1637
↓ 3 callersFunctioncontains
(list []string, want string)
internal/scan/provider_more_test.go:147
↓ 3 callersFunctioncountSessionFiles
(t *testing.T, repoDir string)
cmd/opencodereview/review_resume_more_test.go:225
↓ 3 callersMethodcpAmbientProtocol
cpProtocolIndex maps a protocol string (canonical name or legacy alias) to its index in cpProtocols. Unknown / empty values default to the OpenAI Chat
cmd/opencodereview/provider_tui.go:200
↓ 3 callersFunctioncpProtocolIndex
(protocol string)
cmd/opencodereview/provider_tui.go:204
↓ 3 callersMethodcustomProviderNameTaken
(name string)
cmd/opencodereview/provider_tui.go:225
↓ 3 callersFunctioncustomStepfunModelTUI
(t *testing.T, configPath string, models []string)
cmd/opencodereview/provider_tui_test.go:1539
↓ 3 callersFunctiondecodeResult
(args []string, stdout []byte)
acp/internal/orchestrator/decode.go:15
↓ 3 callersFunctiondeleteCustomProvider
deleteCustomProvider removes a custom provider from cfg in memory. Returns true if the deleted provider was the active one.
cmd/opencodereview/config_cmd.go:290
↓ 3 callersFunctiondiagnosticText
(text string, auth *Auth)
internal/chatgptauth/api_error.go:37
↓ 3 callersFunctiondiff_inventory
Build a diff inventory for ``path`` from ``{new_line: (type, old_line)}``.
examples/gitlab_ci/post_review_test.py:64
↓ 3 callersFunctiondiffsChurn
diffsChurn returns the set's aggregate churn and its largest single-file churn. Both feed Template.PlanRequired; the aggregate alone feeds Template.Gr
internal/agent/agent.go:1442
↓ 3 callersFunctiondiffs_from
(diff_text)
examples/gitflic_ci/post_review_test.py:157
↓ 3 callersFunctiondisplayURL
displayURL builds the URL to print and hand to the browser. The host comes from the requested address, not from the listener: net.Listen resolves a h
internal/viewer/server.go:164
↓ 3 callersFunctionemitAnnotation
(level, file, message, line)
scripts/github-actions/check-plugin-contract.js:736
↓ 3 callersFunctionemitError
(file, message, line)
scripts/github-actions/check-plugin-contract.js:741
↓ 3 callersFunctionemptySHA256
emptySHA256 is the canonical digest of an empty input, which hashFields must return for an empty field sequence.
internal/agent/manifest_hash_test.go:19
↓ 3 callersMethodenv
The current process environment overlaid with the login shell environment; falls back to the process environment when parsing fails. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ShellEnv.kt:50
↓ 3 callersFunctionenvFunc
(values map[string]string)
acp/internal/intent/llm/resolve_test.go:11
↓ 3 callersFunctionexecuteDelegateRule
(opts delegateOptions, paths []string)
cmd/opencodereview/delegate_cmd.go:238
↓ 3 callersFunctionfakeProbe
(map)
scripts/github-actions/check-plugin-contract.test.js:193
↓ 3 callersFunctionfindLinesByExistingCode
Find [existingCode] in file content with a sliding window; return 1-based line numbers, or null when no match exists. */
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/providers/CommentAnchor.kt:69
↓ 3 callersFunctionfindTestToolCall
findTestToolCall returns the model's call to the self-test tool, ignoring any other tool it asked for. An empty name belongs to a task that offers no
cmd/opencodereview/llm_cmd.go:198
↓ 3 callersFunctionfindingCount
(total, heading, scopeNote = "")
scripts/github-actions/post-review-comments.js:2505
↓ 3 callersFunctionfinding_count
(total, heading)
examples/gitlab_ci/post_review.py:511
↓ 3 callersFunctionfinish
()
scripts/github-actions/action-contract.test.js:75
↓ 3 callersMethodflushAndClose
()
internal/session/persist.go:481
↓ 3 callersMethodfocusCPStep
()
cmd/opencodereview/provider_tui.go:1471
↓ 3 callersMethodforShell
* Adds a shell prefix for a command (Windows: cmd.exe /c). Only for fixed-argument commands (--version and * the like); commands that carry user
extensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ShellEnv.kt:98
← previousnext →1,101–1,200 of 7,599, ranked by callers