@feedmepos/mf-remy-panel 0.2.11 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/HomeView-ab6d0ec3.js +144 -0
  2. package/dist/RemyButton-d451909b.js +30 -0
  3. package/dist/api/conversations.d.ts +21 -0
  4. package/dist/api/http.d.ts +2 -0
  5. package/dist/api/messages.d.ts +16 -0
  6. package/dist/app-919731f0.js +14287 -0
  7. package/dist/app.d.ts +6 -105
  8. package/dist/app.js +9 -9
  9. package/dist/assets/icons/index.d.ts +2 -3
  10. package/dist/bootstrap/remy.d.ts +5 -0
  11. package/dist/components/chatPanel/{ToolCallDisplay.vue.d.ts → ActionCard.vue.d.ts} +2 -2
  12. package/dist/components/chatPanel/ChatInput.vue.d.ts +1 -5
  13. package/dist/components/chatPanel/ChatMessageAssistant.vue.d.ts +1 -1
  14. package/dist/components/chatPanel/ChatMessageUser.vue.d.ts +1 -1
  15. package/dist/components/chatPanel/ChatMessages.vue.d.ts +1 -1
  16. package/dist/components/chatPanel/MessageContent.vue.d.ts +0 -2
  17. package/dist/composables/useClientEvent.d.ts +17 -0
  18. package/dist/locales/index.d.ts +96 -0
  19. package/dist/stores/appStore.d.ts +28 -0
  20. package/dist/stores/chatStore.d.ts +190 -0
  21. package/dist/style.css +2 -2
  22. package/dist/tsconfig.app.tsbuildinfo +1 -1
  23. package/dist/types/chat.d.ts +26 -0
  24. package/package.json +5 -3
  25. package/dist/HomeView-290f3cb8.js +0 -172
  26. package/dist/RemyButton-6b7e14e7.js +0 -65
  27. package/dist/app-5b4fe84c.js +0 -9468
  28. package/dist/components/chatPanel/ChatFollowUps.vue.d.ts +0 -20
  29. package/dist/components/chatPanel/HistoryView.vue.d.ts +0 -8
  30. package/dist/components/chatPanel/MessageActions.vue.d.ts +0 -16
  31. package/dist/router/shared.d.ts +0 -2
  32. package/dist/stores/counter.d.ts +0 -13
  33. package/dist/stores/remyChat.d.ts +0 -825
  34. package/dist/stores/remyStore.d.ts +0 -62
  35. /package/dist/components/chatPanel/{RemyChatPanel.vue.d.ts → ChatPanel.vue.d.ts} +0 -0
  36. /package/dist/components/chatPanel/{Navigator.vue.d.ts → ConversationList.vue.d.ts} +0 -0
@@ -1,825 +0,0 @@
1
- import type { ChatParticipant, ChatMessage, SlashCommand, FollowUp, StreamContent, ChatSession, ExtractVariablesContext, RemyAgent } from '@feedmepos/remy-core';
2
- import type { TokenBalanceResponse } from '@feedmepos/remy-core';
3
- export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat", Pick<{
4
- inputText: import("vue").Ref<string, string>;
5
- messages: import("vue").Ref<{
6
- id: string;
7
- type: "user" | "assistant";
8
- content: string;
9
- contentParts?: {
10
- type: import("@feedmepos/remy-core").StreamContentType;
11
- data: any;
12
- }[] | undefined;
13
- timestamp: number;
14
- participant?: string | undefined;
15
- command?: string | undefined;
16
- variables?: Record<string, any> | undefined;
17
- followUps?: {
18
- id: string;
19
- title?: string | undefined;
20
- label: string;
21
- prompt: string;
22
- command?: string | undefined;
23
- handler?: (() => void) | undefined;
24
- }[] | undefined;
25
- selectedId?: string | undefined;
26
- feedback?: "helpful" | "unhelpful" | undefined;
27
- isStreaming?: boolean | undefined;
28
- toolCalls?: {
29
- id: string;
30
- name: string;
31
- arguments: any;
32
- }[] | undefined;
33
- }[], ChatMessage[] | {
34
- id: string;
35
- type: "user" | "assistant";
36
- content: string;
37
- contentParts?: {
38
- type: import("@feedmepos/remy-core").StreamContentType;
39
- data: any;
40
- }[] | undefined;
41
- timestamp: number;
42
- participant?: string | undefined;
43
- command?: string | undefined;
44
- variables?: Record<string, any> | undefined;
45
- followUps?: {
46
- id: string;
47
- title?: string | undefined;
48
- label: string;
49
- prompt: string;
50
- command?: string | undefined;
51
- handler?: (() => void) | undefined;
52
- }[] | undefined;
53
- selectedId?: string | undefined;
54
- feedback?: "helpful" | "unhelpful" | undefined;
55
- isStreaming?: boolean | undefined;
56
- toolCalls?: {
57
- id: string;
58
- name: string;
59
- arguments: any;
60
- }[] | undefined;
61
- }[]>;
62
- participants: import("vue").Ref<Map<string, {
63
- id: string;
64
- name: string;
65
- fullName?: string | undefined;
66
- description: string;
67
- handler: import("@feedmepos/remy-core").ChatHandler<import("@feedmepos/remy-core").RemyCommandResult>;
68
- commands?: {
69
- name: string;
70
- description: string;
71
- variables?: {
72
- name: string;
73
- description: string;
74
- type: "string" | "number" | "image";
75
- required: boolean;
76
- defaultValue?: any;
77
- }[] | undefined;
78
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
79
- }[] | undefined;
80
- iconPath?: string | undefined;
81
- }> & Omit<Map<string, ChatParticipant>, keyof Map<any, any>>, Map<string, ChatParticipant> | (Map<string, {
82
- id: string;
83
- name: string;
84
- fullName?: string | undefined;
85
- description: string;
86
- handler: import("@feedmepos/remy-core").ChatHandler<import("@feedmepos/remy-core").RemyCommandResult>;
87
- commands?: {
88
- name: string;
89
- description: string;
90
- variables?: {
91
- name: string;
92
- description: string;
93
- type: "string" | "number" | "image";
94
- required: boolean;
95
- defaultValue?: any;
96
- }[] | undefined;
97
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
98
- }[] | undefined;
99
- iconPath?: string | undefined;
100
- }> & Omit<Map<string, ChatParticipant>, keyof Map<any, any>>)>;
101
- commands: import("vue").Ref<Map<string, {
102
- name: string;
103
- description: string;
104
- variables?: {
105
- name: string;
106
- description: string;
107
- type: "string" | "number" | "image";
108
- required: boolean;
109
- defaultValue?: any;
110
- }[] | undefined;
111
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
112
- }> & Omit<Map<string, SlashCommand<import("@feedmepos/remy-core").RemyCommandResult>>, keyof Map<any, any>>, Map<string, SlashCommand<import("@feedmepos/remy-core").RemyCommandResult>> | (Map<string, {
113
- name: string;
114
- description: string;
115
- variables?: {
116
- name: string;
117
- description: string;
118
- type: "string" | "number" | "image";
119
- required: boolean;
120
- defaultValue?: any;
121
- }[] | undefined;
122
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
123
- }> & Omit<Map<string, SlashCommand<import("@feedmepos/remy-core").RemyCommandResult>>, keyof Map<any, any>>)>;
124
- currentParticipant: import("vue").Ref<string, string>;
125
- sessionId: import("vue").Ref<string, string>;
126
- isStreaming: import("vue").Ref<boolean, boolean>;
127
- isConnected: import("vue").Ref<boolean, boolean>;
128
- latestFollowUps: import("vue").ComputedRef<{
129
- id: string;
130
- title?: string | undefined;
131
- label: string;
132
- prompt: string;
133
- command?: string | undefined;
134
- handler?: (() => void) | undefined;
135
- }[]>;
136
- latestMessageSelectedId: import("vue").ComputedRef<string | undefined>;
137
- availableCommands: import("vue").ComputedRef<{
138
- name: string;
139
- description: string;
140
- variables?: {
141
- name: string;
142
- description: string;
143
- type: "string" | "number" | "image";
144
- required: boolean;
145
- defaultValue?: any;
146
- }[] | undefined;
147
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
148
- }[]>;
149
- commandModeActive: import("vue").Ref<boolean, boolean>;
150
- activeCommand: import("vue").Ref<string | null, string | null>;
151
- commandContext: import("vue").Ref<Record<string, any>, Record<string, any>>;
152
- agent: import("vue").Ref<{
153
- participant: {
154
- id: string;
155
- name: string;
156
- fullName?: string | undefined;
157
- description: string;
158
- handler: import("@feedmepos/remy-core").ChatHandler<import("@feedmepos/remy-core").RemyCommandResult>;
159
- commands?: {
160
- name: string;
161
- description: string;
162
- variables?: {
163
- name: string;
164
- description: string;
165
- type: "string" | "number" | "image";
166
- required: boolean;
167
- defaultValue?: any;
168
- }[] | undefined;
169
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
170
- }[] | undefined;
171
- iconPath?: string | undefined;
172
- };
173
- client: {
174
- getItemPricing: (request: import("@feedmepos/remy-core").PricingRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").PricingResponse>;
175
- getItemDescription: (request: import("@feedmepos/remy-core").DescriptionRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").DescriptionResponse>;
176
- getInventoryForecast: (request: import("@feedmepos/remy-core").InventoryForecastRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").InventoryForecastResponse>;
177
- getPurchaseOrderForecast: (request: import("@feedmepos/remy-core").PurchaseOrderForecastRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").PurchaseOrderForecastResponse>;
178
- extractVariables: (request: import("@feedmepos/remy-core").VariableExtractionRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").VariableExtractionResponse>;
179
- generateMenuImage: (request: import("@feedmepos/remy-core").MenuImageGenerationRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").MenuImageGenerationResponse>;
180
- sendPrompt: (request: import("@feedmepos/remy-core").AgentPromptRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").AgentPromptResponse>;
181
- getTokenBalance: (businessId: string, signal?: AbortSignal | undefined) => Promise<TokenBalanceResponse>;
182
- };
183
- tools: {
184
- register: (definition: import("@feedmepos/remy-core").ToolDefinition, handler: (params: any) => Promise<any>) => void;
185
- unregister: (name: string) => void;
186
- get: (name: string) => {
187
- definition: import("@feedmepos/remy-core").ToolDefinition;
188
- handler: (params: any) => Promise<any>;
189
- } | undefined;
190
- getDefinitions: () => import("@feedmepos/remy-core").ToolDefinition[];
191
- };
192
- } | null, RemyAgent | {
193
- participant: {
194
- id: string;
195
- name: string;
196
- fullName?: string | undefined;
197
- description: string;
198
- handler: import("@feedmepos/remy-core").ChatHandler<import("@feedmepos/remy-core").RemyCommandResult>;
199
- commands?: {
200
- name: string;
201
- description: string;
202
- variables?: {
203
- name: string;
204
- description: string;
205
- type: "string" | "number" | "image";
206
- required: boolean;
207
- defaultValue?: any;
208
- }[] | undefined;
209
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
210
- }[] | undefined;
211
- iconPath?: string | undefined;
212
- };
213
- client: {
214
- getItemPricing: (request: import("@feedmepos/remy-core").PricingRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").PricingResponse>;
215
- getItemDescription: (request: import("@feedmepos/remy-core").DescriptionRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").DescriptionResponse>;
216
- getInventoryForecast: (request: import("@feedmepos/remy-core").InventoryForecastRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").InventoryForecastResponse>;
217
- getPurchaseOrderForecast: (request: import("@feedmepos/remy-core").PurchaseOrderForecastRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").PurchaseOrderForecastResponse>;
218
- extractVariables: (request: import("@feedmepos/remy-core").VariableExtractionRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").VariableExtractionResponse>;
219
- generateMenuImage: (request: import("@feedmepos/remy-core").MenuImageGenerationRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").MenuImageGenerationResponse>;
220
- sendPrompt: (request: import("@feedmepos/remy-core").AgentPromptRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").AgentPromptResponse>;
221
- getTokenBalance: (businessId: string, signal?: AbortSignal | undefined) => Promise<TokenBalanceResponse>;
222
- };
223
- tools: {
224
- register: (definition: import("@feedmepos/remy-core").ToolDefinition, handler: (params: any) => Promise<any>) => void;
225
- unregister: (name: string) => void;
226
- get: (name: string) => {
227
- definition: import("@feedmepos/remy-core").ToolDefinition;
228
- handler: (params: any) => Promise<any>;
229
- } | undefined;
230
- getDefinitions: () => import("@feedmepos/remy-core").ToolDefinition[];
231
- };
232
- } | null>;
233
- tokenBalance: import("vue").Ref<{
234
- _id: string;
235
- free: {
236
- _id: string;
237
- amount: number;
238
- expiredAt: string;
239
- name: string;
240
- }[];
241
- normal: number;
242
- } | null, TokenBalanceResponse | {
243
- _id: string;
244
- free: {
245
- _id: string;
246
- amount: number;
247
- expiredAt: string;
248
- name: string;
249
- }[];
250
- normal: number;
251
- } | null>;
252
- balanceLoading: import("vue").Ref<boolean, boolean>;
253
- balanceError: import("vue").Ref<string | null, string | null>;
254
- totalFreeTokens: import("vue").ComputedRef<number>;
255
- totalTokens: import("vue").ComputedRef<number>;
256
- setAgent: (remyAgent: RemyAgent) => void;
257
- registerParticipant: (participant: ChatParticipant) => void;
258
- registerCommand: (command: SlashCommand) => void;
259
- sendMessage: (prompt: string, command?: string, onResult?: ((result: any) => void) | undefined, customVariables?: Record<string, any>) => Promise<void>;
260
- addFollowUp: (messageId: string, followUp: FollowUp) => void;
261
- provideFeedback: (messageId: string, helpful: boolean) => void;
262
- saveSession: (businessId?: string) => Promise<void>;
263
- loadSession: (id?: string) => Promise<void>;
264
- clearHistory: () => Promise<void>;
265
- switchParticipant: (participantId: string) => void;
266
- addStreamContent: (content: StreamContent) => void;
267
- finishStreaming: () => void;
268
- listSessions: () => Promise<ChatSession[]>;
269
- newSession: () => Promise<void>;
270
- deleteSession: (id: string) => Promise<void>;
271
- clearAllHistory: () => Promise<void>;
272
- markFollowUpSelected: (messageId: string, followUpId: string) => void;
273
- activateCommandMode: (command: string, context?: Record<string, any>, prompt?: string) => void;
274
- deactivateCommandMode: () => void;
275
- extractVariables: (command: SlashCommand, context: ExtractVariablesContext, signal?: AbortSignal) => Promise<Record<string, any>>;
276
- refreshBalance: () => Promise<void>;
277
- }, "isStreaming" | "commands" | "inputText" | "messages" | "participants" | "currentParticipant" | "sessionId" | "isConnected" | "commandModeActive" | "activeCommand" | "commandContext" | "agent" | "tokenBalance" | "balanceLoading" | "balanceError">, Pick<{
278
- inputText: import("vue").Ref<string, string>;
279
- messages: import("vue").Ref<{
280
- id: string;
281
- type: "user" | "assistant";
282
- content: string;
283
- contentParts?: {
284
- type: import("@feedmepos/remy-core").StreamContentType;
285
- data: any;
286
- }[] | undefined;
287
- timestamp: number;
288
- participant?: string | undefined;
289
- command?: string | undefined;
290
- variables?: Record<string, any> | undefined;
291
- followUps?: {
292
- id: string;
293
- title?: string | undefined;
294
- label: string;
295
- prompt: string;
296
- command?: string | undefined;
297
- handler?: (() => void) | undefined;
298
- }[] | undefined;
299
- selectedId?: string | undefined;
300
- feedback?: "helpful" | "unhelpful" | undefined;
301
- isStreaming?: boolean | undefined;
302
- toolCalls?: {
303
- id: string;
304
- name: string;
305
- arguments: any;
306
- }[] | undefined;
307
- }[], ChatMessage[] | {
308
- id: string;
309
- type: "user" | "assistant";
310
- content: string;
311
- contentParts?: {
312
- type: import("@feedmepos/remy-core").StreamContentType;
313
- data: any;
314
- }[] | undefined;
315
- timestamp: number;
316
- participant?: string | undefined;
317
- command?: string | undefined;
318
- variables?: Record<string, any> | undefined;
319
- followUps?: {
320
- id: string;
321
- title?: string | undefined;
322
- label: string;
323
- prompt: string;
324
- command?: string | undefined;
325
- handler?: (() => void) | undefined;
326
- }[] | undefined;
327
- selectedId?: string | undefined;
328
- feedback?: "helpful" | "unhelpful" | undefined;
329
- isStreaming?: boolean | undefined;
330
- toolCalls?: {
331
- id: string;
332
- name: string;
333
- arguments: any;
334
- }[] | undefined;
335
- }[]>;
336
- participants: import("vue").Ref<Map<string, {
337
- id: string;
338
- name: string;
339
- fullName?: string | undefined;
340
- description: string;
341
- handler: import("@feedmepos/remy-core").ChatHandler<import("@feedmepos/remy-core").RemyCommandResult>;
342
- commands?: {
343
- name: string;
344
- description: string;
345
- variables?: {
346
- name: string;
347
- description: string;
348
- type: "string" | "number" | "image";
349
- required: boolean;
350
- defaultValue?: any;
351
- }[] | undefined;
352
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
353
- }[] | undefined;
354
- iconPath?: string | undefined;
355
- }> & Omit<Map<string, ChatParticipant>, keyof Map<any, any>>, Map<string, ChatParticipant> | (Map<string, {
356
- id: string;
357
- name: string;
358
- fullName?: string | undefined;
359
- description: string;
360
- handler: import("@feedmepos/remy-core").ChatHandler<import("@feedmepos/remy-core").RemyCommandResult>;
361
- commands?: {
362
- name: string;
363
- description: string;
364
- variables?: {
365
- name: string;
366
- description: string;
367
- type: "string" | "number" | "image";
368
- required: boolean;
369
- defaultValue?: any;
370
- }[] | undefined;
371
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
372
- }[] | undefined;
373
- iconPath?: string | undefined;
374
- }> & Omit<Map<string, ChatParticipant>, keyof Map<any, any>>)>;
375
- commands: import("vue").Ref<Map<string, {
376
- name: string;
377
- description: string;
378
- variables?: {
379
- name: string;
380
- description: string;
381
- type: "string" | "number" | "image";
382
- required: boolean;
383
- defaultValue?: any;
384
- }[] | undefined;
385
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
386
- }> & Omit<Map<string, SlashCommand<import("@feedmepos/remy-core").RemyCommandResult>>, keyof Map<any, any>>, Map<string, SlashCommand<import("@feedmepos/remy-core").RemyCommandResult>> | (Map<string, {
387
- name: string;
388
- description: string;
389
- variables?: {
390
- name: string;
391
- description: string;
392
- type: "string" | "number" | "image";
393
- required: boolean;
394
- defaultValue?: any;
395
- }[] | undefined;
396
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
397
- }> & Omit<Map<string, SlashCommand<import("@feedmepos/remy-core").RemyCommandResult>>, keyof Map<any, any>>)>;
398
- currentParticipant: import("vue").Ref<string, string>;
399
- sessionId: import("vue").Ref<string, string>;
400
- isStreaming: import("vue").Ref<boolean, boolean>;
401
- isConnected: import("vue").Ref<boolean, boolean>;
402
- latestFollowUps: import("vue").ComputedRef<{
403
- id: string;
404
- title?: string | undefined;
405
- label: string;
406
- prompt: string;
407
- command?: string | undefined;
408
- handler?: (() => void) | undefined;
409
- }[]>;
410
- latestMessageSelectedId: import("vue").ComputedRef<string | undefined>;
411
- availableCommands: import("vue").ComputedRef<{
412
- name: string;
413
- description: string;
414
- variables?: {
415
- name: string;
416
- description: string;
417
- type: "string" | "number" | "image";
418
- required: boolean;
419
- defaultValue?: any;
420
- }[] | undefined;
421
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
422
- }[]>;
423
- commandModeActive: import("vue").Ref<boolean, boolean>;
424
- activeCommand: import("vue").Ref<string | null, string | null>;
425
- commandContext: import("vue").Ref<Record<string, any>, Record<string, any>>;
426
- agent: import("vue").Ref<{
427
- participant: {
428
- id: string;
429
- name: string;
430
- fullName?: string | undefined;
431
- description: string;
432
- handler: import("@feedmepos/remy-core").ChatHandler<import("@feedmepos/remy-core").RemyCommandResult>;
433
- commands?: {
434
- name: string;
435
- description: string;
436
- variables?: {
437
- name: string;
438
- description: string;
439
- type: "string" | "number" | "image";
440
- required: boolean;
441
- defaultValue?: any;
442
- }[] | undefined;
443
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
444
- }[] | undefined;
445
- iconPath?: string | undefined;
446
- };
447
- client: {
448
- getItemPricing: (request: import("@feedmepos/remy-core").PricingRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").PricingResponse>;
449
- getItemDescription: (request: import("@feedmepos/remy-core").DescriptionRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").DescriptionResponse>;
450
- getInventoryForecast: (request: import("@feedmepos/remy-core").InventoryForecastRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").InventoryForecastResponse>;
451
- getPurchaseOrderForecast: (request: import("@feedmepos/remy-core").PurchaseOrderForecastRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").PurchaseOrderForecastResponse>;
452
- extractVariables: (request: import("@feedmepos/remy-core").VariableExtractionRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").VariableExtractionResponse>;
453
- generateMenuImage: (request: import("@feedmepos/remy-core").MenuImageGenerationRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").MenuImageGenerationResponse>;
454
- sendPrompt: (request: import("@feedmepos/remy-core").AgentPromptRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").AgentPromptResponse>;
455
- getTokenBalance: (businessId: string, signal?: AbortSignal | undefined) => Promise<TokenBalanceResponse>;
456
- };
457
- tools: {
458
- register: (definition: import("@feedmepos/remy-core").ToolDefinition, handler: (params: any) => Promise<any>) => void;
459
- unregister: (name: string) => void;
460
- get: (name: string) => {
461
- definition: import("@feedmepos/remy-core").ToolDefinition;
462
- handler: (params: any) => Promise<any>;
463
- } | undefined;
464
- getDefinitions: () => import("@feedmepos/remy-core").ToolDefinition[];
465
- };
466
- } | null, RemyAgent | {
467
- participant: {
468
- id: string;
469
- name: string;
470
- fullName?: string | undefined;
471
- description: string;
472
- handler: import("@feedmepos/remy-core").ChatHandler<import("@feedmepos/remy-core").RemyCommandResult>;
473
- commands?: {
474
- name: string;
475
- description: string;
476
- variables?: {
477
- name: string;
478
- description: string;
479
- type: "string" | "number" | "image";
480
- required: boolean;
481
- defaultValue?: any;
482
- }[] | undefined;
483
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
484
- }[] | undefined;
485
- iconPath?: string | undefined;
486
- };
487
- client: {
488
- getItemPricing: (request: import("@feedmepos/remy-core").PricingRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").PricingResponse>;
489
- getItemDescription: (request: import("@feedmepos/remy-core").DescriptionRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").DescriptionResponse>;
490
- getInventoryForecast: (request: import("@feedmepos/remy-core").InventoryForecastRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").InventoryForecastResponse>;
491
- getPurchaseOrderForecast: (request: import("@feedmepos/remy-core").PurchaseOrderForecastRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").PurchaseOrderForecastResponse>;
492
- extractVariables: (request: import("@feedmepos/remy-core").VariableExtractionRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").VariableExtractionResponse>;
493
- generateMenuImage: (request: import("@feedmepos/remy-core").MenuImageGenerationRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").MenuImageGenerationResponse>;
494
- sendPrompt: (request: import("@feedmepos/remy-core").AgentPromptRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").AgentPromptResponse>;
495
- getTokenBalance: (businessId: string, signal?: AbortSignal | undefined) => Promise<TokenBalanceResponse>;
496
- };
497
- tools: {
498
- register: (definition: import("@feedmepos/remy-core").ToolDefinition, handler: (params: any) => Promise<any>) => void;
499
- unregister: (name: string) => void;
500
- get: (name: string) => {
501
- definition: import("@feedmepos/remy-core").ToolDefinition;
502
- handler: (params: any) => Promise<any>;
503
- } | undefined;
504
- getDefinitions: () => import("@feedmepos/remy-core").ToolDefinition[];
505
- };
506
- } | null>;
507
- tokenBalance: import("vue").Ref<{
508
- _id: string;
509
- free: {
510
- _id: string;
511
- amount: number;
512
- expiredAt: string;
513
- name: string;
514
- }[];
515
- normal: number;
516
- } | null, TokenBalanceResponse | {
517
- _id: string;
518
- free: {
519
- _id: string;
520
- amount: number;
521
- expiredAt: string;
522
- name: string;
523
- }[];
524
- normal: number;
525
- } | null>;
526
- balanceLoading: import("vue").Ref<boolean, boolean>;
527
- balanceError: import("vue").Ref<string | null, string | null>;
528
- totalFreeTokens: import("vue").ComputedRef<number>;
529
- totalTokens: import("vue").ComputedRef<number>;
530
- setAgent: (remyAgent: RemyAgent) => void;
531
- registerParticipant: (participant: ChatParticipant) => void;
532
- registerCommand: (command: SlashCommand) => void;
533
- sendMessage: (prompt: string, command?: string, onResult?: ((result: any) => void) | undefined, customVariables?: Record<string, any>) => Promise<void>;
534
- addFollowUp: (messageId: string, followUp: FollowUp) => void;
535
- provideFeedback: (messageId: string, helpful: boolean) => void;
536
- saveSession: (businessId?: string) => Promise<void>;
537
- loadSession: (id?: string) => Promise<void>;
538
- clearHistory: () => Promise<void>;
539
- switchParticipant: (participantId: string) => void;
540
- addStreamContent: (content: StreamContent) => void;
541
- finishStreaming: () => void;
542
- listSessions: () => Promise<ChatSession[]>;
543
- newSession: () => Promise<void>;
544
- deleteSession: (id: string) => Promise<void>;
545
- clearAllHistory: () => Promise<void>;
546
- markFollowUpSelected: (messageId: string, followUpId: string) => void;
547
- activateCommandMode: (command: string, context?: Record<string, any>, prompt?: string) => void;
548
- deactivateCommandMode: () => void;
549
- extractVariables: (command: SlashCommand, context: ExtractVariablesContext, signal?: AbortSignal) => Promise<Record<string, any>>;
550
- refreshBalance: () => Promise<void>;
551
- }, "latestFollowUps" | "latestMessageSelectedId" | "availableCommands" | "totalFreeTokens" | "totalTokens">, Pick<{
552
- inputText: import("vue").Ref<string, string>;
553
- messages: import("vue").Ref<{
554
- id: string;
555
- type: "user" | "assistant";
556
- content: string;
557
- contentParts?: {
558
- type: import("@feedmepos/remy-core").StreamContentType;
559
- data: any;
560
- }[] | undefined;
561
- timestamp: number;
562
- participant?: string | undefined;
563
- command?: string | undefined;
564
- variables?: Record<string, any> | undefined;
565
- followUps?: {
566
- id: string;
567
- title?: string | undefined;
568
- label: string;
569
- prompt: string;
570
- command?: string | undefined;
571
- handler?: (() => void) | undefined;
572
- }[] | undefined;
573
- selectedId?: string | undefined;
574
- feedback?: "helpful" | "unhelpful" | undefined;
575
- isStreaming?: boolean | undefined;
576
- toolCalls?: {
577
- id: string;
578
- name: string;
579
- arguments: any;
580
- }[] | undefined;
581
- }[], ChatMessage[] | {
582
- id: string;
583
- type: "user" | "assistant";
584
- content: string;
585
- contentParts?: {
586
- type: import("@feedmepos/remy-core").StreamContentType;
587
- data: any;
588
- }[] | undefined;
589
- timestamp: number;
590
- participant?: string | undefined;
591
- command?: string | undefined;
592
- variables?: Record<string, any> | undefined;
593
- followUps?: {
594
- id: string;
595
- title?: string | undefined;
596
- label: string;
597
- prompt: string;
598
- command?: string | undefined;
599
- handler?: (() => void) | undefined;
600
- }[] | undefined;
601
- selectedId?: string | undefined;
602
- feedback?: "helpful" | "unhelpful" | undefined;
603
- isStreaming?: boolean | undefined;
604
- toolCalls?: {
605
- id: string;
606
- name: string;
607
- arguments: any;
608
- }[] | undefined;
609
- }[]>;
610
- participants: import("vue").Ref<Map<string, {
611
- id: string;
612
- name: string;
613
- fullName?: string | undefined;
614
- description: string;
615
- handler: import("@feedmepos/remy-core").ChatHandler<import("@feedmepos/remy-core").RemyCommandResult>;
616
- commands?: {
617
- name: string;
618
- description: string;
619
- variables?: {
620
- name: string;
621
- description: string;
622
- type: "string" | "number" | "image";
623
- required: boolean;
624
- defaultValue?: any;
625
- }[] | undefined;
626
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
627
- }[] | undefined;
628
- iconPath?: string | undefined;
629
- }> & Omit<Map<string, ChatParticipant>, keyof Map<any, any>>, Map<string, ChatParticipant> | (Map<string, {
630
- id: string;
631
- name: string;
632
- fullName?: string | undefined;
633
- description: string;
634
- handler: import("@feedmepos/remy-core").ChatHandler<import("@feedmepos/remy-core").RemyCommandResult>;
635
- commands?: {
636
- name: string;
637
- description: string;
638
- variables?: {
639
- name: string;
640
- description: string;
641
- type: "string" | "number" | "image";
642
- required: boolean;
643
- defaultValue?: any;
644
- }[] | undefined;
645
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
646
- }[] | undefined;
647
- iconPath?: string | undefined;
648
- }> & Omit<Map<string, ChatParticipant>, keyof Map<any, any>>)>;
649
- commands: import("vue").Ref<Map<string, {
650
- name: string;
651
- description: string;
652
- variables?: {
653
- name: string;
654
- description: string;
655
- type: "string" | "number" | "image";
656
- required: boolean;
657
- defaultValue?: any;
658
- }[] | undefined;
659
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
660
- }> & Omit<Map<string, SlashCommand<import("@feedmepos/remy-core").RemyCommandResult>>, keyof Map<any, any>>, Map<string, SlashCommand<import("@feedmepos/remy-core").RemyCommandResult>> | (Map<string, {
661
- name: string;
662
- description: string;
663
- variables?: {
664
- name: string;
665
- description: string;
666
- type: "string" | "number" | "image";
667
- required: boolean;
668
- defaultValue?: any;
669
- }[] | undefined;
670
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
671
- }> & Omit<Map<string, SlashCommand<import("@feedmepos/remy-core").RemyCommandResult>>, keyof Map<any, any>>)>;
672
- currentParticipant: import("vue").Ref<string, string>;
673
- sessionId: import("vue").Ref<string, string>;
674
- isStreaming: import("vue").Ref<boolean, boolean>;
675
- isConnected: import("vue").Ref<boolean, boolean>;
676
- latestFollowUps: import("vue").ComputedRef<{
677
- id: string;
678
- title?: string | undefined;
679
- label: string;
680
- prompt: string;
681
- command?: string | undefined;
682
- handler?: (() => void) | undefined;
683
- }[]>;
684
- latestMessageSelectedId: import("vue").ComputedRef<string | undefined>;
685
- availableCommands: import("vue").ComputedRef<{
686
- name: string;
687
- description: string;
688
- variables?: {
689
- name: string;
690
- description: string;
691
- type: "string" | "number" | "image";
692
- required: boolean;
693
- defaultValue?: any;
694
- }[] | undefined;
695
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
696
- }[]>;
697
- commandModeActive: import("vue").Ref<boolean, boolean>;
698
- activeCommand: import("vue").Ref<string | null, string | null>;
699
- commandContext: import("vue").Ref<Record<string, any>, Record<string, any>>;
700
- agent: import("vue").Ref<{
701
- participant: {
702
- id: string;
703
- name: string;
704
- fullName?: string | undefined;
705
- description: string;
706
- handler: import("@feedmepos/remy-core").ChatHandler<import("@feedmepos/remy-core").RemyCommandResult>;
707
- commands?: {
708
- name: string;
709
- description: string;
710
- variables?: {
711
- name: string;
712
- description: string;
713
- type: "string" | "number" | "image";
714
- required: boolean;
715
- defaultValue?: any;
716
- }[] | undefined;
717
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
718
- }[] | undefined;
719
- iconPath?: string | undefined;
720
- };
721
- client: {
722
- getItemPricing: (request: import("@feedmepos/remy-core").PricingRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").PricingResponse>;
723
- getItemDescription: (request: import("@feedmepos/remy-core").DescriptionRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").DescriptionResponse>;
724
- getInventoryForecast: (request: import("@feedmepos/remy-core").InventoryForecastRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").InventoryForecastResponse>;
725
- getPurchaseOrderForecast: (request: import("@feedmepos/remy-core").PurchaseOrderForecastRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").PurchaseOrderForecastResponse>;
726
- extractVariables: (request: import("@feedmepos/remy-core").VariableExtractionRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").VariableExtractionResponse>;
727
- generateMenuImage: (request: import("@feedmepos/remy-core").MenuImageGenerationRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").MenuImageGenerationResponse>;
728
- sendPrompt: (request: import("@feedmepos/remy-core").AgentPromptRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").AgentPromptResponse>;
729
- getTokenBalance: (businessId: string, signal?: AbortSignal | undefined) => Promise<TokenBalanceResponse>;
730
- };
731
- tools: {
732
- register: (definition: import("@feedmepos/remy-core").ToolDefinition, handler: (params: any) => Promise<any>) => void;
733
- unregister: (name: string) => void;
734
- get: (name: string) => {
735
- definition: import("@feedmepos/remy-core").ToolDefinition;
736
- handler: (params: any) => Promise<any>;
737
- } | undefined;
738
- getDefinitions: () => import("@feedmepos/remy-core").ToolDefinition[];
739
- };
740
- } | null, RemyAgent | {
741
- participant: {
742
- id: string;
743
- name: string;
744
- fullName?: string | undefined;
745
- description: string;
746
- handler: import("@feedmepos/remy-core").ChatHandler<import("@feedmepos/remy-core").RemyCommandResult>;
747
- commands?: {
748
- name: string;
749
- description: string;
750
- variables?: {
751
- name: string;
752
- description: string;
753
- type: "string" | "number" | "image";
754
- required: boolean;
755
- defaultValue?: any;
756
- }[] | undefined;
757
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
758
- }[] | undefined;
759
- iconPath?: string | undefined;
760
- };
761
- client: {
762
- getItemPricing: (request: import("@feedmepos/remy-core").PricingRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").PricingResponse>;
763
- getItemDescription: (request: import("@feedmepos/remy-core").DescriptionRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").DescriptionResponse>;
764
- getInventoryForecast: (request: import("@feedmepos/remy-core").InventoryForecastRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").InventoryForecastResponse>;
765
- getPurchaseOrderForecast: (request: import("@feedmepos/remy-core").PurchaseOrderForecastRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").PurchaseOrderForecastResponse>;
766
- extractVariables: (request: import("@feedmepos/remy-core").VariableExtractionRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").VariableExtractionResponse>;
767
- generateMenuImage: (request: import("@feedmepos/remy-core").MenuImageGenerationRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").MenuImageGenerationResponse>;
768
- sendPrompt: (request: import("@feedmepos/remy-core").AgentPromptRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").AgentPromptResponse>;
769
- getTokenBalance: (businessId: string, signal?: AbortSignal | undefined) => Promise<TokenBalanceResponse>;
770
- };
771
- tools: {
772
- register: (definition: import("@feedmepos/remy-core").ToolDefinition, handler: (params: any) => Promise<any>) => void;
773
- unregister: (name: string) => void;
774
- get: (name: string) => {
775
- definition: import("@feedmepos/remy-core").ToolDefinition;
776
- handler: (params: any) => Promise<any>;
777
- } | undefined;
778
- getDefinitions: () => import("@feedmepos/remy-core").ToolDefinition[];
779
- };
780
- } | null>;
781
- tokenBalance: import("vue").Ref<{
782
- _id: string;
783
- free: {
784
- _id: string;
785
- amount: number;
786
- expiredAt: string;
787
- name: string;
788
- }[];
789
- normal: number;
790
- } | null, TokenBalanceResponse | {
791
- _id: string;
792
- free: {
793
- _id: string;
794
- amount: number;
795
- expiredAt: string;
796
- name: string;
797
- }[];
798
- normal: number;
799
- } | null>;
800
- balanceLoading: import("vue").Ref<boolean, boolean>;
801
- balanceError: import("vue").Ref<string | null, string | null>;
802
- totalFreeTokens: import("vue").ComputedRef<number>;
803
- totalTokens: import("vue").ComputedRef<number>;
804
- setAgent: (remyAgent: RemyAgent) => void;
805
- registerParticipant: (participant: ChatParticipant) => void;
806
- registerCommand: (command: SlashCommand) => void;
807
- sendMessage: (prompt: string, command?: string, onResult?: ((result: any) => void) | undefined, customVariables?: Record<string, any>) => Promise<void>;
808
- addFollowUp: (messageId: string, followUp: FollowUp) => void;
809
- provideFeedback: (messageId: string, helpful: boolean) => void;
810
- saveSession: (businessId?: string) => Promise<void>;
811
- loadSession: (id?: string) => Promise<void>;
812
- clearHistory: () => Promise<void>;
813
- switchParticipant: (participantId: string) => void;
814
- addStreamContent: (content: StreamContent) => void;
815
- finishStreaming: () => void;
816
- listSessions: () => Promise<ChatSession[]>;
817
- newSession: () => Promise<void>;
818
- deleteSession: (id: string) => Promise<void>;
819
- clearAllHistory: () => Promise<void>;
820
- markFollowUpSelected: (messageId: string, followUpId: string) => void;
821
- activateCommandMode: (command: string, context?: Record<string, any>, prompt?: string) => void;
822
- deactivateCommandMode: () => void;
823
- extractVariables: (command: SlashCommand, context: ExtractVariablesContext, signal?: AbortSignal) => Promise<Record<string, any>>;
824
- refreshBalance: () => Promise<void>;
825
- }, "extractVariables" | "setAgent" | "registerParticipant" | "registerCommand" | "sendMessage" | "addFollowUp" | "provideFeedback" | "saveSession" | "loadSession" | "clearHistory" | "switchParticipant" | "addStreamContent" | "finishStreaming" | "listSessions" | "newSession" | "deleteSession" | "clearAllHistory" | "markFollowUpSelected" | "activateCommandMode" | "deactivateCommandMode" | "refreshBalance">>;