Initial public release

This commit is contained in:
Bohdan Triapitsyn
2025-12-07 19:32:53 +02:00
commit 4b2edf7318
319 changed files with 81600 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import type { Part } from "@opencode-ai/sdk";
const isSyntheticPart = (part: Part | undefined): boolean => {
if (!part || typeof part !== "object") {
return false;
}
return Boolean((part as { synthetic?: boolean }).synthetic);
};
export const isFullySyntheticMessage = (parts: Part[] | undefined): boolean => {
if (!Array.isArray(parts) || parts.length === 0) {
return false;
}
return parts.every((part) => isSyntheticPart(part));
};