@vibesdotdev/chat 1.0.0-rc.0 → 1.0.0-rc.1
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/client/consumer-session-capability.d.ts +7 -7
- package/dist/client/schemas/local-first.d.ts +2 -2
- package/dist/client/web/internals/web-chat-room.cache.d.ts +1 -1
- package/dist/client/web/schemas/server-message.d.ts +2 -2
- package/dist/client/web/web-chat-client.d.ts +2 -2
- package/dist/context/providers/messages/chat-messages.impl.browser.d.ts +1 -1
- package/dist/context/providers/messages/chat-messages.impl.worker.d.ts +1 -1
- package/dist/context/providers/messages/chat-messages.provider.descriptor.d.ts +1 -1
- package/dist/context/providers/messages/schemas/index.d.ts +2 -2
- package/dist/realtime/schemas/room.d.ts +1 -1
- package/dist/schemas/api/messages.d.ts +8 -8
- package/dist/schemas/api/search.d.ts +1 -1
- package/dist/schemas/api/send.d.ts +1 -1
- package/dist/schemas/common.d.ts +3 -3
- package/dist/schemas/inbox-feed.d.ts +4 -4
- package/dist/schemas/sse.d.ts +2 -2
- package/dist/schemas/ui.d.ts +1 -1
- package/dist/schemas/unified.d.ts +5 -5
- package/dist/storage/chat-rooms.storage.schema.d.ts +1 -1
- package/dist/svelte/command-palette/chat-source.plugin.d.ts +1 -1
- package/dist/svelte/state.svelte.d.ts +6 -6
- package/dist/svelte/stores/chatMessagesStore.svelte.d.ts +2 -2
- package/dist/svelte/stores/chatRoomStore.svelte.d.ts +1 -1
- package/dist/tools/chat-message/chat-message.schemas.d.ts +1 -1
- package/dist/tools/chat-message/chat-message.tool.descriptor.d.ts +1 -1
- package/dist/tools/send-message/schemas/index.d.ts +1 -1
- package/dist/tui/chat.tui-state.key.d.ts +7 -7
- package/package.json +27 -27
|
@@ -25,8 +25,8 @@ export declare const ChatConsumerRoomSummarySchema: z.ZodObject<{
|
|
|
25
25
|
id: z.ZodString;
|
|
26
26
|
title: z.ZodOptional<z.ZodString>;
|
|
27
27
|
description: z.ZodOptional<z.ZodString>;
|
|
28
|
-
agentId: z.ZodOptional<z.ZodString>;
|
|
29
28
|
createdAt: z.ZodISODateTime;
|
|
29
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
30
30
|
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
31
31
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
32
32
|
public: "public";
|
|
@@ -94,8 +94,8 @@ export declare const ChatConsumerSnapshotSchema: z.ZodObject<{
|
|
|
94
94
|
id: z.ZodString;
|
|
95
95
|
title: z.ZodOptional<z.ZodString>;
|
|
96
96
|
description: z.ZodOptional<z.ZodString>;
|
|
97
|
-
agentId: z.ZodOptional<z.ZodString>;
|
|
98
97
|
createdAt: z.ZodISODateTime;
|
|
98
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
99
99
|
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
100
100
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
101
101
|
public: "public";
|
|
@@ -231,8 +231,8 @@ export declare const ChatConsumerMessagePageSchema: z.ZodObject<{
|
|
|
231
231
|
id: z.ZodString;
|
|
232
232
|
roomId: z.ZodString;
|
|
233
233
|
senderType: z.ZodEnum<{
|
|
234
|
-
user: "user";
|
|
235
234
|
agent: "agent";
|
|
235
|
+
user: "user";
|
|
236
236
|
system: "system";
|
|
237
237
|
}>;
|
|
238
238
|
messageType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -390,8 +390,8 @@ export declare const ChatConsumerMessageCreateSchema: z.ZodObject<{
|
|
|
390
390
|
}>;
|
|
391
391
|
content: z.ZodString;
|
|
392
392
|
senderType: z.ZodOptional<z.ZodEnum<{
|
|
393
|
-
user: "user";
|
|
394
393
|
agent: "agent";
|
|
394
|
+
user: "user";
|
|
395
395
|
system: "system";
|
|
396
396
|
}>>;
|
|
397
397
|
status: z.ZodOptional<z.ZodEnum<{
|
|
@@ -640,8 +640,8 @@ export declare const ChatConsumerRunPollSchema: z.ZodObject<{
|
|
|
640
640
|
id: z.ZodString;
|
|
641
641
|
title: z.ZodOptional<z.ZodString>;
|
|
642
642
|
description: z.ZodOptional<z.ZodString>;
|
|
643
|
-
agentId: z.ZodOptional<z.ZodString>;
|
|
644
643
|
createdAt: z.ZodISODateTime;
|
|
644
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
645
645
|
updatedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
646
646
|
visibility: z.ZodOptional<z.ZodEnum<{
|
|
647
647
|
public: "public";
|
|
@@ -705,8 +705,8 @@ export declare const ChatConsumerRunPollSchema: z.ZodObject<{
|
|
|
705
705
|
id: z.ZodString;
|
|
706
706
|
roomId: z.ZodString;
|
|
707
707
|
senderType: z.ZodEnum<{
|
|
708
|
-
user: "user";
|
|
709
708
|
agent: "agent";
|
|
709
|
+
user: "user";
|
|
710
710
|
system: "system";
|
|
711
711
|
}>;
|
|
712
712
|
messageType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -983,7 +983,7 @@ export declare const chatConsumerSessionExposure: {
|
|
|
983
983
|
version: number;
|
|
984
984
|
schema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
985
985
|
};
|
|
986
|
-
dataClassification: "
|
|
986
|
+
dataClassification: "secret" | "user" | "public" | "sensitive";
|
|
987
987
|
rendererView: "denied" | "raw" | "redacted";
|
|
988
988
|
retry: {
|
|
989
989
|
mode: "read";
|
|
@@ -22,8 +22,8 @@ export declare const chatPendingSchema: z.ZodObject<{
|
|
|
22
22
|
id: z.ZodString;
|
|
23
23
|
roomId: z.ZodString;
|
|
24
24
|
senderType: z.ZodEnum<{
|
|
25
|
-
user: "user";
|
|
26
25
|
agent: "agent";
|
|
26
|
+
user: "user";
|
|
27
27
|
system: "system";
|
|
28
28
|
}>;
|
|
29
29
|
messageType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -344,8 +344,8 @@ export declare const chatDeviceSchema: z.ZodObject<{
|
|
|
344
344
|
id: z.ZodString;
|
|
345
345
|
roomId: z.ZodString;
|
|
346
346
|
senderType: z.ZodEnum<{
|
|
347
|
-
user: "user";
|
|
348
347
|
agent: "agent";
|
|
348
|
+
user: "user";
|
|
349
349
|
system: "system";
|
|
350
350
|
}>;
|
|
351
351
|
messageType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -14,7 +14,7 @@ export declare class WebChatRoomCache {
|
|
|
14
14
|
readonly messagesById: Map<string, {
|
|
15
15
|
id: string;
|
|
16
16
|
roomId: string;
|
|
17
|
-
senderType: "
|
|
17
|
+
senderType: "agent" | "user" | "system";
|
|
18
18
|
role: "user" | "system" | "assistant";
|
|
19
19
|
content: string;
|
|
20
20
|
status: "cancelled" | "failed" | "queued" | "streaming" | "sending" | "sent" | "pending" | "declined" | "processing" | "completed";
|
|
@@ -19,10 +19,10 @@ export declare const ServerAttachmentsSchema: z.ZodPipe<z.ZodArray<z.ZodUnknown>
|
|
|
19
19
|
export declare const ServerMessageSchema: z.ZodObject<{
|
|
20
20
|
id: z.ZodString;
|
|
21
21
|
senderType: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
22
|
-
user: "user";
|
|
23
22
|
agent: "agent";
|
|
23
|
+
user: "user";
|
|
24
24
|
system: "system";
|
|
25
|
-
}>>>, z.ZodTransform<"
|
|
25
|
+
}>>>, z.ZodTransform<"agent" | "user" | "system", "agent" | "user" | "system" | null | undefined>>;
|
|
26
26
|
content: z.ZodCatch<z.ZodString>;
|
|
27
27
|
status: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
28
28
|
cancelled: "cancelled";
|
|
@@ -70,7 +70,7 @@ declare class WebChatInboxCollection implements ChatInboxCollection {
|
|
|
70
70
|
data: {
|
|
71
71
|
id: string;
|
|
72
72
|
roomId: string;
|
|
73
|
-
senderType: "
|
|
73
|
+
senderType: "agent" | "user" | "system";
|
|
74
74
|
role: "user" | "system" | "assistant";
|
|
75
75
|
content: string;
|
|
76
76
|
status: "cancelled" | "failed" | "queued" | "streaming" | "sending" | "sent" | "pending" | "declined" | "processing" | "completed";
|
|
@@ -287,7 +287,7 @@ declare class WebChatInboxCollection implements ChatInboxCollection {
|
|
|
287
287
|
message: {
|
|
288
288
|
id: string;
|
|
289
289
|
roomId: string;
|
|
290
|
-
senderType: "
|
|
290
|
+
senderType: "agent" | "user" | "system";
|
|
291
291
|
role: "user" | "system" | "assistant";
|
|
292
292
|
content: string;
|
|
293
293
|
status: "cancelled" | "failed" | "queued" | "streaming" | "sending" | "sent" | "pending" | "declined" | "processing" | "completed";
|
|
@@ -57,8 +57,8 @@ export declare class ChatMessagesProvider implements AIAugmentationImplementatio
|
|
|
57
57
|
id: import("zod").ZodString;
|
|
58
58
|
chatRoomId: import("zod").ZodString;
|
|
59
59
|
senderType: import("zod").ZodEnum<{
|
|
60
|
-
user: "user";
|
|
61
60
|
agent: "agent";
|
|
61
|
+
user: "user";
|
|
62
62
|
system: "system";
|
|
63
63
|
}>;
|
|
64
64
|
messageType: import("zod").ZodString;
|
|
@@ -28,8 +28,8 @@ export declare class ChatMessagesServerProvider implements ChatMessagesAugmentat
|
|
|
28
28
|
id: z.ZodString;
|
|
29
29
|
chatRoomId: z.ZodString;
|
|
30
30
|
senderType: z.ZodEnum<{
|
|
31
|
-
user: "user";
|
|
32
31
|
agent: "agent";
|
|
32
|
+
user: "user";
|
|
33
33
|
system: "system";
|
|
34
34
|
}>;
|
|
35
35
|
messageType: z.ZodString;
|
|
@@ -27,8 +27,8 @@ declare const descriptor: {
|
|
|
27
27
|
id: import("zod").ZodString;
|
|
28
28
|
chatRoomId: import("zod").ZodString;
|
|
29
29
|
senderType: import("zod").ZodEnum<{
|
|
30
|
-
user: "user";
|
|
31
30
|
agent: "agent";
|
|
31
|
+
user: "user";
|
|
32
32
|
system: "system";
|
|
33
33
|
}>;
|
|
34
34
|
messageType: import("zod").ZodString;
|
|
@@ -10,8 +10,8 @@ export declare const chatMessagesResolvedItem: z.ZodObject<{
|
|
|
10
10
|
id: z.ZodString;
|
|
11
11
|
chatRoomId: z.ZodString;
|
|
12
12
|
senderType: z.ZodEnum<{
|
|
13
|
-
user: "user";
|
|
14
13
|
agent: "agent";
|
|
14
|
+
user: "user";
|
|
15
15
|
system: "system";
|
|
16
16
|
}>;
|
|
17
17
|
messageType: z.ZodString;
|
|
@@ -26,8 +26,8 @@ export declare const chatMessagesResolved: z.ZodObject<{
|
|
|
26
26
|
id: z.ZodString;
|
|
27
27
|
chatRoomId: z.ZodString;
|
|
28
28
|
senderType: z.ZodEnum<{
|
|
29
|
-
user: "user";
|
|
30
29
|
agent: "agent";
|
|
30
|
+
user: "user";
|
|
31
31
|
system: "system";
|
|
32
32
|
}>;
|
|
33
33
|
messageType: z.ZodString;
|
|
@@ -71,8 +71,8 @@ export declare const ChatRoomMessageSchema: z.ZodObject<{
|
|
|
71
71
|
replyToId: z.ZodNullable<z.ZodString>;
|
|
72
72
|
messageType: z.ZodString;
|
|
73
73
|
senderType: z.ZodEnum<{
|
|
74
|
-
user: "user";
|
|
75
74
|
agent: "agent";
|
|
75
|
+
user: "user";
|
|
76
76
|
system: "system";
|
|
77
77
|
}>;
|
|
78
78
|
content: z.ZodNullable<z.ZodString>;
|
|
@@ -11,8 +11,8 @@ export declare const chatRoomMessageRefSchema: z.ZodObject<{
|
|
|
11
11
|
id: z.ZodUUID;
|
|
12
12
|
chatRoomId: z.ZodUUID;
|
|
13
13
|
senderType: z.ZodEnum<{
|
|
14
|
-
user: "user";
|
|
15
14
|
agent: "agent";
|
|
15
|
+
user: "user";
|
|
16
16
|
system: "system";
|
|
17
17
|
}>;
|
|
18
18
|
messageType: z.ZodEnum<{
|
|
@@ -60,8 +60,8 @@ export declare const messageListResponseSchema: z.ZodObject<{
|
|
|
60
60
|
knowledge_result: "knowledge_result";
|
|
61
61
|
}>;
|
|
62
62
|
senderType: z.ZodEnum<{
|
|
63
|
-
user: "user";
|
|
64
63
|
agent: "agent";
|
|
64
|
+
user: "user";
|
|
65
65
|
system: "system";
|
|
66
66
|
}>;
|
|
67
67
|
content: z.ZodOptional<z.ZodString>;
|
|
@@ -146,8 +146,8 @@ export declare const messageSummaryListResponseSchema: z.ZodObject<{
|
|
|
146
146
|
id: z.ZodUUID;
|
|
147
147
|
chatRoomId: z.ZodUUID;
|
|
148
148
|
senderType: z.ZodEnum<{
|
|
149
|
-
user: "user";
|
|
150
149
|
agent: "agent";
|
|
150
|
+
user: "user";
|
|
151
151
|
system: "system";
|
|
152
152
|
}>;
|
|
153
153
|
messageType: z.ZodEnum<{
|
|
@@ -174,8 +174,8 @@ export declare const messagesListResponseSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
174
174
|
id: z.ZodUUID;
|
|
175
175
|
chatRoomId: z.ZodUUID;
|
|
176
176
|
senderType: z.ZodEnum<{
|
|
177
|
-
user: "user";
|
|
178
177
|
agent: "agent";
|
|
178
|
+
user: "user";
|
|
179
179
|
system: "system";
|
|
180
180
|
}>;
|
|
181
181
|
messageType: z.ZodEnum<{
|
|
@@ -225,8 +225,8 @@ export declare const messagesListResponseSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
225
225
|
knowledge_result: "knowledge_result";
|
|
226
226
|
}>;
|
|
227
227
|
senderType: z.ZodEnum<{
|
|
228
|
-
user: "user";
|
|
229
228
|
agent: "agent";
|
|
229
|
+
user: "user";
|
|
230
230
|
system: "system";
|
|
231
231
|
}>;
|
|
232
232
|
content: z.ZodOptional<z.ZodString>;
|
|
@@ -360,8 +360,8 @@ export declare const messageCreateResponseSchema: z.ZodObject<{
|
|
|
360
360
|
knowledge_result: "knowledge_result";
|
|
361
361
|
}>;
|
|
362
362
|
senderType: z.ZodEnum<{
|
|
363
|
-
user: "user";
|
|
364
363
|
agent: "agent";
|
|
364
|
+
user: "user";
|
|
365
365
|
system: "system";
|
|
366
366
|
}>;
|
|
367
367
|
content: z.ZodOptional<z.ZodString>;
|
|
@@ -453,8 +453,8 @@ export declare const createMessageBodySchema: z.ZodObject<{
|
|
|
453
453
|
knowledge_result: "knowledge_result";
|
|
454
454
|
}>>;
|
|
455
455
|
senderType: z.ZodDefault<z.ZodEnum<{
|
|
456
|
-
user: "user";
|
|
457
456
|
agent: "agent";
|
|
457
|
+
user: "user";
|
|
458
458
|
system: "system";
|
|
459
459
|
}>>;
|
|
460
460
|
}, z.core.$strip>;
|
|
@@ -487,8 +487,8 @@ export declare const createMessageResponseSchema: z.ZodObject<{
|
|
|
487
487
|
knowledge_result: "knowledge_result";
|
|
488
488
|
}>;
|
|
489
489
|
senderType: z.ZodEnum<{
|
|
490
|
-
user: "user";
|
|
491
490
|
agent: "agent";
|
|
491
|
+
user: "user";
|
|
492
492
|
system: "system";
|
|
493
493
|
}>;
|
|
494
494
|
content: z.ZodOptional<z.ZodString>;
|
package/dist/schemas/common.d.ts
CHANGED
|
@@ -210,8 +210,8 @@ export declare const orchestrationConfigSchema: z.ZodObject<{
|
|
|
210
210
|
}, z.core.$strip>;
|
|
211
211
|
export type OrchestrationConfig = z.infer<typeof orchestrationConfigSchema>;
|
|
212
212
|
export declare const chatMessageSenderTypeSchema: z.ZodEnum<{
|
|
213
|
-
user: "user";
|
|
214
213
|
agent: "agent";
|
|
214
|
+
user: "user";
|
|
215
215
|
system: "system";
|
|
216
216
|
}>;
|
|
217
217
|
export type ChatMessageSenderType = z.infer<typeof chatMessageSenderTypeSchema>;
|
|
@@ -397,8 +397,8 @@ export declare const chatMessageSchema: z.ZodObject<{
|
|
|
397
397
|
knowledge_result: "knowledge_result";
|
|
398
398
|
}>;
|
|
399
399
|
senderType: z.ZodEnum<{
|
|
400
|
-
user: "user";
|
|
401
400
|
agent: "agent";
|
|
401
|
+
user: "user";
|
|
402
402
|
system: "system";
|
|
403
403
|
}>;
|
|
404
404
|
content: z.ZodOptional<z.ZodString>;
|
|
@@ -604,8 +604,8 @@ export declare const chatMessageWithSenderSchema: z.ZodObject<{
|
|
|
604
604
|
knowledge_result: "knowledge_result";
|
|
605
605
|
}>;
|
|
606
606
|
senderType: z.ZodEnum<{
|
|
607
|
-
user: "user";
|
|
608
607
|
agent: "agent";
|
|
608
|
+
user: "user";
|
|
609
609
|
system: "system";
|
|
610
610
|
}>;
|
|
611
611
|
content: z.ZodOptional<z.ZodString>;
|
|
@@ -23,8 +23,8 @@ export declare const chatInboxItemSchema: z.ZodObject<{
|
|
|
23
23
|
id: z.ZodString;
|
|
24
24
|
roomId: z.ZodString;
|
|
25
25
|
senderType: z.ZodEnum<{
|
|
26
|
-
user: "user";
|
|
27
26
|
agent: "agent";
|
|
27
|
+
user: "user";
|
|
28
28
|
system: "system";
|
|
29
29
|
}>;
|
|
30
30
|
messageType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -318,8 +318,8 @@ export declare const chatInboxItemSchema: z.ZodObject<{
|
|
|
318
318
|
id: z.ZodString;
|
|
319
319
|
roomId: z.ZodString;
|
|
320
320
|
senderType: z.ZodEnum<{
|
|
321
|
-
user: "user";
|
|
322
321
|
agent: "agent";
|
|
322
|
+
user: "user";
|
|
323
323
|
system: "system";
|
|
324
324
|
}>;
|
|
325
325
|
messageType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -492,8 +492,8 @@ export declare const chatInboxPageSchema: z.ZodObject<{
|
|
|
492
492
|
id: z.ZodString;
|
|
493
493
|
roomId: z.ZodString;
|
|
494
494
|
senderType: z.ZodEnum<{
|
|
495
|
-
user: "user";
|
|
496
495
|
agent: "agent";
|
|
496
|
+
user: "user";
|
|
497
497
|
system: "system";
|
|
498
498
|
}>;
|
|
499
499
|
messageType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -787,8 +787,8 @@ export declare const chatInboxPageSchema: z.ZodObject<{
|
|
|
787
787
|
id: z.ZodString;
|
|
788
788
|
roomId: z.ZodString;
|
|
789
789
|
senderType: z.ZodEnum<{
|
|
790
|
-
user: "user";
|
|
791
790
|
agent: "agent";
|
|
791
|
+
user: "user";
|
|
792
792
|
system: "system";
|
|
793
793
|
}>;
|
|
794
794
|
messageType: z.ZodOptional<z.ZodEnum<{
|
package/dist/schemas/sse.d.ts
CHANGED
|
@@ -17,8 +17,8 @@ export declare const presenceEventSchema: z.ZodObject<{
|
|
|
17
17
|
export type PresenceEvent = z.infer<typeof presenceEventSchema>;
|
|
18
18
|
export declare const participantEventSchema: z.ZodObject<{
|
|
19
19
|
type: z.ZodEnum<{
|
|
20
|
-
user: "user";
|
|
21
20
|
agent: "agent";
|
|
21
|
+
user: "user";
|
|
22
22
|
}>;
|
|
23
23
|
id: z.ZodString;
|
|
24
24
|
chatRoomId: z.ZodOptional<z.ZodString>;
|
|
@@ -121,8 +121,8 @@ export declare const messageEventSchema: z.ZodObject<{
|
|
|
121
121
|
knowledge_result: "knowledge_result";
|
|
122
122
|
}>;
|
|
123
123
|
senderType: z.ZodEnum<{
|
|
124
|
-
user: "user";
|
|
125
124
|
agent: "agent";
|
|
125
|
+
user: "user";
|
|
126
126
|
system: "system";
|
|
127
127
|
}>;
|
|
128
128
|
content: z.ZodOptional<z.ZodString>;
|
package/dist/schemas/ui.d.ts
CHANGED
|
@@ -181,8 +181,8 @@ export type TokenUsage = z.infer<typeof tokenUsageSchema>;
|
|
|
181
181
|
* Message sender type
|
|
182
182
|
*/
|
|
183
183
|
export declare const messageSenderTypeSchema: z.ZodEnum<{
|
|
184
|
-
user: "user";
|
|
185
184
|
agent: "agent";
|
|
185
|
+
user: "user";
|
|
186
186
|
system: "system";
|
|
187
187
|
}>;
|
|
188
188
|
export type MessageSenderType = z.infer<typeof messageSenderTypeSchema>;
|
|
@@ -320,8 +320,8 @@ export declare const unifiedChatMessageSchema: z.ZodObject<{
|
|
|
320
320
|
id: z.ZodString;
|
|
321
321
|
roomId: z.ZodString;
|
|
322
322
|
senderType: z.ZodEnum<{
|
|
323
|
-
user: "user";
|
|
324
323
|
agent: "agent";
|
|
324
|
+
user: "user";
|
|
325
325
|
system: "system";
|
|
326
326
|
}>;
|
|
327
327
|
messageType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -478,8 +478,8 @@ export declare const chatItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
478
478
|
id: z.ZodString;
|
|
479
479
|
roomId: z.ZodString;
|
|
480
480
|
senderType: z.ZodEnum<{
|
|
481
|
-
user: "user";
|
|
482
481
|
agent: "agent";
|
|
482
|
+
user: "user";
|
|
483
483
|
system: "system";
|
|
484
484
|
}>;
|
|
485
485
|
messageType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -793,8 +793,8 @@ export declare const unifiedChatRoomSchema: z.ZodObject<{
|
|
|
793
793
|
id: z.ZodString;
|
|
794
794
|
roomId: z.ZodString;
|
|
795
795
|
senderType: z.ZodEnum<{
|
|
796
|
-
user: "user";
|
|
797
796
|
agent: "agent";
|
|
797
|
+
user: "user";
|
|
798
798
|
system: "system";
|
|
799
799
|
}>;
|
|
800
800
|
messageType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1131,8 +1131,8 @@ export declare const chatSSEEventSchema: z.ZodObject<{
|
|
|
1131
1131
|
id: z.ZodString;
|
|
1132
1132
|
roomId: z.ZodString;
|
|
1133
1133
|
senderType: z.ZodEnum<{
|
|
1134
|
-
user: "user";
|
|
1135
1134
|
agent: "agent";
|
|
1135
|
+
user: "user";
|
|
1136
1136
|
system: "system";
|
|
1137
1137
|
}>;
|
|
1138
1138
|
messageType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -27,8 +27,8 @@ declare const chatSearchRoomSchema: z.ZodObject<{
|
|
|
27
27
|
id: z.ZodString;
|
|
28
28
|
content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
29
|
senderType: z.ZodOptional<z.ZodEnum<{
|
|
30
|
-
user: "user";
|
|
31
30
|
agent: "agent";
|
|
31
|
+
user: "user";
|
|
32
32
|
system: "system";
|
|
33
33
|
}>>;
|
|
34
34
|
createdAt: z.ZodNumber;
|
|
@@ -58,7 +58,7 @@ export declare class ChatState {
|
|
|
58
58
|
data: {
|
|
59
59
|
id: string;
|
|
60
60
|
roomId: string;
|
|
61
|
-
senderType: "
|
|
61
|
+
senderType: "agent" | "user" | "system";
|
|
62
62
|
role: "user" | "system" | "assistant";
|
|
63
63
|
content: string;
|
|
64
64
|
status: "cancelled" | "failed" | "queued" | "streaming" | "sending" | "sent" | "pending" | "declined" | "processing" | "completed";
|
|
@@ -288,7 +288,7 @@ export declare class ChatState {
|
|
|
288
288
|
data: {
|
|
289
289
|
id: string;
|
|
290
290
|
roomId: string;
|
|
291
|
-
senderType: "
|
|
291
|
+
senderType: "agent" | "user" | "system";
|
|
292
292
|
role: "user" | "system" | "assistant";
|
|
293
293
|
content: string;
|
|
294
294
|
status: "cancelled" | "failed" | "queued" | "streaming" | "sending" | "sent" | "pending" | "declined" | "processing" | "completed";
|
|
@@ -505,7 +505,7 @@ export declare class ChatState {
|
|
|
505
505
|
messages: {
|
|
506
506
|
id: string;
|
|
507
507
|
roomId: string;
|
|
508
|
-
senderType: "
|
|
508
|
+
senderType: "agent" | "user" | "system";
|
|
509
509
|
role: "user" | "system" | "assistant";
|
|
510
510
|
content: string;
|
|
511
511
|
status: "cancelled" | "failed" | "queued" | "streaming" | "sending" | "sent" | "pending" | "declined" | "processing" | "completed";
|
|
@@ -615,7 +615,7 @@ export declare class ChatState {
|
|
|
615
615
|
roomMessageSnapshots: Record<string, {
|
|
616
616
|
id: string;
|
|
617
617
|
roomId: string;
|
|
618
|
-
senderType: "
|
|
618
|
+
senderType: "agent" | "user" | "system";
|
|
619
619
|
role: "user" | "system" | "assistant";
|
|
620
620
|
content: string;
|
|
621
621
|
status: "cancelled" | "failed" | "queued" | "streaming" | "sending" | "sent" | "pending" | "declined" | "processing" | "completed";
|
|
@@ -740,7 +740,7 @@ export declare class ChatState {
|
|
|
740
740
|
data: {
|
|
741
741
|
id: string;
|
|
742
742
|
roomId: string;
|
|
743
|
-
senderType: "
|
|
743
|
+
senderType: "agent" | "user" | "system";
|
|
744
744
|
role: "user" | "system" | "assistant";
|
|
745
745
|
content: string;
|
|
746
746
|
status: "cancelled" | "failed" | "queued" | "streaming" | "sending" | "sent" | "pending" | "declined" | "processing" | "completed";
|
|
@@ -957,7 +957,7 @@ export declare class ChatState {
|
|
|
957
957
|
message: {
|
|
958
958
|
id: string;
|
|
959
959
|
roomId: string;
|
|
960
|
-
senderType: "
|
|
960
|
+
senderType: "agent" | "user" | "system";
|
|
961
961
|
role: "user" | "system" | "assistant";
|
|
962
962
|
content: string;
|
|
963
963
|
status: "cancelled" | "failed" | "queued" | "streaming" | "sending" | "sent" | "pending" | "declined" | "processing" | "completed";
|
|
@@ -18,7 +18,7 @@ export declare class ChatMessagesStore {
|
|
|
18
18
|
chatRoomId: string;
|
|
19
19
|
status: "failed" | "queued" | "streaming" | "sending" | "sent" | "pending" | "declined" | "processing" | "completed";
|
|
20
20
|
messageType: "error" | "text" | "image" | "image_url" | "video_url" | "tool_request" | "tool_response" | "knowledge_result";
|
|
21
|
-
senderType: "
|
|
21
|
+
senderType: "agent" | "user" | "system";
|
|
22
22
|
userId?: string | undefined;
|
|
23
23
|
agentId?: string | undefined;
|
|
24
24
|
replyToId?: string | undefined;
|
|
@@ -84,7 +84,7 @@ export declare class ChatMessagesStore {
|
|
|
84
84
|
refs: SvelteMap<string, {
|
|
85
85
|
id: string;
|
|
86
86
|
chatRoomId: string;
|
|
87
|
-
senderType: "
|
|
87
|
+
senderType: "agent" | "user" | "system";
|
|
88
88
|
messageType: "error" | "text" | "image" | "image_url" | "video_url" | "tool_request" | "tool_response" | "knowledge_result";
|
|
89
89
|
createdAt: string;
|
|
90
90
|
excerpt: string;
|
|
@@ -112,7 +112,7 @@ export declare class ChatRoomStore {
|
|
|
112
112
|
chatRoomId: string;
|
|
113
113
|
status: "failed" | "queued" | "streaming" | "sending" | "sent" | "pending" | "declined" | "processing" | "completed";
|
|
114
114
|
messageType: "error" | "text" | "image" | "image_url" | "video_url" | "tool_request" | "tool_response" | "knowledge_result";
|
|
115
|
-
senderType: "
|
|
115
|
+
senderType: "agent" | "user" | "system";
|
|
116
116
|
userId?: string | undefined;
|
|
117
117
|
agentId?: string | undefined;
|
|
118
118
|
replyToId?: string | undefined;
|
|
@@ -24,8 +24,8 @@ export declare const ChatMessageActionInputSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
24
24
|
knowledge_result: "knowledge_result";
|
|
25
25
|
}>>;
|
|
26
26
|
senderType: z.ZodDefault<z.ZodEnum<{
|
|
27
|
-
user: "user";
|
|
28
27
|
agent: "agent";
|
|
28
|
+
user: "user";
|
|
29
29
|
system: "system";
|
|
30
30
|
}>>;
|
|
31
31
|
subscribeToStream: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -37,8 +37,8 @@ declare const _default: {
|
|
|
37
37
|
knowledge_result: "knowledge_result";
|
|
38
38
|
}>>;
|
|
39
39
|
senderType: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
40
|
-
user: "user";
|
|
41
40
|
agent: "agent";
|
|
41
|
+
user: "user";
|
|
42
42
|
system: "system";
|
|
43
43
|
}>>;
|
|
44
44
|
subscribeToStream: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
@@ -16,8 +16,8 @@ export declare const ChatMessagesSendInputSchema: z.ZodObject<{
|
|
|
16
16
|
knowledge_result: "knowledge_result";
|
|
17
17
|
}>>;
|
|
18
18
|
senderType: z.ZodDefault<z.ZodEnum<{
|
|
19
|
-
user: "user";
|
|
20
19
|
agent: "agent";
|
|
20
|
+
user: "user";
|
|
21
21
|
system: "system";
|
|
22
22
|
}>>;
|
|
23
23
|
subscribeToStream: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -61,8 +61,8 @@ export declare const ChatTuiRoomSchema: z.ZodObject<{
|
|
|
61
61
|
id: z.ZodString;
|
|
62
62
|
roomId: z.ZodString;
|
|
63
63
|
senderType: z.ZodEnum<{
|
|
64
|
-
user: "user";
|
|
65
64
|
agent: "agent";
|
|
65
|
+
user: "user";
|
|
66
66
|
system: "system";
|
|
67
67
|
}>;
|
|
68
68
|
messageType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -375,8 +375,8 @@ export declare const ChatRoomsTuiStateSchema: z.ZodObject<{
|
|
|
375
375
|
id: z.ZodString;
|
|
376
376
|
roomId: z.ZodString;
|
|
377
377
|
senderType: z.ZodEnum<{
|
|
378
|
-
user: "user";
|
|
379
378
|
agent: "agent";
|
|
379
|
+
user: "user";
|
|
380
380
|
system: "system";
|
|
381
381
|
}>;
|
|
382
382
|
messageType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -689,8 +689,8 @@ export declare const ChatRoomsTuiStateSchema: z.ZodObject<{
|
|
|
689
689
|
id: z.ZodString;
|
|
690
690
|
roomId: z.ZodString;
|
|
691
691
|
senderType: z.ZodEnum<{
|
|
692
|
-
user: "user";
|
|
693
692
|
agent: "agent";
|
|
693
|
+
user: "user";
|
|
694
694
|
system: "system";
|
|
695
695
|
}>;
|
|
696
696
|
messageType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1133,8 +1133,8 @@ export declare const ChatRoomsTuiStateSchema: z.ZodObject<{
|
|
|
1133
1133
|
id: z.ZodString;
|
|
1134
1134
|
roomId: z.ZodString;
|
|
1135
1135
|
senderType: z.ZodEnum<{
|
|
1136
|
-
user: "user";
|
|
1137
1136
|
agent: "agent";
|
|
1137
|
+
user: "user";
|
|
1138
1138
|
system: "system";
|
|
1139
1139
|
}>;
|
|
1140
1140
|
messageType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1320,7 +1320,7 @@ export declare const chatRoomsStateKey: import("@vibesdotdev/tui").TuiStateKey<{
|
|
|
1320
1320
|
data: {
|
|
1321
1321
|
id: string;
|
|
1322
1322
|
roomId: string;
|
|
1323
|
-
senderType: "
|
|
1323
|
+
senderType: "agent" | "user" | "system";
|
|
1324
1324
|
role: "user" | "system" | "assistant";
|
|
1325
1325
|
content: string;
|
|
1326
1326
|
status: "cancelled" | "failed" | "queued" | "streaming" | "sending" | "sent" | "pending" | "declined" | "processing" | "completed";
|
|
@@ -1551,7 +1551,7 @@ export declare const chatRoomsStateKey: import("@vibesdotdev/tui").TuiStateKey<{
|
|
|
1551
1551
|
data: {
|
|
1552
1552
|
id: string;
|
|
1553
1553
|
roomId: string;
|
|
1554
|
-
senderType: "
|
|
1554
|
+
senderType: "agent" | "user" | "system";
|
|
1555
1555
|
role: "user" | "system" | "assistant";
|
|
1556
1556
|
content: string;
|
|
1557
1557
|
status: "cancelled" | "failed" | "queued" | "streaming" | "sending" | "sent" | "pending" | "declined" | "processing" | "completed";
|
|
@@ -1864,7 +1864,7 @@ export declare const chatRoomsStateKey: import("@vibesdotdev/tui").TuiStateKey<{
|
|
|
1864
1864
|
messages: readonly {
|
|
1865
1865
|
id: string;
|
|
1866
1866
|
roomId: string;
|
|
1867
|
-
senderType: "
|
|
1867
|
+
senderType: "agent" | "user" | "system";
|
|
1868
1868
|
role: "user" | "system" | "assistant";
|
|
1869
1869
|
content: string;
|
|
1870
1870
|
status: "cancelled" | "failed" | "queued" | "streaming" | "sending" | "sent" | "pending" | "declined" | "processing" | "completed";
|
package/package.json
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibesdotdev/chat",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.1",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@vibesdotdev/shared": "^1.0.0-rc.4",
|
|
6
|
-
"@vibesdotdev/filesystem": "^1.0.0-rc.
|
|
7
|
-
"@vibesdotdev/infra-core": "^1.0.0-rc.
|
|
8
|
-
"@vibesdotdev/agent-execution": "^1.0.0-rc.
|
|
9
|
-
"@vibesdotdev/ai": "^1.0.0-rc.
|
|
6
|
+
"@vibesdotdev/filesystem": "^1.0.0-rc.3",
|
|
7
|
+
"@vibesdotdev/infra-core": "^1.0.0-rc.5",
|
|
8
|
+
"@vibesdotdev/agent-execution": "^1.0.0-rc.2",
|
|
9
|
+
"@vibesdotdev/ai": "^1.0.0-rc.5",
|
|
10
10
|
"@vibesdotdev/ai-schemas": "^1.0.0-rc.3",
|
|
11
|
-
"@vibesdotdev/auth": "^1.0.0-rc.
|
|
12
|
-
"@vibesdotdev/client": "^1.0.0-rc.
|
|
13
|
-
"@vibesdotdev/code-sessions": "^1.0.0-rc.
|
|
14
|
-
"@vibesdotdev/config": "^1.0.0-rc.
|
|
11
|
+
"@vibesdotdev/auth": "^1.0.0-rc.5",
|
|
12
|
+
"@vibesdotdev/client": "^1.0.0-rc.3",
|
|
13
|
+
"@vibesdotdev/code-sessions": "^1.0.0-rc.1",
|
|
14
|
+
"@vibesdotdev/config": "^1.0.0-rc.5",
|
|
15
15
|
"@vibesdotdev/docs-contracts": "^1.0.0-rc.4",
|
|
16
|
-
"@vibesdotdev/email": "^1.0.0-rc.
|
|
17
|
-
"@vibesdotdev/logging": "^1.0.0-rc.
|
|
16
|
+
"@vibesdotdev/email": "^1.0.0-rc.4",
|
|
17
|
+
"@vibesdotdev/logging": "^1.0.0-rc.5",
|
|
18
18
|
"@vibesdotdev/moderation": "^1.0.0-rc.2",
|
|
19
19
|
"@vibesdotdev/realtime": "^1.0.0-rc.3",
|
|
20
|
-
"@vibesdotdev/kernel": "^1.0.0-rc.
|
|
21
|
-
"@vibesdotdev/storage": "^1.0.0-rc.
|
|
22
|
-
"@vibesdotdev/tools": "^1.0.0-rc.
|
|
20
|
+
"@vibesdotdev/kernel": "^1.0.0-rc.8",
|
|
21
|
+
"@vibesdotdev/storage": "^1.0.0-rc.5",
|
|
22
|
+
"@vibesdotdev/tools": "^1.0.0-rc.5",
|
|
23
23
|
"esm-env": "^1.2.2",
|
|
24
24
|
"zustand": "^5.0.15",
|
|
25
25
|
"zod": "^4.6.7"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@vibesdotdev/kit": "^1.0.0-rc.
|
|
28
|
+
"@vibesdotdev/kit": "^1.0.0-rc.0",
|
|
29
29
|
"@lucide/svelte": "^1.59.0",
|
|
30
30
|
"@opentui/react": "^0.5.17",
|
|
31
31
|
"@sveltejs/kit": "^2.70.3",
|
|
@@ -33,21 +33,21 @@
|
|
|
33
33
|
"@sveltejs/vite-plugin-svelte": "^7.3.1",
|
|
34
34
|
"@types/bun": "^1.4.3",
|
|
35
35
|
"@types/react": "^19.3.0",
|
|
36
|
-
"@vibesdotdev/account": "^1.0.0-rc.
|
|
37
|
-
"@vibesdotdev/cli": "^1.0.0-rc.
|
|
38
|
-
"@vibesdotdev/command-palette": "^1.0.0-rc.
|
|
36
|
+
"@vibesdotdev/account": "^1.0.0-rc.0",
|
|
37
|
+
"@vibesdotdev/cli": "^1.0.0-rc.0",
|
|
38
|
+
"@vibesdotdev/command-palette": "^1.0.0-rc.0",
|
|
39
39
|
"@vibesdotdev/platform": "^1.0.0-rc.0",
|
|
40
|
-
"@vibesdotdev/testing": "^1.0.0-rc.
|
|
41
|
-
"@vibesdotdev/tui": "^1.0.0-rc.
|
|
40
|
+
"@vibesdotdev/testing": "^1.0.0-rc.0",
|
|
41
|
+
"@vibesdotdev/tui": "^1.0.0-rc.0",
|
|
42
42
|
"date-fns": "^4.4.0",
|
|
43
43
|
"react": "^19.3.1",
|
|
44
44
|
"svelte": "^5.57.2",
|
|
45
45
|
"tailwindcss": "^4.3.3",
|
|
46
46
|
"typescript": "^6.0.3",
|
|
47
|
-
"@vibesdotdev/storage": "^1.0.0-rc.
|
|
48
|
-
"@vibesdotdev/tools": "^1.0.0-rc.
|
|
49
|
-
"@vibesdotdev/vessel": "^1.0.0-rc.
|
|
50
|
-
"@vibesdotdev/surface-sveltekit": "^1.0.0-rc.
|
|
47
|
+
"@vibesdotdev/storage": "^1.0.0-rc.0",
|
|
48
|
+
"@vibesdotdev/tools": "^1.0.0-rc.0",
|
|
49
|
+
"@vibesdotdev/vessel": "^1.0.0-rc.0",
|
|
50
|
+
"@vibesdotdev/surface-sveltekit": "^1.0.0-rc.0"
|
|
51
51
|
},
|
|
52
52
|
"main": "./dist/index.js",
|
|
53
53
|
"exports": {
|
|
@@ -811,10 +811,10 @@
|
|
|
811
811
|
"optional": true
|
|
812
812
|
}
|
|
813
813
|
},
|
|
814
|
-
"gitHead": "
|
|
814
|
+
"gitHead": "f1ff526c235b10c970497738beb16b0651c428c8",
|
|
815
815
|
"_vibes_source": {
|
|
816
816
|
"repo": "ssh://git@git.vibes.dev/vibesdotdev/framework.git",
|
|
817
|
-
"sha": "
|
|
818
|
-
"workspaceDigest": "sha256:
|
|
817
|
+
"sha": "f1ff526c235b10c970497738beb16b0651c428c8",
|
|
818
|
+
"workspaceDigest": "sha256:2091c24e2201473dbcdacc84a965a5d6d7e5c3b09bb718f15a66e01f3ea38d4f"
|
|
819
819
|
}
|
|
820
820
|
}
|