@contractspec/module.ai-chat 1.45.6 → 1.46.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-chat.operations.d.ts +66 -66
- package/dist/events.d.ts +31 -31
- package/dist/events.d.ts.map +1 -1
- package/dist/presentation/components/ChatInput.d.ts +2 -2
- package/dist/presentation/components/ChatMessage.d.ts +2 -2
- package/dist/presentation/components/CodePreview.d.ts +2 -2
- package/dist/presentation/components/ContextIndicator.d.ts +2 -2
- package/dist/presentation/components/ModelPicker.d.ts +2 -2
- package/dist/schema.d.ts +55 -55
- package/dist/schema.d.ts.map +1 -1
- package/package.json +11 -11
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema53 from "@contractspec/lib.schema";
|
|
2
|
+
import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/ai-chat.operations.d.ts
|
|
5
|
-
declare const SendMessageContract:
|
|
5
|
+
declare const SendMessageContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema53.SchemaModel<{
|
|
6
6
|
conversationId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
8
8
|
isOptional: true;
|
|
9
9
|
};
|
|
10
10
|
content: {
|
|
11
|
-
type:
|
|
11
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
stream: {
|
|
15
|
-
type:
|
|
15
|
+
type: _contractspec_lib_schema53.FieldType<boolean, boolean>;
|
|
16
16
|
isOptional: true;
|
|
17
17
|
};
|
|
18
|
-
}>,
|
|
18
|
+
}>, _contractspec_lib_schema53.SchemaModel<{
|
|
19
19
|
message: {
|
|
20
|
-
type:
|
|
20
|
+
type: _contractspec_lib_schema53.SchemaModel<{
|
|
21
21
|
id: {
|
|
22
|
-
type:
|
|
22
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
23
23
|
isOptional: false;
|
|
24
24
|
};
|
|
25
25
|
role: {
|
|
26
|
-
type:
|
|
26
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
27
27
|
isOptional: false;
|
|
28
28
|
};
|
|
29
29
|
content: {
|
|
30
|
-
type:
|
|
30
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
31
31
|
isOptional: false;
|
|
32
32
|
};
|
|
33
33
|
status: {
|
|
34
|
-
type:
|
|
34
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
35
35
|
isOptional: false;
|
|
36
36
|
};
|
|
37
37
|
createdAt: {
|
|
38
|
-
type:
|
|
38
|
+
type: _contractspec_lib_schema53.FieldType<Date, string>;
|
|
39
39
|
isOptional: false;
|
|
40
40
|
};
|
|
41
41
|
}>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
conversation: {
|
|
45
|
-
type:
|
|
45
|
+
type: _contractspec_lib_schema53.SchemaModel<{
|
|
46
46
|
id: {
|
|
47
|
-
type:
|
|
47
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
title: {
|
|
51
|
-
type:
|
|
51
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
52
52
|
isOptional: true;
|
|
53
53
|
};
|
|
54
54
|
status: {
|
|
55
|
-
type:
|
|
55
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
messages: {
|
|
59
|
-
type:
|
|
59
|
+
type: _contractspec_lib_schema53.SchemaModel<{
|
|
60
60
|
id: {
|
|
61
|
-
type:
|
|
61
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
62
62
|
isOptional: false;
|
|
63
63
|
};
|
|
64
64
|
role: {
|
|
65
|
-
type:
|
|
65
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
66
66
|
isOptional: false;
|
|
67
67
|
};
|
|
68
68
|
content: {
|
|
69
|
-
type:
|
|
69
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
70
70
|
isOptional: false;
|
|
71
71
|
};
|
|
72
72
|
status: {
|
|
73
|
-
type:
|
|
73
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
74
74
|
isOptional: false;
|
|
75
75
|
};
|
|
76
76
|
createdAt: {
|
|
77
|
-
type:
|
|
77
|
+
type: _contractspec_lib_schema53.FieldType<Date, string>;
|
|
78
78
|
isOptional: false;
|
|
79
79
|
};
|
|
80
80
|
}>;
|
|
@@ -82,71 +82,71 @@ declare const SendMessageContract: _contractspec_lib_contracts4.OperationSpec<_c
|
|
|
82
82
|
isOptional: false;
|
|
83
83
|
};
|
|
84
84
|
provider: {
|
|
85
|
-
type:
|
|
85
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
86
86
|
isOptional: false;
|
|
87
87
|
};
|
|
88
88
|
model: {
|
|
89
|
-
type:
|
|
89
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
}>;
|
|
93
93
|
isOptional: false;
|
|
94
94
|
};
|
|
95
95
|
}>, undefined>;
|
|
96
|
-
declare const StreamMessageContract:
|
|
96
|
+
declare const StreamMessageContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema53.SchemaModel<{
|
|
97
97
|
conversationId: {
|
|
98
|
-
type:
|
|
98
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
99
99
|
isOptional: true;
|
|
100
100
|
};
|
|
101
101
|
content: {
|
|
102
|
-
type:
|
|
102
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
103
103
|
isOptional: false;
|
|
104
104
|
};
|
|
105
105
|
stream: {
|
|
106
|
-
type:
|
|
106
|
+
type: _contractspec_lib_schema53.FieldType<boolean, boolean>;
|
|
107
107
|
isOptional: true;
|
|
108
108
|
};
|
|
109
|
-
}>,
|
|
109
|
+
}>, _contractspec_lib_schema53.SchemaModel<{
|
|
110
110
|
stream: {
|
|
111
|
-
type:
|
|
111
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
112
112
|
isOptional: false;
|
|
113
113
|
};
|
|
114
114
|
}>, undefined>;
|
|
115
|
-
declare const ListConversationsContract:
|
|
115
|
+
declare const ListConversationsContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema53.SchemaModel<{}>, _contractspec_lib_schema53.SchemaModel<{
|
|
116
116
|
conversations: {
|
|
117
|
-
type:
|
|
117
|
+
type: _contractspec_lib_schema53.SchemaModel<{
|
|
118
118
|
id: {
|
|
119
|
-
type:
|
|
119
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
120
120
|
isOptional: false;
|
|
121
121
|
};
|
|
122
122
|
title: {
|
|
123
|
-
type:
|
|
123
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
124
124
|
isOptional: true;
|
|
125
125
|
};
|
|
126
126
|
status: {
|
|
127
|
-
type:
|
|
127
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
128
128
|
isOptional: false;
|
|
129
129
|
};
|
|
130
130
|
messages: {
|
|
131
|
-
type:
|
|
131
|
+
type: _contractspec_lib_schema53.SchemaModel<{
|
|
132
132
|
id: {
|
|
133
|
-
type:
|
|
133
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
134
134
|
isOptional: false;
|
|
135
135
|
};
|
|
136
136
|
role: {
|
|
137
|
-
type:
|
|
137
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
138
138
|
isOptional: false;
|
|
139
139
|
};
|
|
140
140
|
content: {
|
|
141
|
-
type:
|
|
141
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
142
142
|
isOptional: false;
|
|
143
143
|
};
|
|
144
144
|
status: {
|
|
145
|
-
type:
|
|
145
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
146
146
|
isOptional: false;
|
|
147
147
|
};
|
|
148
148
|
createdAt: {
|
|
149
|
-
type:
|
|
149
|
+
type: _contractspec_lib_schema53.FieldType<Date, string>;
|
|
150
150
|
isOptional: false;
|
|
151
151
|
};
|
|
152
152
|
}>;
|
|
@@ -154,11 +154,11 @@ declare const ListConversationsContract: _contractspec_lib_contracts4.OperationS
|
|
|
154
154
|
isOptional: false;
|
|
155
155
|
};
|
|
156
156
|
provider: {
|
|
157
|
-
type:
|
|
157
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
158
158
|
isOptional: false;
|
|
159
159
|
};
|
|
160
160
|
model: {
|
|
161
|
-
type:
|
|
161
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
162
162
|
isOptional: false;
|
|
163
163
|
};
|
|
164
164
|
}>;
|
|
@@ -166,44 +166,44 @@ declare const ListConversationsContract: _contractspec_lib_contracts4.OperationS
|
|
|
166
166
|
isOptional: false;
|
|
167
167
|
};
|
|
168
168
|
}>, undefined>;
|
|
169
|
-
declare const GetConversationContract:
|
|
169
|
+
declare const GetConversationContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema53.SchemaModel<{
|
|
170
170
|
id: {
|
|
171
|
-
type:
|
|
171
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
172
172
|
isOptional: false;
|
|
173
173
|
};
|
|
174
|
-
}>,
|
|
174
|
+
}>, _contractspec_lib_schema53.SchemaModel<{
|
|
175
175
|
id: {
|
|
176
|
-
type:
|
|
176
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
177
177
|
isOptional: false;
|
|
178
178
|
};
|
|
179
179
|
title: {
|
|
180
|
-
type:
|
|
180
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
181
181
|
isOptional: true;
|
|
182
182
|
};
|
|
183
183
|
status: {
|
|
184
|
-
type:
|
|
184
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
185
185
|
isOptional: false;
|
|
186
186
|
};
|
|
187
187
|
messages: {
|
|
188
|
-
type:
|
|
188
|
+
type: _contractspec_lib_schema53.SchemaModel<{
|
|
189
189
|
id: {
|
|
190
|
-
type:
|
|
190
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
191
191
|
isOptional: false;
|
|
192
192
|
};
|
|
193
193
|
role: {
|
|
194
|
-
type:
|
|
194
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
195
195
|
isOptional: false;
|
|
196
196
|
};
|
|
197
197
|
content: {
|
|
198
|
-
type:
|
|
198
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
199
199
|
isOptional: false;
|
|
200
200
|
};
|
|
201
201
|
status: {
|
|
202
|
-
type:
|
|
202
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
203
203
|
isOptional: false;
|
|
204
204
|
};
|
|
205
205
|
createdAt: {
|
|
206
|
-
type:
|
|
206
|
+
type: _contractspec_lib_schema53.FieldType<Date, string>;
|
|
207
207
|
isOptional: false;
|
|
208
208
|
};
|
|
209
209
|
}>;
|
|
@@ -211,33 +211,33 @@ declare const GetConversationContract: _contractspec_lib_contracts4.OperationSpe
|
|
|
211
211
|
isOptional: false;
|
|
212
212
|
};
|
|
213
213
|
provider: {
|
|
214
|
-
type:
|
|
214
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
215
215
|
isOptional: false;
|
|
216
216
|
};
|
|
217
217
|
model: {
|
|
218
|
-
type:
|
|
218
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
219
219
|
isOptional: false;
|
|
220
220
|
};
|
|
221
221
|
}>, undefined>;
|
|
222
|
-
declare const DeleteConversationContract:
|
|
222
|
+
declare const DeleteConversationContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema53.SchemaModel<{
|
|
223
223
|
id: {
|
|
224
|
-
type:
|
|
224
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
225
225
|
isOptional: false;
|
|
226
226
|
};
|
|
227
|
-
}>,
|
|
228
|
-
declare const ListProvidersContract:
|
|
227
|
+
}>, _contractspec_lib_schema53.SchemaModel<{}>, undefined>;
|
|
228
|
+
declare const ListProvidersContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema53.SchemaModel<{}>, _contractspec_lib_schema53.SchemaModel<{
|
|
229
229
|
providers: {
|
|
230
|
-
type:
|
|
230
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
231
231
|
isArray: true;
|
|
232
232
|
isOptional: false;
|
|
233
233
|
};
|
|
234
234
|
}>, undefined>;
|
|
235
|
-
declare const ScanContextContract:
|
|
235
|
+
declare const ScanContextContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema53.SchemaModel<{
|
|
236
236
|
path: {
|
|
237
|
-
type:
|
|
237
|
+
type: _contractspec_lib_schema53.FieldType<string, string>;
|
|
238
238
|
isOptional: false;
|
|
239
239
|
};
|
|
240
|
-
}>,
|
|
240
|
+
}>, _contractspec_lib_schema53.SchemaModel<{}>, undefined>;
|
|
241
241
|
//#endregion
|
|
242
242
|
export { DeleteConversationContract, GetConversationContract, ListConversationsContract, ListProvidersContract, ScanContextContract, SendMessageContract, StreamMessageContract };
|
|
243
243
|
//# sourceMappingURL=ai-chat.operations.d.ts.map
|
package/dist/events.d.ts
CHANGED
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema119 from "@contractspec/lib.schema";
|
|
2
|
+
import * as _contractspec_lib_contracts6 from "@contractspec/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/events.d.ts
|
|
5
|
-
declare const MessageSentEvent:
|
|
5
|
+
declare const MessageSentEvent: _contractspec_lib_contracts6.EventSpec<_contractspec_lib_schema119.SchemaModel<{
|
|
6
6
|
id: {
|
|
7
|
-
type:
|
|
7
|
+
type: _contractspec_lib_schema119.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
role: {
|
|
11
|
-
type:
|
|
11
|
+
type: _contractspec_lib_schema119.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
content: {
|
|
15
|
-
type:
|
|
15
|
+
type: _contractspec_lib_schema119.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
status: {
|
|
19
|
-
type:
|
|
19
|
+
type: _contractspec_lib_schema119.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
createdAt: {
|
|
23
|
-
type:
|
|
23
|
+
type: _contractspec_lib_schema119.FieldType<Date, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
}>>;
|
|
27
|
-
declare const MessageReceivedEvent:
|
|
27
|
+
declare const MessageReceivedEvent: _contractspec_lib_contracts6.EventSpec<_contractspec_lib_schema119.SchemaModel<{
|
|
28
28
|
id: {
|
|
29
|
-
type:
|
|
29
|
+
type: _contractspec_lib_schema119.FieldType<string, string>;
|
|
30
30
|
isOptional: false;
|
|
31
31
|
};
|
|
32
32
|
role: {
|
|
33
|
-
type:
|
|
33
|
+
type: _contractspec_lib_schema119.FieldType<string, string>;
|
|
34
34
|
isOptional: false;
|
|
35
35
|
};
|
|
36
36
|
content: {
|
|
37
|
-
type:
|
|
37
|
+
type: _contractspec_lib_schema119.FieldType<string, string>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
status: {
|
|
41
|
-
type:
|
|
41
|
+
type: _contractspec_lib_schema119.FieldType<string, string>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
createdAt: {
|
|
45
|
-
type:
|
|
45
|
+
type: _contractspec_lib_schema119.FieldType<Date, string>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
}>>;
|
|
49
|
-
declare const ConversationCreatedEvent:
|
|
49
|
+
declare const ConversationCreatedEvent: _contractspec_lib_contracts6.EventSpec<_contractspec_lib_schema119.SchemaModel<{
|
|
50
50
|
id: {
|
|
51
|
-
type:
|
|
51
|
+
type: _contractspec_lib_schema119.FieldType<string, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
title: {
|
|
55
|
-
type:
|
|
55
|
+
type: _contractspec_lib_schema119.FieldType<string, string>;
|
|
56
56
|
isOptional: true;
|
|
57
57
|
};
|
|
58
58
|
status: {
|
|
59
|
-
type:
|
|
59
|
+
type: _contractspec_lib_schema119.FieldType<string, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
messages: {
|
|
63
|
-
type:
|
|
63
|
+
type: _contractspec_lib_schema119.SchemaModel<{
|
|
64
64
|
id: {
|
|
65
|
-
type:
|
|
65
|
+
type: _contractspec_lib_schema119.FieldType<string, string>;
|
|
66
66
|
isOptional: false;
|
|
67
67
|
};
|
|
68
68
|
role: {
|
|
69
|
-
type:
|
|
69
|
+
type: _contractspec_lib_schema119.FieldType<string, string>;
|
|
70
70
|
isOptional: false;
|
|
71
71
|
};
|
|
72
72
|
content: {
|
|
73
|
-
type:
|
|
73
|
+
type: _contractspec_lib_schema119.FieldType<string, string>;
|
|
74
74
|
isOptional: false;
|
|
75
75
|
};
|
|
76
76
|
status: {
|
|
77
|
-
type:
|
|
77
|
+
type: _contractspec_lib_schema119.FieldType<string, string>;
|
|
78
78
|
isOptional: false;
|
|
79
79
|
};
|
|
80
80
|
createdAt: {
|
|
81
|
-
type:
|
|
81
|
+
type: _contractspec_lib_schema119.FieldType<Date, string>;
|
|
82
82
|
isOptional: false;
|
|
83
83
|
};
|
|
84
84
|
}>;
|
|
@@ -86,27 +86,27 @@ declare const ConversationCreatedEvent: _contractspec_lib_contracts0.EventSpec<_
|
|
|
86
86
|
isOptional: false;
|
|
87
87
|
};
|
|
88
88
|
provider: {
|
|
89
|
-
type:
|
|
89
|
+
type: _contractspec_lib_schema119.FieldType<string, string>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
model: {
|
|
93
|
-
type:
|
|
93
|
+
type: _contractspec_lib_schema119.FieldType<string, string>;
|
|
94
94
|
isOptional: false;
|
|
95
95
|
};
|
|
96
96
|
}>>;
|
|
97
|
-
declare const ConversationDeletedEvent:
|
|
97
|
+
declare const ConversationDeletedEvent: _contractspec_lib_contracts6.EventSpec<_contractspec_lib_schema119.SchemaModel<{
|
|
98
98
|
id: {
|
|
99
|
-
type:
|
|
99
|
+
type: _contractspec_lib_schema119.FieldType<string, string>;
|
|
100
100
|
isOptional: false;
|
|
101
101
|
};
|
|
102
102
|
}>>;
|
|
103
|
-
declare const ChatErrorEvent:
|
|
103
|
+
declare const ChatErrorEvent: _contractspec_lib_contracts6.EventSpec<_contractspec_lib_schema119.SchemaModel<{
|
|
104
104
|
code: {
|
|
105
|
-
type:
|
|
105
|
+
type: _contractspec_lib_schema119.FieldType<string, string>;
|
|
106
106
|
isOptional: false;
|
|
107
107
|
};
|
|
108
108
|
message: {
|
|
109
|
-
type:
|
|
109
|
+
type: _contractspec_lib_schema119.FieldType<string, string>;
|
|
110
110
|
isOptional: false;
|
|
111
111
|
};
|
|
112
112
|
}>>;
|
package/dist/events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","names":[],"sources":["../src/events.ts"],"sourcesContent":[],"mappings":";;;;cAIa,kBAAgB,4BAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"events.d.ts","names":[],"sources":["../src/events.ts"],"sourcesContent":[],"mappings":";;;;cAIa,kBAAgB,4BAAA,CAAA,sCAAA;;UAU3B,2BAAA,CAAA;;EAVW,CAAA;EAUX,IAAA,EAAA;;;;;;;EAV2B,CAAA;EAAA,MAAA,EAAA;IAYhB,IAAA,uCAUX,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;AAV+B,cAApB,oBAAoB,EAAA,4BAAA,CAAA,SAAA,6BAAA,WAAA,CAAA;EAAA,EAAA,EAAA;IAYpB,IAAA,EAFX,2BAAA,CAAA,SAYA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;;;;;;;EAVmC,CAAA;EAAA,SAAA,EAAA;IAYxB,IAAA,uCAeX,KAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;CAfmC,CAAA,CAAA;AAAA,cAZxB,wBAYwB,EAZA,4BAAA,CAAA,SAYA,6BAZA,WAYA,CAAA;EAiBxB,EAAA,EAAA;IAgBX,IAAA,EAnCA,2BAAA,CAAA,SAmCA,CAAA,MAAA,EAAA,MAAA,CAAA;;;EAhByB,KAAA,EAAA;IAAA,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAjBd,0BAAwB,4BAAA,CAAA,sCAAA;;UAenC,2BAAA,CAAA;;;;cAEW,gBAAc,4BAAA,CAAA,sCAAA;;UAgBzB,2BAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChatAttachment } from "../../core/message-types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/presentation/components/ChatInput.d.ts
|
|
5
5
|
interface ChatInputProps {
|
|
@@ -29,7 +29,7 @@ declare function ChatInput({
|
|
|
29
29
|
className,
|
|
30
30
|
showAttachments,
|
|
31
31
|
maxAttachments
|
|
32
|
-
}: ChatInputProps):
|
|
32
|
+
}: ChatInputProps): react_jsx_runtime1.JSX.Element;
|
|
33
33
|
//#endregion
|
|
34
34
|
export { ChatInput };
|
|
35
35
|
//# sourceMappingURL=ChatInput.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChatMessage as ChatMessage$1 } from "../../core/message-types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/presentation/components/ChatMessage.d.ts
|
|
5
5
|
interface ChatMessageProps {
|
|
@@ -18,7 +18,7 @@ declare function ChatMessage({
|
|
|
18
18
|
className,
|
|
19
19
|
showCopy,
|
|
20
20
|
showAvatar
|
|
21
|
-
}: ChatMessageProps):
|
|
21
|
+
}: ChatMessageProps): react_jsx_runtime0.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { ChatMessage };
|
|
24
24
|
//# sourceMappingURL=ChatMessage.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/presentation/components/CodePreview.d.ts
|
|
4
4
|
interface CodePreviewProps {
|
|
@@ -34,7 +34,7 @@ declare function CodePreview({
|
|
|
34
34
|
onExecute,
|
|
35
35
|
showDownload,
|
|
36
36
|
maxHeight
|
|
37
|
-
}: CodePreviewProps):
|
|
37
|
+
}: CodePreviewProps): react_jsx_runtime4.JSX.Element;
|
|
38
38
|
//#endregion
|
|
39
39
|
export { CodePreview };
|
|
40
40
|
//# sourceMappingURL=CodePreview.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { WorkspaceSummary } from "../../context/workspace-context.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/presentation/components/ContextIndicator.d.ts
|
|
5
5
|
interface ContextIndicatorProps {
|
|
@@ -20,7 +20,7 @@ declare function ContextIndicator({
|
|
|
20
20
|
active,
|
|
21
21
|
className,
|
|
22
22
|
showDetails
|
|
23
|
-
}: ContextIndicatorProps):
|
|
23
|
+
}: ContextIndicatorProps): react_jsx_runtime3.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { ContextIndicator };
|
|
26
26
|
//# sourceMappingURL=ContextIndicator.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
2
2
|
import { ProviderMode, ProviderName } from "@contractspec/lib.ai-providers";
|
|
3
3
|
|
|
4
4
|
//#region src/presentation/components/ModelPicker.d.ts
|
|
@@ -33,7 +33,7 @@ declare function ModelPicker({
|
|
|
33
33
|
availableProviders,
|
|
34
34
|
className,
|
|
35
35
|
compact
|
|
36
|
-
}: ModelPickerProps):
|
|
36
|
+
}: ModelPickerProps): react_jsx_runtime2.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { ModelPicker };
|
|
39
39
|
//# sourceMappingURL=ModelPicker.d.ts.map
|
package/dist/schema.d.ts
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/schema.d.ts
|
|
4
|
-
declare const ChatMessageModel:
|
|
4
|
+
declare const ChatMessageModel: _contractspec_lib_schema0.SchemaModel<{
|
|
5
5
|
id: {
|
|
6
|
-
type:
|
|
6
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
7
7
|
isOptional: false;
|
|
8
8
|
};
|
|
9
9
|
role: {
|
|
10
|
-
type:
|
|
10
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
content: {
|
|
14
|
-
type:
|
|
14
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
};
|
|
17
17
|
status: {
|
|
18
|
-
type:
|
|
18
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
19
19
|
isOptional: false;
|
|
20
20
|
};
|
|
21
21
|
createdAt: {
|
|
22
|
-
type:
|
|
22
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
23
23
|
isOptional: false;
|
|
24
24
|
};
|
|
25
25
|
}>;
|
|
26
|
-
declare const ChatConversationModel:
|
|
26
|
+
declare const ChatConversationModel: _contractspec_lib_schema0.SchemaModel<{
|
|
27
27
|
id: {
|
|
28
|
-
type:
|
|
28
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
29
29
|
isOptional: false;
|
|
30
30
|
};
|
|
31
31
|
title: {
|
|
32
|
-
type:
|
|
32
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
33
33
|
isOptional: true;
|
|
34
34
|
};
|
|
35
35
|
status: {
|
|
36
|
-
type:
|
|
36
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
37
37
|
isOptional: false;
|
|
38
38
|
};
|
|
39
39
|
messages: {
|
|
40
|
-
type:
|
|
40
|
+
type: _contractspec_lib_schema0.SchemaModel<{
|
|
41
41
|
id: {
|
|
42
|
-
type:
|
|
42
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
43
43
|
isOptional: false;
|
|
44
44
|
};
|
|
45
45
|
role: {
|
|
46
|
-
type:
|
|
46
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
47
47
|
isOptional: false;
|
|
48
48
|
};
|
|
49
49
|
content: {
|
|
50
|
-
type:
|
|
50
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
51
51
|
isOptional: false;
|
|
52
52
|
};
|
|
53
53
|
status: {
|
|
54
|
-
type:
|
|
54
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
55
55
|
isOptional: false;
|
|
56
56
|
};
|
|
57
57
|
createdAt: {
|
|
58
|
-
type:
|
|
58
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
59
59
|
isOptional: false;
|
|
60
60
|
};
|
|
61
61
|
}>;
|
|
@@ -63,88 +63,88 @@ declare const ChatConversationModel: _contractspec_lib_schema28.SchemaModel<{
|
|
|
63
63
|
isOptional: false;
|
|
64
64
|
};
|
|
65
65
|
provider: {
|
|
66
|
-
type:
|
|
66
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
67
67
|
isOptional: false;
|
|
68
68
|
};
|
|
69
69
|
model: {
|
|
70
|
-
type:
|
|
70
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
71
71
|
isOptional: false;
|
|
72
72
|
};
|
|
73
73
|
}>;
|
|
74
|
-
declare const SendMessageInputModel:
|
|
74
|
+
declare const SendMessageInputModel: _contractspec_lib_schema0.SchemaModel<{
|
|
75
75
|
conversationId: {
|
|
76
|
-
type:
|
|
76
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
77
77
|
isOptional: true;
|
|
78
78
|
};
|
|
79
79
|
content: {
|
|
80
|
-
type:
|
|
80
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
81
81
|
isOptional: false;
|
|
82
82
|
};
|
|
83
83
|
stream: {
|
|
84
|
-
type:
|
|
84
|
+
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
85
85
|
isOptional: true;
|
|
86
86
|
};
|
|
87
87
|
}>;
|
|
88
|
-
declare const SendMessageOutputModel:
|
|
88
|
+
declare const SendMessageOutputModel: _contractspec_lib_schema0.SchemaModel<{
|
|
89
89
|
message: {
|
|
90
|
-
type:
|
|
90
|
+
type: _contractspec_lib_schema0.SchemaModel<{
|
|
91
91
|
id: {
|
|
92
|
-
type:
|
|
92
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
93
93
|
isOptional: false;
|
|
94
94
|
};
|
|
95
95
|
role: {
|
|
96
|
-
type:
|
|
96
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
97
97
|
isOptional: false;
|
|
98
98
|
};
|
|
99
99
|
content: {
|
|
100
|
-
type:
|
|
100
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
101
101
|
isOptional: false;
|
|
102
102
|
};
|
|
103
103
|
status: {
|
|
104
|
-
type:
|
|
104
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
105
105
|
isOptional: false;
|
|
106
106
|
};
|
|
107
107
|
createdAt: {
|
|
108
|
-
type:
|
|
108
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
109
109
|
isOptional: false;
|
|
110
110
|
};
|
|
111
111
|
}>;
|
|
112
112
|
isOptional: false;
|
|
113
113
|
};
|
|
114
114
|
conversation: {
|
|
115
|
-
type:
|
|
115
|
+
type: _contractspec_lib_schema0.SchemaModel<{
|
|
116
116
|
id: {
|
|
117
|
-
type:
|
|
117
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
118
118
|
isOptional: false;
|
|
119
119
|
};
|
|
120
120
|
title: {
|
|
121
|
-
type:
|
|
121
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
122
122
|
isOptional: true;
|
|
123
123
|
};
|
|
124
124
|
status: {
|
|
125
|
-
type:
|
|
125
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
126
126
|
isOptional: false;
|
|
127
127
|
};
|
|
128
128
|
messages: {
|
|
129
|
-
type:
|
|
129
|
+
type: _contractspec_lib_schema0.SchemaModel<{
|
|
130
130
|
id: {
|
|
131
|
-
type:
|
|
131
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
132
132
|
isOptional: false;
|
|
133
133
|
};
|
|
134
134
|
role: {
|
|
135
|
-
type:
|
|
135
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
136
136
|
isOptional: false;
|
|
137
137
|
};
|
|
138
138
|
content: {
|
|
139
|
-
type:
|
|
139
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
140
140
|
isOptional: false;
|
|
141
141
|
};
|
|
142
142
|
status: {
|
|
143
|
-
type:
|
|
143
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
144
144
|
isOptional: false;
|
|
145
145
|
};
|
|
146
146
|
createdAt: {
|
|
147
|
-
type:
|
|
147
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
148
148
|
isOptional: false;
|
|
149
149
|
};
|
|
150
150
|
}>;
|
|
@@ -152,52 +152,52 @@ declare const SendMessageOutputModel: _contractspec_lib_schema28.SchemaModel<{
|
|
|
152
152
|
isOptional: false;
|
|
153
153
|
};
|
|
154
154
|
provider: {
|
|
155
|
-
type:
|
|
155
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
156
156
|
isOptional: false;
|
|
157
157
|
};
|
|
158
158
|
model: {
|
|
159
|
-
type:
|
|
159
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
160
160
|
isOptional: false;
|
|
161
161
|
};
|
|
162
162
|
}>;
|
|
163
163
|
isOptional: false;
|
|
164
164
|
};
|
|
165
165
|
}>;
|
|
166
|
-
declare const ListConversationsOutputModel:
|
|
166
|
+
declare const ListConversationsOutputModel: _contractspec_lib_schema0.SchemaModel<{
|
|
167
167
|
conversations: {
|
|
168
|
-
type:
|
|
168
|
+
type: _contractspec_lib_schema0.SchemaModel<{
|
|
169
169
|
id: {
|
|
170
|
-
type:
|
|
170
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
171
171
|
isOptional: false;
|
|
172
172
|
};
|
|
173
173
|
title: {
|
|
174
|
-
type:
|
|
174
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
175
175
|
isOptional: true;
|
|
176
176
|
};
|
|
177
177
|
status: {
|
|
178
|
-
type:
|
|
178
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
179
179
|
isOptional: false;
|
|
180
180
|
};
|
|
181
181
|
messages: {
|
|
182
|
-
type:
|
|
182
|
+
type: _contractspec_lib_schema0.SchemaModel<{
|
|
183
183
|
id: {
|
|
184
|
-
type:
|
|
184
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
185
185
|
isOptional: false;
|
|
186
186
|
};
|
|
187
187
|
role: {
|
|
188
|
-
type:
|
|
188
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
189
189
|
isOptional: false;
|
|
190
190
|
};
|
|
191
191
|
content: {
|
|
192
|
-
type:
|
|
192
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
193
193
|
isOptional: false;
|
|
194
194
|
};
|
|
195
195
|
status: {
|
|
196
|
-
type:
|
|
196
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
197
197
|
isOptional: false;
|
|
198
198
|
};
|
|
199
199
|
createdAt: {
|
|
200
|
-
type:
|
|
200
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
201
201
|
isOptional: false;
|
|
202
202
|
};
|
|
203
203
|
}>;
|
|
@@ -205,11 +205,11 @@ declare const ListConversationsOutputModel: _contractspec_lib_schema28.SchemaMod
|
|
|
205
205
|
isOptional: false;
|
|
206
206
|
};
|
|
207
207
|
provider: {
|
|
208
|
-
type:
|
|
208
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
209
209
|
isOptional: false;
|
|
210
210
|
};
|
|
211
211
|
model: {
|
|
212
|
-
type:
|
|
212
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
213
213
|
isOptional: false;
|
|
214
214
|
};
|
|
215
215
|
}>;
|
package/dist/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","names":[],"sources":["../src/schema.ts"],"sourcesContent":[],"mappings":";;;cAEa,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","names":[],"sources":["../src/schema.ts"],"sourcesContent":[],"mappings":";;;cAEa,4CAAgB;;UAS3B,yBAAA,CAAA;IATW,UAAA,EAAA,KASX;EAAA,CAAA;;;;;;6CAT2B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAWhB,CAAA;EAUX,MAAA,EAAA;;;;;;;;;cAVW,iDAAqB;;UAUhC,yBAAA,CAAA;;EAVgC,CAAA;EAYrB,KAAA,EAAA;IAUX,IAAA,qCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;IAVgC,IAAA,qCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAYrB,UAAA,EAAA,KAAA;EAMX,CAAA;;;;;;;;;;;;;;;;;;;;iDANiC,KAAA,EAAA,MAAA,CAAA;QAAA,UAAA,EAAA,KAAA;MAQtB,CAAA;IASX,CAAA,CAAA;;;;;;;;;;;;;cA7BW,qBAoB4B,4BApBP,WAoBO,CAAA;EAAA,cAAA,EAAA;UAVvC,yBAAA,CAAA;;;;;;;;;;;;cAEW,kDAAsB;;;;cAMjC,yBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAEW,wDAA4B;;;;cASvC,yBAAA,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/module.ai-chat",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.46.1",
|
|
4
4
|
"description": "AI chat interface module",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contractspec",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"test": "bun test"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@contractspec/lib.ai-agent": "1.
|
|
35
|
-
"@contractspec/lib.ai-providers": "1.
|
|
36
|
-
"@contractspec/lib.contracts": "1.
|
|
37
|
-
"@contractspec/lib.schema": "1.
|
|
38
|
-
"@contractspec/lib.metering": "1.
|
|
39
|
-
"@contractspec/lib.cost-tracking": "1.
|
|
40
|
-
"@contractspec/lib.design-system": "1.
|
|
41
|
-
"@contractspec/lib.ui-kit-web": "1.
|
|
34
|
+
"@contractspec/lib.ai-agent": "1.46.1",
|
|
35
|
+
"@contractspec/lib.ai-providers": "1.46.1",
|
|
36
|
+
"@contractspec/lib.contracts": "1.46.1",
|
|
37
|
+
"@contractspec/lib.schema": "1.46.1",
|
|
38
|
+
"@contractspec/lib.metering": "1.46.1",
|
|
39
|
+
"@contractspec/lib.cost-tracking": "1.46.1",
|
|
40
|
+
"@contractspec/lib.design-system": "1.46.1",
|
|
41
|
+
"@contractspec/lib.ui-kit-web": "1.46.1",
|
|
42
42
|
"@ai-sdk/react": "3.0.3",
|
|
43
43
|
"ai": "6.0.3",
|
|
44
44
|
"lucide-react": "^0.562.0",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"zod": "^4.1.13"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@contractspec/tool.tsdown": "1.
|
|
50
|
-
"@contractspec/tool.typescript": "1.
|
|
49
|
+
"@contractspec/tool.tsdown": "1.46.1",
|
|
50
|
+
"@contractspec/tool.typescript": "1.46.1",
|
|
51
51
|
"@types/react": "^19.0.14",
|
|
52
52
|
"tsdown": "^0.18.3",
|
|
53
53
|
"typescript": "^5.9.3"
|