@feedmepos/mf-remy-panel 0.0.9 → 0.0.11
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/HomeView-906382ef.js +70 -0
- package/dist/RemyButton-e70956d6.js +9 -0
- package/dist/RemyButton.vue_vue_type_script_setup_true_lang-ba2fd88f.js +62 -0
- package/dist/{app-78878140.js → app-5daba510.js} +1431 -1431
- package/dist/app.d.ts +6 -0
- package/dist/app.js +8 -7
- package/dist/components/chatPanel/ChatFollowUps.vue.d.ts +1 -1
- package/dist/stores/remyChat.d.ts +35 -35
- package/dist/stores/remyStore.d.ts +23 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/HomeView-41d365f0.js +0 -122
package/dist/app.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import enUS from "./locales/en-US.json";
|
|
2
|
+
export type { RemyPriceResult, RemyDescriptionResult, RemyInventoryForecastResult, RemyPurchaseOrderForecastResult, RemyCommandResult } from '@feedmepos/remy-core';
|
|
2
3
|
export { useRemyStore } from './stores/remyStore';
|
|
3
4
|
export { default as FmApp } from './App.vue';
|
|
4
5
|
export { router } from '../src/router';
|
|
@@ -98,6 +99,11 @@ export declare const RemyChatPanel: import("vue").DefineComponent<{}, {}, {}, {}
|
|
|
98
99
|
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
99
100
|
onClose?: (() => any) | undefined;
|
|
100
101
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
102
|
+
export declare const RemyButton: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
103
|
+
click: () => void;
|
|
104
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
105
|
+
onClick?: (() => any) | undefined;
|
|
106
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
101
107
|
/**
|
|
102
108
|
* Initialize Remy Chat with participants and commands
|
|
103
109
|
* @param backendUrl - The Remy backend API URL
|
package/dist/app.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import "vue";
|
|
2
|
-
import { A as
|
|
2
|
+
import { A as r, b as o, R as p, i as R, c as n, r as u, u as y } from "./app-5daba510.js";
|
|
3
3
|
import "@feedmepos/mf-common";
|
|
4
4
|
import "pinia";
|
|
5
5
|
import "vue-router";
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
o as
|
|
9
|
-
p as
|
|
10
|
-
R as
|
|
11
|
-
n as
|
|
12
|
-
u as
|
|
7
|
+
r as FmApp,
|
|
8
|
+
o as RemyButton,
|
|
9
|
+
p as RemyChatPanel,
|
|
10
|
+
R as i18nMessages,
|
|
11
|
+
n as initializeRemyChat,
|
|
12
|
+
u as router,
|
|
13
|
+
y as useRemyStore
|
|
13
14
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { FollowUp } from '@feedmepos/remy-core';
|
|
2
2
|
interface Props {
|
|
3
3
|
followUps: FollowUp[];
|
|
4
|
-
|
|
4
|
+
selectedId?: string;
|
|
5
5
|
}
|
|
6
6
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
7
|
select: (followUp: FollowUp) => void;
|
|
@@ -19,9 +19,9 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
19
19
|
label: string;
|
|
20
20
|
prompt: string;
|
|
21
21
|
command?: string | undefined;
|
|
22
|
-
|
|
22
|
+
handler?: (() => void) | undefined;
|
|
23
23
|
}[] | undefined;
|
|
24
|
-
|
|
24
|
+
selectedId?: string | undefined;
|
|
25
25
|
feedback?: "helpful" | "unhelpful" | undefined;
|
|
26
26
|
isStreaming?: boolean | undefined;
|
|
27
27
|
}[], ChatMessage[] | {
|
|
@@ -41,9 +41,9 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
41
41
|
label: string;
|
|
42
42
|
prompt: string;
|
|
43
43
|
command?: string | undefined;
|
|
44
|
-
|
|
44
|
+
handler?: (() => void) | undefined;
|
|
45
45
|
}[] | undefined;
|
|
46
|
-
|
|
46
|
+
selectedId?: string | undefined;
|
|
47
47
|
feedback?: "helpful" | "unhelpful" | undefined;
|
|
48
48
|
isStreaming?: boolean | undefined;
|
|
49
49
|
}[]>;
|
|
@@ -52,7 +52,7 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
52
52
|
name: string;
|
|
53
53
|
fullName?: string | undefined;
|
|
54
54
|
description: string;
|
|
55
|
-
handler: import("@feedmepos/remy-core").ChatHandler
|
|
55
|
+
handler: import("@feedmepos/remy-core").ChatHandler<import("@feedmepos/remy-core").RemyCommandResult>;
|
|
56
56
|
commands?: {
|
|
57
57
|
name: string;
|
|
58
58
|
description: string;
|
|
@@ -71,7 +71,7 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
71
71
|
name: string;
|
|
72
72
|
fullName?: string | undefined;
|
|
73
73
|
description: string;
|
|
74
|
-
handler: import("@feedmepos/remy-core").ChatHandler
|
|
74
|
+
handler: import("@feedmepos/remy-core").ChatHandler<import("@feedmepos/remy-core").RemyCommandResult>;
|
|
75
75
|
commands?: {
|
|
76
76
|
name: string;
|
|
77
77
|
description: string;
|
|
@@ -97,7 +97,7 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
97
97
|
defaultValue?: any;
|
|
98
98
|
}[] | undefined;
|
|
99
99
|
extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
|
|
100
|
-
}> & Omit<Map<string, SlashCommand
|
|
100
|
+
}> & Omit<Map<string, SlashCommand<import("@feedmepos/remy-core").RemyCommandResult>>, keyof Map<any, any>>, Map<string, SlashCommand<import("@feedmepos/remy-core").RemyCommandResult>> | (Map<string, {
|
|
101
101
|
name: string;
|
|
102
102
|
description: string;
|
|
103
103
|
variables?: {
|
|
@@ -108,7 +108,7 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
108
108
|
defaultValue?: any;
|
|
109
109
|
}[] | undefined;
|
|
110
110
|
extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
|
|
111
|
-
}> & Omit<Map<string, SlashCommand
|
|
111
|
+
}> & Omit<Map<string, SlashCommand<import("@feedmepos/remy-core").RemyCommandResult>>, keyof Map<any, any>>)>;
|
|
112
112
|
currentParticipant: import("vue").Ref<string, string>;
|
|
113
113
|
sessionId: import("vue").Ref<string, string>;
|
|
114
114
|
isStreaming: import("vue").Ref<boolean, boolean>;
|
|
@@ -118,8 +118,9 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
118
118
|
label: string;
|
|
119
119
|
prompt: string;
|
|
120
120
|
command?: string | undefined;
|
|
121
|
-
|
|
121
|
+
handler?: (() => void) | undefined;
|
|
122
122
|
}[]>;
|
|
123
|
+
latestMessageSelectedId: import("vue").ComputedRef<string | undefined>;
|
|
123
124
|
availableCommands: import("vue").ComputedRef<{
|
|
124
125
|
name: string;
|
|
125
126
|
description: string;
|
|
@@ -138,7 +139,7 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
138
139
|
setClient: (client: RemyBackendClient) => void;
|
|
139
140
|
registerParticipant: (participant: ChatParticipant) => void;
|
|
140
141
|
registerCommand: (command: SlashCommand) => void;
|
|
141
|
-
sendMessage: (prompt: string, command?: string, onResult?: ((result: any) => void) | undefined,
|
|
142
|
+
sendMessage: (prompt: string, command?: string, onResult?: ((result: any) => void) | undefined, customVariables?: Record<string, any>) => Promise<void>;
|
|
142
143
|
addFollowUp: (messageId: string, followUp: FollowUp) => void;
|
|
143
144
|
provideFeedback: (messageId: string, helpful: boolean) => void;
|
|
144
145
|
saveSession: () => Promise<void>;
|
|
@@ -150,7 +151,6 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
150
151
|
listSessions: () => Promise<ChatSession[]>;
|
|
151
152
|
newSession: () => Promise<void>;
|
|
152
153
|
deleteSession: (id: string) => Promise<void>;
|
|
153
|
-
getMessageCallback: (messageId: string) => ((result: any) => void) | undefined;
|
|
154
154
|
markFollowUpSelected: (messageId: string, followUpId: string) => void;
|
|
155
155
|
activateCommandMode: (command: string, context?: Record<string, any>, prompt?: string) => void;
|
|
156
156
|
deactivateCommandMode: () => void;
|
|
@@ -174,9 +174,9 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
174
174
|
label: string;
|
|
175
175
|
prompt: string;
|
|
176
176
|
command?: string | undefined;
|
|
177
|
-
|
|
177
|
+
handler?: (() => void) | undefined;
|
|
178
178
|
}[] | undefined;
|
|
179
|
-
|
|
179
|
+
selectedId?: string | undefined;
|
|
180
180
|
feedback?: "helpful" | "unhelpful" | undefined;
|
|
181
181
|
isStreaming?: boolean | undefined;
|
|
182
182
|
}[], ChatMessage[] | {
|
|
@@ -196,9 +196,9 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
196
196
|
label: string;
|
|
197
197
|
prompt: string;
|
|
198
198
|
command?: string | undefined;
|
|
199
|
-
|
|
199
|
+
handler?: (() => void) | undefined;
|
|
200
200
|
}[] | undefined;
|
|
201
|
-
|
|
201
|
+
selectedId?: string | undefined;
|
|
202
202
|
feedback?: "helpful" | "unhelpful" | undefined;
|
|
203
203
|
isStreaming?: boolean | undefined;
|
|
204
204
|
}[]>;
|
|
@@ -207,7 +207,7 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
207
207
|
name: string;
|
|
208
208
|
fullName?: string | undefined;
|
|
209
209
|
description: string;
|
|
210
|
-
handler: import("@feedmepos/remy-core").ChatHandler
|
|
210
|
+
handler: import("@feedmepos/remy-core").ChatHandler<import("@feedmepos/remy-core").RemyCommandResult>;
|
|
211
211
|
commands?: {
|
|
212
212
|
name: string;
|
|
213
213
|
description: string;
|
|
@@ -226,7 +226,7 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
226
226
|
name: string;
|
|
227
227
|
fullName?: string | undefined;
|
|
228
228
|
description: string;
|
|
229
|
-
handler: import("@feedmepos/remy-core").ChatHandler
|
|
229
|
+
handler: import("@feedmepos/remy-core").ChatHandler<import("@feedmepos/remy-core").RemyCommandResult>;
|
|
230
230
|
commands?: {
|
|
231
231
|
name: string;
|
|
232
232
|
description: string;
|
|
@@ -252,7 +252,7 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
252
252
|
defaultValue?: any;
|
|
253
253
|
}[] | undefined;
|
|
254
254
|
extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
|
|
255
|
-
}> & Omit<Map<string, SlashCommand
|
|
255
|
+
}> & Omit<Map<string, SlashCommand<import("@feedmepos/remy-core").RemyCommandResult>>, keyof Map<any, any>>, Map<string, SlashCommand<import("@feedmepos/remy-core").RemyCommandResult>> | (Map<string, {
|
|
256
256
|
name: string;
|
|
257
257
|
description: string;
|
|
258
258
|
variables?: {
|
|
@@ -263,7 +263,7 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
263
263
|
defaultValue?: any;
|
|
264
264
|
}[] | undefined;
|
|
265
265
|
extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
|
|
266
|
-
}> & Omit<Map<string, SlashCommand
|
|
266
|
+
}> & Omit<Map<string, SlashCommand<import("@feedmepos/remy-core").RemyCommandResult>>, keyof Map<any, any>>)>;
|
|
267
267
|
currentParticipant: import("vue").Ref<string, string>;
|
|
268
268
|
sessionId: import("vue").Ref<string, string>;
|
|
269
269
|
isStreaming: import("vue").Ref<boolean, boolean>;
|
|
@@ -273,8 +273,9 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
273
273
|
label: string;
|
|
274
274
|
prompt: string;
|
|
275
275
|
command?: string | undefined;
|
|
276
|
-
|
|
276
|
+
handler?: (() => void) | undefined;
|
|
277
277
|
}[]>;
|
|
278
|
+
latestMessageSelectedId: import("vue").ComputedRef<string | undefined>;
|
|
278
279
|
availableCommands: import("vue").ComputedRef<{
|
|
279
280
|
name: string;
|
|
280
281
|
description: string;
|
|
@@ -293,7 +294,7 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
293
294
|
setClient: (client: RemyBackendClient) => void;
|
|
294
295
|
registerParticipant: (participant: ChatParticipant) => void;
|
|
295
296
|
registerCommand: (command: SlashCommand) => void;
|
|
296
|
-
sendMessage: (prompt: string, command?: string, onResult?: ((result: any) => void) | undefined,
|
|
297
|
+
sendMessage: (prompt: string, command?: string, onResult?: ((result: any) => void) | undefined, customVariables?: Record<string, any>) => Promise<void>;
|
|
297
298
|
addFollowUp: (messageId: string, followUp: FollowUp) => void;
|
|
298
299
|
provideFeedback: (messageId: string, helpful: boolean) => void;
|
|
299
300
|
saveSession: () => Promise<void>;
|
|
@@ -305,12 +306,11 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
305
306
|
listSessions: () => Promise<ChatSession[]>;
|
|
306
307
|
newSession: () => Promise<void>;
|
|
307
308
|
deleteSession: (id: string) => Promise<void>;
|
|
308
|
-
getMessageCallback: (messageId: string) => ((result: any) => void) | undefined;
|
|
309
309
|
markFollowUpSelected: (messageId: string, followUpId: string) => void;
|
|
310
310
|
activateCommandMode: (command: string, context?: Record<string, any>, prompt?: string) => void;
|
|
311
311
|
deactivateCommandMode: () => void;
|
|
312
312
|
extractVariables: (command: SlashCommand, context: ExtractVariablesContext, signal?: AbortSignal) => Promise<Record<string, any>>;
|
|
313
|
-
}, "latestFollowUps" | "availableCommands">, Pick<{
|
|
313
|
+
}, "latestFollowUps" | "latestMessageSelectedId" | "availableCommands">, Pick<{
|
|
314
314
|
inputText: import("vue").Ref<string, string>;
|
|
315
315
|
messages: import("vue").Ref<{
|
|
316
316
|
id: string;
|
|
@@ -329,9 +329,9 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
329
329
|
label: string;
|
|
330
330
|
prompt: string;
|
|
331
331
|
command?: string | undefined;
|
|
332
|
-
|
|
332
|
+
handler?: (() => void) | undefined;
|
|
333
333
|
}[] | undefined;
|
|
334
|
-
|
|
334
|
+
selectedId?: string | undefined;
|
|
335
335
|
feedback?: "helpful" | "unhelpful" | undefined;
|
|
336
336
|
isStreaming?: boolean | undefined;
|
|
337
337
|
}[], ChatMessage[] | {
|
|
@@ -351,9 +351,9 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
351
351
|
label: string;
|
|
352
352
|
prompt: string;
|
|
353
353
|
command?: string | undefined;
|
|
354
|
-
|
|
354
|
+
handler?: (() => void) | undefined;
|
|
355
355
|
}[] | undefined;
|
|
356
|
-
|
|
356
|
+
selectedId?: string | undefined;
|
|
357
357
|
feedback?: "helpful" | "unhelpful" | undefined;
|
|
358
358
|
isStreaming?: boolean | undefined;
|
|
359
359
|
}[]>;
|
|
@@ -362,7 +362,7 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
362
362
|
name: string;
|
|
363
363
|
fullName?: string | undefined;
|
|
364
364
|
description: string;
|
|
365
|
-
handler: import("@feedmepos/remy-core").ChatHandler
|
|
365
|
+
handler: import("@feedmepos/remy-core").ChatHandler<import("@feedmepos/remy-core").RemyCommandResult>;
|
|
366
366
|
commands?: {
|
|
367
367
|
name: string;
|
|
368
368
|
description: string;
|
|
@@ -381,7 +381,7 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
381
381
|
name: string;
|
|
382
382
|
fullName?: string | undefined;
|
|
383
383
|
description: string;
|
|
384
|
-
handler: import("@feedmepos/remy-core").ChatHandler
|
|
384
|
+
handler: import("@feedmepos/remy-core").ChatHandler<import("@feedmepos/remy-core").RemyCommandResult>;
|
|
385
385
|
commands?: {
|
|
386
386
|
name: string;
|
|
387
387
|
description: string;
|
|
@@ -407,7 +407,7 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
407
407
|
defaultValue?: any;
|
|
408
408
|
}[] | undefined;
|
|
409
409
|
extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
|
|
410
|
-
}> & Omit<Map<string, SlashCommand
|
|
410
|
+
}> & Omit<Map<string, SlashCommand<import("@feedmepos/remy-core").RemyCommandResult>>, keyof Map<any, any>>, Map<string, SlashCommand<import("@feedmepos/remy-core").RemyCommandResult>> | (Map<string, {
|
|
411
411
|
name: string;
|
|
412
412
|
description: string;
|
|
413
413
|
variables?: {
|
|
@@ -418,7 +418,7 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
418
418
|
defaultValue?: any;
|
|
419
419
|
}[] | undefined;
|
|
420
420
|
extractVariables?: ((context: ExtractVariablesContext) => import("@feedmepos/remy-core").ExtractVariablesResult | Promise<import("@feedmepos/remy-core").ExtractVariablesResult>) | undefined;
|
|
421
|
-
}> & Omit<Map<string, SlashCommand
|
|
421
|
+
}> & Omit<Map<string, SlashCommand<import("@feedmepos/remy-core").RemyCommandResult>>, keyof Map<any, any>>)>;
|
|
422
422
|
currentParticipant: import("vue").Ref<string, string>;
|
|
423
423
|
sessionId: import("vue").Ref<string, string>;
|
|
424
424
|
isStreaming: import("vue").Ref<boolean, boolean>;
|
|
@@ -428,8 +428,9 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
428
428
|
label: string;
|
|
429
429
|
prompt: string;
|
|
430
430
|
command?: string | undefined;
|
|
431
|
-
|
|
431
|
+
handler?: (() => void) | undefined;
|
|
432
432
|
}[]>;
|
|
433
|
+
latestMessageSelectedId: import("vue").ComputedRef<string | undefined>;
|
|
433
434
|
availableCommands: import("vue").ComputedRef<{
|
|
434
435
|
name: string;
|
|
435
436
|
description: string;
|
|
@@ -448,7 +449,7 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
448
449
|
setClient: (client: RemyBackendClient) => void;
|
|
449
450
|
registerParticipant: (participant: ChatParticipant) => void;
|
|
450
451
|
registerCommand: (command: SlashCommand) => void;
|
|
451
|
-
sendMessage: (prompt: string, command?: string, onResult?: ((result: any) => void) | undefined,
|
|
452
|
+
sendMessage: (prompt: string, command?: string, onResult?: ((result: any) => void) | undefined, customVariables?: Record<string, any>) => Promise<void>;
|
|
452
453
|
addFollowUp: (messageId: string, followUp: FollowUp) => void;
|
|
453
454
|
provideFeedback: (messageId: string, helpful: boolean) => void;
|
|
454
455
|
saveSession: () => Promise<void>;
|
|
@@ -460,9 +461,8 @@ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat
|
|
|
460
461
|
listSessions: () => Promise<ChatSession[]>;
|
|
461
462
|
newSession: () => Promise<void>;
|
|
462
463
|
deleteSession: (id: string) => Promise<void>;
|
|
463
|
-
getMessageCallback: (messageId: string) => ((result: any) => void) | undefined;
|
|
464
464
|
markFollowUpSelected: (messageId: string, followUpId: string) => void;
|
|
465
465
|
activateCommandMode: (command: string, context?: Record<string, any>, prompt?: string) => void;
|
|
466
466
|
deactivateCommandMode: () => void;
|
|
467
467
|
extractVariables: (command: SlashCommand, context: ExtractVariablesContext, signal?: AbortSignal) => Promise<Record<string, any>>;
|
|
468
|
-
}, "extractVariables" | "setClient" | "registerParticipant" | "registerCommand" | "sendMessage" | "addFollowUp" | "provideFeedback" | "saveSession" | "loadSession" | "clearHistory" | "switchParticipant" | "addStreamContent" | "finishStreaming" | "listSessions" | "newSession" | "deleteSession" | "
|
|
468
|
+
}, "extractVariables" | "setClient" | "registerParticipant" | "registerCommand" | "sendMessage" | "addFollowUp" | "provideFeedback" | "saveSession" | "loadSession" | "clearHistory" | "switchParticipant" | "addStreamContent" | "finishStreaming" | "listSessions" | "newSession" | "deleteSession" | "markFollowUpSelected" | "activateCommandMode" | "deactivateCommandMode">>;
|
|
@@ -1,8 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { RemyPriceResult, RemyDescriptionResult, RemyInventoryForecastResult, RemyPurchaseOrderForecastResult } from '@feedmepos/remy-core';
|
|
2
|
+
interface ActivateOptionsBase {
|
|
3
3
|
context?: any;
|
|
4
|
-
onResult?: (res: any) => void;
|
|
5
4
|
}
|
|
5
|
+
interface ActivateOptionsSuggestPrice extends ActivateOptionsBase {
|
|
6
|
+
command: 'suggestPrice';
|
|
7
|
+
onResult?: (result: RemyPriceResult) => void;
|
|
8
|
+
}
|
|
9
|
+
interface ActivateOptionsSuggestDescription extends ActivateOptionsBase {
|
|
10
|
+
command: 'suggestDescription';
|
|
11
|
+
onResult?: (result: RemyDescriptionResult) => void;
|
|
12
|
+
}
|
|
13
|
+
interface ActivateOptionsForecastInventory extends ActivateOptionsBase {
|
|
14
|
+
command: 'forecastInventory';
|
|
15
|
+
onResult?: (result: RemyInventoryForecastResult) => void;
|
|
16
|
+
}
|
|
17
|
+
interface ActivateOptionsForecastPurchaseOrder extends ActivateOptionsBase {
|
|
18
|
+
command: 'forecastPurchaseOrder';
|
|
19
|
+
onResult?: (result: RemyPurchaseOrderForecastResult) => void;
|
|
20
|
+
}
|
|
21
|
+
interface ActivateOptionsGeneric extends ActivateOptionsBase {
|
|
22
|
+
command?: string;
|
|
23
|
+
onResult?: (result: any) => void;
|
|
24
|
+
}
|
|
25
|
+
type ActivateOptions = ActivateOptionsSuggestPrice | ActivateOptionsSuggestDescription | ActivateOptionsForecastInventory | ActivateOptionsForecastPurchaseOrder | ActivateOptionsGeneric;
|
|
6
26
|
export declare const useRemyStore: import("pinia").StoreDefinition<"remy", Pick<{
|
|
7
27
|
showRemy: import("vue").Ref<boolean, boolean>;
|
|
8
28
|
dialogShowing: import("vue").Ref<boolean, boolean>;
|