@simai-studio/chat 0.0.0-stage → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (261) hide show
  1. package/LICENSE.md +182 -0
  2. package/README.md +67 -2
  3. package/dist/package-receipt.json +1553 -0
  4. package/dist/set.json +107 -0
  5. package/dist/smart/chat-composer/aliases.json +67 -0
  6. package/dist/smart/chat-composer/aliases.json.gz +0 -0
  7. package/dist/smart/chat-composer/component.json +698 -0
  8. package/dist/smart/chat-composer/component.json.gz +0 -0
  9. package/dist/smart/chat-composer/css/chat-composer.css +223 -0
  10. package/dist/smart/chat-composer/css/chat-composer.css.gz +0 -0
  11. package/dist/smart/chat-composer/css/chat-composer.min.css +2 -0
  12. package/dist/smart/chat-composer/css/chat-composer.min.css.gz +0 -0
  13. package/dist/smart/chat-composer/examples.json +550 -0
  14. package/dist/smart/chat-composer/examples.json.gz +0 -0
  15. package/dist/smart/chat-composer/js/chat-composer.js +1028 -0
  16. package/dist/smart/chat-composer/js/chat-composer.js.gz +0 -0
  17. package/dist/smart/chat-composer/js/chat-composer.min.js +73 -0
  18. package/dist/smart/chat-composer/js/chat-composer.min.js.gz +0 -0
  19. package/dist/smart/chat-composer/lang/en.json +28 -0
  20. package/dist/smart/chat-composer/lang/en.json.gz +0 -0
  21. package/dist/smart/chat-composer/lang/ru.json +28 -0
  22. package/dist/smart/chat-composer/lang/ru.json.gz +0 -0
  23. package/dist/smart/chat-composer/probe.json +416 -0
  24. package/dist/smart/chat-composer/probe.json.gz +0 -0
  25. package/dist/smart/chat-composer/smart.manifest.json +651 -0
  26. package/dist/smart/chat-composer/smart.manifest.json.gz +0 -0
  27. package/dist/smart/chat-composer/static/default/busy.html +20 -0
  28. package/dist/smart/chat-composer/static/default/busy.html.gz +0 -0
  29. package/dist/smart/chat-composer/static/default/disabled.html +20 -0
  30. package/dist/smart/chat-composer/static/default/disabled.html.gz +0 -0
  31. package/dist/smart/chat-composer/static/default/files.html +99 -0
  32. package/dist/smart/chat-composer/static/default/files.html.gz +0 -0
  33. package/dist/smart/chat-composer/static/default/near-limit.html +20 -0
  34. package/dist/smart/chat-composer/static/default/near-limit.html.gz +0 -0
  35. package/dist/smart/chat-composer/static/default/reference.html +20 -0
  36. package/dist/smart/chat-composer/static/default/reference.html.gz +0 -0
  37. package/dist/smart/chat-composer/static/sheets.json +110 -0
  38. package/dist/smart/chat-composer/static/sheets.json.gz +0 -0
  39. package/dist/smart/chat-composer/studio.fixture.json +18 -0
  40. package/dist/smart/chat-composer/studio.fixture.json.gz +0 -0
  41. package/dist/smart/chat-composer/studio.scenario.json +37 -0
  42. package/dist/smart/chat-composer/studio.scenario.json.gz +0 -0
  43. package/dist/smart/chat-composer/template/default.css +198 -0
  44. package/dist/smart/chat-composer/template/default.css.gz +0 -0
  45. package/dist/smart/chat-composer/template/default.js +109 -0
  46. package/dist/smart/chat-composer/template/default.js.gz +0 -0
  47. package/dist/smart/chat-composer/template/parts.js +89 -0
  48. package/dist/smart/chat-composer/template/parts.js.gz +0 -0
  49. package/dist/smart/chat-interlocutor/aliases.json +20 -0
  50. package/dist/smart/chat-interlocutor/aliases.json.gz +0 -0
  51. package/dist/smart/chat-interlocutor/component.json +436 -0
  52. package/dist/smart/chat-interlocutor/component.json.gz +0 -0
  53. package/dist/smart/chat-interlocutor/css/chat-interlocutor.css +72 -0
  54. package/dist/smart/chat-interlocutor/css/chat-interlocutor.css.gz +0 -0
  55. package/dist/smart/chat-interlocutor/css/chat-interlocutor.min.css +2 -0
  56. package/dist/smart/chat-interlocutor/css/chat-interlocutor.min.css.gz +0 -0
  57. package/dist/smart/chat-interlocutor/examples.json +379 -0
  58. package/dist/smart/chat-interlocutor/examples.json.gz +0 -0
  59. package/dist/smart/chat-interlocutor/js/chat-interlocutor.js +531 -0
  60. package/dist/smart/chat-interlocutor/js/chat-interlocutor.js.gz +0 -0
  61. package/dist/smart/chat-interlocutor/js/chat-interlocutor.min.js +22 -0
  62. package/dist/smart/chat-interlocutor/js/chat-interlocutor.min.js.gz +0 -0
  63. package/dist/smart/chat-interlocutor/lang/en.json +13 -0
  64. package/dist/smart/chat-interlocutor/lang/en.json.gz +0 -0
  65. package/dist/smart/chat-interlocutor/lang/ru.json +13 -0
  66. package/dist/smart/chat-interlocutor/lang/ru.json.gz +0 -0
  67. package/dist/smart/chat-interlocutor/probe.json +204 -0
  68. package/dist/smart/chat-interlocutor/probe.json.gz +0 -0
  69. package/dist/smart/chat-interlocutor/smart.manifest.json +406 -0
  70. package/dist/smart/chat-interlocutor/smart.manifest.json.gz +0 -0
  71. package/dist/smart/chat-interlocutor/static/default/former.html +10 -0
  72. package/dist/smart/chat-interlocutor/static/default/former.html.gz +0 -0
  73. package/dist/smart/chat-interlocutor/static/default/grouped.html +10 -0
  74. package/dist/smart/chat-interlocutor/static/default/grouped.html.gz +0 -0
  75. package/dist/smart/chat-interlocutor/static/default/reference.html +10 -0
  76. package/dist/smart/chat-interlocutor/static/default/reference.html.gz +0 -0
  77. package/dist/smart/chat-interlocutor/static/default/single.html +10 -0
  78. package/dist/smart/chat-interlocutor/static/default/single.html.gz +0 -0
  79. package/dist/smart/chat-interlocutor/static/sheets.json +110 -0
  80. package/dist/smart/chat-interlocutor/static/sheets.json.gz +0 -0
  81. package/dist/smart/chat-interlocutor/studio.fixture.json +25 -0
  82. package/dist/smart/chat-interlocutor/studio.fixture.json.gz +0 -0
  83. package/dist/smart/chat-interlocutor/studio.scenario.json +41 -0
  84. package/dist/smart/chat-interlocutor/studio.scenario.json.gz +0 -0
  85. package/dist/smart/chat-interlocutor/template/default.css +58 -0
  86. package/dist/smart/chat-interlocutor/template/default.css.gz +0 -0
  87. package/dist/smart/chat-interlocutor/template/default.js +43 -0
  88. package/dist/smart/chat-interlocutor/template/default.js.gz +0 -0
  89. package/dist/smart/chat-message/aliases.json +125 -0
  90. package/dist/smart/chat-message/aliases.json.gz +0 -0
  91. package/dist/smart/chat-message/component.json +850 -0
  92. package/dist/smart/chat-message/component.json.gz +0 -0
  93. package/dist/smart/chat-message/css/chat-message.css +2260 -0
  94. package/dist/smart/chat-message/css/chat-message.css.gz +0 -0
  95. package/dist/smart/chat-message/css/chat-message.min.css +2 -0
  96. package/dist/smart/chat-message/css/chat-message.min.css.gz +0 -0
  97. package/dist/smart/chat-message/examples.json +1626 -0
  98. package/dist/smart/chat-message/examples.json.gz +0 -0
  99. package/dist/smart/chat-message/js/chat-message.js +5859 -0
  100. package/dist/smart/chat-message/js/chat-message.js.gz +0 -0
  101. package/dist/smart/chat-message/js/chat-message.min.js +15 -0
  102. package/dist/smart/chat-message/js/chat-message.min.js.gz +0 -0
  103. package/dist/smart/chat-message/lang/en.json +176 -0
  104. package/dist/smart/chat-message/lang/en.json.gz +0 -0
  105. package/dist/smart/chat-message/lang/ru.json +180 -0
  106. package/dist/smart/chat-message/lang/ru.json.gz +0 -0
  107. package/dist/smart/chat-message/probe.json +1051 -0
  108. package/dist/smart/chat-message/probe.json.gz +0 -0
  109. package/dist/smart/chat-message/smart.manifest.json +824 -0
  110. package/dist/smart/chat-message/smart.manifest.json.gz +0 -0
  111. package/dist/smart/chat-message/static/default/brief-card.html +2 -0
  112. package/dist/smart/chat-message/static/default/brief-card.html.gz +0 -0
  113. package/dist/smart/chat-message/static/default/brief-questions.html +2 -0
  114. package/dist/smart/chat-message/static/default/brief-questions.html.gz +0 -0
  115. package/dist/smart/chat-message/static/default/deliverables.html +2 -0
  116. package/dist/smart/chat-message/static/default/deliverables.html.gz +0 -0
  117. package/dist/smart/chat-message/static/default/document.html +13 -0
  118. package/dist/smart/chat-message/static/default/document.html.gz +0 -0
  119. package/dist/smart/chat-message/static/default/failed.html +2 -0
  120. package/dist/smart/chat-message/static/default/failed.html.gz +0 -0
  121. package/dist/smart/chat-message/static/default/feedback-reason.html +2 -0
  122. package/dist/smart/chat-message/static/default/feedback-reason.html.gz +0 -0
  123. package/dist/smart/chat-message/static/default/limit.html +2 -0
  124. package/dist/smart/chat-message/static/default/limit.html.gz +0 -0
  125. package/dist/smart/chat-message/static/default/proposal.html +40 -0
  126. package/dist/smart/chat-message/static/default/proposal.html.gz +0 -0
  127. package/dist/smart/chat-message/static/default/question.html +22 -0
  128. package/dist/smart/chat-message/static/default/question.html.gz +0 -0
  129. package/dist/smart/chat-message/static/default/reference.html +2 -0
  130. package/dist/smart/chat-message/static/default/reference.html.gz +0 -0
  131. package/dist/smart/chat-message/static/default/steps.html +2 -0
  132. package/dist/smart/chat-message/static/default/steps.html.gz +0 -0
  133. package/dist/smart/chat-message/static/default/stopped.html +2 -0
  134. package/dist/smart/chat-message/static/default/stopped.html.gz +0 -0
  135. package/dist/smart/chat-message/static/default/waiting.html +2 -0
  136. package/dist/smart/chat-message/static/default/waiting.html.gz +0 -0
  137. package/dist/smart/chat-message/static/person/person-own.html +2 -0
  138. package/dist/smart/chat-message/static/person/person-own.html.gz +0 -0
  139. package/dist/smart/chat-message/static/person/person-reply.html +2 -0
  140. package/dist/smart/chat-message/static/person/person-reply.html.gz +0 -0
  141. package/dist/smart/chat-message/static/person/person.html +12 -0
  142. package/dist/smart/chat-message/static/person/person.html.gz +0 -0
  143. package/dist/smart/chat-message/static/sheets.json +452 -0
  144. package/dist/smart/chat-message/static/sheets.json.gz +0 -0
  145. package/dist/smart/chat-message/studio.fixture.json +27 -0
  146. package/dist/smart/chat-message/studio.fixture.json.gz +0 -0
  147. package/dist/smart/chat-message/studio.scenario.json +22 -0
  148. package/dist/smart/chat-message/studio.scenario.json.gz +0 -0
  149. package/dist/smart/chat-message/template/default.css +1805 -0
  150. package/dist/smart/chat-message/template/default.css.gz +0 -0
  151. package/dist/smart/chat-message/template/default.js +27 -0
  152. package/dist/smart/chat-message/template/default.js.gz +0 -0
  153. package/dist/smart/chat-message/template/person.js +11 -0
  154. package/dist/smart/chat-message/template/person.js.gz +0 -0
  155. package/dist/smart/chat-threads/aliases.json +174 -0
  156. package/dist/smart/chat-threads/aliases.json.gz +0 -0
  157. package/dist/smart/chat-threads/component.json +1240 -0
  158. package/dist/smart/chat-threads/component.json.gz +0 -0
  159. package/dist/smart/chat-threads/css/chat-threads.css +134 -0
  160. package/dist/smart/chat-threads/css/chat-threads.css.gz +0 -0
  161. package/dist/smart/chat-threads/css/chat-threads.min.css +2 -0
  162. package/dist/smart/chat-threads/css/chat-threads.min.css.gz +0 -0
  163. package/dist/smart/chat-threads/examples.json +689 -0
  164. package/dist/smart/chat-threads/examples.json.gz +0 -0
  165. package/dist/smart/chat-threads/js/chat-threads.js +859 -0
  166. package/dist/smart/chat-threads/js/chat-threads.js.gz +0 -0
  167. package/dist/smart/chat-threads/js/chat-threads.min.js +39 -0
  168. package/dist/smart/chat-threads/js/chat-threads.min.js.gz +0 -0
  169. package/dist/smart/chat-threads/lang/en.json +18 -0
  170. package/dist/smart/chat-threads/lang/en.json.gz +0 -0
  171. package/dist/smart/chat-threads/lang/ru.json +18 -0
  172. package/dist/smart/chat-threads/lang/ru.json.gz +0 -0
  173. package/dist/smart/chat-threads/probe.json +406 -0
  174. package/dist/smart/chat-threads/probe.json.gz +0 -0
  175. package/dist/smart/chat-threads/smart.manifest.json +1159 -0
  176. package/dist/smart/chat-threads/smart.manifest.json.gz +0 -0
  177. package/dist/smart/chat-threads/static/default/activity.html +145 -0
  178. package/dist/smart/chat-threads/static/default/activity.html.gz +0 -0
  179. package/dist/smart/chat-threads/static/default/activity.skeleton.html +145 -0
  180. package/dist/smart/chat-threads/static/default/activity.skeleton.html.gz +0 -0
  181. package/dist/smart/chat-threads/static/default/archive.html +58 -0
  182. package/dist/smart/chat-threads/static/default/archive.html.gz +0 -0
  183. package/dist/smart/chat-threads/static/default/archive.skeleton.html +58 -0
  184. package/dist/smart/chat-threads/static/default/archive.skeleton.html.gz +0 -0
  185. package/dist/smart/chat-threads/static/default/avatars.html +116 -0
  186. package/dist/smart/chat-threads/static/default/avatars.html.gz +0 -0
  187. package/dist/smart/chat-threads/static/default/avatars.skeleton.html +116 -0
  188. package/dist/smart/chat-threads/static/default/avatars.skeleton.html.gz +0 -0
  189. package/dist/smart/chat-threads/static/default/empty.html +50 -0
  190. package/dist/smart/chat-threads/static/default/empty.html.gz +0 -0
  191. package/dist/smart/chat-threads/static/default/loading.html +50 -0
  192. package/dist/smart/chat-threads/static/default/loading.html.gz +0 -0
  193. package/dist/smart/chat-threads/static/default/people.html +104 -0
  194. package/dist/smart/chat-threads/static/default/people.html.gz +0 -0
  195. package/dist/smart/chat-threads/static/default/people.skeleton.html +104 -0
  196. package/dist/smart/chat-threads/static/default/people.skeleton.html.gz +0 -0
  197. package/dist/smart/chat-threads/static/default/reference.html +123 -0
  198. package/dist/smart/chat-threads/static/default/reference.html.gz +0 -0
  199. package/dist/smart/chat-threads/static/default/reference.skeleton.html +123 -0
  200. package/dist/smart/chat-threads/static/default/reference.skeleton.html.gz +0 -0
  201. package/dist/smart/chat-threads/static/default/ungrouped.html +99 -0
  202. package/dist/smart/chat-threads/static/default/ungrouped.html.gz +0 -0
  203. package/dist/smart/chat-threads/static/default/ungrouped.skeleton.html +99 -0
  204. package/dist/smart/chat-threads/static/default/ungrouped.skeleton.html.gz +0 -0
  205. package/dist/smart/chat-threads/static/sheets.json +503 -0
  206. package/dist/smart/chat-threads/static/sheets.json.gz +0 -0
  207. package/dist/smart/chat-threads/studio.fixture.json +23 -0
  208. package/dist/smart/chat-threads/studio.fixture.json.gz +0 -0
  209. package/dist/smart/chat-threads/template/default.css +113 -0
  210. package/dist/smart/chat-threads/template/default.css.gz +0 -0
  211. package/dist/smart/chat-threads/template/default.js +62 -0
  212. package/dist/smart/chat-threads/template/default.js.gz +0 -0
  213. package/dist/smart/chat-window/aliases.json +395 -0
  214. package/dist/smart/chat-window/aliases.json.gz +0 -0
  215. package/dist/smart/chat-window/component.json +2819 -0
  216. package/dist/smart/chat-window/component.json.gz +0 -0
  217. package/dist/smart/chat-window/css/chat-window.css +1509 -0
  218. package/dist/smart/chat-window/css/chat-window.css.gz +0 -0
  219. package/dist/smart/chat-window/css/chat-window.min.css +2 -0
  220. package/dist/smart/chat-window/css/chat-window.min.css.gz +0 -0
  221. package/dist/smart/chat-window/examples.json +2798 -0
  222. package/dist/smart/chat-window/examples.json.gz +0 -0
  223. package/dist/smart/chat-window/js/chat-window.js +12780 -0
  224. package/dist/smart/chat-window/js/chat-window.js.gz +0 -0
  225. package/dist/smart/chat-window/js/chat-window.min.js +1 -0
  226. package/dist/smart/chat-window/js/chat-window.min.js.gz +0 -0
  227. package/dist/smart/chat-window/lang/en.json +212 -0
  228. package/dist/smart/chat-window/lang/en.json.gz +0 -0
  229. package/dist/smart/chat-window/lang/ru.json +218 -0
  230. package/dist/smart/chat-window/lang/ru.json.gz +0 -0
  231. package/dist/smart/chat-window/probe.json +2023 -0
  232. package/dist/smart/chat-window/probe.json.gz +0 -0
  233. package/dist/smart/chat-window/smart.manifest.json +2844 -0
  234. package/dist/smart/chat-window/smart.manifest.json.gz +0 -0
  235. package/dist/smart/chat-window/static/default/archived.html +100 -0
  236. package/dist/smart/chat-window/static/default/archived.html.gz +0 -0
  237. package/dist/smart/chat-window/static/default/embedded.html +125 -0
  238. package/dist/smart/chat-window/static/default/embedded.html.gz +0 -0
  239. package/dist/smart/chat-window/static/default/greeting.html +125 -0
  240. package/dist/smart/chat-window/static/default/greeting.html.gz +0 -0
  241. package/dist/smart/chat-window/static/default/people.html +104 -0
  242. package/dist/smart/chat-window/static/default/people.html.gz +0 -0
  243. package/dist/smart/chat-window/static/default/proposal.html +161 -0
  244. package/dist/smart/chat-window/static/default/proposal.html.gz +0 -0
  245. package/dist/smart/chat-window/static/default/reference.html +123 -0
  246. package/dist/smart/chat-window/static/default/reference.html.gz +0 -0
  247. package/dist/smart/chat-window/static/default/waiting.html +123 -0
  248. package/dist/smart/chat-window/static/default/waiting.html.gz +0 -0
  249. package/dist/smart/chat-window/static/sheets.json +526 -0
  250. package/dist/smart/chat-window/static/sheets.json.gz +0 -0
  251. package/dist/smart/chat-window/studio.fixture.json +13 -0
  252. package/dist/smart/chat-window/studio.fixture.json.gz +0 -0
  253. package/dist/smart/chat-window/studio.scenario.json +95 -0
  254. package/dist/smart/chat-window/studio.scenario.json.gz +0 -0
  255. package/dist/smart/chat-window/template/default.css +1168 -0
  256. package/dist/smart/chat-window/template/default.css.gz +0 -0
  257. package/dist/smart/chat-window/template/default.js +12 -0
  258. package/dist/smart/chat-window/template/default.js.gz +0 -0
  259. package/dist/smart/rule.js +193 -0
  260. package/dist/smart/rule.js.gz +0 -0
  261. package/package.json +29 -4
@@ -0,0 +1,850 @@
1
+ {
2
+ "$comment": "The source of sf-chat-message's element plumbing (core/js/element-manifest.js); standard simai.smart-component 1.3.9, vocabulary 1.1.5. Moved from simai/ui-chat components/src/smart/chat-message (smart.manifest.json 0.3.1, ui-chat 10d376b) by the D31 move, step 5 (owner yes 2026-10-27), with the message view of component/chat it drew on (render.js, people.js as the template person, sanitize.js, the message's words of strings.js, chat.css and people.css); written by hand on the shape of sf-chat-interlocutor and sf-chat-composer (steps 3 and 4), since migration/convert-1.3.8.mjs takes only the pinned 66 and needs stand 17's output. x-decisions says how each point was decided.",
3
+ "id": "smart.chat-message",
4
+ "tag": "sf-chat-message",
5
+ "version": "1.8.0",
6
+ "kind": "leaf",
7
+ "family": "chat",
8
+ "settings": {
9
+ "message": {
10
+ "type": "object",
11
+ "optional": true,
12
+ "x-markup": "the message: for the template default an API.md Message ({id, role: user|assistant, status, html, text, sources, verification, stage, notices, proposal, brief, feedback, summary, limit_resets_at, finished_at, attachments; proposed as v1.3 and read through js/view/proposed.js: steps [{code, label, state, started_at, finished_at}], sources[].preview_url, locator {from, to}, mime, and an answer's attachments [{id, name, bytes, mime, href, preview_url}]}), for the template person a conversation message ({id, body, authorName, createdAt, isEdited, isDeleted, canEdit, canDelete, files, local}); a property or the JSON island; its texts are drawn as text and its html is sanitized; among people (1.4.0) either template also takes reactions [{emoji, count, mine}] and reply_to {id, author: {name}, text, is_deleted?}, and the default template, with display.document, speaker {kind: assistant|agent|bot, name}, asked_by {name}, canDelete and is_deleted",
13
+ "summary": "The message, a property or the JSON island; texts are drawn as text, html is sanitized. Among people (1.4.0): reactions, reply_to; for a document speaker, asked_by."
14
+ },
15
+ "display": {
16
+ "type": "object",
17
+ "default": {},
18
+ "x-markup": "what the host knows that the server does not, the 0.3 property view: wait (delayed|stopped|network), busy, feedback ({value, reason, note, asking, draft}), retried, note (confirm|cancel|repeat) and code, sources_open, steps_open (the reader's choice for an answer's steps, v1.3), brief ({live, answer}) and brief_draft; for the template person own, first, last, showName, editing ({body}), askDelete and conflict ({deleted}, 1.2.0: an edit or a delete met a newer revision); divider (1.2.0, both templates): unread draws «Новые» before the message; day (1.3.0, both templates): the words of a new day, drawn the same way above «Новые»; editLimit (1.3.0, person): the most characters the editor takes. Drafts in it (feedback.draft, brief_draft, editing.body) are written in place, so a host that keeps the object keeps them across redraws; among people (1.4.0): canReact, canReply, reacting (the emoji on its way), picker, replyLoaded, replyDeleted; for the template default document (a document without a bubble), showAuthor (false: no sign or name, one to one), canStop, askDelete, fold_open",
19
+ "summary": "What the host knows that the server does not (the 0.3 view): wait, busy, feedback, retried, note, code, sources_open, steps_open, brief, brief_draft; for person own, first, last, showName, editing, askDelete, conflict (1.2.0); divider (1.2.0); day, editLimit (1.3.0). Among people (1.4.0): canReact, canReply, reacting, picker, replyLoaded, replyDeleted; document, showAuthor, canStop, askDelete, fold_open."
20
+ },
21
+ "features": {
22
+ "type": "object",
23
+ "default": {
24
+ "feedback": true,
25
+ "proposals": true,
26
+ "memory": true,
27
+ "brief": false
28
+ },
29
+ "x-markup": "what the surface offers: the rating, a proposal's card, the memory notices and the task brief (API.md v1.2, off unless asked)",
30
+ "summary": "What the surface offers: rating, proposals, memory notices, the task brief."
31
+ }
32
+ },
33
+ "values": {},
34
+ "events": {
35
+ "retry": {
36
+ "carries": {
37
+ "id": {
38
+ "type": "id",
39
+ "optional": true
40
+ },
41
+ "key": {
42
+ "type": "string",
43
+ "optional": true
44
+ },
45
+ "kind": {
46
+ "type": "string",
47
+ "optional": true
48
+ }
49
+ },
50
+ "cancelable": true,
51
+ "x-summary": "«Повторить» (vocabulary §5 retry): a failed answer {id}; a person's unsent message {key} (its client key); a person's failed file {id, key, kind: file}.",
52
+ "summary": "«Повторить» (vocabulary §5 retry): a failed answer {id}; a person's unsent message {key} (its client key); a person's failed file {id, key, kind: file}. The 0.3 sf-chat-action {action: retry, id} follows it until 2026-12-01."
53
+ },
54
+ "check": {
55
+ "carries": {
56
+ "id": "id"
57
+ },
58
+ "cancelable": true,
59
+ "x-summary": "«Обновить» on a stopped, delayed or lost wait: ask the host whether the answer came (the chat's own check, vocabulary 1.1.3 §5.1).",
60
+ "summary": "«Обновить» on a stopped, delayed or lost wait: ask the host whether the answer came (the chat's own check, vocabulary 1.1.3 §5.1). The 0.3 sf-chat-action {action: check} follows it until 2026-12-01."
61
+ },
62
+ "rate": {
63
+ "carries": {
64
+ "id": "id",
65
+ "value": "string",
66
+ "reason": {
67
+ "type": "string",
68
+ "optional": true,
69
+ "nullable": true
70
+ },
71
+ "note": {
72
+ "type": "string",
73
+ "optional": true
74
+ }
75
+ },
76
+ "cancelable": true,
77
+ "x-summary": "«Полезно» or «Не полезно» {id, value: up|down} (vocabulary §5 rate); «Отправить» in the «why» card {id, value: down, reason, note}. The buttons show the rating at once; the host keeps it in display.feedback.",
78
+ "summary": "«Полезно» or «Не полезно» {id, value: up|down} (vocabulary §5 rate); «Отправить» in the «why» card {id, value: down, reason, note}. The buttons show the rating at once; the host keeps it in display.feedback. The 0.3 sf-chat-action {action: feedback / feedback-send} follows it until 2026-12-01."
79
+ },
80
+ "cancel": {
81
+ "carries": {
82
+ "id": "id",
83
+ "kind": "string"
84
+ },
85
+ "cancelable": true,
86
+ "x-summary": "«Не сейчас» or Escape in the «why» card {id, kind: rate} (vocabulary §5 cancel): the plain «not helpful» stays.",
87
+ "summary": "«Не сейчас» or Escape in the «why» card {id, kind: rate} (vocabulary §5 cancel): the plain «not helpful» stays. The 0.3 sf-chat-action {action: feedback-skip} follows it until 2026-12-01."
88
+ },
89
+ "drafted": {
90
+ "carries": {
91
+ "id": "id",
92
+ "reason": {
93
+ "type": "string",
94
+ "nullable": true
95
+ },
96
+ "note": "string"
97
+ },
98
+ "own-verb": true,
99
+ "x-summary": "The «why» card's choice or note changed {id, reason, note} (a fact; the draft is also kept in display.feedback.draft).",
100
+ "summary": "The «why» card's choice or note changed {id, reason, note} (a fact; the draft is also kept in display.feedback.draft). The 0.3 sf-chat-action {action: feedback-draft} follows it until 2026-12-01."
101
+ },
102
+ "toggle": {
103
+ "carries": {
104
+ "id": "id",
105
+ "kind": "string",
106
+ "open": "boolean",
107
+ "quiet": {
108
+ "type": "boolean",
109
+ "optional": true,
110
+ "summary": "kind react: the picker closed by a press elsewhere; the focus stays where that press put it."
111
+ }
112
+ },
113
+ "x-summary": "A local part opened or closed (vocabulary §5 toggle): the sources list {kind: sources} (the host remembers it as display.sources_open), an answer's steps {kind: steps} (display.steps_open, 1.1.0); for the template person the editor {kind: edit} and the delete question {kind: delete}, which the host holds as display.editing and display.askDelete. Among people (1.4.0): the picker {kind: react, quiet?} (display.picker) and a long text's fold {kind: fold} (display.fold_open).",
114
+ "summary": "A local part opened or closed (vocabulary §5 toggle): the sources list {kind: sources} (the host remembers it as display.sources_open), an answer's steps {kind: steps} (display.steps_open, 1.1.0); for the template person the editor {kind: edit} and the delete question {kind: delete}, which the host holds as display.editing and display.askDelete. The 0.3 sf-chat-action {action: sources} follows it until 2026-12-01. Among people (1.4.0): the picker {kind: react} and a long text's fold {kind: fold}."
115
+ },
116
+ "open": {
117
+ "carries": {
118
+ "id": "id",
119
+ "kind": {
120
+ "type": "enum",
121
+ "values": [
122
+ "preview",
123
+ "quote",
124
+ "thread",
125
+ "document"
126
+ ]
127
+ },
128
+ "source": {
129
+ "type": "object",
130
+ "summary": "What to show: {n?, title, kind, preview_url, locator, mime, href?}, the source's or file's own fields as js/view/proposed.js reads them; preview_url is always of the page's origin.",
131
+ "optional": true
132
+ },
133
+ "target": {
134
+ "type": "id",
135
+ "optional": true,
136
+ "summary": "kind quote: the id of the message the quote leads to."
137
+ },
138
+ "document": {
139
+ "type": "object",
140
+ "optional": true,
141
+ "summary": "kind document (1.7.0): {id, document_id, title, revision, state, preview_url, downloads [{format, label, href}], form_block, missing [{field, label, block}], checks}, as js/blocks.js documentOf reads the block; addresses are the page's own."
142
+ }
143
+ },
144
+ "cancelable": true,
145
+ "x-summary": "A source's footnote or title, or an answer's file «Просмотр», asks for its preview (API.md v1.3, proposed: preview_url): {id, kind: preview, source}. A host that shows it (sf-chat-window's panel) cancels the event; not cancelled, a footnote opens the sources list on its source as before and a file opens its preview in a new tab. Without preview_url nothing is asked (1.1.0). A press on a quote (1.4.0): {id, kind: quote, target}; a host that shows the original cancels it. A message's discussion (1.5.0, sf-chat-window's x-threads): «Обсудить» in «⋯» or «N ответов» under the message, {id, kind: thread}; the host opens the discussion and cancels it. A document's «Открыть» (1.7.0, x-blocks): {id, kind: document, document}; a host that shows it cancels it, otherwise its preview opens in a new tab.",
146
+ "summary": "A source or an answer's file asks for its preview: {id, kind: preview, source}. A host that shows it cancels the event; otherwise the footnote opens the sources list (a file, a new tab). A press on a quote: {id, kind: quote, target}. A message's discussion asked for: {id, kind: thread}. A document's «Открыть»: {id, kind: document, document}."
147
+ },
148
+ "copied": {
149
+ "carries": {
150
+ "id": "id",
151
+ "done": "boolean"
152
+ },
153
+ "own-verb": true,
154
+ "x-summary": "The answer was copied, with its sources as a list {id, done}; the action row says it politely.",
155
+ "summary": "The answer was copied, with its sources as a list {id, done}; the action row says it politely. The 0.3 sf-chat-action {action: copy} follows it until 2026-12-01."
156
+ },
157
+ "submit": {
158
+ "carries": {
159
+ "id": "id",
160
+ "text": "string",
161
+ "kind": "string",
162
+ "block_id": "id",
163
+ "action": "string",
164
+ "revision": "string",
165
+ "values": "object"
166
+ },
167
+ "cancelable": true,
168
+ "x-summary": "A brief's answer goes out as a message (vocabulary §5 submit; API.md v1.2): an option, the person's own words, several answers joined by «; » with «—» for a skipped one, or the card's «Да». Or a card's save or cancel (1.6.0, x-blocks): {id, kind: block, block_id, action, revision, values}, values the changed fields only, a number field's as a string; the window answers through settleBlock.",
169
+ "summary": "A brief's answer goes out as a message (vocabulary §5 submit; API.md v1.2): an option, the person's own words, several answers joined by «; » with «—» for a skipped one, or the card's «Да». The 0.3 sf-chat-action {action: brief-answer} follows it until 2026-12-01. Or a card's save or cancel (1.6.0, x-blocks): {id, kind: block, block_id, action, revision, values}, values the changed fields only, a number field's as a string; the window answers through settleBlock."
170
+ },
171
+ "save": {
172
+ "carries": {
173
+ "id": "id",
174
+ "values": "object"
175
+ },
176
+ "cancelable": true,
177
+ "x-summary": "The template person: an edited message {id, values: {body}} (vocabulary §5 save, port message.edit). Unchanged or empty text is a toggle {kind: edit, open: false} instead.",
178
+ "summary": "The template person: an edited message {id, values: {body}} (vocabulary §5 save, port message.edit). Unchanged or empty text is a toggle {kind: edit, open: false} instead."
179
+ },
180
+ "delete": {
181
+ "carries": {
182
+ "ids": "list"
183
+ },
184
+ "cancelable": true,
185
+ "x-summary": "The template person: «Удалить» confirmed {ids: [id]} (vocabulary §5 delete, port message.delete).",
186
+ "summary": "The template person: «Удалить» confirmed {ids: [id]} (vocabulary §5 delete, port message.delete)."
187
+ },
188
+ "react": {
189
+ "carries": {
190
+ "id": "id",
191
+ "emoji": "string",
192
+ "on": "boolean"
193
+ },
194
+ "cancelable": true,
195
+ "own-verb": true,
196
+ "x-summary": "A reaction's pill or the picker (1.4.0): {id, emoji, on}. The element changes nothing: the count is the host's, and display.reacting says it is on its way.",
197
+ "summary": "A reaction's pill or the picker: {id, emoji, on}. The count is the host's; display.reacting says it is on its way."
198
+ },
199
+ "reply": {
200
+ "carries": {
201
+ "id": "id"
202
+ },
203
+ "own-verb": true,
204
+ "x-summary": "«Ответить» (1.4.0): {id}. The host opens its strip over the field.",
205
+ "summary": "«Ответить»: {id}. The host says what the field answers."
206
+ },
207
+ "stop": {
208
+ "carries": {
209
+ "id": "id"
210
+ },
211
+ "cancelable": true,
212
+ "x-summary": "Stop on a document's wait where display.canStop allows it (1.4.0): {id}.",
213
+ "summary": "Stop on a document's wait, where display.canStop allows it: {id}."
214
+ }
215
+ },
216
+ "actions": {},
217
+ "slots": {},
218
+ "keyboard": {
219
+ "host": {
220
+ "Tab": "reach"
221
+ }
222
+ },
223
+ "relations": [
224
+ {
225
+ "name": "icon-buttons"
226
+ },
227
+ {
228
+ "name": "buttons"
229
+ },
230
+ {
231
+ "name": "inputs"
232
+ },
233
+ {
234
+ "name": "cl-icon"
235
+ },
236
+ {
237
+ "name": "cl-confirm-change"
238
+ },
239
+ {
240
+ "name": "cl-view-properties",
241
+ "lazy": true
242
+ },
243
+ {
244
+ "name": "cl-avatar",
245
+ "lazy": true
246
+ },
247
+ {
248
+ "name": "cl-badge",
249
+ "lazy": true
250
+ },
251
+ {
252
+ "name": "cl-menu-context",
253
+ "lazy": true
254
+ },
255
+ {
256
+ "name": "cl-file-preview",
257
+ "lazy": true,
258
+ "$comment": [
259
+ "A question's files and a person's files are SIMAI Framework's sf-file-preview, appearance chip (K-08, pair ui-73df5d1b4d4c)."
260
+ ]
261
+ }
262
+ ],
263
+ "templates": {
264
+ "default": {
265
+ "file": "js/templates/default.js",
266
+ "$comment": "The Lit template in JavaScript, the migration form of §5.2 (§16); it places the view's node (js/view/message.js)."
267
+ },
268
+ "person": {
269
+ "file": "js/templates/person.js",
270
+ "$comment": "A conversation between people (D31 inventory §3: people.js is a template, not a tag); it places js/view/person.js's node."
271
+ }
272
+ },
273
+ "styles": "js/templates/default.css",
274
+ "examples": "examples.json",
275
+ "docs": "docs.md",
276
+ "lang": "lang/",
277
+ "accessibility": {
278
+ "role": "article",
279
+ "name": {
280
+ "from": [
281
+ "runtime.assistant",
282
+ "runtime.you",
283
+ "runtime.people-you"
284
+ ]
285
+ },
286
+ "keys": {
287
+ "Tab": "reach"
288
+ },
289
+ "x-keys": "A message is an article named «Помощник» or «Вы» (the template person: the author or «Вы»); a pending answer is aria-busy. Copy, rating, sources and footnotes are native buttons with names; a footnote opens the sources at its source and focuses it; the result of copy and rating is said by a polite region in the action row; a failure and a lost connection are role=alert. In the «why» card Enter sends and Escape puts it away; in a brief Enter in «Свой вариант» answers; in the editor of the template person Enter saves, Shift+Enter breaks the line and Escape cancels; the delete question takes the focus on «Отмена». Past 80 % of display.editLimit the editor shows its count, described to the field and spoken only when a threshold is crossed; a refused save is role=alert. A divider (display.divider, display.day) is role=separator named by its words. Among people (1.4.0): the word beside a name («ИИ», «Агент», «Бот») is text, never colour alone; a reaction's pill is a pressed button named «Реакция 👍, 3, ваша»; the picker opens on its first emoji, arrows move, Escape closes it and returns the focus to its tool; a quote is a button named with its author and line; «Показать полностью» carries aria-expanded. An author's sf-avatar is inert and hidden: not a Tab stop in a feed."
290
+ },
291
+ "host-states": {},
292
+ "css-variables": {
293
+ "--sf-chat-message-width": {
294
+ "type": "length",
295
+ "state": "default"
296
+ },
297
+ "--sf-chat-message-text-color": {
298
+ "type": "color",
299
+ "state": "default"
300
+ },
301
+ "--sf-chat-message-muted-color": {
302
+ "type": "color",
303
+ "state": "default"
304
+ },
305
+ "--sf-chat-message-bubble-color": {
306
+ "type": "color",
307
+ "state": "default"
308
+ },
309
+ "--sf-chat-message-border-color": {
310
+ "type": "color",
311
+ "state": "default"
312
+ }
313
+ },
314
+ "aliases": {
315
+ "$comment": "Dated aliases of sf-chat-message for the shim (core/js/aliases.js, standard §16 item 20). The 0.3 general sf-chat-action {action, ...} is split by verb (vocabulary 1.1.5 §5.1); every row needs the element's detail adapter (sfAliasAdapters), which makes the 0.3 detail from the new one.",
316
+ "since": "2026-10-28",
317
+ "remove-after": "2026-12-01",
318
+ "rows": [
319
+ {
320
+ "from": "sf-chat-action",
321
+ "to": "sf-chat-message-retry",
322
+ "kind": "event",
323
+ "mode": "split",
324
+ "cancelable": true,
325
+ "section": "§8, vocabulary 1.1.5 §5, §5.1, §7",
326
+ "note": "the 0.3 {action: retry, id}; a person's retry (key, kind) has no 0.3 form and sends no old event; the element's adapter (sfAliasAdapters) puts action back"
327
+ },
328
+ {
329
+ "from": "sf-chat-action",
330
+ "to": "sf-chat-message-check",
331
+ "kind": "event",
332
+ "mode": "split",
333
+ "cancelable": true,
334
+ "section": "§8, vocabulary 1.1.5 §5, §5.1, §7",
335
+ "note": "the 0.3 {action: check, id}; the element's adapter (sfAliasAdapters) puts action back"
336
+ },
337
+ {
338
+ "from": "sf-chat-action",
339
+ "to": "sf-chat-message-rate",
340
+ "kind": "event",
341
+ "mode": "split",
342
+ "cancelable": true,
343
+ "section": "§8, vocabulary 1.1.5 §5, §5.1, §7",
344
+ "note": "the 0.3 {action: feedback, id, value}, or {action: feedback-send, id, reason, note} when the rating carries a reason or a note; the element's adapter (sfAliasAdapters) puts action back"
345
+ },
346
+ {
347
+ "from": "sf-chat-action",
348
+ "to": "sf-chat-message-cancel",
349
+ "kind": "event",
350
+ "mode": "split",
351
+ "cancelable": true,
352
+ "section": "§8, vocabulary 1.1.5 §5, §5.1, §7",
353
+ "note": "the 0.3 {action: feedback-skip, id} for kind rate; the element's adapter (sfAliasAdapters) puts action back"
354
+ },
355
+ {
356
+ "from": "sf-chat-action",
357
+ "to": "sf-chat-message-drafted",
358
+ "kind": "event",
359
+ "mode": "split",
360
+ "cancelable": false,
361
+ "section": "§8, vocabulary 1.1.5 §5, §5.1, §7",
362
+ "note": "the 0.3 {action: feedback-draft, id, reason, note}; the element's adapter (sfAliasAdapters) puts action back"
363
+ },
364
+ {
365
+ "from": "sf-chat-action",
366
+ "to": "sf-chat-message-toggle",
367
+ "kind": "event",
368
+ "mode": "split",
369
+ "cancelable": false,
370
+ "section": "§8, vocabulary 1.1.5 §5, §5.1, §7",
371
+ "note": "the 0.3 {action: sources, id, open} for kind sources; edit and delete (the template person) send no old event; the element's adapter (sfAliasAdapters) puts action back"
372
+ },
373
+ {
374
+ "from": "sf-chat-action",
375
+ "to": "sf-chat-message-copied",
376
+ "kind": "event",
377
+ "mode": "split",
378
+ "cancelable": false,
379
+ "section": "§8, vocabulary 1.1.5 §5, §5.1, §7",
380
+ "note": "the 0.3 {action: copy, id, done}; the element's adapter (sfAliasAdapters) puts action back"
381
+ },
382
+ {
383
+ "from": "sf-chat-action",
384
+ "to": "sf-chat-message-submit",
385
+ "kind": "event",
386
+ "mode": "split",
387
+ "cancelable": true,
388
+ "section": "§8, vocabulary 1.1.5 §5, §5.1, §7",
389
+ "note": "the 0.3 {action: brief-answer, id, text}; the element's adapter (sfAliasAdapters) puts action back"
390
+ },
391
+ {
392
+ "from": "view",
393
+ "to": "display",
394
+ "kind": "setting",
395
+ "section": "§3.1, §4.2",
396
+ "note": "the 0.3 property view (what the window knows), renamed: view is a name the base reserves; the old property reads and writes display"
397
+ },
398
+ {
399
+ "from": "sf-chat-attachment",
400
+ "to": null,
401
+ "kind": "attribute",
402
+ "mode": "host-attribute",
403
+ "since": "2026-11-26",
404
+ "section": "K-08, SIMAI Framework pair ui-73df5d1b4d4c",
405
+ "note": "the chip's former class (the chip is now sf-file-preview): sf-chat-attachment and sf-chat-attachment--<ready|uploading|error> stay on the sf-file-preview host until the date, for a page that finds or styles a chip by it (Mirai24 docs/ui-chat/HANDOFF.md names it); no shim. Its inner parts (__icon, __body, __name, __meta, __link, __progress, __remove) are gone: the parts are sf-file-preview's",
406
+ "remove_after": "2027-01-01",
407
+ "since-version": "1.8.0"
408
+ }
409
+ ]
410
+ },
411
+ "x-summary": "One chat message: an assistant's answer with its markup, sources, verification, notices, proposal, rating and task brief, or its wait; a person's question with its files; or, in the template person, a message of a conversation between people. It reports what a person does; the host decides what it means.",
412
+ "x-source": {
413
+ "package": "ui-pro",
414
+ "folder": "chat-message",
415
+ "manifest": "simai/ui-chat@10d376b components/src/smart/chat-message/smart.manifest.json (0.3.1)",
416
+ "converted": "by hand (D31 step 5): convert-1.3.8.mjs reads stand 17's output, which has no chat component"
417
+ },
418
+ "x-words": [],
419
+ "x-renamed": [
420
+ "properties.view → the setting display (view is a name the base reserves, §3.1); the old property a dated setting alias until 2026-12-01",
421
+ "events.sf-chat-action {action, ...} → one event per verb (vocabulary §5.1 one name per verb), the old name a dated split alias until 2026-12-01 whose adapter puts action back: retry {id} → retry {id}; check {id} → check {id}; feedback {id, value} → rate {id, value}; feedback-send {id, reason, note} → rate {id, value: down, reason, note}; feedback-skip {id} → cancel {id, kind: rate}; feedback-draft {id, reason, note} → drafted; sources {id, open} → toggle {id, kind: sources, open}; copy {id, done} → copied {id, done}; brief-answer {id, text} → submit {id, text}",
422
+ "the template person (ui-chat people.js, the pilot's renderPersonMessage, which had no element): edit → save {id, values: {body}}, delete → delete {ids}, retry {clientKey} → retry {key}, retry-file {messageId, fileKey} → retry {id, key, kind: file}, edit-start / edit-cancel → toggle {kind: edit, open}, delete-ask / delete-cancel → toggle {kind: delete, open}; new names only, nothing to alias",
423
+ "words: the message's keys of ui-chat's strings.js → lang/<locale>.json runtime words, the dotted key in kebab-case (stage.queued → stage-queued, brief.otherLabel → brief-other-label); the view keeps calling ctx.words with the 0.3 keys and the element maps them (wordName)",
424
+ "css: component/chat/css/chat.css and people.css → js/templates/default.css; the --sf-chat--* tokens → --sf-chat-message--*, set on .sf-chat-message-host (and .sf-chat-surface, :host for a page or a widget without the element) instead of :root; five public variables --sf-chat-message-<name> under the ones a host adapted"
425
+ ],
426
+ "x-decisions": [
427
+ "version: 0.3.1 in simai/ui-chat → 1.0.0 here: the first release in ui-pro, with the events renamed under dated aliases (simai.linkage 1.0.0: the files changed).",
428
+ "shape: a leaf (D31 inventory §3). sf-message-log stays a chat-agnostic feed; the window sets log.renderMessage to place an sf-chat-message per message (or to call the exported renderMessage for the widget), so the chat's fields (sources, verification, stage, rating, brief) never enter the shared log.",
429
+ "the view stays plain DOM (js/view/message.js, js/view/person.js, the 0.3 render.js and people.js with their imports changed), built once per change and handed to Lit as one node, as ui-chat's ChatElement did: an open «why» card, a brief's typed answer and a proposal's pressed card keep their nodes and focus, and the site widget and the pilot, which have no Framework runtime, can call renderMessage from a pinned ui-pro revision.",
430
+ "people: the template person (D31 inventory §3: a second template of the same component, not a tag), selected by the attribute template=person; display carries own, first, last, showName, editing and askDelete as people.js's view did.",
431
+ "file chip: sf-chat-composer owns it (js/templates/parts.js, step 4); the message imports it by relative path, as sf-data-view imports from table, renders it into its DOM with Lit and adds, for a sent file with href, the download link and the HEAD check: on 404 or 410 the name loses its link and the line says «Файл удалён» (role=status). The composer's files are not changed; its chip rules and the message's are both unscoped class markup, so the message scopes its own to .sf-chat-message and .sf-chat-person.",
432
+ "sanitize: SF.sanitizeHtml(html, {codeLanguage: true, document}) and SF.safeHref, Core's (src/core/js/sanitize.js, made from ui-chat's copy: the same allow-list, incl. h2 h3 h4 del). 1.0.1: framework.lock.json pins ui-source 465fbee (pair ui-194f75ac620f), which has them since 4d711d2 (pair ui-89834691fb9d), so the component's copy js/view/sanitize.js and the fallback are removed; message.js imports core/js/sanitize.js, which publishes SF.sanitizeHtml and SF.safeHref on a page where core.js has not run and never replaces Core's, and calls SF's. The probe's sanitize cases (p1, p9) run against Core's.",
433
+ "proposal: the message places sf-change-confirm (attributes heading, heading-level 2, change-id, state, expires-at, changes as JSON, accept-text «Подтвердить», decline-text «Отменить»), one card per code kept across redraws; its sf-change-confirm-answer bubbles through the message to the window, which sends the proposal's command. The chat's other words for the card («Отменено», the expiry sentence) are registered by the window (ui-chat chat-core/larena.js registerLarenaWords), not by the message: registering another component's words is a page's act.",
434
+ "events: sf-chat-action {action, ...} is split by verb (vocabulary §5.1): retry, check, rate, cancel, toggle, submit (§5, chat 1.1.3 check) and two facts of the chat's own, drafted and copied (own-verb). copy and sources are local (D31 inventory §1) but stay as facts, since the window keeps an open sources list across redraws. The old name follows until 2026-12-01 as split rows whose adapter makes the 0.3 detail; the person's events had no element before and have no alias.",
435
+ "display: the 0.3 property view, renamed because view is a name the base reserves; a dated setting alias keeps el.view until 2026-12-01. Setting message, display or features (even the same object again) redraws the view, as the 0.3 setters did.",
436
+ "words: lang/ru.json and lang/en.json, runtime only, ru the source language; the view asks for the 0.3 dotted keys and the element maps them to the kebab names (wordName). The copy label of a highlighted code block is the word code-copy.",
437
+ "network: host-only. The one request is the HEAD check of a sent file's own download address before following it (Mirai24 27.10: a file deleted from «Мои файлы» keeps its attachment); the address is the host's, never built here.",
438
+ "first paint (§5.4): no late data. The message comes with the host's state; the printed markup is the message as drawn. The element reads no clock: times are the message's own (finished_at, createdAt, limit_resets_at, read_at) in the reader's zone, so a snapshot depends on the zone it was taken in (the examples avoid times).",
439
+ "css-variables: five public variables in the Framework's form (single dash, read with the token as fallback, never set): the reading column, the text, the muted text, the bubble and the edges. Their fallbacks are the tokens chat.css gave the same places.",
440
+ "standard 1.4 (2026-10-29): component.json and examples.json in the 1.4 form, the other files generated by ui-source scripts/generate-component-files.mjs.",
441
+ "steps (1.1.0, API.md v1.3 proposed): part of sf-chat-message, not a component of its own: they are a part of an answer's lifecycle (the stage line's place while it is written, a folded line above it after), have no API of their own but a toggle the host remembers (display.steps_open), and the site widget, which calls renderMessage without the runtime, must draw them too. Running: one line «Работаю · 1 мин 12 с · 4 шага» with a spinner (still under prefers-reduced-motion), the time ticking each second from the first step's started_at (else created_at) by a clock the rendering stops when let go (disposeRendering) and starts again when its element comes back (resumeRendering); the list has the running step last. Final: «Сделано за 1 мин 40 с · 4 шага» (answered) or «Прервано…» (an answer that did not come), folded; a failed answer with a failed step keeps the list open; a step or line without its times has no time. Not a live region: rebuilt with its message in a busy article, so the window's one announcer says the step (stepsSay), never the clock. Without steps the stage line is unchanged.",
442
+ "preview (1.1.0, API.md v1.3 proposed): a source with a same-origin preview_url (proposed.js sameOriginHref: root-relative or the page's origin, http(s)) asks for it from its footnote and from its title in the list (a site keeps its link) with the event open {id, kind: preview, source}, cancelable: the host that shows it cancels, and only then does the footnote not open the list. Without preview_url, or with one of another origin, a footnote opens the list as before.",
443
+ "an answer's files (1.1.0, API.md v1.3 proposed): «Что готово» under an answered message, a card per attachment: icon by type, name, size and extension, «Просмотр» (the same open event; a new tab when nobody takes it) when it has a same-origin preview_url, «Скачать» (a download link, same-origin only) checked first with HEAD like a sent file's chip. Drawn as the chat's own markup, not sf-file-preview: that is a file row with download and remove, no preview action, and the widget has no runtime to place it.",
444
+ "words (1.1.0): a file found gone by the HEAD check says «Файл недоступен» (en «File unavailable»), not «Файл удалён»: the neutral word a people messenger (the Bitrix module) asked for, since the server may also refuse it for other reasons. Plural step counts are four words (steps-count-one, -few, -many, -other) chosen by Intl.PluralRules in the view, which the widget's words function can give as well.",
445
+ "proposed fields (1.1.0): every field proposed to Mirai24 as API.md v1.3 is read only in js/view/proposed.js (stepsOf, previewOf, previewTarget, deliverablesOf, PROPOSED_MESSAGE_FIELDS), so a renamed field changes one module; all optional, and a message without them draws exactly as 1.0.3 did.",
446
+ "people 1.2.0 (for sf-chat-window 1.3.0): display.conflict {deleted} draws the message as it is now with «Сообщение уже изменили» (or «уже удалили») above the editor, which keeps the typed text and offers «Оставить их» (edit-cancel) and «Заменить своим» (the same save); above the delete question the same line. The line is not a live region (the message is drawn again with it): the window says it once. display.divider unread draws «Новые» before the message in either template, as plain text in reading order, outside the article. message.authorAvatar (a host's picture) covers the initials beside the first of a run and falls back to them. Escape in the delete question takes it back, as «Отмена»; the edit and delete buttons carry classes sf-chat-person__edit and sf-chat-person__delete, the editor's sf-chat-person__edit-cancel and -save.",
447
+ "people 1.3.0 (for sf-chat-window 1.5.0): display.editLimit gives the editor sf-chat-composer's way of showing a limit: the same 80 % threshold and words, written here as people-edit-count and people-edit-too-long since a message has no composer to ask. Over the limit the form does not raise save and says people-edit-refused; no maxlength, so nothing typed or pasted is ever cut. Saving is not disabled: the button stays, so the refusal is what says why. display.day draws through renderDivider with display.divider, the same look, the day first; both are role=separator with aria-label. Without the new fields a message draws as before, but for that role on «Новые».",
448
+ "a document among people (1.4.0): the template default with display.document, not a third template. An assistant's message among people has every part of the default (steps, sources, files, rating, copy, waits, the proposal, the brief) and all of its code; a template would have had to repeat them or share them all, and the window's find, announcer and proposal code already read that article. The option only adds: the head (sign, name, word, «по просьбе»), the column's indent to where a person's text begins, the fold, the pills, the tools, the visible time and always-visible copy and rating. Without it the template draws byte for byte as before.",
449
+ "who speaks (1.4.0): message.speaker {kind, name} in the view's shape, not message.author: in the view author is the run key sf-message-log reads. sf-chat-window reads author.kind from its port message and hands speaker. A sign is the avatars' class markup with a sf-icon, since sf-avatar has no setting for a glyph (its placeholder is always person); the icons are neutral (auto_awesome, hub, bolt), never a face, and author's picture is not read for it. The word is sf-badge (non-interactive, what the Framework's label for a category is); sf-tag is built for selecting and removing.",
450
+ "sf-avatar for a person (1.4.0): the template person's own span goes where the element is given ctx.avatar; the widget and the pilot, which call the view without a runtime, keep the plain initials. sf-avatar's default template is a button named «Аватар», so in a feed it stays inert and aria-hidden: a Tab stop per run would be noise. A picture that fails to load: image-url is taken away and the initials come back, as the span did.",
451
+ "«по просьбе» (1.4.0): the word is «по просьбе {name}» and Russian wants the genitive; a component cannot inflect a name, so asked_by.name is drawn as given and the host gives the form to be read («Анны»).",
452
+ "folding (1.4.0): measured once placed (lines depend on the column), not estimated from characters. Budget 14 lines of the text's own line height, with two of grace; a table's region is outside the count and always stays; a proposal stands outside the text. Blocks past the budget get hidden, the one across it is cut to whole lines with a fade. Nothing to measure (no width): the text stays open. hidden also means the window's find does not see folded text until it is opened.",
453
+ "reactions (1.4.0): not optimistic; the pill is drawn from message.reactions only, display.reacting marks one as on its way (aria-busy, no second press), and a first reaction waits on a pill with no number. The picker is one row of six over the tools, under them where the feed's top would cut it; display.picker is the host's so a redraw keeps it. The tools are shown the one way the template person shows edit and delete: hover or focus where a pointer hovers, always on touch, 44 px under a finger; on touch they stand under the bubble so they do not squeeze it. With neither canReact nor canReply the two buttons of 1.2.0 stay exactly.",
454
+ "«⋯» (1.4.0): sf-context-menu made on the first press, waiting for the element (lazy), as sf-thread-list's. Edit on a document is not offered: a machine's text is not a person's to edit in place; delete is, where can_delete says so.",
455
+ "version 1.5.1: times, dates and copying are core's (core.runtime 1.20.0; reuse audit 2026-11-02, findings 7, 10 and 11). The message's times and dates go through formatDate of core/js/format.js (a source's read date that is no date still shows its own text), «Копировать» through core's copyText (the Clipboard API, else a hidden sf-clipboard-fallback field in the message's own document; the local copy that borrowed sf-chat-offscreen is gone), and the person template's initials through getInitials of helpers/text.js, «?» for an empty name as before. Visible: a name of several words is read by its words, so «Анна-Мария Смирнова» gives АС where it gave АМ; a preposition after the first word is skipped and a letter outside the basic plane is kept whole. A ctx without locale formats in the page language rather than the browser's. formatBytes keeps its own steps: the lang words size.b to size.gb carry {n}, which core's formatFileSize does not take (core would also group 1 023 bytes; this does not). Needs core.runtime >= 1.20.0.",
456
+ "version 1.5.2: the reaction picker closes on a press elsewhere through the layer stack's one listener (core layer-stack.js onOutsidePress, core.runtime 1.19.0; reuse audit 2026-11-02, finding 1), not a pointerdown listener of its own on the document; a press on its own tool is still the tool's. It is a surface of the stack while open, so a press closes it only while it is the top layer, and Escape with the focus outside it closes it too (inside, its own keydown takes Escape first, as before). No visible change. Needs core.runtime >= 1.19.0.",
457
+ "version 1.5.3: the Framework elements it draws, finds and listens to are named by their new tags (Smart component naming of 2026-11-02, sf-[set]-<block>): the «⋯» menu is sf-menu-context. The rule relations and the registry ids follow (cl-<new>, smart.<new>; the package reference pro.package.json of the pair). The former tags stay dated aliases of the Framework until 2027-01-01; public CSS variables and classes keep their names. No visible change. Needs the SIMAI Framework pair with the tag renames (core.runtime 1.21.0).",
458
+ "version 1.5.4: a proposal is drawn as sf-confirm-change, the package's new tag for the card (rename plan R2).",
459
+ "version 1.7.1 (sets split plan 2026-11-05 §3 S2): the conversation around a message is SIMAI Framework's sf-list-feed (chat-window 1.13.0; sf-message-log is its dated alias and draws the same markup), so the reaction picker finds the scroller it must stay under as .sf-list-feed. No visible change.",
460
+ "version 1.7.2 (2026-11-07): a patch (a look). The word beside a name draws with sf-badge tight: Framework sf-badge 1.3.0 (component.badges 1.2.0) widens a badge's default side room to --sf-space-1/2 (owner decision, docs review R020), and this is a dense place, so it keeps the size's own narrow room. On a Framework before 1.3.0 the attribute and class do nothing. Settings, values, events and keys unchanged. Also: inline code in the markup is drawn by the Framework's base rule for code in running text (tokens.typography 1.1.0); the message's .sf-chat-markup :not(pre) > code rule, which drew the same plate, is removed.",
461
+ "version 1.7.3 (2026-11-08): a patch (a look). SIMAI Framework now draws inline code in running text itself (tokens.typography 1.3.0, the pair ui-5edc71bd6936, docs review C10) and keeps a name on one line. Code in a table cell of the markup no longer drops the plate (the rule td code {background: none; padding: 0} is gone), and inline code in the markup wraps (white-space: normal, overflow-wrap: anywhere) so a long name stays inside a narrow bubble. Settings, values and events are unchanged.",
462
+ "version 1.7.4 (2026-11-09): a patch (first paint only). The snapshots are retaken over SIMAI Framework ui-d6f01121baca: static/sheets.json lists the sheets the pair now asks for (component/kbd, a relation of the buttons since sf-kbd 1.1.0; smart/button-close and utility/sr-only where an example draws them). Code, settings, values and events are unchanged; its buttons still ask for appearance link, the dated alias of ghost until 2027-01-01.",
463
+ "version 1.7.5 (2026-11-09): a patch, for the SIMAI Framework pair with the shadow places (C20, owner 2026-11-08; core.runtime >= 1.43.0). The reaction picker reads --sf-surface-popup-nested and --sf-shadow-overlay instead of elevation step 4, the values the former names resolve to on that pair (a nested popup's shadow is the overlay one). No visible change against that pair; settings, values and events are unchanged.",
464
+ "version 1.7.6 (2026-11-09): a patch (first paint only). The first-paint snapshots are retaken over SIMAI Framework ui-cb287da78ab1 (the pair's elements now print data-sf-size-relative on sf-icon and the other markup of that pair); static/sheets.json is unchanged (no sheet drift). Code, settings, values and events are unchanged.",
465
+ "version 1.7.7 (2026-11-09): a patch (a look, the people editor only). The count and the refusal under a person's description read --sf-chat-message--muted, a variable nothing declares, so they took the text colour of the row; they read --sf-chat-message--ink-muted (the muted colour, --sf-chat-message-muted-color or on-surface-variant) as the rest of the message's secondary text does. Settings, values and events are unchanged.",
466
+ "version 1.8.0 (2026-11-26, K-08 and the ask label): a minor, over SIMAI Framework pair ui-73df5d1b4d4c (ui-source 5e30b946, core.runtime 1.69.0). (1) K-08: a question's files and a person's files are drawn as the Framework's sf-file-preview, appearance chip, through sf-chat-composer's chip (js/templates/parts.js): name, type · size, the upload's running bar (state uploading) and «Не загрузился» with «Повторить» (state error) are the preview's; a person's failed file raises retry {kind: file} from the preview's retry, as its own button did. A sent file with href is the preview's name link; its download request (sf-file-preview-download, cancelable) is held and the address asked first (HEAD), as before; a file gone loses its href and says «Файл недоступен» in place of its size, said once by a polite line beside it. A person's file with downloadUrl downloads as the preview does, unasked, as its whole-chip link did. The markup sf-chat-attachment* is not drawn; the class sf-chat-attachment (with --<state>) stays on the preview's host as a dated alias until 2027-01-01. The words attachment-file, attachment-uploading, attachment-remove, files-download-label, people-download and people-file-failed are dropped (the preview's own words name and say the file). The rule relates cl-file-preview (lazy). (2) A card block whose record.source is ask (the assistant's form, Mirai24 API v1.6, BLOCKS.md §6) is sent, not saved: applied says «Отправлено» (block-sent, en Sent); any other source keeps «Сохранено» (block-applied). (3) The sanitizer probe reads the links and the code by their parts: on the pair core marks a link that opens a new tab (its arrow and «(откроется в новой вкладке)») and draws code as sf-highlight; the sanitized result is unchanged."
467
+ ],
468
+ "x-rule": {
469
+ "$comment": [
470
+ "A message draws the Framework's plain markup: icon buttons (copy, rating,",
471
+ "a chip's remove), buttons (a brief's options, the «why» card, the person's",
472
+ "editor) and inputs («Свой вариант», the note of a rating); every glyph is a",
473
+ "Smart sf-icon, and a proposal is the package's sf-confirm-change. A tag it",
474
+ "renders is a tag it fetches. Code blocks go through SF.Highlight when the",
475
+ "page has it; the message does not bring it.",
476
+ "Among people an author is sf-avatar, or its class markup with a sign, the word",
477
+ "beside a name sf-badge and «⋯» sf-menu-context: only there, so lazily."
478
+ ]
479
+ },
480
+ "x-registry": {
481
+ "capabilities": [
482
+ "content",
483
+ "keyboard",
484
+ "responsive"
485
+ ],
486
+ "persistence": {
487
+ "mode": "none",
488
+ "source_of_truth": "host",
489
+ "network_owner": "host",
490
+ "revision_field": null
491
+ },
492
+ "readiness": {
493
+ "level": "host-required",
494
+ "required_checks": [
495
+ "manifest",
496
+ "loader-rule",
497
+ "chat-message-probe"
498
+ ]
499
+ },
500
+ "tags": [
501
+ "chat",
502
+ "message",
503
+ "conversation"
504
+ ],
505
+ "contracts": {
506
+ "message": {
507
+ "const": "API.md Message for the template default: {id, role: user|assistant, status: queued|running|completed|partial|failed|refused|withheld|limit, stage, html, text, sources [{n, kind, title, url, excerpt, read_at}], verification, notices, proposal {code, title, state, expires_at, changes}, brief (v1.2 {decision: ask|card, lead, questions|card}), feedback, summary {text}, limit_resets_at, finished_at, attachments [{id, name, bytes, href}]; proposed as v1.3 (all optional): steps [{code, label, state: running|done|failed, started_at, finished_at}], sources[].preview_url (same origin), locator {from, to} (or {page}), mime, and an answer's attachments [{id, name, bytes, mime, href, preview_url}]}. For the template person: {id, body, authorName, createdAt, isEdited, isDeleted, canEdit, canDelete, files [{id, key, name, size, state, downloadUrl}], local {state, action, clientKey, body}}. Among people (1.4.0), either template: reactions [{emoji, count, mine}], reply_to {id, author: {name}, text, is_deleted}. With display.document: speaker {kind: assistant|agent|bot, name}, asked_by {name}, canDelete, is_deleted."
508
+ },
509
+ "sanitize": {
510
+ "const": "message.html is cleaned by SF.sanitizeHtml (codeLanguage), Core's, with the allow-list: p br strong em code pre ul ol li blockquote a table thead tbody tr th td h2 h3 h4 del; links http, https, mailto or root-relative, with rel=noopener noreferrer nofollow and target=_blank."
511
+ },
512
+ "brief": {
513
+ "const": "Live (display.brief.live) the brief asks: one question sends its option or own words at once; several are answered together, joined by «; » with «—» for a skipped optional one; the card sends its confirm word. Not live it is a record, the taken option marked from display.brief.answer. The lead, when given, stands for the html."
514
+ },
515
+ "css_variables": {
516
+ "type": "object",
517
+ "properties": {
518
+ "--sf-chat-message-width": {
519
+ "type": "string"
520
+ },
521
+ "--sf-chat-message-text-color": {
522
+ "type": "string"
523
+ },
524
+ "--sf-chat-message-muted-color": {
525
+ "type": "string"
526
+ },
527
+ "--sf-chat-message-bubble-color": {
528
+ "type": "string"
529
+ },
530
+ "--sf-chat-message-border-color": {
531
+ "type": "string"
532
+ }
533
+ }
534
+ }
535
+ },
536
+ "state": {
537
+ "machines": {
538
+ "message": [
539
+ "queued",
540
+ "running",
541
+ "completed",
542
+ "partial",
543
+ "failed",
544
+ "refused",
545
+ "withheld",
546
+ "limit"
547
+ ],
548
+ "wait": [
549
+ "none",
550
+ "delayed",
551
+ "stopped",
552
+ "network"
553
+ ],
554
+ "brief": [
555
+ "none",
556
+ "live",
557
+ "record"
558
+ ],
559
+ "steps": [
560
+ "none",
561
+ "running",
562
+ "done",
563
+ "failed"
564
+ ],
565
+ "preview": [
566
+ "none",
567
+ "asked"
568
+ ]
569
+ },
570
+ "visual_states": [
571
+ "default",
572
+ "loading",
573
+ "error"
574
+ ]
575
+ },
576
+ "ownership": {
577
+ "source": "simai/ui-pro",
578
+ "data": "host",
579
+ "effects": "host",
580
+ "forbidden_client_responsibilities": [
581
+ "fetching or polling the chat API",
582
+ "sending a rating, an answer or an edit",
583
+ "deciding a proposal",
584
+ "access decisions"
585
+ ]
586
+ },
587
+ "security": {
588
+ "permissions_owner": "host",
589
+ "untrusted_inputs": [
590
+ "message html (sanitized: SF.sanitizeHtml)",
591
+ "message texts, source titles and excerpts (drawn as text)",
592
+ "source URLs (http and https only)",
593
+ "file names (drawn as text)",
594
+ "download addresses (the host's, used as given)"
595
+ ],
596
+ "network_policy": "host-only"
597
+ },
598
+ "presentation": {
599
+ "themes": [
600
+ "light",
601
+ "dark"
602
+ ],
603
+ "locales": [
604
+ "en",
605
+ "ru"
606
+ ],
607
+ "responsive": [
608
+ "desktop",
609
+ "mobile"
610
+ ]
611
+ },
612
+ "ai_guidance": {
613
+ "use_when": "Use sf-chat-message for one chat message: a window places it in sf-list-feed (SIMAI Framework) through the feed's renderItem hook; a page that shows one message (a preview) places it alone. The template person draws a conversation between people.",
614
+ "do_not": [
615
+ "Do not stack sf-chat-message elements into a conversation yourself; sf-list-feed keeps the reading position and the announcements",
616
+ "Do not put trusted markup into message.html; it is sanitized, and only the allow-list survives",
617
+ "Do not decide a proposal in the message; answer sf-change-confirm-answer in the window"
618
+ ],
619
+ "required_reads": [
620
+ "inputs",
621
+ "contracts",
622
+ "events",
623
+ "accessibility"
624
+ ],
625
+ "minimal_example": "<sf-chat-message></sf-chat-message> with element.message = {id: 'msg_03', role: 'assistant', status: 'completed', text: 'Ежегодный отпуск — 28 календарных дней.'}",
626
+ "owner_commands": [
627
+ "node scripts/test.mjs",
628
+ "node scripts/run-manifest-probes.mjs <free output> <package output> chat-message"
629
+ ]
630
+ },
631
+ "accessibility": {
632
+ "accessible_name": "internal",
633
+ "keyboard": [
634
+ "Tab",
635
+ "Enter",
636
+ "Escape",
637
+ "Shift+Enter"
638
+ ],
639
+ "focus": "A message is an article named «Помощник» or «Вы» (the template person: the author or «Вы»); a pending answer is aria-busy. Copy, rating, sources and footnotes are native buttons with names; a footnote opens the sources at its source and focuses it; the result of copy and rating is said by a polite region in the action row; a failure and a lost connection are role=alert. In the «why» card Enter sends and Escape puts it away; in a brief Enter in «Свой вариант» answers; in the editor of the template person Enter saves, Shift+Enter breaks the line and Escape cancels; the delete question takes the focus on «Отмена»."
640
+ },
641
+ "compatibility": {
642
+ "migrations": [
643
+ {
644
+ "from": "0.3.1",
645
+ "to": "1.0.0",
646
+ "changes": [
647
+ "moved from simai/ui-chat to ui-pro (D31): standard simai.smart-component 1.3.9, the element is made from component.json; the view (render.js, people.js as the template person, sanitize.js as a fallback) is the component's js/view; words in lang/; dated aliases in aliases.json; nothing imported from ui-chat",
648
+ "property view -> the setting display until 2026-12-01 (setting alias)",
649
+ "sf-chat-action {action, ...} -> sf-chat-message-retry, -check, -rate, -cancel, -drafted, -toggle, -copied, -submit until 2026-12-01 (event, split aliases)",
650
+ "a file chip is sf-chat-composer's; a sent file keeps its download link and the «Файл удалён» check"
651
+ ]
652
+ },
653
+ {
654
+ "from": "1.0.1",
655
+ "to": "1.0.2",
656
+ "changes": [
657
+ "The first-paint snapshot's sheets.json lists the utility sheets its markup uses (retaken on ui-source 5ba9399); no behaviour changed. Nothing to change for a host."
658
+ ]
659
+ },
660
+ {
661
+ "from": "1.0.3",
662
+ "to": "1.1.0",
663
+ "changes": [
664
+ "An answer's steps (API.md v1.3, proposed: steps): a compact line «Работаю · время · N шагов» while it is written, «Сделано за … · N шагов» after it, each opening the list; the event toggle {kind: steps} and display.steps_open. Without steps nothing changes.",
665
+ "A source with a same-origin preview_url asks for its preview from its footnote and its title: the new cancelable event open {id, kind: preview, source}; a host that shows it cancels it. Without preview_url nothing changes.",
666
+ "An answer's files (attachments on an assistant message): «Что готово» with a card per file, «Просмотр» and «Скачать».",
667
+ "A downloaded file found gone says «Файл недоступен» instead of «Файл удалён» (attachment-deleted). A host that looked for the old words looks for the new ones."
668
+ ]
669
+ },
670
+ {
671
+ "from": "1.1.0",
672
+ "to": "1.2.0",
673
+ "changes": [
674
+ "Template person: display.conflict {deleted} shows «Сообщение уже изменили» with the message as it is now over the kept typed text, «Оставить их» and «Заменить своим»; message.authorAvatar beside the first of a run; Escape cancels the delete question.",
675
+ "Both templates: display.divider unread draws «Новые» before the message. Without the new fields a message draws as before."
676
+ ]
677
+ },
678
+ {
679
+ "from": "1.2.0",
680
+ "to": "1.3.0",
681
+ "changes": [
682
+ "Template person: display.editLimit, the editor's limit: the count past 80 %, past the limit a save refused with a line and the typed text kept.",
683
+ "Both templates: display.day draws the words of a new day before the message, above «Новые»; both are role=separator (sf-chat-divider--day, sf-chat-divider--unread)."
684
+ ]
685
+ },
686
+ {
687
+ "from": "1.3.0",
688
+ "to": "1.4.0",
689
+ "changes": [
690
+ "Template person: the avatar is the Framework's sf-avatar when the element draws it (the view without a runtime keeps the plain initials).",
691
+ "Both templates among people: message.reactions as pills, message.reply_to as a quote at the top; display.canReact and canReply replace the two buttons with reply, reaction and «⋯»; the events react, reply, open {kind: quote}, toggle {kind: react}.",
692
+ "Template default with display.document: a document without a bubble, who speaks (speaker, asked_by), a long text folded, stop on the message (canStop). Without these a message draws as before."
693
+ ]
694
+ },
695
+ {
696
+ "from": "1.4.0",
697
+ "to": "1.4.1",
698
+ "changes": [
699
+ "Initials in a muted tone picked from the name (sf-avatar 1.2.0, tone auto). Additive."
700
+ ]
701
+ },
702
+ {
703
+ "from": "1.4.2",
704
+ "to": "1.5.0",
705
+ "changes": [
706
+ "A message's discussion (sf-chat-window x-threads): view.replies draws «N ответов» under the message and view.canDiscuss adds «Обсудить» to «⋯»; either raises open {id, kind: thread}. Additive: without them a message draws as before."
707
+ ]
708
+ },
709
+ {
710
+ "from": "1.5.0",
711
+ "to": "1.5.1",
712
+ "changes": [
713
+ "Times, dates and copying through core's format and clipboard helpers, the person template's initials through helpers/text getInitials; needs core.runtime >= 1.20.0. Visible: a name of several words gives the initials of its words («Анна-Мария Смирнова» → АС, was АМ). Nothing to change for a host on a pair from core.runtime 1.20.0 on."
714
+ ]
715
+ },
716
+ {
717
+ "from": "1.5.1",
718
+ "to": "1.5.2",
719
+ "changes": [
720
+ "The picker's press elsewhere through the layer stack; needs core.runtime >= 1.19.0. No visible change. Nothing to change for a host on a pair from core.runtime 1.19.0 on."
721
+ ]
722
+ },
723
+ {
724
+ "from": "1.5.2",
725
+ "to": "1.5.3",
726
+ "changes": [
727
+ "Draws and finds the renamed Framework elements by their new tags (the «⋯» menu is sf-menu-context); the rule relations name cl-<new>. Needs the SIMAI Framework pair with the tag renames (core.runtime 1.21.0). No visible change. Nothing to change for a host on that pair; a host that writes the former tags keeps working until 2027-01-01."
728
+ ]
729
+ },
730
+ {
731
+ "from": "1.5.3",
732
+ "to": "1.5.4",
733
+ "changes": [
734
+ "Draws a proposal as sf-confirm-change (was sf-change-confirm); the rule relation names cl-confirm-change. Needs the SIMAI Framework pair with the R2 tag aliases (core.runtime 1.22.0). No visible change."
735
+ ]
736
+ },
737
+ {
738
+ "from": "1.5.5",
739
+ "to": "1.6.0",
740
+ "changes": [
741
+ "An answer's cards (x-blocks; Mirai24 API v1.4, BLOCKS.md §2): message.blocks of kind card drawn under the answer as sf-view-properties in full, view or edit, with the block's own «Сохранить» and «Не сейчас»; a save or cancel is sf-chat-message-submit {kind: block}, answered through settleBlock. features.blocks is off unless given, so a host without it draws as before."
742
+ ]
743
+ },
744
+ {
745
+ "from": "1.6.0",
746
+ "to": "1.7.0",
747
+ "changes": [
748
+ "x-blocks: a document is drawn as a strip under the answer (name, what is left to fill in, «Открыть», downloads); open {kind: document} asks the host's panel; a missing field brings the form card's field (focusField). A saved card with the host's «Изменить» stays editable. Additive."
749
+ ]
750
+ },
751
+ {
752
+ "from": "1.7.0",
753
+ "to": "1.7.1",
754
+ "changes": [
755
+ "The reaction picker stays under the top of SIMAI Framework's sf-list-feed (the conversation of chat-window 1.13.0, and of sf-message-log, its dated alias). No visible change."
756
+ ]
757
+ },
758
+ {
759
+ "from": "1.7.1",
760
+ "to": "1.7.2",
761
+ "changes": [
762
+ "Inline code in an answer's markup takes SIMAI Framework's plate for code in running text (tokens.typography 1.1.0, the pair ui-c4d39d528148 and later): the message's own rule is gone. The same surface container, padding, radius, size and mono face; code in a block, in the highlighter or with an sf- class is untouched. Needs the SIMAI Framework pair with tokens.typography >= 1.1.0."
763
+ ]
764
+ },
765
+ {
766
+ "from": "1.7.2",
767
+ "to": "1.7.3",
768
+ "changes": [
769
+ "Inline code in a table cell of an answer keeps SIMAI Framework's plate (the cell rule that took it away is gone), and inline code in the markup wraps inside a narrow bubble rather than staying on one line as the Framework's running text keeps it (tokens.typography 1.3.0, the pair ui-5edc71bd6936). Settings, values and events are unchanged."
770
+ ]
771
+ },
772
+ {
773
+ "from": "1.7.7",
774
+ "to": "1.8.0",
775
+ "changes": [
776
+ "K-08 (pair ui-73df5d1b4d4c): a question's and a person's files are SIMAI Framework's sf-file-preview (appearance chip). The markup sf-chat-attachment__* (name, meta, link) is gone: a page that read it reads the chip's file-name, href and file-size; «Файл недоступен» is now the chip's file-size and a polite status line. The class sf-chat-attachment and sf-chat-attachment--<state> stay on the chip until 2027-01-01.",
777
+ "A card block with record.source ask, applied, says «Отправлено» (block-sent) instead of «Сохранено». Other cards are unchanged.",
778
+ "Needs a SIMAI Framework pair with sf-file-preview 1.4 or later (core.runtime >= 1.58.0)."
779
+ ]
780
+ }
781
+ ]
782
+ },
783
+ "methods": {
784
+ "focus": {
785
+ "summary": "The base's focus.",
786
+ "arguments": [
787
+ {
788
+ "name": "options",
789
+ "required": false,
790
+ "schema": {
791
+ "type": "object"
792
+ }
793
+ }
794
+ ],
795
+ "returns": {
796
+ "type": "null"
797
+ }
798
+ },
799
+ "focusField": {
800
+ "summary": "Bring a card's field into view with the focus (x-blocks, 1.7.0): what a document lacks names it by the card's block id and the field's key. Answers whether the card is on this message.",
801
+ "arguments": [
802
+ {
803
+ "name": "blockId",
804
+ "required": true,
805
+ "schema": {
806
+ "type": "string"
807
+ }
808
+ },
809
+ {
810
+ "name": "key",
811
+ "required": false,
812
+ "schema": {
813
+ "type": "string"
814
+ }
815
+ }
816
+ ],
817
+ "returns": {
818
+ "type": "boolean"
819
+ }
820
+ },
821
+ "settleBlock": {
822
+ "summary": "The host's answer to a card's submit (x-blocks, 1.6.0): applied {block}, conflict, or refused with errors by field, reason closed (the card loses its buttons) or the host's message. The window calls it; the card shows the answer.",
823
+ "arguments": [
824
+ {
825
+ "name": "blockId",
826
+ "required": true,
827
+ "schema": {
828
+ "type": "string"
829
+ }
830
+ },
831
+ {
832
+ "name": "result",
833
+ "required": true,
834
+ "schema": {
835
+ "type": "object"
836
+ }
837
+ }
838
+ ],
839
+ "returns": {
840
+ "type": "null"
841
+ }
842
+ }
843
+ },
844
+ "inputs": {
845
+ "template": {
846
+ "description": "default: an assistant's answer or a person's question (API.md Message); person: a message of a conversation between people."
847
+ }
848
+ }
849
+ }
850
+ }