Load workflows from GLTF files (#3169)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Christian Byrne
2025-03-20 17:55:51 -07:00
committed by GitHub
parent 5b730517a3
commit 4dad89369a
8 changed files with 381 additions and 1 deletions

View File

@@ -43,3 +43,38 @@ export type TextRange = {
start: number
end: number
}
export enum ASCII {
GLTF = 0x46546c67,
JSON = 0x4e4f534a
}
export enum GltfSizeBytes {
HEADER = 12,
CHUNK_HEADER = 8
}
export type GltfHeader = {
magicNumber: number
gltfFormatVersion: number
totalLengthBytes: number
}
export type GltfChunkHeader = {
chunkLengthBytes: number
chunkTypeIdentifier: number
}
export type GltfExtras = {
workflow?: string | object
prompt?: string | object
[key: string]: any
}
export type GltfJsonData = {
asset?: {
extras?: GltfExtras
[key: string]: any
}
[key: string]: any
}