kletso_ui_schema 0.2.1
kletso_ui_schema: ^0.2.1 copied to clipboard
Protocol package for Kletso: JSON Schemas, hand-written Dart models and conformance fixtures for kletso.ui/v1 surfaces, kletso.events/v1 and the realtime frames.
0.2.1 — 2026-10-09 #
- Event
ui.pending(KletsoUiPending,KletsoPendingComponent): arender_uicall is streaming; carries the surface id and the component ids/types seen so far, repeated as more appear.ui.rendergainstoolCallIdto match it (KletsoUiRender.toolCallId). loadingblock:for(component type to mimic) andcount(1–12) props, so a surface can show type-specific placeholders.- Fixture
eventsPendingUi; schemas updated.
0.2.0 — 2026-10-07 #
- Voice protocol: client frames
voice.start/voice.stop/voice.commit/voice.played/voice.text(KletsoVoiceStartFrame,KletsoVoiceStopFrame, …,KletsoVoiceMode,KletsoVoiceStopReason) and binary PCM16 24 kHz audio frames (KletsoAudioFrame, kindsaudioIn0x01 /audioOut0x02,decode,rms,duration). - Events
voice.started,voice.state,voice.transcript,voice.interrupted,voice.ended(KletsoVoiceStarted,KletsoVoiceStateEvent,KletsoVoiceTranscript,KletsoVoiceInterrupted,KletsoVoiceEnded,KletsoVoiceState,KletsoVoiceEndReason) andavatar.mood(KletsoAvatarMoodEvent,KletsoMoodSource). message.*payloads carrymodality(KletsoMessageModality: text / voice).- Session bootstrap documents
voiceandavatarblocks (avatar.images: one https picture per mood, next toimageUrl). - Fixtures:
eventsVoiceTurn; JSON Schemas updated for the new frames and events.
0.1.0 — 2026-09-29 #
app.notifyevent type +KletsoAppNotificationpayload (KletsoNotificationChannel), schemaappNotificationdef (D57).ui.patchevent +KletsoUiPatch;KletsoSurface.patched, host-first/host/bindings (resolveNode(external:)).app.commandevent type +KletsoAppCommandpayload.- Built-in types map, video, audio, rating, steps, accordion, tabs, countdown, progress;
KletsoNode.allChildIds; fixtures media_hub and trip_plan. - Initial protocol package:
kletso.ui/v1surface model with validation and limits,kletso.events/v1envelope with typed payloads, realtime frames, JSON Schemas (Draft 2020-12), conformance fixtures (valid/invalid surfaces, 20-message conversation log, frames) embedded as Dart constants, fixture generators and the canonicalKletsoConversationScript.