refactor(acp): modularize monolithic acpClient into specialized files (#26143)

This commit is contained in:
Sri Pasumarthi
2026-04-29 07:51:01 -07:00
committed by GitHub
parent c7d5fcff95
commit c2e5b28e94
27 changed files with 2301 additions and 3202 deletions
+12
View File
@@ -179,3 +179,15 @@ export function appendToLastTextPart(
return newPrompt;
}
/**
* Type guard to determine if a Part is a TextPart.
*/
export function isTextPart(part: unknown): part is { text: string } {
return (
typeof part === 'object' &&
part !== null &&
'text' in part &&
typeof (part as { text: unknown }).text === 'string'
);
}