Skip to content

Commit 7be0522

Browse files
j15zclaude
andcommitted
fix(review): attach the scope-error TSDoc to the class it documents
Two TSDoc blocks sat back to back above DocsSearchOutcome; the first describes DocsSearchScopeError, which had no doc comment of its own. Moved it to the class. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 512fec7 commit 7be0522

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

apps/sim/lib/copilot/docs/docs-search.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ export interface DocsSearchResult {
2222
similarity: number
2323
}
2424

25-
/**
26-
* Thrown when the caller scopes a search to a `path` that is not a real page or
27-
* section in the docs corpus. Surfaced verbatim so the model can correct itself
28-
* rather than reading an empty result as "the docs say nothing about this".
29-
*/
3025
/**
3126
* A search result set plus why it may be shorter than `topK`. The SQL LIMIT is
3227
* applied before the threshold and liveness filters, so these counts are what
@@ -42,6 +37,11 @@ export interface DocsSearchOutcome {
4237
droppedStale: number
4338
}
4439

40+
/**
41+
* Thrown when the caller scopes a search to a `path` that is not a real page or
42+
* section in the docs corpus. Surfaced verbatim so the model can correct itself
43+
* rather than reading an empty result as "the docs say nothing about this".
44+
*/
4545
export class DocsSearchScopeError extends Error {
4646
readonly code = 'DOCS_SEARCH_SCOPE' as const
4747
constructor(message: string) {

0 commit comments

Comments
 (0)