@feedmepos/mf-remy-panel 0.0.2 → 0.0.4

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/app.d.ts ADDED
@@ -0,0 +1,99 @@
1
+ import enUS from "./locales/en-US.json";
2
+ export { default as FmApp } from './App.vue';
3
+ export { router } from '../src/router';
4
+ export type AppMessagesSchema = typeof enUS;
5
+ export declare const i18nMessages: {
6
+ "en-US": {
7
+ "mf-remy-panel": {
8
+ title: string;
9
+ description: string;
10
+ count: string;
11
+ };
12
+ remy: {
13
+ chat: {
14
+ title: string;
15
+ empty: string;
16
+ placeholder: string;
17
+ send: string;
18
+ clear: string;
19
+ confirmClear: string;
20
+ streaming: string;
21
+ commands: string;
22
+ followUps: string;
23
+ sessionMenu: string;
24
+ newSession: string;
25
+ viewAllHistory: string;
26
+ confirmNewSession: string;
27
+ close: string;
28
+ historyTitle: string;
29
+ noHistory: string;
30
+ emptySession: string;
31
+ untitledSession: string;
32
+ messages: string;
33
+ yesterday: string;
34
+ back: string;
35
+ deleteSession: string;
36
+ confirmDeleteSession: string;
37
+ };
38
+ feedback: {
39
+ helpful: string;
40
+ unhelpful: string;
41
+ copy: string;
42
+ };
43
+ commands: {
44
+ explain: string;
45
+ fix: string;
46
+ test: string;
47
+ };
48
+ };
49
+ };
50
+ "zh-CN": {
51
+ "mf-remy-panel": {
52
+ title: string;
53
+ description: string;
54
+ count: string;
55
+ };
56
+ remy: {
57
+ chat: {
58
+ title: string;
59
+ empty: string;
60
+ placeholder: string;
61
+ send: string;
62
+ clear: string;
63
+ confirmClear: string;
64
+ streaming: string;
65
+ commands: string;
66
+ followUps: string;
67
+ sessionMenu: string;
68
+ newSession: string;
69
+ viewAllHistory: string;
70
+ confirmNewSession: string;
71
+ close: string;
72
+ historyTitle: string;
73
+ noHistory: string;
74
+ emptySession: string;
75
+ untitledSession: string;
76
+ messages: string;
77
+ yesterday: string;
78
+ back: string;
79
+ deleteSession: string;
80
+ confirmDeleteSession: string;
81
+ };
82
+ feedback: {
83
+ helpful: string;
84
+ unhelpful: string;
85
+ copy: string;
86
+ };
87
+ commands: {
88
+ explain: string;
89
+ fix: string;
90
+ test: string;
91
+ };
92
+ };
93
+ };
94
+ };
95
+ export declare const RemyChatPanel: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
96
+ close: () => void;
97
+ }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
98
+ onClose?: (() => any) | undefined;
99
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
package/dist/app.js ADDED
@@ -0,0 +1,11 @@
1
+ import "vue";
2
+ import { A as t, R as e, i, r as n } from "./app-f34db2cf.js";
3
+ import "@feedmepos/mf-common";
4
+ import "pinia";
5
+ import "vue-router";
6
+ export {
7
+ t as FmApp,
8
+ e as RemyChatPanel,
9
+ i as i18nMessages,
10
+ n as router
11
+ };
@@ -0,0 +1,19 @@
1
+ import type { FollowUp } from '@feedmepos/remy-core';
2
+ interface Props {
3
+ followUps: FollowUp[];
4
+ }
5
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ select: (prompt: string, command?: string | undefined) => void;
7
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
8
+ onSelect?: ((prompt: string, command?: string | undefined) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
10
+ export default _default;
11
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
+ type __VLS_TypePropsToRuntimeProps<T> = {
13
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
14
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
15
+ } : {
16
+ type: import('vue').PropType<T[K]>;
17
+ required: true;
18
+ };
19
+ };
@@ -0,0 +1,6 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
+ send: (prompt: string, command?: string | undefined) => void;
3
+ }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
4
+ onSend?: ((prompt: string, command?: string | undefined) => any) | undefined;
5
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import type { ChatMessage } from '@feedmepos/remy-core';
2
+ interface Props {
3
+ message: ChatMessage;
4
+ }
5
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ export default _default;
7
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
8
+ type __VLS_TypePropsToRuntimeProps<T> = {
9
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
10
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
11
+ } : {
12
+ type: import('vue').PropType<T[K]>;
13
+ required: true;
14
+ };
15
+ };
@@ -0,0 +1,15 @@
1
+ import type { ChatMessage } from '@feedmepos/remy-core';
2
+ interface Props {
3
+ message: ChatMessage;
4
+ }
5
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ export default _default;
7
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
8
+ type __VLS_TypePropsToRuntimeProps<T> = {
9
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
10
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
11
+ } : {
12
+ type: import('vue').PropType<T[K]>;
13
+ required: true;
14
+ };
15
+ };
@@ -0,0 +1,16 @@
1
+ import type { ChatMessage } from '@feedmepos/remy-core';
2
+ interface Props {
3
+ messages: ChatMessage[];
4
+ isStreaming?: boolean;
5
+ }
6
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ export default _default;
8
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
+ type __VLS_TypePropsToRuntimeProps<T> = {
10
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
11
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
12
+ } : {
13
+ type: import('vue').PropType<T[K]>;
14
+ required: true;
15
+ };
16
+ };
@@ -0,0 +1,8 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
+ back: () => void;
3
+ "load-session": (sessionId: string) => void;
4
+ }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
5
+ onBack?: (() => any) | undefined;
6
+ "onLoad-session"?: ((sessionId: string) => any) | undefined;
7
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
8
+ export default _default;
@@ -0,0 +1,16 @@
1
+ interface Props {
2
+ messageId: string;
3
+ feedback?: 'helpful' | 'unhelpful';
4
+ content: string;
5
+ }
6
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ export default _default;
8
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
+ type __VLS_TypePropsToRuntimeProps<T> = {
10
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
11
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
12
+ } : {
13
+ type: import('vue').PropType<T[K]>;
14
+ required: true;
15
+ };
16
+ };
@@ -0,0 +1,18 @@
1
+ import type { StreamContent } from '@feedmepos/remy-core';
2
+ import 'highlight.js/styles/github-dark.css';
3
+ interface Props {
4
+ content: string;
5
+ contentParts?: StreamContent[];
6
+ isStreaming?: boolean;
7
+ }
8
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
9
+ export default _default;
10
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
+ type __VLS_TypePropsToRuntimeProps<T> = {
12
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
13
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
14
+ } : {
15
+ type: import('vue').PropType<T[K]>;
16
+ required: true;
17
+ };
18
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,6 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
+ close: () => void;
3
+ }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
4
+ onClose?: (() => any) | undefined;
5
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ export default _default;
Binary file
package/dist/main.d.ts ADDED
@@ -0,0 +1 @@
1
+ import './assets/main.css';
@@ -0,0 +1,2 @@
1
+ declare const router: import("vue-router").Router;
2
+ export { router };
@@ -0,0 +1,2 @@
1
+ import type { RouteRecordRaw } from "vue-router";
2
+ export declare const routers: Array<RouteRecordRaw>;
@@ -0,0 +1,13 @@
1
+ export declare const useCounterStore: import("pinia").StoreDefinition<"counter", Pick<{
2
+ count: import("vue").Ref<number, number>;
3
+ doubleCount: import("vue").ComputedRef<number>;
4
+ increment: () => void;
5
+ }, "count">, Pick<{
6
+ count: import("vue").Ref<number, number>;
7
+ doubleCount: import("vue").ComputedRef<number>;
8
+ increment: () => void;
9
+ }, "doubleCount">, Pick<{
10
+ count: import("vue").Ref<number, number>;
11
+ doubleCount: import("vue").ComputedRef<number>;
12
+ increment: () => void;
13
+ }, "increment">>;
@@ -0,0 +1,320 @@
1
+ import type { ChatParticipant, ChatMessage, ChatRequest, SlashCommand, FollowUp, StreamContent, ChatSession } from '@feedmepos/remy-core';
2
+ export declare const useRemyChatStore: import("pinia").StoreDefinition<"remyChat", Pick<{
3
+ messages: import("vue").Ref<{
4
+ id: string;
5
+ type: "user" | "assistant";
6
+ content: string;
7
+ contentParts?: {
8
+ type: import("@feedmepos/remy-core").StreamContentType;
9
+ data: any;
10
+ }[] | undefined;
11
+ timestamp: number;
12
+ participant?: string | undefined;
13
+ command?: string | undefined;
14
+ variables?: Record<string, any> | undefined;
15
+ followUps?: {
16
+ id: string;
17
+ label: string;
18
+ prompt: string;
19
+ command?: string | undefined;
20
+ }[] | undefined;
21
+ feedback?: "helpful" | "unhelpful" | undefined;
22
+ isStreaming?: boolean | undefined;
23
+ }[], ChatMessage[] | {
24
+ id: string;
25
+ type: "user" | "assistant";
26
+ content: string;
27
+ contentParts?: {
28
+ type: import("@feedmepos/remy-core").StreamContentType;
29
+ data: any;
30
+ }[] | undefined;
31
+ timestamp: number;
32
+ participant?: string | undefined;
33
+ command?: string | undefined;
34
+ variables?: Record<string, any> | undefined;
35
+ followUps?: {
36
+ id: string;
37
+ label: string;
38
+ prompt: string;
39
+ command?: string | undefined;
40
+ }[] | undefined;
41
+ feedback?: "helpful" | "unhelpful" | undefined;
42
+ isStreaming?: boolean | undefined;
43
+ }[]>;
44
+ participants: import("vue").Ref<Map<string, {
45
+ id: string;
46
+ name: string;
47
+ fullName?: string | undefined;
48
+ description: string;
49
+ handler: import("@feedmepos/remy-core").ChatHandler;
50
+ commands?: {
51
+ name: string;
52
+ description: string;
53
+ handler: (args: string, context: ChatRequest) => void | Promise<void>;
54
+ }[] | undefined;
55
+ iconPath?: string | undefined;
56
+ }> & Omit<Map<string, ChatParticipant>, keyof Map<any, any>>, Map<string, ChatParticipant> | (Map<string, {
57
+ id: string;
58
+ name: string;
59
+ fullName?: string | undefined;
60
+ description: string;
61
+ handler: import("@feedmepos/remy-core").ChatHandler;
62
+ commands?: {
63
+ name: string;
64
+ description: string;
65
+ handler: (args: string, context: ChatRequest) => void | Promise<void>;
66
+ }[] | undefined;
67
+ iconPath?: string | undefined;
68
+ }> & Omit<Map<string, ChatParticipant>, keyof Map<any, any>>)>;
69
+ commands: import("vue").Ref<Map<string, {
70
+ name: string;
71
+ description: string;
72
+ handler: (args: string, context: ChatRequest) => void | Promise<void>;
73
+ }> & Omit<Map<string, SlashCommand>, keyof Map<any, any>>, Map<string, SlashCommand> | (Map<string, {
74
+ name: string;
75
+ description: string;
76
+ handler: (args: string, context: ChatRequest) => void | Promise<void>;
77
+ }> & Omit<Map<string, SlashCommand>, keyof Map<any, any>>)>;
78
+ currentParticipant: import("vue").Ref<string, string>;
79
+ sessionId: import("vue").Ref<string, string>;
80
+ isStreaming: import("vue").Ref<boolean, boolean>;
81
+ isConnected: import("vue").Ref<boolean, boolean>;
82
+ latestFollowUps: import("vue").ComputedRef<{
83
+ id: string;
84
+ label: string;
85
+ prompt: string;
86
+ command?: string | undefined;
87
+ }[]>;
88
+ availableCommands: import("vue").ComputedRef<{
89
+ name: string;
90
+ description: string;
91
+ handler: (args: string, context: ChatRequest) => void | Promise<void>;
92
+ }[]>;
93
+ registerParticipant: (participant: ChatParticipant) => void;
94
+ registerCommand: (command: SlashCommand) => void;
95
+ sendMessage: (prompt: string, command?: string) => Promise<void>;
96
+ addFollowUp: (messageId: string, followUp: FollowUp) => void;
97
+ provideFeedback: (messageId: string, helpful: boolean) => void;
98
+ saveSession: () => Promise<void>;
99
+ loadSession: (id?: string) => Promise<void>;
100
+ clearHistory: () => Promise<void>;
101
+ switchParticipant: (participantId: string) => void;
102
+ connectSSE: (messageId: string, endpoint?: string) => void;
103
+ addStreamContent: (content: StreamContent) => void;
104
+ finishStreaming: () => void;
105
+ listSessions: () => Promise<ChatSession[]>;
106
+ newSession: () => Promise<void>;
107
+ deleteSession: (id: string) => Promise<void>;
108
+ }, "isStreaming" | "commands" | "messages" | "participants" | "currentParticipant" | "sessionId" | "isConnected">, Pick<{
109
+ messages: import("vue").Ref<{
110
+ id: string;
111
+ type: "user" | "assistant";
112
+ content: string;
113
+ contentParts?: {
114
+ type: import("@feedmepos/remy-core").StreamContentType;
115
+ data: any;
116
+ }[] | undefined;
117
+ timestamp: number;
118
+ participant?: string | undefined;
119
+ command?: string | undefined;
120
+ variables?: Record<string, any> | undefined;
121
+ followUps?: {
122
+ id: string;
123
+ label: string;
124
+ prompt: string;
125
+ command?: string | undefined;
126
+ }[] | undefined;
127
+ feedback?: "helpful" | "unhelpful" | undefined;
128
+ isStreaming?: boolean | undefined;
129
+ }[], ChatMessage[] | {
130
+ id: string;
131
+ type: "user" | "assistant";
132
+ content: string;
133
+ contentParts?: {
134
+ type: import("@feedmepos/remy-core").StreamContentType;
135
+ data: any;
136
+ }[] | undefined;
137
+ timestamp: number;
138
+ participant?: string | undefined;
139
+ command?: string | undefined;
140
+ variables?: Record<string, any> | undefined;
141
+ followUps?: {
142
+ id: string;
143
+ label: string;
144
+ prompt: string;
145
+ command?: string | undefined;
146
+ }[] | undefined;
147
+ feedback?: "helpful" | "unhelpful" | undefined;
148
+ isStreaming?: boolean | undefined;
149
+ }[]>;
150
+ participants: import("vue").Ref<Map<string, {
151
+ id: string;
152
+ name: string;
153
+ fullName?: string | undefined;
154
+ description: string;
155
+ handler: import("@feedmepos/remy-core").ChatHandler;
156
+ commands?: {
157
+ name: string;
158
+ description: string;
159
+ handler: (args: string, context: ChatRequest) => void | Promise<void>;
160
+ }[] | undefined;
161
+ iconPath?: string | undefined;
162
+ }> & Omit<Map<string, ChatParticipant>, keyof Map<any, any>>, Map<string, ChatParticipant> | (Map<string, {
163
+ id: string;
164
+ name: string;
165
+ fullName?: string | undefined;
166
+ description: string;
167
+ handler: import("@feedmepos/remy-core").ChatHandler;
168
+ commands?: {
169
+ name: string;
170
+ description: string;
171
+ handler: (args: string, context: ChatRequest) => void | Promise<void>;
172
+ }[] | undefined;
173
+ iconPath?: string | undefined;
174
+ }> & Omit<Map<string, ChatParticipant>, keyof Map<any, any>>)>;
175
+ commands: import("vue").Ref<Map<string, {
176
+ name: string;
177
+ description: string;
178
+ handler: (args: string, context: ChatRequest) => void | Promise<void>;
179
+ }> & Omit<Map<string, SlashCommand>, keyof Map<any, any>>, Map<string, SlashCommand> | (Map<string, {
180
+ name: string;
181
+ description: string;
182
+ handler: (args: string, context: ChatRequest) => void | Promise<void>;
183
+ }> & Omit<Map<string, SlashCommand>, keyof Map<any, any>>)>;
184
+ currentParticipant: import("vue").Ref<string, string>;
185
+ sessionId: import("vue").Ref<string, string>;
186
+ isStreaming: import("vue").Ref<boolean, boolean>;
187
+ isConnected: import("vue").Ref<boolean, boolean>;
188
+ latestFollowUps: import("vue").ComputedRef<{
189
+ id: string;
190
+ label: string;
191
+ prompt: string;
192
+ command?: string | undefined;
193
+ }[]>;
194
+ availableCommands: import("vue").ComputedRef<{
195
+ name: string;
196
+ description: string;
197
+ handler: (args: string, context: ChatRequest) => void | Promise<void>;
198
+ }[]>;
199
+ registerParticipant: (participant: ChatParticipant) => void;
200
+ registerCommand: (command: SlashCommand) => void;
201
+ sendMessage: (prompt: string, command?: string) => Promise<void>;
202
+ addFollowUp: (messageId: string, followUp: FollowUp) => void;
203
+ provideFeedback: (messageId: string, helpful: boolean) => void;
204
+ saveSession: () => Promise<void>;
205
+ loadSession: (id?: string) => Promise<void>;
206
+ clearHistory: () => Promise<void>;
207
+ switchParticipant: (participantId: string) => void;
208
+ connectSSE: (messageId: string, endpoint?: string) => void;
209
+ addStreamContent: (content: StreamContent) => void;
210
+ finishStreaming: () => void;
211
+ listSessions: () => Promise<ChatSession[]>;
212
+ newSession: () => Promise<void>;
213
+ deleteSession: (id: string) => Promise<void>;
214
+ }, "latestFollowUps" | "availableCommands">, Pick<{
215
+ messages: import("vue").Ref<{
216
+ id: string;
217
+ type: "user" | "assistant";
218
+ content: string;
219
+ contentParts?: {
220
+ type: import("@feedmepos/remy-core").StreamContentType;
221
+ data: any;
222
+ }[] | undefined;
223
+ timestamp: number;
224
+ participant?: string | undefined;
225
+ command?: string | undefined;
226
+ variables?: Record<string, any> | undefined;
227
+ followUps?: {
228
+ id: string;
229
+ label: string;
230
+ prompt: string;
231
+ command?: string | undefined;
232
+ }[] | undefined;
233
+ feedback?: "helpful" | "unhelpful" | undefined;
234
+ isStreaming?: boolean | undefined;
235
+ }[], ChatMessage[] | {
236
+ id: string;
237
+ type: "user" | "assistant";
238
+ content: string;
239
+ contentParts?: {
240
+ type: import("@feedmepos/remy-core").StreamContentType;
241
+ data: any;
242
+ }[] | undefined;
243
+ timestamp: number;
244
+ participant?: string | undefined;
245
+ command?: string | undefined;
246
+ variables?: Record<string, any> | undefined;
247
+ followUps?: {
248
+ id: string;
249
+ label: string;
250
+ prompt: string;
251
+ command?: string | undefined;
252
+ }[] | undefined;
253
+ feedback?: "helpful" | "unhelpful" | undefined;
254
+ isStreaming?: boolean | undefined;
255
+ }[]>;
256
+ participants: import("vue").Ref<Map<string, {
257
+ id: string;
258
+ name: string;
259
+ fullName?: string | undefined;
260
+ description: string;
261
+ handler: import("@feedmepos/remy-core").ChatHandler;
262
+ commands?: {
263
+ name: string;
264
+ description: string;
265
+ handler: (args: string, context: ChatRequest) => void | Promise<void>;
266
+ }[] | undefined;
267
+ iconPath?: string | undefined;
268
+ }> & Omit<Map<string, ChatParticipant>, keyof Map<any, any>>, Map<string, ChatParticipant> | (Map<string, {
269
+ id: string;
270
+ name: string;
271
+ fullName?: string | undefined;
272
+ description: string;
273
+ handler: import("@feedmepos/remy-core").ChatHandler;
274
+ commands?: {
275
+ name: string;
276
+ description: string;
277
+ handler: (args: string, context: ChatRequest) => void | Promise<void>;
278
+ }[] | undefined;
279
+ iconPath?: string | undefined;
280
+ }> & Omit<Map<string, ChatParticipant>, keyof Map<any, any>>)>;
281
+ commands: import("vue").Ref<Map<string, {
282
+ name: string;
283
+ description: string;
284
+ handler: (args: string, context: ChatRequest) => void | Promise<void>;
285
+ }> & Omit<Map<string, SlashCommand>, keyof Map<any, any>>, Map<string, SlashCommand> | (Map<string, {
286
+ name: string;
287
+ description: string;
288
+ handler: (args: string, context: ChatRequest) => void | Promise<void>;
289
+ }> & Omit<Map<string, SlashCommand>, keyof Map<any, any>>)>;
290
+ currentParticipant: import("vue").Ref<string, string>;
291
+ sessionId: import("vue").Ref<string, string>;
292
+ isStreaming: import("vue").Ref<boolean, boolean>;
293
+ isConnected: import("vue").Ref<boolean, boolean>;
294
+ latestFollowUps: import("vue").ComputedRef<{
295
+ id: string;
296
+ label: string;
297
+ prompt: string;
298
+ command?: string | undefined;
299
+ }[]>;
300
+ availableCommands: import("vue").ComputedRef<{
301
+ name: string;
302
+ description: string;
303
+ handler: (args: string, context: ChatRequest) => void | Promise<void>;
304
+ }[]>;
305
+ registerParticipant: (participant: ChatParticipant) => void;
306
+ registerCommand: (command: SlashCommand) => void;
307
+ sendMessage: (prompt: string, command?: string) => Promise<void>;
308
+ addFollowUp: (messageId: string, followUp: FollowUp) => void;
309
+ provideFeedback: (messageId: string, helpful: boolean) => void;
310
+ saveSession: () => Promise<void>;
311
+ loadSession: (id?: string) => Promise<void>;
312
+ clearHistory: () => Promise<void>;
313
+ switchParticipant: (participantId: string) => void;
314
+ connectSSE: (messageId: string, endpoint?: string) => void;
315
+ addStreamContent: (content: StreamContent) => void;
316
+ finishStreaming: () => void;
317
+ listSessions: () => Promise<ChatSession[]>;
318
+ newSession: () => Promise<void>;
319
+ deleteSession: (id: string) => Promise<void>;
320
+ }, "registerParticipant" | "registerCommand" | "sendMessage" | "addFollowUp" | "provideFeedback" | "saveSession" | "loadSession" | "clearHistory" | "switchParticipant" | "connectSSE" | "addStreamContent" | "finishStreaming" | "listSessions" | "newSession" | "deleteSession">>;
package/dist/style.css ADDED
@@ -0,0 +1,10 @@
1
+ pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
2
+ Theme: GitHub Dark
3
+ Description: Dark theme as seen on github.com
4
+ Author: github.com
5
+ Maintainer: @Hirse
6
+ Updated: 2021-05-15
7
+
8
+ Outdated base version: https://github.com/primer/github-syntax-dark
9
+ Current colors taken from GitHub's CSS
10
+ */.hljs{color:#c9d1d9;background:#0d1117}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#ff7b72}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#79c0ff}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-comment,.hljs-code,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}.hljs-addition{color:#aff5b4;background-color:#033a16}.hljs-deletion{color:#ffdcd7;background-color:#67060c}.markdown-content[data-v-24fc8be1] p{margin:.5rem 0}.markdown-content[data-v-24fc8be1] p:first-child{margin-top:0}.markdown-content[data-v-24fc8be1] p:last-child{margin-bottom:0}.markdown-content[data-v-24fc8be1] code{background:var(--color-background);padding:.125rem .375rem;border-radius:3px;font-family:SF Mono,Monaco,Inconsolata,Fira Code,monospace;font-size:.875em}.markdown-content[data-v-24fc8be1] pre{background:var(--color-background);padding:1rem;border-radius:6px;overflow-x:auto;margin:1rem 0}.markdown-content[data-v-24fc8be1] pre code{background:none;padding:0;border-radius:0;font-size:.875rem}.markdown-content[data-v-24fc8be1] a{color:var(--color-primary);text-decoration:none;border-bottom:1px solid transparent;transition:border-color .2s ease}.markdown-content[data-v-24fc8be1] a:hover{border-bottom-color:var(--color-primary)}.markdown-content[data-v-24fc8be1] ul,.markdown-content[data-v-24fc8be1] ol{padding-left:1.5rem;margin:.5rem 0}.markdown-content[data-v-24fc8be1] li{margin:.25rem 0}.markdown-content[data-v-24fc8be1] blockquote{border-left:3px solid rgb(209 213 219);padding-left:1rem;margin:1rem 0;color:var(--color-text-secondary)}.markdown-content[data-v-24fc8be1] h1,.markdown-content[data-v-24fc8be1] h2,.markdown-content[data-v-24fc8be1] h3,.markdown-content[data-v-24fc8be1] h4{margin:1.5rem 0 .75rem;font-weight:600}.markdown-content[data-v-24fc8be1] h1{font-size:1.75rem}.markdown-content[data-v-24fc8be1] h2{font-size:1.5rem}.markdown-content[data-v-24fc8be1] h3{font-size:1.25rem}.markdown-content[data-v-24fc8be1] h4{font-size:1.1rem}.spinner[data-v-24fc8be1]:before{content:"◐";display:inline-block;animation:spin-24fc8be1 1s linear infinite}@keyframes spin-24fc8be1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes pulse-bb2d289b{0%,to{opacity:.3}50%{opacity:1}}@keyframes blink-bb2d289b{0%,to{opacity:1}50%{opacity:0}}@keyframes fadeIn-2efcb058{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}[data-v-8b343c93] textarea::-moz-placeholder{font-size:12px}[data-v-8b343c93] textarea::placeholder{font-size:12px}