@feedmepos/mf-remy-panel 0.2.10 → 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-bd2d7032.js +0 -172
  26. package/dist/RemyButton-88ce06e0.js +0 -65
  27. package/dist/app-73c05327.js +0 -9423
  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 -831
  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,831 +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
- startBalancePolling: () => void;
278
- stopBalancePolling: () => void;
279
- }, "isStreaming" | "commands" | "inputText" | "messages" | "participants" | "currentParticipant" | "sessionId" | "isConnected" | "commandModeActive" | "activeCommand" | "commandContext" | "agent" | "tokenBalance" | "balanceLoading" | "balanceError">, Pick<{
280
- inputText: import("vue").Ref<string, string>;
281
- messages: import("vue").Ref<{
282
- id: string;
283
- type: "user" | "assistant";
284
- content: string;
285
- contentParts?: {
286
- type: import("@feedmepos/remy-core").StreamContentType;
287
- data: any;
288
- }[] | undefined;
289
- timestamp: number;
290
- participant?: string | undefined;
291
- command?: string | undefined;
292
- variables?: Record<string, any> | undefined;
293
- followUps?: {
294
- id: string;
295
- title?: string | undefined;
296
- label: string;
297
- prompt: string;
298
- command?: string | undefined;
299
- handler?: (() => void) | undefined;
300
- }[] | undefined;
301
- selectedId?: string | undefined;
302
- feedback?: "helpful" | "unhelpful" | undefined;
303
- isStreaming?: boolean | undefined;
304
- toolCalls?: {
305
- id: string;
306
- name: string;
307
- arguments: any;
308
- }[] | undefined;
309
- }[], ChatMessage[] | {
310
- id: string;
311
- type: "user" | "assistant";
312
- content: string;
313
- contentParts?: {
314
- type: import("@feedmepos/remy-core").StreamContentType;
315
- data: any;
316
- }[] | undefined;
317
- timestamp: number;
318
- participant?: string | undefined;
319
- command?: string | undefined;
320
- variables?: Record<string, any> | undefined;
321
- followUps?: {
322
- id: string;
323
- title?: string | undefined;
324
- label: string;
325
- prompt: string;
326
- command?: string | undefined;
327
- handler?: (() => void) | undefined;
328
- }[] | undefined;
329
- selectedId?: string | undefined;
330
- feedback?: "helpful" | "unhelpful" | undefined;
331
- isStreaming?: boolean | undefined;
332
- toolCalls?: {
333
- id: string;
334
- name: string;
335
- arguments: any;
336
- }[] | undefined;
337
- }[]>;
338
- participants: import("vue").Ref<Map<string, {
339
- id: string;
340
- name: string;
341
- fullName?: string | undefined;
342
- description: string;
343
- handler: import("@feedmepos/remy-core").ChatHandler<import("@feedmepos/remy-core").RemyCommandResult>;
344
- commands?: {
345
- name: string;
346
- description: string;
347
- variables?: {
348
- name: string;
349
- description: string;
350
- type: "string" | "number" | "image";
351
- required: boolean;
352
- defaultValue?: any;
353
- }[] | undefined;
354
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
355
- }[] | undefined;
356
- iconPath?: string | undefined;
357
- }> & Omit<Map<string, ChatParticipant>, keyof Map<any, any>>, Map<string, ChatParticipant> | (Map<string, {
358
- id: string;
359
- name: string;
360
- fullName?: string | undefined;
361
- description: string;
362
- handler: import("@feedmepos/remy-core").ChatHandler<import("@feedmepos/remy-core").RemyCommandResult>;
363
- commands?: {
364
- name: string;
365
- description: string;
366
- variables?: {
367
- name: string;
368
- description: string;
369
- type: "string" | "number" | "image";
370
- required: boolean;
371
- defaultValue?: any;
372
- }[] | undefined;
373
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
374
- }[] | undefined;
375
- iconPath?: string | undefined;
376
- }> & Omit<Map<string, ChatParticipant>, keyof Map<any, any>>)>;
377
- commands: import("vue").Ref<Map<string, {
378
- name: string;
379
- description: string;
380
- variables?: {
381
- name: string;
382
- description: string;
383
- type: "string" | "number" | "image";
384
- required: boolean;
385
- defaultValue?: any;
386
- }[] | undefined;
387
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
388
- }> & Omit<Map<string, SlashCommand<import("@feedmepos/remy-core").RemyCommandResult>>, keyof Map<any, any>>, Map<string, SlashCommand<import("@feedmepos/remy-core").RemyCommandResult>> | (Map<string, {
389
- name: string;
390
- description: string;
391
- variables?: {
392
- name: string;
393
- description: string;
394
- type: "string" | "number" | "image";
395
- required: boolean;
396
- defaultValue?: any;
397
- }[] | undefined;
398
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
399
- }> & Omit<Map<string, SlashCommand<import("@feedmepos/remy-core").RemyCommandResult>>, keyof Map<any, any>>)>;
400
- currentParticipant: import("vue").Ref<string, string>;
401
- sessionId: import("vue").Ref<string, string>;
402
- isStreaming: import("vue").Ref<boolean, boolean>;
403
- isConnected: import("vue").Ref<boolean, boolean>;
404
- latestFollowUps: import("vue").ComputedRef<{
405
- id: string;
406
- title?: string | undefined;
407
- label: string;
408
- prompt: string;
409
- command?: string | undefined;
410
- handler?: (() => void) | undefined;
411
- }[]>;
412
- latestMessageSelectedId: import("vue").ComputedRef<string | undefined>;
413
- availableCommands: import("vue").ComputedRef<{
414
- name: string;
415
- description: string;
416
- variables?: {
417
- name: string;
418
- description: string;
419
- type: "string" | "number" | "image";
420
- required: boolean;
421
- defaultValue?: any;
422
- }[] | undefined;
423
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
424
- }[]>;
425
- commandModeActive: import("vue").Ref<boolean, boolean>;
426
- activeCommand: import("vue").Ref<string | null, string | null>;
427
- commandContext: import("vue").Ref<Record<string, any>, Record<string, any>>;
428
- agent: import("vue").Ref<{
429
- participant: {
430
- id: string;
431
- name: string;
432
- fullName?: string | undefined;
433
- description: string;
434
- handler: import("@feedmepos/remy-core").ChatHandler<import("@feedmepos/remy-core").RemyCommandResult>;
435
- commands?: {
436
- name: string;
437
- description: string;
438
- variables?: {
439
- name: string;
440
- description: string;
441
- type: "string" | "number" | "image";
442
- required: boolean;
443
- defaultValue?: any;
444
- }[] | undefined;
445
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
446
- }[] | undefined;
447
- iconPath?: string | undefined;
448
- };
449
- client: {
450
- getItemPricing: (request: import("@feedmepos/remy-core").PricingRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").PricingResponse>;
451
- getItemDescription: (request: import("@feedmepos/remy-core").DescriptionRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").DescriptionResponse>;
452
- getInventoryForecast: (request: import("@feedmepos/remy-core").InventoryForecastRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").InventoryForecastResponse>;
453
- getPurchaseOrderForecast: (request: import("@feedmepos/remy-core").PurchaseOrderForecastRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").PurchaseOrderForecastResponse>;
454
- extractVariables: (request: import("@feedmepos/remy-core").VariableExtractionRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").VariableExtractionResponse>;
455
- generateMenuImage: (request: import("@feedmepos/remy-core").MenuImageGenerationRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").MenuImageGenerationResponse>;
456
- sendPrompt: (request: import("@feedmepos/remy-core").AgentPromptRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").AgentPromptResponse>;
457
- getTokenBalance: (businessId: string, signal?: AbortSignal | undefined) => Promise<TokenBalanceResponse>;
458
- };
459
- tools: {
460
- register: (definition: import("@feedmepos/remy-core").ToolDefinition, handler: (params: any) => Promise<any>) => void;
461
- unregister: (name: string) => void;
462
- get: (name: string) => {
463
- definition: import("@feedmepos/remy-core").ToolDefinition;
464
- handler: (params: any) => Promise<any>;
465
- } | undefined;
466
- getDefinitions: () => import("@feedmepos/remy-core").ToolDefinition[];
467
- };
468
- } | null, RemyAgent | {
469
- participant: {
470
- id: string;
471
- name: string;
472
- fullName?: string | undefined;
473
- description: string;
474
- handler: import("@feedmepos/remy-core").ChatHandler<import("@feedmepos/remy-core").RemyCommandResult>;
475
- commands?: {
476
- name: string;
477
- description: string;
478
- variables?: {
479
- name: string;
480
- description: string;
481
- type: "string" | "number" | "image";
482
- required: boolean;
483
- defaultValue?: any;
484
- }[] | undefined;
485
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
486
- }[] | undefined;
487
- iconPath?: string | undefined;
488
- };
489
- client: {
490
- getItemPricing: (request: import("@feedmepos/remy-core").PricingRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").PricingResponse>;
491
- getItemDescription: (request: import("@feedmepos/remy-core").DescriptionRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").DescriptionResponse>;
492
- getInventoryForecast: (request: import("@feedmepos/remy-core").InventoryForecastRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").InventoryForecastResponse>;
493
- getPurchaseOrderForecast: (request: import("@feedmepos/remy-core").PurchaseOrderForecastRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").PurchaseOrderForecastResponse>;
494
- extractVariables: (request: import("@feedmepos/remy-core").VariableExtractionRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").VariableExtractionResponse>;
495
- generateMenuImage: (request: import("@feedmepos/remy-core").MenuImageGenerationRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").MenuImageGenerationResponse>;
496
- sendPrompt: (request: import("@feedmepos/remy-core").AgentPromptRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").AgentPromptResponse>;
497
- getTokenBalance: (businessId: string, signal?: AbortSignal | undefined) => Promise<TokenBalanceResponse>;
498
- };
499
- tools: {
500
- register: (definition: import("@feedmepos/remy-core").ToolDefinition, handler: (params: any) => Promise<any>) => void;
501
- unregister: (name: string) => void;
502
- get: (name: string) => {
503
- definition: import("@feedmepos/remy-core").ToolDefinition;
504
- handler: (params: any) => Promise<any>;
505
- } | undefined;
506
- getDefinitions: () => import("@feedmepos/remy-core").ToolDefinition[];
507
- };
508
- } | null>;
509
- tokenBalance: import("vue").Ref<{
510
- _id: string;
511
- free: {
512
- _id: string;
513
- amount: number;
514
- expiredAt: string;
515
- name: string;
516
- }[];
517
- normal: number;
518
- } | null, TokenBalanceResponse | {
519
- _id: string;
520
- free: {
521
- _id: string;
522
- amount: number;
523
- expiredAt: string;
524
- name: string;
525
- }[];
526
- normal: number;
527
- } | null>;
528
- balanceLoading: import("vue").Ref<boolean, boolean>;
529
- balanceError: import("vue").Ref<string | null, string | null>;
530
- totalFreeTokens: import("vue").ComputedRef<number>;
531
- totalTokens: import("vue").ComputedRef<number>;
532
- setAgent: (remyAgent: RemyAgent) => void;
533
- registerParticipant: (participant: ChatParticipant) => void;
534
- registerCommand: (command: SlashCommand) => void;
535
- sendMessage: (prompt: string, command?: string, onResult?: ((result: any) => void) | undefined, customVariables?: Record<string, any>) => Promise<void>;
536
- addFollowUp: (messageId: string, followUp: FollowUp) => void;
537
- provideFeedback: (messageId: string, helpful: boolean) => void;
538
- saveSession: (businessId?: string) => Promise<void>;
539
- loadSession: (id?: string) => Promise<void>;
540
- clearHistory: () => Promise<void>;
541
- switchParticipant: (participantId: string) => void;
542
- addStreamContent: (content: StreamContent) => void;
543
- finishStreaming: () => void;
544
- listSessions: () => Promise<ChatSession[]>;
545
- newSession: () => Promise<void>;
546
- deleteSession: (id: string) => Promise<void>;
547
- clearAllHistory: () => Promise<void>;
548
- markFollowUpSelected: (messageId: string, followUpId: string) => void;
549
- activateCommandMode: (command: string, context?: Record<string, any>, prompt?: string) => void;
550
- deactivateCommandMode: () => void;
551
- extractVariables: (command: SlashCommand, context: ExtractVariablesContext, signal?: AbortSignal) => Promise<Record<string, any>>;
552
- refreshBalance: () => Promise<void>;
553
- startBalancePolling: () => void;
554
- stopBalancePolling: () => void;
555
- }, "latestFollowUps" | "latestMessageSelectedId" | "availableCommands" | "totalFreeTokens" | "totalTokens">, Pick<{
556
- inputText: import("vue").Ref<string, string>;
557
- messages: import("vue").Ref<{
558
- id: string;
559
- type: "user" | "assistant";
560
- content: string;
561
- contentParts?: {
562
- type: import("@feedmepos/remy-core").StreamContentType;
563
- data: any;
564
- }[] | undefined;
565
- timestamp: number;
566
- participant?: string | undefined;
567
- command?: string | undefined;
568
- variables?: Record<string, any> | undefined;
569
- followUps?: {
570
- id: string;
571
- title?: string | undefined;
572
- label: string;
573
- prompt: string;
574
- command?: string | undefined;
575
- handler?: (() => void) | undefined;
576
- }[] | undefined;
577
- selectedId?: string | undefined;
578
- feedback?: "helpful" | "unhelpful" | undefined;
579
- isStreaming?: boolean | undefined;
580
- toolCalls?: {
581
- id: string;
582
- name: string;
583
- arguments: any;
584
- }[] | undefined;
585
- }[], ChatMessage[] | {
586
- id: string;
587
- type: "user" | "assistant";
588
- content: string;
589
- contentParts?: {
590
- type: import("@feedmepos/remy-core").StreamContentType;
591
- data: any;
592
- }[] | undefined;
593
- timestamp: number;
594
- participant?: string | undefined;
595
- command?: string | undefined;
596
- variables?: Record<string, any> | undefined;
597
- followUps?: {
598
- id: string;
599
- title?: string | undefined;
600
- label: string;
601
- prompt: string;
602
- command?: string | undefined;
603
- handler?: (() => void) | undefined;
604
- }[] | undefined;
605
- selectedId?: string | undefined;
606
- feedback?: "helpful" | "unhelpful" | undefined;
607
- isStreaming?: boolean | undefined;
608
- toolCalls?: {
609
- id: string;
610
- name: string;
611
- arguments: any;
612
- }[] | undefined;
613
- }[]>;
614
- participants: import("vue").Ref<Map<string, {
615
- id: string;
616
- name: string;
617
- fullName?: string | undefined;
618
- description: string;
619
- handler: import("@feedmepos/remy-core").ChatHandler<import("@feedmepos/remy-core").RemyCommandResult>;
620
- commands?: {
621
- name: string;
622
- description: string;
623
- variables?: {
624
- name: string;
625
- description: string;
626
- type: "string" | "number" | "image";
627
- required: boolean;
628
- defaultValue?: any;
629
- }[] | undefined;
630
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
631
- }[] | undefined;
632
- iconPath?: string | undefined;
633
- }> & Omit<Map<string, ChatParticipant>, keyof Map<any, any>>, Map<string, ChatParticipant> | (Map<string, {
634
- id: string;
635
- name: string;
636
- fullName?: string | undefined;
637
- description: string;
638
- handler: import("@feedmepos/remy-core").ChatHandler<import("@feedmepos/remy-core").RemyCommandResult>;
639
- commands?: {
640
- name: string;
641
- description: string;
642
- variables?: {
643
- name: string;
644
- description: string;
645
- type: "string" | "number" | "image";
646
- required: boolean;
647
- defaultValue?: any;
648
- }[] | undefined;
649
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
650
- }[] | undefined;
651
- iconPath?: string | undefined;
652
- }> & Omit<Map<string, ChatParticipant>, keyof Map<any, any>>)>;
653
- commands: import("vue").Ref<Map<string, {
654
- name: string;
655
- description: string;
656
- variables?: {
657
- name: string;
658
- description: string;
659
- type: "string" | "number" | "image";
660
- required: boolean;
661
- defaultValue?: any;
662
- }[] | undefined;
663
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
664
- }> & Omit<Map<string, SlashCommand<import("@feedmepos/remy-core").RemyCommandResult>>, keyof Map<any, any>>, Map<string, SlashCommand<import("@feedmepos/remy-core").RemyCommandResult>> | (Map<string, {
665
- name: string;
666
- description: string;
667
- variables?: {
668
- name: string;
669
- description: string;
670
- type: "string" | "number" | "image";
671
- required: boolean;
672
- defaultValue?: any;
673
- }[] | undefined;
674
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
675
- }> & Omit<Map<string, SlashCommand<import("@feedmepos/remy-core").RemyCommandResult>>, keyof Map<any, any>>)>;
676
- currentParticipant: import("vue").Ref<string, string>;
677
- sessionId: import("vue").Ref<string, string>;
678
- isStreaming: import("vue").Ref<boolean, boolean>;
679
- isConnected: import("vue").Ref<boolean, boolean>;
680
- latestFollowUps: import("vue").ComputedRef<{
681
- id: string;
682
- title?: string | undefined;
683
- label: string;
684
- prompt: string;
685
- command?: string | undefined;
686
- handler?: (() => void) | undefined;
687
- }[]>;
688
- latestMessageSelectedId: import("vue").ComputedRef<string | undefined>;
689
- availableCommands: import("vue").ComputedRef<{
690
- name: string;
691
- description: string;
692
- variables?: {
693
- name: string;
694
- description: string;
695
- type: "string" | "number" | "image";
696
- required: boolean;
697
- defaultValue?: any;
698
- }[] | undefined;
699
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
700
- }[]>;
701
- commandModeActive: import("vue").Ref<boolean, boolean>;
702
- activeCommand: import("vue").Ref<string | null, string | null>;
703
- commandContext: import("vue").Ref<Record<string, any>, Record<string, any>>;
704
- agent: import("vue").Ref<{
705
- participant: {
706
- id: string;
707
- name: string;
708
- fullName?: string | undefined;
709
- description: string;
710
- handler: import("@feedmepos/remy-core").ChatHandler<import("@feedmepos/remy-core").RemyCommandResult>;
711
- commands?: {
712
- name: string;
713
- description: string;
714
- variables?: {
715
- name: string;
716
- description: string;
717
- type: "string" | "number" | "image";
718
- required: boolean;
719
- defaultValue?: any;
720
- }[] | undefined;
721
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
722
- }[] | undefined;
723
- iconPath?: string | undefined;
724
- };
725
- client: {
726
- getItemPricing: (request: import("@feedmepos/remy-core").PricingRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").PricingResponse>;
727
- getItemDescription: (request: import("@feedmepos/remy-core").DescriptionRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").DescriptionResponse>;
728
- getInventoryForecast: (request: import("@feedmepos/remy-core").InventoryForecastRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").InventoryForecastResponse>;
729
- getPurchaseOrderForecast: (request: import("@feedmepos/remy-core").PurchaseOrderForecastRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").PurchaseOrderForecastResponse>;
730
- extractVariables: (request: import("@feedmepos/remy-core").VariableExtractionRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").VariableExtractionResponse>;
731
- generateMenuImage: (request: import("@feedmepos/remy-core").MenuImageGenerationRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").MenuImageGenerationResponse>;
732
- sendPrompt: (request: import("@feedmepos/remy-core").AgentPromptRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").AgentPromptResponse>;
733
- getTokenBalance: (businessId: string, signal?: AbortSignal | undefined) => Promise<TokenBalanceResponse>;
734
- };
735
- tools: {
736
- register: (definition: import("@feedmepos/remy-core").ToolDefinition, handler: (params: any) => Promise<any>) => void;
737
- unregister: (name: string) => void;
738
- get: (name: string) => {
739
- definition: import("@feedmepos/remy-core").ToolDefinition;
740
- handler: (params: any) => Promise<any>;
741
- } | undefined;
742
- getDefinitions: () => import("@feedmepos/remy-core").ToolDefinition[];
743
- };
744
- } | null, RemyAgent | {
745
- participant: {
746
- id: string;
747
- name: string;
748
- fullName?: string | undefined;
749
- description: string;
750
- handler: import("@feedmepos/remy-core").ChatHandler<import("@feedmepos/remy-core").RemyCommandResult>;
751
- commands?: {
752
- name: string;
753
- description: string;
754
- variables?: {
755
- name: string;
756
- description: string;
757
- type: "string" | "number" | "image";
758
- required: boolean;
759
- defaultValue?: any;
760
- }[] | undefined;
761
- extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
762
- }[] | undefined;
763
- iconPath?: string | undefined;
764
- };
765
- client: {
766
- getItemPricing: (request: import("@feedmepos/remy-core").PricingRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").PricingResponse>;
767
- getItemDescription: (request: import("@feedmepos/remy-core").DescriptionRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").DescriptionResponse>;
768
- getInventoryForecast: (request: import("@feedmepos/remy-core").InventoryForecastRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").InventoryForecastResponse>;
769
- getPurchaseOrderForecast: (request: import("@feedmepos/remy-core").PurchaseOrderForecastRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").PurchaseOrderForecastResponse>;
770
- extractVariables: (request: import("@feedmepos/remy-core").VariableExtractionRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").VariableExtractionResponse>;
771
- generateMenuImage: (request: import("@feedmepos/remy-core").MenuImageGenerationRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").MenuImageGenerationResponse>;
772
- sendPrompt: (request: import("@feedmepos/remy-core").AgentPromptRequest, signal?: AbortSignal | undefined) => Promise<import("@feedmepos/remy-core").AgentPromptResponse>;
773
- getTokenBalance: (businessId: string, signal?: AbortSignal | undefined) => Promise<TokenBalanceResponse>;
774
- };
775
- tools: {
776
- register: (definition: import("@feedmepos/remy-core").ToolDefinition, handler: (params: any) => Promise<any>) => void;
777
- unregister: (name: string) => void;
778
- get: (name: string) => {
779
- definition: import("@feedmepos/remy-core").ToolDefinition;
780
- handler: (params: any) => Promise<any>;
781
- } | undefined;
782
- getDefinitions: () => import("@feedmepos/remy-core").ToolDefinition[];
783
- };
784
- } | null>;
785
- tokenBalance: import("vue").Ref<{
786
- _id: string;
787
- free: {
788
- _id: string;
789
- amount: number;
790
- expiredAt: string;
791
- name: string;
792
- }[];
793
- normal: number;
794
- } | null, TokenBalanceResponse | {
795
- _id: string;
796
- free: {
797
- _id: string;
798
- amount: number;
799
- expiredAt: string;
800
- name: string;
801
- }[];
802
- normal: number;
803
- } | null>;
804
- balanceLoading: import("vue").Ref<boolean, boolean>;
805
- balanceError: import("vue").Ref<string | null, string | null>;
806
- totalFreeTokens: import("vue").ComputedRef<number>;
807
- totalTokens: import("vue").ComputedRef<number>;
808
- setAgent: (remyAgent: RemyAgent) => void;
809
- registerParticipant: (participant: ChatParticipant) => void;
810
- registerCommand: (command: SlashCommand) => void;
811
- sendMessage: (prompt: string, command?: string, onResult?: ((result: any) => void) | undefined, customVariables?: Record<string, any>) => Promise<void>;
812
- addFollowUp: (messageId: string, followUp: FollowUp) => void;
813
- provideFeedback: (messageId: string, helpful: boolean) => void;
814
- saveSession: (businessId?: string) => Promise<void>;
815
- loadSession: (id?: string) => Promise<void>;
816
- clearHistory: () => Promise<void>;
817
- switchParticipant: (participantId: string) => void;
818
- addStreamContent: (content: StreamContent) => void;
819
- finishStreaming: () => void;
820
- listSessions: () => Promise<ChatSession[]>;
821
- newSession: () => Promise<void>;
822
- deleteSession: (id: string) => Promise<void>;
823
- clearAllHistory: () => Promise<void>;
824
- markFollowUpSelected: (messageId: string, followUpId: string) => void;
825
- activateCommandMode: (command: string, context?: Record<string, any>, prompt?: string) => void;
826
- deactivateCommandMode: () => void;
827
- extractVariables: (command: SlashCommand, context: ExtractVariablesContext, signal?: AbortSignal) => Promise<Record<string, any>>;
828
- refreshBalance: () => Promise<void>;
829
- startBalancePolling: () => void;
830
- stopBalancePolling: () => void;
831
- }, "extractVariables" | "setAgent" | "registerParticipant" | "registerCommand" | "sendMessage" | "addFollowUp" | "provideFeedback" | "saveSession" | "loadSession" | "clearHistory" | "switchParticipant" | "addStreamContent" | "finishStreaming" | "listSessions" | "newSession" | "deleteSession" | "clearAllHistory" | "markFollowUpSelected" | "activateCommandMode" | "deactivateCommandMode" | "refreshBalance" | "startBalancePolling" | "stopBalancePolling">>;