@happyvertical/smrt-chat 0.38.25 → 0.39.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/dist/index.js +1 -1
- package/dist/manifest.json +2467 -2467
- package/dist/playground.js +6 -6
- package/dist/playground.js.map +1 -1
- package/dist/smrt-knowledge.json +182 -182
- package/dist/svelte/playground.d.ts.map +1 -1
- package/dist/svelte/playground.js +6 -6
- package/package.json +26 -25
- package/LICENSE +0 -7
package/dist/playground.js
CHANGED
|
@@ -16,7 +16,7 @@ var sampleRooms = [
|
|
|
16
16
|
roomId: "room-editorial",
|
|
17
17
|
senderProfileId: "profile-taylor",
|
|
18
18
|
senderName: "Taylor Rowan",
|
|
19
|
-
content: "Content QA is clear for tonight’s
|
|
19
|
+
content: "Content QA is clear for tonight’s publication window.",
|
|
20
20
|
messageType: "text",
|
|
21
21
|
role: "user",
|
|
22
22
|
isEdited: false,
|
|
@@ -53,7 +53,7 @@ var sampleMessages = [{
|
|
|
53
53
|
roomId: "room-editorial",
|
|
54
54
|
senderProfileId: "profile-taylor",
|
|
55
55
|
senderName: "Taylor Rowan",
|
|
56
|
-
content: "The
|
|
56
|
+
content: "The editorial checklist is ready for review.",
|
|
57
57
|
messageType: "text",
|
|
58
58
|
role: "user",
|
|
59
59
|
isEdited: false,
|
|
@@ -72,7 +72,7 @@ var sampleMessages = [{
|
|
|
72
72
|
roomId: "room-editorial",
|
|
73
73
|
senderProfileId: "profile-jordan",
|
|
74
74
|
senderName: "Jordan Lee",
|
|
75
|
-
content: "
|
|
75
|
+
content: "I’ll verify the governance states and flag anything that needs attention.",
|
|
76
76
|
messageType: "text",
|
|
77
77
|
role: "user",
|
|
78
78
|
isEdited: false,
|
|
@@ -80,7 +80,7 @@ var sampleMessages = [{
|
|
|
80
80
|
replyTo: {
|
|
81
81
|
id: "chat-message-1",
|
|
82
82
|
senderName: "Taylor Rowan",
|
|
83
|
-
content: "The
|
|
83
|
+
content: "The editorial checklist is ready for review."
|
|
84
84
|
},
|
|
85
85
|
reactions: [],
|
|
86
86
|
attachments: [],
|
|
@@ -131,11 +131,11 @@ var playground_default = {
|
|
|
131
131
|
order: 3,
|
|
132
132
|
props: {
|
|
133
133
|
onsend: noop,
|
|
134
|
-
placeholder: "Reply to
|
|
134
|
+
placeholder: "Reply to Editorial Ops…",
|
|
135
135
|
replyTo: {
|
|
136
136
|
id: "chat-message-1",
|
|
137
137
|
senderName: "Taylor Rowan",
|
|
138
|
-
content: "The
|
|
138
|
+
content: "The editorial checklist is ready for review."
|
|
139
139
|
},
|
|
140
140
|
oncancelreply: noop
|
|
141
141
|
},
|
package/dist/playground.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playground.js","names":[],"sources":["../src/svelte/playground.ts"],"sourcesContent":["import { CHAT_MODULE_META } from '../ui.js';\n\nconst noop = () => {};\n\nconst sampleRooms = [\n {\n id: 'room-editorial',\n name: 'Editorial Ops',\n description: 'Daily coordination room',\n roomType: 'public',\n topic: 'Launch readiness and governance',\n participantCount: 8,\n unreadCount: 4,\n lastMessageAt: '2026-03-21T16:08:00.000Z',\n lastMessage: {\n id: 'room-editorial-last',\n roomId: 'room-editorial',\n senderProfileId: 'profile-taylor',\n senderName: 'Taylor Rowan',\n content: 'Content QA is clear for tonight’s
|
|
1
|
+
{"version":3,"file":"playground.js","names":[],"sources":["../src/svelte/playground.ts"],"sourcesContent":["import { CHAT_MODULE_META } from '../ui.js';\n\nconst noop = () => {};\n\nconst sampleRooms = [\n {\n id: 'room-editorial',\n name: 'Editorial Ops',\n description: 'Daily coordination room',\n roomType: 'public',\n topic: 'Launch readiness and governance',\n participantCount: 8,\n unreadCount: 4,\n lastMessageAt: '2026-03-21T16:08:00.000Z',\n lastMessage: {\n id: 'room-editorial-last',\n roomId: 'room-editorial',\n senderProfileId: 'profile-taylor',\n senderName: 'Taylor Rowan',\n content: 'Content QA is clear for tonight’s publication window.',\n messageType: 'text',\n role: 'user',\n isEdited: false,\n isDeleted: false,\n reactions: [],\n attachments: [],\n createdAt: '2026-03-21T16:08:00.000Z',\n },\n },\n {\n id: 'room-governance',\n name: 'Governance',\n description: 'Policy review',\n roomType: 'agent',\n topic: 'Publication profile monitoring',\n participantCount: 3,\n unreadCount: 1,\n isPinned: true,\n lastMessageAt: '2026-03-21T15:55:00.000Z',\n },\n {\n id: 'room-jordan',\n name: 'Jordan Lee',\n description: 'Direct message',\n roomType: 'dm',\n topic: '',\n participantCount: 2,\n unreadCount: 0,\n lastMessageAt: '2026-03-21T14:12:00.000Z',\n },\n];\n\nconst sampleMessages = [\n {\n id: 'chat-message-1',\n roomId: 'room-editorial',\n senderProfileId: 'profile-taylor',\n senderName: 'Taylor Rowan',\n content: 'The editorial checklist is ready for review.',\n messageType: 'text',\n role: 'user',\n isEdited: false,\n isDeleted: false,\n replyTo: null,\n reactions: [\n {\n emoji: '✅',\n count: 2,\n reacted: true,\n profileIds: ['profile-taylor', 'profile-jordan'],\n },\n ],\n attachments: [],\n createdAt: '2026-03-21T15:52:00.000Z',\n },\n {\n id: 'chat-message-2',\n roomId: 'room-editorial',\n senderProfileId: 'profile-jordan',\n senderName: 'Jordan Lee',\n content:\n 'I’ll verify the governance states and flag anything that needs attention.',\n messageType: 'text',\n role: 'user',\n isEdited: false,\n isDeleted: false,\n replyTo: {\n id: 'chat-message-1',\n senderName: 'Taylor Rowan',\n content: 'The editorial checklist is ready for review.',\n },\n reactions: [],\n attachments: [],\n createdAt: '2026-03-21T15:58:00.000Z',\n },\n];\n\nconst loadMessageInput = () =>\n import('./components/messages/MessageInput.svelte');\nconst loadMessageList = () =>\n import('./components/messages/MessageList.svelte');\nconst loadRoomList = () => import('./components/layout/RoomList.svelte');\n\nexport default {\n packageName: '@happyvertical/smrt-chat',\n displayName: CHAT_MODULE_META.displayName,\n description: CHAT_MODULE_META.description,\n moduleMeta: CHAT_MODULE_META,\n entries: [\n {\n id: 'room-list',\n title: 'Room List',\n description:\n 'Sidebar navigation for rooms, DMs, and agent conversations with unread state.',\n loadComponent: loadRoomList,\n order: 1,\n props: {\n rooms: sampleRooms,\n currentRoomId: 'room-editorial',\n onselectroom: noop,\n oncreateroom: noop,\n },\n modes: {\n mock: {\n label: 'Mock',\n },\n },\n },\n {\n id: 'message-list',\n title: 'Message List',\n description:\n 'Grouped chat transcript with replies and reactions for a conversation thread.',\n loadComponent: loadMessageList,\n order: 2,\n props: {\n messages: sampleMessages,\n currentProfileId: 'profile-taylor',\n onreply: noop,\n onreact: noop,\n },\n modes: {\n mock: {\n label: 'Mock',\n },\n },\n },\n {\n id: 'message-input',\n title: 'Message Input',\n description:\n 'Chat composer with reply context and keyboard send affordance.',\n loadComponent: loadMessageInput,\n order: 3,\n props: {\n onsend: noop,\n placeholder: 'Reply to Editorial Ops…',\n replyTo: {\n id: 'chat-message-1',\n senderName: 'Taylor Rowan',\n content: 'The editorial checklist is ready for review.',\n },\n oncancelreply: noop,\n },\n modes: {\n mock: {\n label: 'Mock',\n },\n },\n },\n ],\n};\n"],"mappings":";;AAEA,IAAM,aAAa,CAAC;AAEpB,IAAM,cAAc;CAClB;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,UAAU;EACV,OAAO;EACP,kBAAkB;EAClB,aAAa;EACb,eAAe;EACf,aAAa;GACX,IAAI;GACJ,QAAQ;GACR,iBAAiB;GACjB,YAAY;GACZ,SAAS;GACT,aAAa;GACb,MAAM;GACN,UAAU;GACV,WAAW;GACX,WAAW,CAAC;GACZ,aAAa,CAAC;GACd,WAAW;EACb;CACF;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,UAAU;EACV,OAAO;EACP,kBAAkB;EAClB,aAAa;EACb,UAAU;EACV,eAAe;CACjB;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,UAAU;EACV,OAAO;EACP,kBAAkB;EAClB,aAAa;EACb,eAAe;CACjB;AACF;AAEA,IAAM,iBAAiB,CACrB;CACE,IAAI;CACJ,QAAQ;CACR,iBAAiB;CACjB,YAAY;CACZ,SAAS;CACT,aAAa;CACb,MAAM;CACN,UAAU;CACV,WAAW;CACX,SAAS;CACT,WAAW,CACT;EACE,OAAO;EACP,OAAO;EACP,SAAS;EACT,YAAY,CAAC,kBAAkB,gBAAgB;CACjD,CACF;CACA,aAAa,CAAC;CACd,WAAW;AACb,GACA;CACE,IAAI;CACJ,QAAQ;CACR,iBAAiB;CACjB,YAAY;CACZ,SACE;CACF,aAAa;CACb,MAAM;CACN,UAAU;CACV,WAAW;CACX,SAAS;EACP,IAAI;EACJ,YAAY;EACZ,SAAS;CACX;CACA,WAAW,CAAC;CACZ,aAAa,CAAC;CACd,WAAW;AACb,CACF;AAEA,IAAM,yBACJ,OAAO;AACT,IAAM,wBACJ,OAAO;AACT,IAAM,qBAAqB,OAAO;AAElC,IAAA,qBAAe;CACb,aAAa;CACb,aAAa,iBAAiB;CAC9B,aAAa,iBAAiB;CAC9B,YAAY;CACZ,SAAS;EACP;GACE,IAAI;GACJ,OAAO;GACP,aACE;GACF,eAAe;GACf,OAAO;GACP,OAAO;IACL,OAAO;IACP,eAAe;IACf,cAAc;IACd,cAAc;GAChB;GACA,OAAO,EACL,MAAM,EACJ,OAAO,OACT,EACF;EACF;EACA;GACE,IAAI;GACJ,OAAO;GACP,aACE;GACF,eAAe;GACf,OAAO;GACP,OAAO;IACL,UAAU;IACV,kBAAkB;IAClB,SAAS;IACT,SAAS;GACX;GACA,OAAO,EACL,MAAM,EACJ,OAAO,OACT,EACF;EACF;EACA;GACE,IAAI;GACJ,OAAO;GACP,aACE;GACF,eAAe;GACf,OAAO;GACP,OAAO;IACL,QAAQ;IACR,aAAa;IACb,SAAS;KACP,IAAI;KACJ,YAAY;KACZ,SAAS;IACX;IACA,eAAe;GACjB;GACA,OAAO,EACL,MAAM,EACJ,OAAO,OACT,EACF;EACF;CACF;AACF"}
|
package/dist/smrt-knowledge.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"generatedAt": "2026-07-
|
|
3
|
+
"generatedAt": "2026-07-10T22:18:43.194Z",
|
|
4
4
|
"packageName": "@happyvertical/smrt-chat",
|
|
5
|
-
"packageVersion": "0.
|
|
5
|
+
"packageVersion": "0.39.0",
|
|
6
6
|
"sourceManifestPath": "dist/manifest.json",
|
|
7
7
|
"agentDocPath": "AGENTS.md",
|
|
8
8
|
"sourceHashes": {
|
|
9
|
-
"manifest": "
|
|
10
|
-
"packageJson": "
|
|
9
|
+
"manifest": "998afb16ef8f591807643fb119b8be0e6e7e921b628000c6ca94b5f51540196a",
|
|
10
|
+
"packageJson": "83ec16495e0d1ad772b07bd920ce90f78d132bb0b784e36a1bd9fae23ac14873",
|
|
11
11
|
"agents": "6cd3406a8954dd51b7c3354115a022333c96f125c9e2ac1ede272951da2a1f10"
|
|
12
12
|
},
|
|
13
13
|
"exports": [
|
|
@@ -62,6 +62,184 @@
|
|
|
62
62
|
"tags": [],
|
|
63
63
|
"risks": [],
|
|
64
64
|
"objects": [
|
|
65
|
+
{
|
|
66
|
+
"name": "AgentSessionCollection",
|
|
67
|
+
"qualifiedName": "@happyvertical/smrt-chat:AgentSessionCollection",
|
|
68
|
+
"collection": "agentsessions",
|
|
69
|
+
"tableName": "agent_sessions",
|
|
70
|
+
"packageName": "@happyvertical/smrt-chat",
|
|
71
|
+
"extends": "SmrtCollection",
|
|
72
|
+
"fields": [],
|
|
73
|
+
"relationships": [],
|
|
74
|
+
"methods": [
|
|
75
|
+
"expireStale",
|
|
76
|
+
"findActiveByParticipant",
|
|
77
|
+
"findActiveSession",
|
|
78
|
+
"findByAgent",
|
|
79
|
+
"findOrCreate"
|
|
80
|
+
],
|
|
81
|
+
"surfaces": [],
|
|
82
|
+
"relationshipFeatures": [
|
|
83
|
+
"uuidColumns"
|
|
84
|
+
],
|
|
85
|
+
"tags": [],
|
|
86
|
+
"risks": []
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "ChatMessageCollection",
|
|
90
|
+
"qualifiedName": "@happyvertical/smrt-chat:ChatMessageCollection",
|
|
91
|
+
"collection": "chatmessages",
|
|
92
|
+
"tableName": "chat_messages",
|
|
93
|
+
"packageName": "@happyvertical/smrt-chat",
|
|
94
|
+
"extends": "SmrtCollection",
|
|
95
|
+
"fields": [],
|
|
96
|
+
"relationships": [],
|
|
97
|
+
"methods": [
|
|
98
|
+
"getByAgentSession",
|
|
99
|
+
"getByRoom",
|
|
100
|
+
"getByThread",
|
|
101
|
+
"getLatestPerRoom",
|
|
102
|
+
"getUnreadCount",
|
|
103
|
+
"search"
|
|
104
|
+
],
|
|
105
|
+
"surfaces": [],
|
|
106
|
+
"relationshipFeatures": [
|
|
107
|
+
"uuidColumns"
|
|
108
|
+
],
|
|
109
|
+
"tags": [],
|
|
110
|
+
"risks": []
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "ChatParticipantCollection",
|
|
114
|
+
"qualifiedName": "@happyvertical/smrt-chat:ChatParticipantCollection",
|
|
115
|
+
"collection": "chatparticipants",
|
|
116
|
+
"tableName": "chat_participants",
|
|
117
|
+
"packageName": "@happyvertical/smrt-chat",
|
|
118
|
+
"extends": "SmrtCollection",
|
|
119
|
+
"fields": [],
|
|
120
|
+
"relationships": [],
|
|
121
|
+
"methods": [
|
|
122
|
+
"countInRoom",
|
|
123
|
+
"findActiveMembership",
|
|
124
|
+
"findMembership",
|
|
125
|
+
"getAdminsInRoom",
|
|
126
|
+
"getByProfile",
|
|
127
|
+
"getByRoom",
|
|
128
|
+
"getOnlineInRoom",
|
|
129
|
+
"isActiveMember"
|
|
130
|
+
],
|
|
131
|
+
"surfaces": [],
|
|
132
|
+
"relationshipFeatures": [
|
|
133
|
+
"uuidColumns"
|
|
134
|
+
],
|
|
135
|
+
"tags": [],
|
|
136
|
+
"risks": []
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "ChatReactionCollection",
|
|
140
|
+
"qualifiedName": "@happyvertical/smrt-chat:ChatReactionCollection",
|
|
141
|
+
"collection": "chatreactions",
|
|
142
|
+
"tableName": "chat_reactions",
|
|
143
|
+
"packageName": "@happyvertical/smrt-chat",
|
|
144
|
+
"extends": "SmrtCollection",
|
|
145
|
+
"fields": [],
|
|
146
|
+
"relationships": [],
|
|
147
|
+
"methods": [
|
|
148
|
+
"getByMessage",
|
|
149
|
+
"getReactionCounts",
|
|
150
|
+
"toggle"
|
|
151
|
+
],
|
|
152
|
+
"surfaces": [],
|
|
153
|
+
"relationshipFeatures": [
|
|
154
|
+
"uuidColumns"
|
|
155
|
+
],
|
|
156
|
+
"tags": [],
|
|
157
|
+
"risks": []
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "ChatRoomCollection",
|
|
161
|
+
"qualifiedName": "@happyvertical/smrt-chat:ChatRoomCollection",
|
|
162
|
+
"collection": "chatrooms",
|
|
163
|
+
"tableName": "chat_rooms",
|
|
164
|
+
"packageName": "@happyvertical/smrt-chat",
|
|
165
|
+
"extends": "SmrtCollection",
|
|
166
|
+
"fields": [],
|
|
167
|
+
"relationships": [],
|
|
168
|
+
"methods": [
|
|
169
|
+
"findAgentRooms",
|
|
170
|
+
"findByType",
|
|
171
|
+
"findDMs",
|
|
172
|
+
"findOrCreateDM",
|
|
173
|
+
"findPublic",
|
|
174
|
+
"search"
|
|
175
|
+
],
|
|
176
|
+
"surfaces": [],
|
|
177
|
+
"relationshipFeatures": [
|
|
178
|
+
"uuidColumns"
|
|
179
|
+
],
|
|
180
|
+
"tags": [],
|
|
181
|
+
"risks": []
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "ChatThreadCollection",
|
|
185
|
+
"qualifiedName": "@happyvertical/smrt-chat:ChatThreadCollection",
|
|
186
|
+
"collection": "chatthreads",
|
|
187
|
+
"tableName": "chat_threads",
|
|
188
|
+
"packageName": "@happyvertical/smrt-chat",
|
|
189
|
+
"extends": "SmrtCollection",
|
|
190
|
+
"fields": [],
|
|
191
|
+
"relationships": [],
|
|
192
|
+
"methods": [
|
|
193
|
+
"getActive",
|
|
194
|
+
"getByRoom",
|
|
195
|
+
"getUnresolved"
|
|
196
|
+
],
|
|
197
|
+
"surfaces": [],
|
|
198
|
+
"relationshipFeatures": [
|
|
199
|
+
"uuidColumns"
|
|
200
|
+
],
|
|
201
|
+
"tags": [],
|
|
202
|
+
"risks": []
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"name": "VoiceGatewayTurnCollection",
|
|
206
|
+
"qualifiedName": "@happyvertical/smrt-chat:VoiceGatewayTurnCollection",
|
|
207
|
+
"collection": "voicegatewayturns",
|
|
208
|
+
"tableName": "voice_gateway_turns",
|
|
209
|
+
"packageName": "@happyvertical/smrt-chat",
|
|
210
|
+
"extends": "SmrtCollection",
|
|
211
|
+
"fields": [],
|
|
212
|
+
"relationships": [],
|
|
213
|
+
"methods": [
|
|
214
|
+
"reserveTurn"
|
|
215
|
+
],
|
|
216
|
+
"surfaces": [],
|
|
217
|
+
"relationshipFeatures": [
|
|
218
|
+
"uuidColumns"
|
|
219
|
+
],
|
|
220
|
+
"tags": [],
|
|
221
|
+
"risks": []
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"name": "VoiceSessionCollection",
|
|
225
|
+
"qualifiedName": "@happyvertical/smrt-chat:VoiceSessionCollection",
|
|
226
|
+
"collection": "voicesessions",
|
|
227
|
+
"tableName": "voice_sessions",
|
|
228
|
+
"packageName": "@happyvertical/smrt-chat",
|
|
229
|
+
"extends": "SmrtCollection",
|
|
230
|
+
"fields": [],
|
|
231
|
+
"relationships": [],
|
|
232
|
+
"methods": [
|
|
233
|
+
"expireStale",
|
|
234
|
+
"getActiveById"
|
|
235
|
+
],
|
|
236
|
+
"surfaces": [],
|
|
237
|
+
"relationshipFeatures": [
|
|
238
|
+
"uuidColumns"
|
|
239
|
+
],
|
|
240
|
+
"tags": [],
|
|
241
|
+
"risks": []
|
|
242
|
+
},
|
|
65
243
|
{
|
|
66
244
|
"name": "AgentSession",
|
|
67
245
|
"qualifiedName": "@happyvertical/smrt-chat:AgentSession",
|
|
@@ -1403,184 +1581,6 @@
|
|
|
1403
1581
|
],
|
|
1404
1582
|
"tags": [],
|
|
1405
1583
|
"risks": []
|
|
1406
|
-
},
|
|
1407
|
-
{
|
|
1408
|
-
"name": "AgentSessionCollection",
|
|
1409
|
-
"qualifiedName": "@happyvertical/smrt-chat:AgentSessionCollection",
|
|
1410
|
-
"collection": "agentsessions",
|
|
1411
|
-
"tableName": "agent_sessions",
|
|
1412
|
-
"packageName": "@happyvertical/smrt-chat",
|
|
1413
|
-
"extends": "SmrtCollection",
|
|
1414
|
-
"fields": [],
|
|
1415
|
-
"relationships": [],
|
|
1416
|
-
"methods": [
|
|
1417
|
-
"expireStale",
|
|
1418
|
-
"findActiveByParticipant",
|
|
1419
|
-
"findActiveSession",
|
|
1420
|
-
"findByAgent",
|
|
1421
|
-
"findOrCreate"
|
|
1422
|
-
],
|
|
1423
|
-
"surfaces": [],
|
|
1424
|
-
"relationshipFeatures": [
|
|
1425
|
-
"uuidColumns"
|
|
1426
|
-
],
|
|
1427
|
-
"tags": [],
|
|
1428
|
-
"risks": []
|
|
1429
|
-
},
|
|
1430
|
-
{
|
|
1431
|
-
"name": "ChatMessageCollection",
|
|
1432
|
-
"qualifiedName": "@happyvertical/smrt-chat:ChatMessageCollection",
|
|
1433
|
-
"collection": "chatmessages",
|
|
1434
|
-
"tableName": "chat_messages",
|
|
1435
|
-
"packageName": "@happyvertical/smrt-chat",
|
|
1436
|
-
"extends": "SmrtCollection",
|
|
1437
|
-
"fields": [],
|
|
1438
|
-
"relationships": [],
|
|
1439
|
-
"methods": [
|
|
1440
|
-
"getByAgentSession",
|
|
1441
|
-
"getByRoom",
|
|
1442
|
-
"getByThread",
|
|
1443
|
-
"getLatestPerRoom",
|
|
1444
|
-
"getUnreadCount",
|
|
1445
|
-
"search"
|
|
1446
|
-
],
|
|
1447
|
-
"surfaces": [],
|
|
1448
|
-
"relationshipFeatures": [
|
|
1449
|
-
"uuidColumns"
|
|
1450
|
-
],
|
|
1451
|
-
"tags": [],
|
|
1452
|
-
"risks": []
|
|
1453
|
-
},
|
|
1454
|
-
{
|
|
1455
|
-
"name": "ChatParticipantCollection",
|
|
1456
|
-
"qualifiedName": "@happyvertical/smrt-chat:ChatParticipantCollection",
|
|
1457
|
-
"collection": "chatparticipants",
|
|
1458
|
-
"tableName": "chat_participants",
|
|
1459
|
-
"packageName": "@happyvertical/smrt-chat",
|
|
1460
|
-
"extends": "SmrtCollection",
|
|
1461
|
-
"fields": [],
|
|
1462
|
-
"relationships": [],
|
|
1463
|
-
"methods": [
|
|
1464
|
-
"countInRoom",
|
|
1465
|
-
"findActiveMembership",
|
|
1466
|
-
"findMembership",
|
|
1467
|
-
"getAdminsInRoom",
|
|
1468
|
-
"getByProfile",
|
|
1469
|
-
"getByRoom",
|
|
1470
|
-
"getOnlineInRoom",
|
|
1471
|
-
"isActiveMember"
|
|
1472
|
-
],
|
|
1473
|
-
"surfaces": [],
|
|
1474
|
-
"relationshipFeatures": [
|
|
1475
|
-
"uuidColumns"
|
|
1476
|
-
],
|
|
1477
|
-
"tags": [],
|
|
1478
|
-
"risks": []
|
|
1479
|
-
},
|
|
1480
|
-
{
|
|
1481
|
-
"name": "ChatReactionCollection",
|
|
1482
|
-
"qualifiedName": "@happyvertical/smrt-chat:ChatReactionCollection",
|
|
1483
|
-
"collection": "chatreactions",
|
|
1484
|
-
"tableName": "chat_reactions",
|
|
1485
|
-
"packageName": "@happyvertical/smrt-chat",
|
|
1486
|
-
"extends": "SmrtCollection",
|
|
1487
|
-
"fields": [],
|
|
1488
|
-
"relationships": [],
|
|
1489
|
-
"methods": [
|
|
1490
|
-
"getByMessage",
|
|
1491
|
-
"getReactionCounts",
|
|
1492
|
-
"toggle"
|
|
1493
|
-
],
|
|
1494
|
-
"surfaces": [],
|
|
1495
|
-
"relationshipFeatures": [
|
|
1496
|
-
"uuidColumns"
|
|
1497
|
-
],
|
|
1498
|
-
"tags": [],
|
|
1499
|
-
"risks": []
|
|
1500
|
-
},
|
|
1501
|
-
{
|
|
1502
|
-
"name": "ChatRoomCollection",
|
|
1503
|
-
"qualifiedName": "@happyvertical/smrt-chat:ChatRoomCollection",
|
|
1504
|
-
"collection": "chatrooms",
|
|
1505
|
-
"tableName": "chat_rooms",
|
|
1506
|
-
"packageName": "@happyvertical/smrt-chat",
|
|
1507
|
-
"extends": "SmrtCollection",
|
|
1508
|
-
"fields": [],
|
|
1509
|
-
"relationships": [],
|
|
1510
|
-
"methods": [
|
|
1511
|
-
"findAgentRooms",
|
|
1512
|
-
"findByType",
|
|
1513
|
-
"findDMs",
|
|
1514
|
-
"findOrCreateDM",
|
|
1515
|
-
"findPublic",
|
|
1516
|
-
"search"
|
|
1517
|
-
],
|
|
1518
|
-
"surfaces": [],
|
|
1519
|
-
"relationshipFeatures": [
|
|
1520
|
-
"uuidColumns"
|
|
1521
|
-
],
|
|
1522
|
-
"tags": [],
|
|
1523
|
-
"risks": []
|
|
1524
|
-
},
|
|
1525
|
-
{
|
|
1526
|
-
"name": "ChatThreadCollection",
|
|
1527
|
-
"qualifiedName": "@happyvertical/smrt-chat:ChatThreadCollection",
|
|
1528
|
-
"collection": "chatthreads",
|
|
1529
|
-
"tableName": "chat_threads",
|
|
1530
|
-
"packageName": "@happyvertical/smrt-chat",
|
|
1531
|
-
"extends": "SmrtCollection",
|
|
1532
|
-
"fields": [],
|
|
1533
|
-
"relationships": [],
|
|
1534
|
-
"methods": [
|
|
1535
|
-
"getActive",
|
|
1536
|
-
"getByRoom",
|
|
1537
|
-
"getUnresolved"
|
|
1538
|
-
],
|
|
1539
|
-
"surfaces": [],
|
|
1540
|
-
"relationshipFeatures": [
|
|
1541
|
-
"uuidColumns"
|
|
1542
|
-
],
|
|
1543
|
-
"tags": [],
|
|
1544
|
-
"risks": []
|
|
1545
|
-
},
|
|
1546
|
-
{
|
|
1547
|
-
"name": "VoiceGatewayTurnCollection",
|
|
1548
|
-
"qualifiedName": "@happyvertical/smrt-chat:VoiceGatewayTurnCollection",
|
|
1549
|
-
"collection": "voicegatewayturns",
|
|
1550
|
-
"tableName": "voice_gateway_turns",
|
|
1551
|
-
"packageName": "@happyvertical/smrt-chat",
|
|
1552
|
-
"extends": "SmrtCollection",
|
|
1553
|
-
"fields": [],
|
|
1554
|
-
"relationships": [],
|
|
1555
|
-
"methods": [
|
|
1556
|
-
"reserveTurn"
|
|
1557
|
-
],
|
|
1558
|
-
"surfaces": [],
|
|
1559
|
-
"relationshipFeatures": [
|
|
1560
|
-
"uuidColumns"
|
|
1561
|
-
],
|
|
1562
|
-
"tags": [],
|
|
1563
|
-
"risks": []
|
|
1564
|
-
},
|
|
1565
|
-
{
|
|
1566
|
-
"name": "VoiceSessionCollection",
|
|
1567
|
-
"qualifiedName": "@happyvertical/smrt-chat:VoiceSessionCollection",
|
|
1568
|
-
"collection": "voicesessions",
|
|
1569
|
-
"tableName": "voice_sessions",
|
|
1570
|
-
"packageName": "@happyvertical/smrt-chat",
|
|
1571
|
-
"extends": "SmrtCollection",
|
|
1572
|
-
"fields": [],
|
|
1573
|
-
"relationships": [],
|
|
1574
|
-
"methods": [
|
|
1575
|
-
"expireStale",
|
|
1576
|
-
"getActiveById"
|
|
1577
|
-
],
|
|
1578
|
-
"surfaces": [],
|
|
1579
|
-
"relationshipFeatures": [
|
|
1580
|
-
"uuidColumns"
|
|
1581
|
-
],
|
|
1582
|
-
"tags": [],
|
|
1583
|
-
"risks": []
|
|
1584
1584
|
}
|
|
1585
1585
|
],
|
|
1586
1586
|
"surfaces": [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playground.d.ts","sourceRoot":"","sources":["../../src/svelte/playground.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"playground.d.ts","sourceRoot":"","sources":["../../src/svelte/playground.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuGA,wBAoEE"}
|
|
@@ -15,7 +15,7 @@ const sampleRooms = [
|
|
|
15
15
|
roomId: 'room-editorial',
|
|
16
16
|
senderProfileId: 'profile-taylor',
|
|
17
17
|
senderName: 'Taylor Rowan',
|
|
18
|
-
content: 'Content QA is clear for tonight’s
|
|
18
|
+
content: 'Content QA is clear for tonight’s publication window.',
|
|
19
19
|
messageType: 'text',
|
|
20
20
|
role: 'user',
|
|
21
21
|
isEdited: false,
|
|
@@ -53,7 +53,7 @@ const sampleMessages = [
|
|
|
53
53
|
roomId: 'room-editorial',
|
|
54
54
|
senderProfileId: 'profile-taylor',
|
|
55
55
|
senderName: 'Taylor Rowan',
|
|
56
|
-
content: 'The
|
|
56
|
+
content: 'The editorial checklist is ready for review.',
|
|
57
57
|
messageType: 'text',
|
|
58
58
|
role: 'user',
|
|
59
59
|
isEdited: false,
|
|
@@ -75,7 +75,7 @@ const sampleMessages = [
|
|
|
75
75
|
roomId: 'room-editorial',
|
|
76
76
|
senderProfileId: 'profile-jordan',
|
|
77
77
|
senderName: 'Jordan Lee',
|
|
78
|
-
content: '
|
|
78
|
+
content: 'I’ll verify the governance states and flag anything that needs attention.',
|
|
79
79
|
messageType: 'text',
|
|
80
80
|
role: 'user',
|
|
81
81
|
isEdited: false,
|
|
@@ -83,7 +83,7 @@ const sampleMessages = [
|
|
|
83
83
|
replyTo: {
|
|
84
84
|
id: 'chat-message-1',
|
|
85
85
|
senderName: 'Taylor Rowan',
|
|
86
|
-
content: 'The
|
|
86
|
+
content: 'The editorial checklist is ready for review.',
|
|
87
87
|
},
|
|
88
88
|
reactions: [],
|
|
89
89
|
attachments: [],
|
|
@@ -143,11 +143,11 @@ export default {
|
|
|
143
143
|
order: 3,
|
|
144
144
|
props: {
|
|
145
145
|
onsend: noop,
|
|
146
|
-
placeholder: 'Reply to
|
|
146
|
+
placeholder: 'Reply to Editorial Ops…',
|
|
147
147
|
replyTo: {
|
|
148
148
|
id: 'chat-message-1',
|
|
149
149
|
senderName: 'Taylor Rowan',
|
|
150
|
-
content: 'The
|
|
150
|
+
content: 'The editorial checklist is ready for review.',
|
|
151
151
|
},
|
|
152
152
|
oncancelreply: noop,
|
|
153
153
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-chat",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.39.0",
|
|
4
4
|
"description": "Chat rooms, DMs, threads, and agent conversations for the SMRT framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"smrtRawPrimitives": "strict",
|
|
@@ -36,6 +36,17 @@
|
|
|
36
36
|
"CLAUDE.md",
|
|
37
37
|
"AGENTS.md"
|
|
38
38
|
],
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "SMRT_PACKAGE_BUILD=1 vite build --mode library && SMRT_PACKAGE_BUILD=1 svelte-package -i src/svelte -o dist/svelte --tsconfig tsconfig.svelte.json",
|
|
41
|
+
"build:watch": "vite build --mode library --watch",
|
|
42
|
+
"clean": "rm -rf dist",
|
|
43
|
+
"dev": "vite dev",
|
|
44
|
+
"prepack": "node ../../scripts/prepack-package.js",
|
|
45
|
+
"test": "vitest run",
|
|
46
|
+
"typecheck": "svelte-kit sync && tsc -p tsconfig.typecheck.json && node ../../scripts/svelte-check-a11y.mjs --tsconfig ./tsconfig.kit.json",
|
|
47
|
+
"check": "svelte-kit sync && pnpm exec svelte-check --tsconfig ./tsconfig.kit.json",
|
|
48
|
+
"verify:pack": "node ../../scripts/verify-package-types-exports.js ."
|
|
49
|
+
},
|
|
39
50
|
"keywords": [
|
|
40
51
|
"smrt",
|
|
41
52
|
"chat",
|
|
@@ -56,15 +67,15 @@
|
|
|
56
67
|
"access": "public"
|
|
57
68
|
},
|
|
58
69
|
"dependencies": {
|
|
59
|
-
"@happyvertical/ai": "
|
|
60
|
-
"@happyvertical/
|
|
61
|
-
"@happyvertical/smrt-
|
|
62
|
-
"@happyvertical/smrt-personas": "
|
|
63
|
-
"@happyvertical/smrt-
|
|
64
|
-
"@happyvertical/smrt-
|
|
65
|
-
"@happyvertical/smrt-
|
|
66
|
-
"@happyvertical/smrt-
|
|
67
|
-
"@happyvertical/
|
|
70
|
+
"@happyvertical/ai": "catalog:",
|
|
71
|
+
"@happyvertical/smrt-agents": "workspace:*",
|
|
72
|
+
"@happyvertical/smrt-core": "workspace:*",
|
|
73
|
+
"@happyvertical/smrt-personas": "workspace:*",
|
|
74
|
+
"@happyvertical/smrt-tenancy": "workspace:*",
|
|
75
|
+
"@happyvertical/smrt-types": "workspace:*",
|
|
76
|
+
"@happyvertical/smrt-ui": "workspace:*",
|
|
77
|
+
"@happyvertical/smrt-users": "workspace:*",
|
|
78
|
+
"@happyvertical/sql": "catalog:"
|
|
68
79
|
},
|
|
69
80
|
"peerDependencies": {
|
|
70
81
|
"svelte": "^5.56.4"
|
|
@@ -75,6 +86,9 @@
|
|
|
75
86
|
}
|
|
76
87
|
},
|
|
77
88
|
"devDependencies": {
|
|
89
|
+
"@happyvertical/smrt-playground": "workspace:*",
|
|
90
|
+
"@happyvertical/smrt-profiles": "workspace:*",
|
|
91
|
+
"@happyvertical/smrt-vitest": "workspace:*",
|
|
78
92
|
"@sveltejs/kit": "^2.69.1",
|
|
79
93
|
"@sveltejs/package": "^2.5.8",
|
|
80
94
|
"@sveltejs/vite-plugin-svelte": "^7.1.2",
|
|
@@ -84,19 +98,6 @@
|
|
|
84
98
|
"svelte-check": "^4.7.1",
|
|
85
99
|
"typescript": "^5.9.3",
|
|
86
100
|
"vite": "^8.1.3",
|
|
87
|
-
"vitest": "^4.1.9"
|
|
88
|
-
"@happyvertical/smrt-playground": "0.38.25",
|
|
89
|
-
"@happyvertical/smrt-profiles": "0.38.25",
|
|
90
|
-
"@happyvertical/smrt-vitest": "0.38.25"
|
|
91
|
-
},
|
|
92
|
-
"scripts": {
|
|
93
|
-
"build": "SMRT_PACKAGE_BUILD=1 vite build --mode library && SMRT_PACKAGE_BUILD=1 svelte-package -i src/svelte -o dist/svelte --tsconfig tsconfig.svelte.json",
|
|
94
|
-
"build:watch": "vite build --mode library --watch",
|
|
95
|
-
"clean": "rm -rf dist",
|
|
96
|
-
"dev": "vite dev",
|
|
97
|
-
"test": "vitest run",
|
|
98
|
-
"typecheck": "svelte-kit sync && tsc -p tsconfig.typecheck.json && node ../../scripts/svelte-check-a11y.mjs --tsconfig ./tsconfig.kit.json",
|
|
99
|
-
"check": "svelte-kit sync && pnpm exec svelte-check --tsconfig ./tsconfig.kit.json",
|
|
100
|
-
"verify:pack": "node ../../scripts/verify-package-types-exports.js ."
|
|
101
|
+
"vitest": "^4.1.9"
|
|
101
102
|
}
|
|
102
|
-
}
|
|
103
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
Copyright <2025> <Happy Vertical Corporation>
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
-
|
|
5
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|