feat: initial implementation of chat in terminal from stream.place

This commit is contained in:
Stevan Freeborn committed 2026-08-26 21:32:59 -05:00
commit 689304656f
39 files changed
+4243

No files matched your search

+59
View File
@@ -0,0 +1,59 @@
{
"lexicon": 1,
"id": "place.stream.chat.message",
"defs": {
"main": {
"type": "record",
"description": "Record containing a Streamplace chat message.",
"key": "tid",
"record": {
"type": "object",
"required": ["text", "createdAt", "streamer"],
"properties": {
"text": {
"type": "string",
"maxLength": 3000,
"maxGraphemes": 300,
"description": "The primary message content. May be an empty string, if there are embeds."
},
"createdAt": {
"type": "string",
"format": "datetime",
"description": "Client-declared timestamp when this message was originally created."
},
"facets": {
"type": "array",
"description": "Annotations of text (mentions, URLs, etc)",
"items": {
"type": "ref",
"ref": "place.stream.richtext.facet"
}
},
"streamer": {
"type": "string",
"format": "did",
"description": "The DID of the streamer whose chat this is."
},
"reply": {
"type": "ref",
"ref": "#replyRef"
}
}
}
},
"replyRef": {
"type": "object",
"required": ["root", "parent"],
"properties": {
"root": {
"type": "ref",
"ref": "com.atproto.repo.strongRef"
},
"parent": {
"type": "ref",
"ref": "com.atproto.repo.strongRef"
}
}
}
}
}
+27
View File
@@ -0,0 +1,27 @@
{
"lexicon": 1,
"id": "place.stream.richtext.facet",
"defs": {
"main": {
"type": "object",
"description": "Annotation of a sub-string within rich text in a livestream chat message.",
"required": ["index", "features"],
"properties": {
"index": {
"type": "ref",
"ref": "app.bsky.richtext.facet#byteSlice"
},
"features": {
"type": "array",
"items": {
"type": "union",
"refs": [
"app.bsky.richtext.facet#mention",
"app.bsky.richtext.facet#link"
]
}
}
}
}
}
}