@simai-studio/chat 0.0.0-stage → 1.0.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.
- package/LICENSE.md +182 -0
- package/README.md +65 -2
- package/dist/package-receipt.json +1551 -0
- package/dist/set.json +105 -0
- package/dist/smart/chat-composer/aliases.json +56 -0
- package/dist/smart/chat-composer/aliases.json.gz +0 -0
- package/dist/smart/chat-composer/component.json +658 -0
- package/dist/smart/chat-composer/component.json.gz +0 -0
- package/dist/smart/chat-composer/css/chat-composer.css +318 -0
- package/dist/smart/chat-composer/css/chat-composer.css.gz +0 -0
- package/dist/smart/chat-composer/css/chat-composer.min.css +2 -0
- package/dist/smart/chat-composer/css/chat-composer.min.css.gz +0 -0
- package/dist/smart/chat-composer/examples.json +531 -0
- package/dist/smart/chat-composer/examples.json.gz +0 -0
- package/dist/smart/chat-composer/js/chat-composer.js +1023 -0
- package/dist/smart/chat-composer/js/chat-composer.js.gz +0 -0
- package/dist/smart/chat-composer/js/chat-composer.min.js +75 -0
- package/dist/smart/chat-composer/js/chat-composer.min.js.gz +0 -0
- package/dist/smart/chat-composer/lang/en.json +31 -0
- package/dist/smart/chat-composer/lang/en.json.gz +0 -0
- package/dist/smart/chat-composer/lang/ru.json +31 -0
- package/dist/smart/chat-composer/lang/ru.json.gz +0 -0
- package/dist/smart/chat-composer/probe.json +400 -0
- package/dist/smart/chat-composer/probe.json.gz +0 -0
- package/dist/smart/chat-composer/smart.manifest.json +625 -0
- package/dist/smart/chat-composer/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-composer/static/default/busy.html +20 -0
- package/dist/smart/chat-composer/static/default/busy.html.gz +0 -0
- package/dist/smart/chat-composer/static/default/disabled.html +20 -0
- package/dist/smart/chat-composer/static/default/disabled.html.gz +0 -0
- package/dist/smart/chat-composer/static/default/files.html +44 -0
- package/dist/smart/chat-composer/static/default/files.html.gz +0 -0
- package/dist/smart/chat-composer/static/default/near-limit.html +20 -0
- package/dist/smart/chat-composer/static/default/near-limit.html.gz +0 -0
- package/dist/smart/chat-composer/static/default/reference.html +20 -0
- package/dist/smart/chat-composer/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-composer/static/sheets.json +88 -0
- package/dist/smart/chat-composer/static/sheets.json.gz +0 -0
- package/dist/smart/chat-composer/studio.fixture.json +18 -0
- package/dist/smart/chat-composer/studio.fixture.json.gz +0 -0
- package/dist/smart/chat-composer/studio.scenario.json +37 -0
- package/dist/smart/chat-composer/studio.scenario.json.gz +0 -0
- package/dist/smart/chat-composer/template/default.css +273 -0
- package/dist/smart/chat-composer/template/default.css.gz +0 -0
- package/dist/smart/chat-composer/template/default.js +109 -0
- package/dist/smart/chat-composer/template/default.js.gz +0 -0
- package/dist/smart/chat-composer/template/parts.js +82 -0
- package/dist/smart/chat-composer/template/parts.js.gz +0 -0
- package/dist/smart/chat-interlocutor/aliases.json +20 -0
- package/dist/smart/chat-interlocutor/aliases.json.gz +0 -0
- package/dist/smart/chat-interlocutor/component.json +435 -0
- package/dist/smart/chat-interlocutor/component.json.gz +0 -0
- package/dist/smart/chat-interlocutor/css/chat-interlocutor.css +107 -0
- package/dist/smart/chat-interlocutor/css/chat-interlocutor.css.gz +0 -0
- package/dist/smart/chat-interlocutor/css/chat-interlocutor.min.css +2 -0
- package/dist/smart/chat-interlocutor/css/chat-interlocutor.min.css.gz +0 -0
- package/dist/smart/chat-interlocutor/examples.json +379 -0
- package/dist/smart/chat-interlocutor/examples.json.gz +0 -0
- package/dist/smart/chat-interlocutor/js/chat-interlocutor.js +531 -0
- package/dist/smart/chat-interlocutor/js/chat-interlocutor.js.gz +0 -0
- package/dist/smart/chat-interlocutor/js/chat-interlocutor.min.js +22 -0
- package/dist/smart/chat-interlocutor/js/chat-interlocutor.min.js.gz +0 -0
- package/dist/smart/chat-interlocutor/lang/en.json +13 -0
- package/dist/smart/chat-interlocutor/lang/en.json.gz +0 -0
- package/dist/smart/chat-interlocutor/lang/ru.json +13 -0
- package/dist/smart/chat-interlocutor/lang/ru.json.gz +0 -0
- package/dist/smart/chat-interlocutor/probe.json +204 -0
- package/dist/smart/chat-interlocutor/probe.json.gz +0 -0
- package/dist/smart/chat-interlocutor/smart.manifest.json +406 -0
- package/dist/smart/chat-interlocutor/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-interlocutor/static/default/former.html +10 -0
- package/dist/smart/chat-interlocutor/static/default/former.html.gz +0 -0
- package/dist/smart/chat-interlocutor/static/default/grouped.html +10 -0
- package/dist/smart/chat-interlocutor/static/default/grouped.html.gz +0 -0
- package/dist/smart/chat-interlocutor/static/default/reference.html +10 -0
- package/dist/smart/chat-interlocutor/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-interlocutor/static/default/single.html +10 -0
- package/dist/smart/chat-interlocutor/static/default/single.html.gz +0 -0
- package/dist/smart/chat-interlocutor/static/sheets.json +105 -0
- package/dist/smart/chat-interlocutor/static/sheets.json.gz +0 -0
- package/dist/smart/chat-interlocutor/studio.fixture.json +25 -0
- package/dist/smart/chat-interlocutor/studio.fixture.json.gz +0 -0
- package/dist/smart/chat-interlocutor/studio.scenario.json +41 -0
- package/dist/smart/chat-interlocutor/studio.scenario.json.gz +0 -0
- package/dist/smart/chat-interlocutor/template/default.css +58 -0
- package/dist/smart/chat-interlocutor/template/default.css.gz +0 -0
- package/dist/smart/chat-interlocutor/template/default.js +43 -0
- package/dist/smart/chat-interlocutor/template/default.js.gz +0 -0
- package/dist/smart/chat-message/aliases.json +114 -0
- package/dist/smart/chat-message/aliases.json.gz +0 -0
- package/dist/smart/chat-message/component.json +822 -0
- package/dist/smart/chat-message/component.json.gz +0 -0
- package/dist/smart/chat-message/css/chat-message.css +3291 -0
- package/dist/smart/chat-message/css/chat-message.css.gz +0 -0
- package/dist/smart/chat-message/css/chat-message.min.css +2 -0
- package/dist/smart/chat-message/css/chat-message.min.css.gz +0 -0
- package/dist/smart/chat-message/examples.json +1604 -0
- package/dist/smart/chat-message/examples.json.gz +0 -0
- package/dist/smart/chat-message/js/chat-message.js +5498 -0
- package/dist/smart/chat-message/js/chat-message.js.gz +0 -0
- package/dist/smart/chat-message/js/chat-message.min.js +25 -0
- package/dist/smart/chat-message/js/chat-message.min.js.gz +0 -0
- package/dist/smart/chat-message/lang/en.json +181 -0
- package/dist/smart/chat-message/lang/en.json.gz +0 -0
- package/dist/smart/chat-message/lang/ru.json +185 -0
- package/dist/smart/chat-message/lang/ru.json.gz +0 -0
- package/dist/smart/chat-message/probe.json +1029 -0
- package/dist/smart/chat-message/probe.json.gz +0 -0
- package/dist/smart/chat-message/smart.manifest.json +814 -0
- package/dist/smart/chat-message/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-message/static/default/brief-card.html +2 -0
- package/dist/smart/chat-message/static/default/brief-card.html.gz +0 -0
- package/dist/smart/chat-message/static/default/brief-questions.html +2 -0
- package/dist/smart/chat-message/static/default/brief-questions.html.gz +0 -0
- package/dist/smart/chat-message/static/default/deliverables.html +2 -0
- package/dist/smart/chat-message/static/default/deliverables.html.gz +0 -0
- package/dist/smart/chat-message/static/default/document.html +13 -0
- package/dist/smart/chat-message/static/default/document.html.gz +0 -0
- package/dist/smart/chat-message/static/default/failed.html +2 -0
- package/dist/smart/chat-message/static/default/failed.html.gz +0 -0
- package/dist/smart/chat-message/static/default/feedback-reason.html +2 -0
- package/dist/smart/chat-message/static/default/feedback-reason.html.gz +0 -0
- package/dist/smart/chat-message/static/default/limit.html +2 -0
- package/dist/smart/chat-message/static/default/limit.html.gz +0 -0
- package/dist/smart/chat-message/static/default/proposal.html +42 -0
- package/dist/smart/chat-message/static/default/proposal.html.gz +0 -0
- package/dist/smart/chat-message/static/default/question.html +18 -0
- package/dist/smart/chat-message/static/default/question.html.gz +0 -0
- package/dist/smart/chat-message/static/default/reference.html +2 -0
- package/dist/smart/chat-message/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-message/static/default/steps.html +2 -0
- package/dist/smart/chat-message/static/default/steps.html.gz +0 -0
- package/dist/smart/chat-message/static/default/stopped.html +2 -0
- package/dist/smart/chat-message/static/default/stopped.html.gz +0 -0
- package/dist/smart/chat-message/static/default/waiting.html +2 -0
- package/dist/smart/chat-message/static/default/waiting.html.gz +0 -0
- package/dist/smart/chat-message/static/person/person-own.html +2 -0
- package/dist/smart/chat-message/static/person/person-own.html.gz +0 -0
- package/dist/smart/chat-message/static/person/person-reply.html +6 -0
- package/dist/smart/chat-message/static/person/person-reply.html.gz +0 -0
- package/dist/smart/chat-message/static/person/person.html +14 -0
- package/dist/smart/chat-message/static/person/person.html.gz +0 -0
- package/dist/smart/chat-message/static/sheets.json +398 -0
- package/dist/smart/chat-message/static/sheets.json.gz +0 -0
- package/dist/smart/chat-message/studio.fixture.json +27 -0
- package/dist/smart/chat-message/studio.fixture.json.gz +0 -0
- package/dist/smart/chat-message/studio.scenario.json +22 -0
- package/dist/smart/chat-message/studio.scenario.json.gz +0 -0
- package/dist/smart/chat-message/template/default.css +1895 -0
- package/dist/smart/chat-message/template/default.css.gz +0 -0
- package/dist/smart/chat-message/template/default.js +27 -0
- package/dist/smart/chat-message/template/default.js.gz +0 -0
- package/dist/smart/chat-message/template/person.js +11 -0
- package/dist/smart/chat-message/template/person.js.gz +0 -0
- package/dist/smart/chat-threads/aliases.json +174 -0
- package/dist/smart/chat-threads/aliases.json.gz +0 -0
- package/dist/smart/chat-threads/component.json +1232 -0
- package/dist/smart/chat-threads/component.json.gz +0 -0
- package/dist/smart/chat-threads/css/chat-threads.css +150 -0
- package/dist/smart/chat-threads/css/chat-threads.css.gz +0 -0
- package/dist/smart/chat-threads/css/chat-threads.min.css +2 -0
- package/dist/smart/chat-threads/css/chat-threads.min.css.gz +0 -0
- package/dist/smart/chat-threads/examples.json +689 -0
- package/dist/smart/chat-threads/examples.json.gz +0 -0
- package/dist/smart/chat-threads/js/chat-threads.js +859 -0
- package/dist/smart/chat-threads/js/chat-threads.js.gz +0 -0
- package/dist/smart/chat-threads/js/chat-threads.min.js +39 -0
- package/dist/smart/chat-threads/js/chat-threads.min.js.gz +0 -0
- package/dist/smart/chat-threads/lang/en.json +18 -0
- package/dist/smart/chat-threads/lang/en.json.gz +0 -0
- package/dist/smart/chat-threads/lang/ru.json +18 -0
- package/dist/smart/chat-threads/lang/ru.json.gz +0 -0
- package/dist/smart/chat-threads/probe.json +406 -0
- package/dist/smart/chat-threads/probe.json.gz +0 -0
- package/dist/smart/chat-threads/smart.manifest.json +1152 -0
- package/dist/smart/chat-threads/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-threads/static/default/activity.html +139 -0
- package/dist/smart/chat-threads/static/default/activity.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/activity.skeleton.html +139 -0
- package/dist/smart/chat-threads/static/default/activity.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/archive.html +55 -0
- package/dist/smart/chat-threads/static/default/archive.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/archive.skeleton.html +55 -0
- package/dist/smart/chat-threads/static/default/archive.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/avatars.html +104 -0
- package/dist/smart/chat-threads/static/default/avatars.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/avatars.skeleton.html +104 -0
- package/dist/smart/chat-threads/static/default/avatars.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/empty.html +48 -0
- package/dist/smart/chat-threads/static/default/empty.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/loading.html +48 -0
- package/dist/smart/chat-threads/static/default/loading.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/people.html +95 -0
- package/dist/smart/chat-threads/static/default/people.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/people.skeleton.html +95 -0
- package/dist/smart/chat-threads/static/default/people.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/reference.html +114 -0
- package/dist/smart/chat-threads/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/reference.skeleton.html +114 -0
- package/dist/smart/chat-threads/static/default/reference.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/ungrouped.html +94 -0
- package/dist/smart/chat-threads/static/default/ungrouped.html.gz +0 -0
- package/dist/smart/chat-threads/static/default/ungrouped.skeleton.html +94 -0
- package/dist/smart/chat-threads/static/default/ungrouped.skeleton.html.gz +0 -0
- package/dist/smart/chat-threads/static/sheets.json +422 -0
- package/dist/smart/chat-threads/static/sheets.json.gz +0 -0
- package/dist/smart/chat-threads/studio.fixture.json +23 -0
- package/dist/smart/chat-threads/studio.fixture.json.gz +0 -0
- package/dist/smart/chat-threads/template/default.css +113 -0
- package/dist/smart/chat-threads/template/default.css.gz +0 -0
- package/dist/smart/chat-threads/template/default.js +62 -0
- package/dist/smart/chat-threads/template/default.js.gz +0 -0
- package/dist/smart/chat-window/aliases.json +395 -0
- package/dist/smart/chat-window/aliases.json.gz +0 -0
- package/dist/smart/chat-window/component.json +2809 -0
- package/dist/smart/chat-window/component.json.gz +0 -0
- package/dist/smart/chat-window/css/chat-window.css +1717 -0
- package/dist/smart/chat-window/css/chat-window.css.gz +0 -0
- package/dist/smart/chat-window/css/chat-window.min.css +2 -0
- package/dist/smart/chat-window/css/chat-window.min.css.gz +0 -0
- package/dist/smart/chat-window/examples.json +2798 -0
- package/dist/smart/chat-window/examples.json.gz +0 -0
- package/dist/smart/chat-window/js/chat-window.js +12382 -0
- package/dist/smart/chat-window/js/chat-window.js.gz +0 -0
- package/dist/smart/chat-window/js/chat-window.min.js +1 -0
- package/dist/smart/chat-window/js/chat-window.min.js.gz +0 -0
- package/dist/smart/chat-window/lang/en.json +212 -0
- package/dist/smart/chat-window/lang/en.json.gz +0 -0
- package/dist/smart/chat-window/lang/ru.json +218 -0
- package/dist/smart/chat-window/lang/ru.json.gz +0 -0
- package/dist/smart/chat-window/probe.json +2023 -0
- package/dist/smart/chat-window/probe.json.gz +0 -0
- package/dist/smart/chat-window/smart.manifest.json +2835 -0
- package/dist/smart/chat-window/smart.manifest.json.gz +0 -0
- package/dist/smart/chat-window/static/default/archived.html +97 -0
- package/dist/smart/chat-window/static/default/archived.html.gz +0 -0
- package/dist/smart/chat-window/static/default/embedded.html +119 -0
- package/dist/smart/chat-window/static/default/embedded.html.gz +0 -0
- package/dist/smart/chat-window/static/default/greeting.html +119 -0
- package/dist/smart/chat-window/static/default/greeting.html.gz +0 -0
- package/dist/smart/chat-window/static/default/people.html +110 -0
- package/dist/smart/chat-window/static/default/people.html.gz +0 -0
- package/dist/smart/chat-window/static/default/proposal.html +157 -0
- package/dist/smart/chat-window/static/default/proposal.html.gz +0 -0
- package/dist/smart/chat-window/static/default/reference.html +117 -0
- package/dist/smart/chat-window/static/default/reference.html.gz +0 -0
- package/dist/smart/chat-window/static/default/waiting.html +117 -0
- package/dist/smart/chat-window/static/default/waiting.html.gz +0 -0
- package/dist/smart/chat-window/static/sheets.json +476 -0
- package/dist/smart/chat-window/static/sheets.json.gz +0 -0
- package/dist/smart/chat-window/studio.fixture.json +13 -0
- package/dist/smart/chat-window/studio.fixture.json.gz +0 -0
- package/dist/smart/chat-window/studio.scenario.json +95 -0
- package/dist/smart/chat-window/studio.scenario.json.gz +0 -0
- package/dist/smart/chat-window/template/default.css +1168 -0
- package/dist/smart/chat-window/template/default.css.gz +0 -0
- package/dist/smart/chat-window/template/default.js +12 -0
- package/dist/smart/chat-window/template/default.js.gz +0 -0
- package/dist/smart/rule.js +185 -0
- package/dist/smart/rule.js.gz +0 -0
- package/package.json +29 -4
|
@@ -0,0 +1,814 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": 2,
|
|
3
|
+
"id": "smart.chat-message",
|
|
4
|
+
"version": "1.7.7",
|
|
5
|
+
"title": "Chat message",
|
|
6
|
+
"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.",
|
|
7
|
+
"kind": "smart",
|
|
8
|
+
"reuse_mode": "whole",
|
|
9
|
+
"lifecycle": "experimental",
|
|
10
|
+
"tags": [
|
|
11
|
+
"chat",
|
|
12
|
+
"message",
|
|
13
|
+
"conversation"
|
|
14
|
+
],
|
|
15
|
+
"capabilities": [
|
|
16
|
+
"content",
|
|
17
|
+
"keyboard",
|
|
18
|
+
"responsive"
|
|
19
|
+
],
|
|
20
|
+
"custom_element": "sf-chat-message",
|
|
21
|
+
"templates": [
|
|
22
|
+
"default",
|
|
23
|
+
"person"
|
|
24
|
+
],
|
|
25
|
+
"exported_parts": [],
|
|
26
|
+
"composition": {
|
|
27
|
+
"uses": [
|
|
28
|
+
"component.buttons",
|
|
29
|
+
"component.icon-buttons",
|
|
30
|
+
"component.inputs",
|
|
31
|
+
"smart.avatar",
|
|
32
|
+
"smart.badge",
|
|
33
|
+
"smart.confirm-change",
|
|
34
|
+
"smart.icon",
|
|
35
|
+
"smart.menu-context",
|
|
36
|
+
"smart.view-properties"
|
|
37
|
+
],
|
|
38
|
+
"public_parts": []
|
|
39
|
+
},
|
|
40
|
+
"inputs": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"properties": {
|
|
43
|
+
"template": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"default": "default",
|
|
46
|
+
"description": "default: an assistant's answer or a person's question (API.md Message); person: a message of a conversation between people."
|
|
47
|
+
},
|
|
48
|
+
"root-class": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"default": "",
|
|
51
|
+
"description": "Classes added to the root element the component draws."
|
|
52
|
+
},
|
|
53
|
+
"root-style": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"default": "",
|
|
56
|
+
"description": "Inline style declarations set on the root element the component draws, custom properties included."
|
|
57
|
+
},
|
|
58
|
+
"view": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"default": {},
|
|
61
|
+
"description": "Dated alias of display until 2026-12-01."
|
|
62
|
+
},
|
|
63
|
+
"message": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"description": "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."
|
|
66
|
+
},
|
|
67
|
+
"display": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"default": {},
|
|
70
|
+
"description": "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."
|
|
71
|
+
},
|
|
72
|
+
"features": {
|
|
73
|
+
"type": "object",
|
|
74
|
+
"default": {
|
|
75
|
+
"feedback": true,
|
|
76
|
+
"proposals": true,
|
|
77
|
+
"memory": true,
|
|
78
|
+
"brief": false
|
|
79
|
+
},
|
|
80
|
+
"description": "What the surface offers: rating, proposals, memory notices, the task brief."
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"additionalProperties": false
|
|
84
|
+
},
|
|
85
|
+
"item_contract": {},
|
|
86
|
+
"contracts": {
|
|
87
|
+
"message": {
|
|
88
|
+
"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."
|
|
89
|
+
},
|
|
90
|
+
"sanitize": {
|
|
91
|
+
"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."
|
|
92
|
+
},
|
|
93
|
+
"brief": {
|
|
94
|
+
"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."
|
|
95
|
+
},
|
|
96
|
+
"css_variables": {
|
|
97
|
+
"type": "object",
|
|
98
|
+
"properties": {
|
|
99
|
+
"--sf-chat-message-width": {
|
|
100
|
+
"type": "string"
|
|
101
|
+
},
|
|
102
|
+
"--sf-chat-message-text-color": {
|
|
103
|
+
"type": "string"
|
|
104
|
+
},
|
|
105
|
+
"--sf-chat-message-muted-color": {
|
|
106
|
+
"type": "string"
|
|
107
|
+
},
|
|
108
|
+
"--sf-chat-message-bubble-color": {
|
|
109
|
+
"type": "string"
|
|
110
|
+
},
|
|
111
|
+
"--sf-chat-message-border-color": {
|
|
112
|
+
"type": "string"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"methods": {
|
|
118
|
+
"focus": {
|
|
119
|
+
"summary": "The base's focus.",
|
|
120
|
+
"arguments": [
|
|
121
|
+
{
|
|
122
|
+
"name": "options",
|
|
123
|
+
"required": false,
|
|
124
|
+
"schema": {
|
|
125
|
+
"type": "object"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"returns": {
|
|
130
|
+
"type": "null"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"focusField": {
|
|
134
|
+
"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.",
|
|
135
|
+
"arguments": [
|
|
136
|
+
{
|
|
137
|
+
"name": "blockId",
|
|
138
|
+
"required": true,
|
|
139
|
+
"schema": {
|
|
140
|
+
"type": "string"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "key",
|
|
145
|
+
"required": false,
|
|
146
|
+
"schema": {
|
|
147
|
+
"type": "string"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
"returns": {
|
|
152
|
+
"type": "boolean"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"settleBlock": {
|
|
156
|
+
"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.",
|
|
157
|
+
"arguments": [
|
|
158
|
+
{
|
|
159
|
+
"name": "blockId",
|
|
160
|
+
"required": true,
|
|
161
|
+
"schema": {
|
|
162
|
+
"type": "string"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": "result",
|
|
167
|
+
"required": true,
|
|
168
|
+
"schema": {
|
|
169
|
+
"type": "object"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"returns": {
|
|
174
|
+
"type": "null"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"events": {
|
|
179
|
+
"sf-chat-message-retry": {
|
|
180
|
+
"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.",
|
|
181
|
+
"payload": {
|
|
182
|
+
"type": "object",
|
|
183
|
+
"required": [],
|
|
184
|
+
"properties": {
|
|
185
|
+
"id": {},
|
|
186
|
+
"key": {
|
|
187
|
+
"type": "string"
|
|
188
|
+
},
|
|
189
|
+
"kind": {
|
|
190
|
+
"type": "string"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"additionalProperties": true
|
|
194
|
+
},
|
|
195
|
+
"canonical": true
|
|
196
|
+
},
|
|
197
|
+
"sf-chat-message-check": {
|
|
198
|
+
"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.",
|
|
199
|
+
"payload": {
|
|
200
|
+
"type": "object",
|
|
201
|
+
"required": [
|
|
202
|
+
"id"
|
|
203
|
+
],
|
|
204
|
+
"properties": {
|
|
205
|
+
"id": {}
|
|
206
|
+
},
|
|
207
|
+
"additionalProperties": true
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"sf-chat-message-rate": {
|
|
211
|
+
"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.",
|
|
212
|
+
"payload": {
|
|
213
|
+
"type": "object",
|
|
214
|
+
"required": [
|
|
215
|
+
"id",
|
|
216
|
+
"value"
|
|
217
|
+
],
|
|
218
|
+
"properties": {
|
|
219
|
+
"id": {},
|
|
220
|
+
"value": {
|
|
221
|
+
"type": "string"
|
|
222
|
+
},
|
|
223
|
+
"reason": {
|
|
224
|
+
"type": [
|
|
225
|
+
"string",
|
|
226
|
+
"null"
|
|
227
|
+
]
|
|
228
|
+
},
|
|
229
|
+
"note": {
|
|
230
|
+
"type": "string"
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"additionalProperties": true
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"sf-chat-message-cancel": {
|
|
237
|
+
"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.",
|
|
238
|
+
"payload": {
|
|
239
|
+
"type": "object",
|
|
240
|
+
"required": [
|
|
241
|
+
"id",
|
|
242
|
+
"kind"
|
|
243
|
+
],
|
|
244
|
+
"properties": {
|
|
245
|
+
"id": {},
|
|
246
|
+
"kind": {
|
|
247
|
+
"type": "string"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"additionalProperties": true
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"sf-chat-message-drafted": {
|
|
254
|
+
"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.",
|
|
255
|
+
"payload": {
|
|
256
|
+
"type": "object",
|
|
257
|
+
"required": [
|
|
258
|
+
"id",
|
|
259
|
+
"reason",
|
|
260
|
+
"note"
|
|
261
|
+
],
|
|
262
|
+
"properties": {
|
|
263
|
+
"id": {},
|
|
264
|
+
"reason": {
|
|
265
|
+
"type": [
|
|
266
|
+
"string",
|
|
267
|
+
"null"
|
|
268
|
+
]
|
|
269
|
+
},
|
|
270
|
+
"note": {
|
|
271
|
+
"type": "string"
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"additionalProperties": true
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
"sf-chat-message-toggle": {
|
|
278
|
+
"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}.",
|
|
279
|
+
"payload": {
|
|
280
|
+
"type": "object",
|
|
281
|
+
"required": [
|
|
282
|
+
"id",
|
|
283
|
+
"kind",
|
|
284
|
+
"open"
|
|
285
|
+
],
|
|
286
|
+
"properties": {
|
|
287
|
+
"id": {},
|
|
288
|
+
"kind": {
|
|
289
|
+
"type": "string"
|
|
290
|
+
},
|
|
291
|
+
"open": {
|
|
292
|
+
"type": "boolean"
|
|
293
|
+
},
|
|
294
|
+
"quiet": {
|
|
295
|
+
"type": "boolean",
|
|
296
|
+
"description": "kind react: the picker closed by a press elsewhere; the focus stays where that press put it."
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"additionalProperties": true
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
"sf-chat-message-open": {
|
|
303
|
+
"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}.",
|
|
304
|
+
"payload": {
|
|
305
|
+
"type": "object",
|
|
306
|
+
"required": [
|
|
307
|
+
"id",
|
|
308
|
+
"kind"
|
|
309
|
+
],
|
|
310
|
+
"properties": {
|
|
311
|
+
"id": {},
|
|
312
|
+
"kind": {
|
|
313
|
+
"enum": [
|
|
314
|
+
"preview",
|
|
315
|
+
"quote",
|
|
316
|
+
"thread",
|
|
317
|
+
"document"
|
|
318
|
+
]
|
|
319
|
+
},
|
|
320
|
+
"source": {
|
|
321
|
+
"type": "object",
|
|
322
|
+
"description": "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."
|
|
323
|
+
},
|
|
324
|
+
"target": {
|
|
325
|
+
"description": "kind quote: the id of the message the quote leads to."
|
|
326
|
+
},
|
|
327
|
+
"document": {
|
|
328
|
+
"type": "object",
|
|
329
|
+
"description": "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."
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"additionalProperties": true
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
"sf-chat-message-copied": {
|
|
336
|
+
"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.",
|
|
337
|
+
"payload": {
|
|
338
|
+
"type": "object",
|
|
339
|
+
"required": [
|
|
340
|
+
"id",
|
|
341
|
+
"done"
|
|
342
|
+
],
|
|
343
|
+
"properties": {
|
|
344
|
+
"id": {},
|
|
345
|
+
"done": {
|
|
346
|
+
"type": "boolean"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"additionalProperties": true
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
"sf-chat-message-submit": {
|
|
353
|
+
"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.",
|
|
354
|
+
"payload": {
|
|
355
|
+
"type": "object",
|
|
356
|
+
"required": [
|
|
357
|
+
"id",
|
|
358
|
+
"text",
|
|
359
|
+
"kind",
|
|
360
|
+
"block_id",
|
|
361
|
+
"action",
|
|
362
|
+
"revision",
|
|
363
|
+
"values"
|
|
364
|
+
],
|
|
365
|
+
"properties": {
|
|
366
|
+
"id": {},
|
|
367
|
+
"text": {
|
|
368
|
+
"type": "string"
|
|
369
|
+
},
|
|
370
|
+
"kind": {
|
|
371
|
+
"type": "string"
|
|
372
|
+
},
|
|
373
|
+
"block_id": {},
|
|
374
|
+
"action": {
|
|
375
|
+
"type": "string"
|
|
376
|
+
},
|
|
377
|
+
"revision": {
|
|
378
|
+
"type": "string"
|
|
379
|
+
},
|
|
380
|
+
"values": {
|
|
381
|
+
"type": "object"
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
"additionalProperties": true
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
"sf-chat-message-save": {
|
|
388
|
+
"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.",
|
|
389
|
+
"payload": {
|
|
390
|
+
"type": "object",
|
|
391
|
+
"required": [
|
|
392
|
+
"id",
|
|
393
|
+
"values"
|
|
394
|
+
],
|
|
395
|
+
"properties": {
|
|
396
|
+
"id": {},
|
|
397
|
+
"values": {
|
|
398
|
+
"type": "object"
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
"additionalProperties": true
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"sf-chat-message-delete": {
|
|
405
|
+
"summary": "The template person: «Удалить» confirmed {ids: [id]} (vocabulary §5 delete, port message.delete).",
|
|
406
|
+
"payload": {
|
|
407
|
+
"type": "object",
|
|
408
|
+
"required": [
|
|
409
|
+
"ids"
|
|
410
|
+
],
|
|
411
|
+
"properties": {
|
|
412
|
+
"ids": {
|
|
413
|
+
"type": "array"
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
"additionalProperties": true
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
"sf-chat-message-react": {
|
|
420
|
+
"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.",
|
|
421
|
+
"payload": {
|
|
422
|
+
"type": "object",
|
|
423
|
+
"required": [
|
|
424
|
+
"id",
|
|
425
|
+
"emoji",
|
|
426
|
+
"on"
|
|
427
|
+
],
|
|
428
|
+
"properties": {
|
|
429
|
+
"id": {},
|
|
430
|
+
"emoji": {
|
|
431
|
+
"type": "string"
|
|
432
|
+
},
|
|
433
|
+
"on": {
|
|
434
|
+
"type": "boolean"
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
"additionalProperties": true
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
"sf-chat-message-reply": {
|
|
441
|
+
"summary": "«Ответить»: {id}. The host says what the field answers.",
|
|
442
|
+
"payload": {
|
|
443
|
+
"type": "object",
|
|
444
|
+
"required": [
|
|
445
|
+
"id"
|
|
446
|
+
],
|
|
447
|
+
"properties": {
|
|
448
|
+
"id": {}
|
|
449
|
+
},
|
|
450
|
+
"additionalProperties": true
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
"sf-chat-message-stop": {
|
|
454
|
+
"summary": "Stop on a document's wait, where display.canStop allows it: {id}.",
|
|
455
|
+
"payload": {
|
|
456
|
+
"type": "object",
|
|
457
|
+
"required": [
|
|
458
|
+
"id"
|
|
459
|
+
],
|
|
460
|
+
"properties": {
|
|
461
|
+
"id": {}
|
|
462
|
+
},
|
|
463
|
+
"additionalProperties": true
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
"sf-chat-action": {
|
|
467
|
+
"summary": "Dated alias of sf-chat-message-retry until 2026-12-01 (split).",
|
|
468
|
+
"payload": {
|
|
469
|
+
"type": "object"
|
|
470
|
+
},
|
|
471
|
+
"alias_of": "sf-chat-message-retry"
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
"state": {
|
|
475
|
+
"machines": {
|
|
476
|
+
"message": [
|
|
477
|
+
"queued",
|
|
478
|
+
"running",
|
|
479
|
+
"completed",
|
|
480
|
+
"partial",
|
|
481
|
+
"failed",
|
|
482
|
+
"refused",
|
|
483
|
+
"withheld",
|
|
484
|
+
"limit"
|
|
485
|
+
],
|
|
486
|
+
"wait": [
|
|
487
|
+
"none",
|
|
488
|
+
"delayed",
|
|
489
|
+
"stopped",
|
|
490
|
+
"network"
|
|
491
|
+
],
|
|
492
|
+
"brief": [
|
|
493
|
+
"none",
|
|
494
|
+
"live",
|
|
495
|
+
"record"
|
|
496
|
+
],
|
|
497
|
+
"steps": [
|
|
498
|
+
"none",
|
|
499
|
+
"running",
|
|
500
|
+
"done",
|
|
501
|
+
"failed"
|
|
502
|
+
],
|
|
503
|
+
"preview": [
|
|
504
|
+
"none",
|
|
505
|
+
"asked"
|
|
506
|
+
]
|
|
507
|
+
},
|
|
508
|
+
"visual_states": [
|
|
509
|
+
"default",
|
|
510
|
+
"loading",
|
|
511
|
+
"error"
|
|
512
|
+
]
|
|
513
|
+
},
|
|
514
|
+
"persistence": {
|
|
515
|
+
"mode": "none",
|
|
516
|
+
"source_of_truth": "host",
|
|
517
|
+
"network_owner": "host",
|
|
518
|
+
"revision_field": null
|
|
519
|
+
},
|
|
520
|
+
"ownership": {
|
|
521
|
+
"source": "simai/ui-pro",
|
|
522
|
+
"data": "host",
|
|
523
|
+
"effects": "host",
|
|
524
|
+
"forbidden_client_responsibilities": [
|
|
525
|
+
"fetching or polling the chat API",
|
|
526
|
+
"sending a rating, an answer or an edit",
|
|
527
|
+
"deciding a proposal",
|
|
528
|
+
"access decisions"
|
|
529
|
+
]
|
|
530
|
+
},
|
|
531
|
+
"security": {
|
|
532
|
+
"permissions_owner": "host",
|
|
533
|
+
"untrusted_inputs": [
|
|
534
|
+
"message html (sanitized: SF.sanitizeHtml)",
|
|
535
|
+
"message texts, source titles and excerpts (drawn as text)",
|
|
536
|
+
"source URLs (http and https only)",
|
|
537
|
+
"file names (drawn as text)",
|
|
538
|
+
"download addresses (the host's, used as given)"
|
|
539
|
+
],
|
|
540
|
+
"network_policy": "host-only"
|
|
541
|
+
},
|
|
542
|
+
"accessibility": {
|
|
543
|
+
"role": "article",
|
|
544
|
+
"accessible_name": "internal",
|
|
545
|
+
"keyboard": [
|
|
546
|
+
"Tab",
|
|
547
|
+
"Enter",
|
|
548
|
+
"Escape",
|
|
549
|
+
"Shift+Enter"
|
|
550
|
+
],
|
|
551
|
+
"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 «Отмена»."
|
|
552
|
+
},
|
|
553
|
+
"presentation": {
|
|
554
|
+
"themes": [
|
|
555
|
+
"light",
|
|
556
|
+
"dark"
|
|
557
|
+
],
|
|
558
|
+
"locales": [
|
|
559
|
+
"en",
|
|
560
|
+
"ru"
|
|
561
|
+
],
|
|
562
|
+
"responsive": [
|
|
563
|
+
"desktop",
|
|
564
|
+
"mobile"
|
|
565
|
+
]
|
|
566
|
+
},
|
|
567
|
+
"adapter": {
|
|
568
|
+
"kind": "generic",
|
|
569
|
+
"protocol": "simai.smart-studio-adapter.v1",
|
|
570
|
+
"module": null
|
|
571
|
+
},
|
|
572
|
+
"artifacts": {
|
|
573
|
+
"fixtures": [
|
|
574
|
+
"studio.fixture.json"
|
|
575
|
+
],
|
|
576
|
+
"scenarios": [
|
|
577
|
+
"studio.scenario.json"
|
|
578
|
+
]
|
|
579
|
+
},
|
|
580
|
+
"readiness": {
|
|
581
|
+
"level": "host-required",
|
|
582
|
+
"required_checks": [
|
|
583
|
+
"manifest",
|
|
584
|
+
"loader-rule",
|
|
585
|
+
"chat-message-probe"
|
|
586
|
+
]
|
|
587
|
+
},
|
|
588
|
+
"compatibility": {
|
|
589
|
+
"contract_schema": {
|
|
590
|
+
"id": "https://simai.io/contracts/smart-component-manifest.v2.schema.json",
|
|
591
|
+
"version": 2
|
|
592
|
+
},
|
|
593
|
+
"runtime_pair": {
|
|
594
|
+
"ui_revision": "0edd49be08f802b60ed92f176b68911a42a12f3f",
|
|
595
|
+
"ui_smart_revision": "0edd49be08f802b60ed92f176b68911a42a12f3f"
|
|
596
|
+
},
|
|
597
|
+
"aliases": [],
|
|
598
|
+
"deprecations": [],
|
|
599
|
+
"replacement": null,
|
|
600
|
+
"migrations": [
|
|
601
|
+
{
|
|
602
|
+
"from": "0.3.1",
|
|
603
|
+
"to": "1.0.0",
|
|
604
|
+
"changes": [
|
|
605
|
+
"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",
|
|
606
|
+
"property view -> the setting display until 2026-12-01 (setting alias)",
|
|
607
|
+
"sf-chat-action {action, ...} -> sf-chat-message-retry, -check, -rate, -cancel, -drafted, -toggle, -copied, -submit until 2026-12-01 (event, split aliases)",
|
|
608
|
+
"a file chip is sf-chat-composer's; a sent file keeps its download link and the «Файл удалён» check"
|
|
609
|
+
]
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
"from": "1.0.1",
|
|
613
|
+
"to": "1.0.2",
|
|
614
|
+
"changes": [
|
|
615
|
+
"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."
|
|
616
|
+
]
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"from": "1.0.3",
|
|
620
|
+
"to": "1.1.0",
|
|
621
|
+
"changes": [
|
|
622
|
+
"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.",
|
|
623
|
+
"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.",
|
|
624
|
+
"An answer's files (attachments on an assistant message): «Что готово» with a card per file, «Просмотр» and «Скачать».",
|
|
625
|
+
"A downloaded file found gone says «Файл недоступен» instead of «Файл удалён» (attachment-deleted). A host that looked for the old words looks for the new ones."
|
|
626
|
+
]
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"from": "1.1.0",
|
|
630
|
+
"to": "1.2.0",
|
|
631
|
+
"changes": [
|
|
632
|
+
"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.",
|
|
633
|
+
"Both templates: display.divider unread draws «Новые» before the message. Without the new fields a message draws as before."
|
|
634
|
+
]
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"from": "1.2.0",
|
|
638
|
+
"to": "1.3.0",
|
|
639
|
+
"changes": [
|
|
640
|
+
"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.",
|
|
641
|
+
"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)."
|
|
642
|
+
]
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"from": "1.3.0",
|
|
646
|
+
"to": "1.4.0",
|
|
647
|
+
"changes": [
|
|
648
|
+
"Template person: the avatar is the Framework's sf-avatar when the element draws it (the view without a runtime keeps the plain initials).",
|
|
649
|
+
"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}.",
|
|
650
|
+
"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."
|
|
651
|
+
]
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"from": "1.4.0",
|
|
655
|
+
"to": "1.4.1",
|
|
656
|
+
"changes": [
|
|
657
|
+
"Initials in a muted tone picked from the name (sf-avatar 1.2.0, tone auto). Additive."
|
|
658
|
+
]
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
"from": "1.4.2",
|
|
662
|
+
"to": "1.5.0",
|
|
663
|
+
"changes": [
|
|
664
|
+
"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."
|
|
665
|
+
]
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"from": "1.5.0",
|
|
669
|
+
"to": "1.5.1",
|
|
670
|
+
"changes": [
|
|
671
|
+
"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."
|
|
672
|
+
]
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
"from": "1.5.1",
|
|
676
|
+
"to": "1.5.2",
|
|
677
|
+
"changes": [
|
|
678
|
+
"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."
|
|
679
|
+
]
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"from": "1.5.2",
|
|
683
|
+
"to": "1.5.3",
|
|
684
|
+
"changes": [
|
|
685
|
+
"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."
|
|
686
|
+
]
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
"from": "1.5.3",
|
|
690
|
+
"to": "1.5.4",
|
|
691
|
+
"changes": [
|
|
692
|
+
"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."
|
|
693
|
+
]
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
"from": "1.5.5",
|
|
697
|
+
"to": "1.6.0",
|
|
698
|
+
"changes": [
|
|
699
|
+
"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."
|
|
700
|
+
]
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
"from": "1.6.0",
|
|
704
|
+
"to": "1.7.0",
|
|
705
|
+
"changes": [
|
|
706
|
+
"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."
|
|
707
|
+
]
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"from": "1.7.0",
|
|
711
|
+
"to": "1.7.1",
|
|
712
|
+
"changes": [
|
|
713
|
+
"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."
|
|
714
|
+
]
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"from": "1.7.1",
|
|
718
|
+
"to": "1.7.2",
|
|
719
|
+
"changes": [
|
|
720
|
+
"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."
|
|
721
|
+
]
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"from": "1.7.2",
|
|
725
|
+
"to": "1.7.3",
|
|
726
|
+
"changes": [
|
|
727
|
+
"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."
|
|
728
|
+
]
|
|
729
|
+
}
|
|
730
|
+
]
|
|
731
|
+
},
|
|
732
|
+
"provenance": {
|
|
733
|
+
"source_repository": "simai/ui-pro",
|
|
734
|
+
"source_revision": "bb895919cf9ce423e78f064845b90c4a19de11c5",
|
|
735
|
+
"source_artifacts": [
|
|
736
|
+
{
|
|
737
|
+
"path": "src/smart/chat-message/index.js",
|
|
738
|
+
"sha256": "8c334d59b84ebef40cfce21c824b7e26083b771904dd3d3c1981bef9969b141a"
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
"path": "src/smart/chat-message/js/templates/default.js",
|
|
742
|
+
"sha256": "0a95fefab8383f9975c8ff69d85e52e7f1a81472ae0dd1afa71710e3d565635b"
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
"path": "src/smart/chat-message/js/templates/person.js",
|
|
746
|
+
"sha256": "9ee1b98623c90d4716090be24e9969985f4c67a982f7c515be15e1dcdd3a61b5"
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"path": "src/smart/chat-message/js/view/message.js",
|
|
750
|
+
"sha256": "d74814ba590d7a9c6500df5977710ffd810efc5e84d28c4cdeb4a2338aa3635f"
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"path": "src/smart/chat-message/js/view/person.js",
|
|
754
|
+
"sha256": "f727ff4223b435b162da27a66b959748c44146dfad22fdeb193515a2bafc81be"
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"path": "src/smart/chat-message/js/view/proposed.js",
|
|
758
|
+
"sha256": "7a4493c9a2acede694c82c701d7cd7147c2fc5b7a0a20e74c7e895579b8c9d39"
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
"path": "src/smart/chat-message/js/view/social.js",
|
|
762
|
+
"sha256": "a784b525e1ebca7a6ef9e0442cba5eb42e2e1b18fed99dd2f3a01506d4a6b1f2"
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
"path": "src/smart/chat-message/js/templates/default.css",
|
|
766
|
+
"sha256": "a77925c431dd87397f16f69b4494e2514bbd724d53474cb803df91504b09ae1c"
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
"path": "src/smart/chat-message/rule.js",
|
|
770
|
+
"sha256": "90893f5212999745164827779d00d5d5a5e451f95c0d49a59557c3f629807337"
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"path": "src/smart/chat-message/docs.md",
|
|
774
|
+
"sha256": "df566fdc9b790b12f1717d0392d4ca0d8fc39d6cf4e733d125f95365472c36e5"
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
"path": "src/smart/chat-message/component.json",
|
|
778
|
+
"sha256": "d836388fb93dc0b44cec81cf52176b3b794823a1760f126ca5511ea855f92aed"
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
"path": "src/smart/chat-message/aliases.json",
|
|
782
|
+
"sha256": "da94ebcf9f8623abc57956b57056c8b0c9b2e2526e0a122a93b4fe5569dd9a0e"
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
"path": "src/smart/chat-message/lang/en.json",
|
|
786
|
+
"sha256": "86f43c7eda76879b415fe8eb7f523e22eff099509cd0630b39152b447ab74d20"
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
"path": "src/smart/chat-message/lang/ru.json",
|
|
790
|
+
"sha256": "df50f78675a67343cb9a9ee072664bc85b13b73a89a78f48533c30237f2ae2be"
|
|
791
|
+
}
|
|
792
|
+
],
|
|
793
|
+
"generated_runtime": []
|
|
794
|
+
},
|
|
795
|
+
"ai_guidance": {
|
|
796
|
+
"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.",
|
|
797
|
+
"do_not": [
|
|
798
|
+
"Do not stack sf-chat-message elements into a conversation yourself; sf-list-feed keeps the reading position and the announcements",
|
|
799
|
+
"Do not put trusted markup into message.html; it is sanitized, and only the allow-list survives",
|
|
800
|
+
"Do not decide a proposal in the message; answer sf-change-confirm-answer in the window"
|
|
801
|
+
],
|
|
802
|
+
"required_reads": [
|
|
803
|
+
"inputs",
|
|
804
|
+
"contracts",
|
|
805
|
+
"events",
|
|
806
|
+
"accessibility"
|
|
807
|
+
],
|
|
808
|
+
"minimal_example": "<sf-chat-message></sf-chat-message> with element.message = {id: 'msg_03', role: 'assistant', status: 'completed', text: 'Ежегодный отпуск — 28 календарных дней.'}",
|
|
809
|
+
"owner_commands": [
|
|
810
|
+
"node scripts/test.mjs",
|
|
811
|
+
"node scripts/run-manifest-probes.mjs <free output> <package output> chat-message"
|
|
812
|
+
]
|
|
813
|
+
}
|
|
814
|
+
}
|