refactor: replace overloaded surface terminology

This commit is contained in:
Turtle
2026-07-24 19:54:25 +08:00
parent c172faed37
commit 0c708cb10d
626 changed files with 1396 additions and 1397 deletions

View File

@@ -153,7 +153,7 @@ export class PerplexitySearchProvider implements WebSearchProvider {
}
// These two predicates are intentionally local: exporting generic internals
// from the public web seam would cost more API surface than these pure checks.
// from the public web seam would add more API than these pure checks.
/* jscpd:ignore-start */
/** True for a fetch/`AbortSignal` abort, surfaced as `WEB_ABORTED`. */
function isAbortError(error: unknown): boolean {

View File

@@ -11,7 +11,7 @@ export interface PerplexityRequest {
messages: { role: 'user'; content: string }[]
}
/** One structured search result (the preferred citation surface). */
/** One structured search result (the preferred citation shape). */
export interface PerplexitySearchResult {
url: string
title?: string | null
@@ -22,7 +22,7 @@ export interface PerplexitySearchResult {
/** Perplexity's response envelope. */
export interface PerplexityResponse {
choices?: { message?: { content?: string | null } }[]
/** Structured citation surface (preferred). */
/** Structured citation data (preferred). */
search_results?: PerplexitySearchResult[]
/** URL-only citation fallback. */
citations?: string[]