@contractspec/module.ai-chat 1.46.1 → 1.48.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.
- package/dist/ai-chat.feature.d.ts +2 -2
- package/dist/ai-chat.feature.d.ts.map +1 -1
- package/dist/ai-chat.feature.js +9 -2
- package/dist/ai-chat.feature.js.map +1 -1
- package/dist/ai-chat.operations.d.ts +66 -66
- package/dist/ai-chat.operations.js +1 -1
- package/dist/context/context-builder.js.map +1 -1
- package/dist/context/file-operations.js.map +1 -1
- package/dist/context/workspace-context.js.map +1 -1
- package/dist/core/chat-service.js.map +1 -1
- package/dist/core/conversation-store.js.map +1 -1
- package/dist/events.d.ts +31 -31
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +1 -1
- package/dist/presentation/components/ChatInput.d.ts +2 -2
- package/dist/presentation/components/ChatInput.js.map +1 -1
- package/dist/presentation/components/ChatMessage.d.ts +2 -2
- package/dist/presentation/components/ChatMessage.js.map +1 -1
- package/dist/presentation/components/CodePreview.d.ts +2 -2
- package/dist/presentation/components/CodePreview.js.map +1 -1
- package/dist/presentation/components/ContextIndicator.d.ts +2 -2
- package/dist/presentation/components/ModelPicker.d.ts +2 -2
- package/dist/presentation/components/ModelPicker.js.map +1 -1
- package/dist/presentation/hooks/useChat.js.map +1 -1
- package/dist/schema.d.ts +55 -55
- package/dist/schema.d.ts.map +1 -1
- package/package.json +16 -18
package/dist/schema.d.ts
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema28 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/schema.d.ts
|
|
4
|
-
declare const ChatMessageModel:
|
|
4
|
+
declare const ChatMessageModel: _contractspec_lib_schema28.SchemaModel<{
|
|
5
5
|
id: {
|
|
6
|
-
type:
|
|
6
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
7
7
|
isOptional: false;
|
|
8
8
|
};
|
|
9
9
|
role: {
|
|
10
|
-
type:
|
|
10
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
content: {
|
|
14
|
-
type:
|
|
14
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
};
|
|
17
17
|
status: {
|
|
18
|
-
type:
|
|
18
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
19
19
|
isOptional: false;
|
|
20
20
|
};
|
|
21
21
|
createdAt: {
|
|
22
|
-
type:
|
|
22
|
+
type: _contractspec_lib_schema28.FieldType<Date, string>;
|
|
23
23
|
isOptional: false;
|
|
24
24
|
};
|
|
25
25
|
}>;
|
|
26
|
-
declare const ChatConversationModel:
|
|
26
|
+
declare const ChatConversationModel: _contractspec_lib_schema28.SchemaModel<{
|
|
27
27
|
id: {
|
|
28
|
-
type:
|
|
28
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
29
29
|
isOptional: false;
|
|
30
30
|
};
|
|
31
31
|
title: {
|
|
32
|
-
type:
|
|
32
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
33
33
|
isOptional: true;
|
|
34
34
|
};
|
|
35
35
|
status: {
|
|
36
|
-
type:
|
|
36
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
37
37
|
isOptional: false;
|
|
38
38
|
};
|
|
39
39
|
messages: {
|
|
40
|
-
type:
|
|
40
|
+
type: _contractspec_lib_schema28.SchemaModel<{
|
|
41
41
|
id: {
|
|
42
|
-
type:
|
|
42
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
43
43
|
isOptional: false;
|
|
44
44
|
};
|
|
45
45
|
role: {
|
|
46
|
-
type:
|
|
46
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
47
47
|
isOptional: false;
|
|
48
48
|
};
|
|
49
49
|
content: {
|
|
50
|
-
type:
|
|
50
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
51
51
|
isOptional: false;
|
|
52
52
|
};
|
|
53
53
|
status: {
|
|
54
|
-
type:
|
|
54
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
55
55
|
isOptional: false;
|
|
56
56
|
};
|
|
57
57
|
createdAt: {
|
|
58
|
-
type:
|
|
58
|
+
type: _contractspec_lib_schema28.FieldType<Date, string>;
|
|
59
59
|
isOptional: false;
|
|
60
60
|
};
|
|
61
61
|
}>;
|
|
@@ -63,88 +63,88 @@ declare const ChatConversationModel: _contractspec_lib_schema0.SchemaModel<{
|
|
|
63
63
|
isOptional: false;
|
|
64
64
|
};
|
|
65
65
|
provider: {
|
|
66
|
-
type:
|
|
66
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
67
67
|
isOptional: false;
|
|
68
68
|
};
|
|
69
69
|
model: {
|
|
70
|
-
type:
|
|
70
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
71
71
|
isOptional: false;
|
|
72
72
|
};
|
|
73
73
|
}>;
|
|
74
|
-
declare const SendMessageInputModel:
|
|
74
|
+
declare const SendMessageInputModel: _contractspec_lib_schema28.SchemaModel<{
|
|
75
75
|
conversationId: {
|
|
76
|
-
type:
|
|
76
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
77
77
|
isOptional: true;
|
|
78
78
|
};
|
|
79
79
|
content: {
|
|
80
|
-
type:
|
|
80
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
81
81
|
isOptional: false;
|
|
82
82
|
};
|
|
83
83
|
stream: {
|
|
84
|
-
type:
|
|
84
|
+
type: _contractspec_lib_schema28.FieldType<boolean, boolean>;
|
|
85
85
|
isOptional: true;
|
|
86
86
|
};
|
|
87
87
|
}>;
|
|
88
|
-
declare const SendMessageOutputModel:
|
|
88
|
+
declare const SendMessageOutputModel: _contractspec_lib_schema28.SchemaModel<{
|
|
89
89
|
message: {
|
|
90
|
-
type:
|
|
90
|
+
type: _contractspec_lib_schema28.SchemaModel<{
|
|
91
91
|
id: {
|
|
92
|
-
type:
|
|
92
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
93
93
|
isOptional: false;
|
|
94
94
|
};
|
|
95
95
|
role: {
|
|
96
|
-
type:
|
|
96
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
97
97
|
isOptional: false;
|
|
98
98
|
};
|
|
99
99
|
content: {
|
|
100
|
-
type:
|
|
100
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
101
101
|
isOptional: false;
|
|
102
102
|
};
|
|
103
103
|
status: {
|
|
104
|
-
type:
|
|
104
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
105
105
|
isOptional: false;
|
|
106
106
|
};
|
|
107
107
|
createdAt: {
|
|
108
|
-
type:
|
|
108
|
+
type: _contractspec_lib_schema28.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_schema28.SchemaModel<{
|
|
116
116
|
id: {
|
|
117
|
-
type:
|
|
117
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
118
118
|
isOptional: false;
|
|
119
119
|
};
|
|
120
120
|
title: {
|
|
121
|
-
type:
|
|
121
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
122
122
|
isOptional: true;
|
|
123
123
|
};
|
|
124
124
|
status: {
|
|
125
|
-
type:
|
|
125
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
126
126
|
isOptional: false;
|
|
127
127
|
};
|
|
128
128
|
messages: {
|
|
129
|
-
type:
|
|
129
|
+
type: _contractspec_lib_schema28.SchemaModel<{
|
|
130
130
|
id: {
|
|
131
|
-
type:
|
|
131
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
132
132
|
isOptional: false;
|
|
133
133
|
};
|
|
134
134
|
role: {
|
|
135
|
-
type:
|
|
135
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
136
136
|
isOptional: false;
|
|
137
137
|
};
|
|
138
138
|
content: {
|
|
139
|
-
type:
|
|
139
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
140
140
|
isOptional: false;
|
|
141
141
|
};
|
|
142
142
|
status: {
|
|
143
|
-
type:
|
|
143
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
144
144
|
isOptional: false;
|
|
145
145
|
};
|
|
146
146
|
createdAt: {
|
|
147
|
-
type:
|
|
147
|
+
type: _contractspec_lib_schema28.FieldType<Date, string>;
|
|
148
148
|
isOptional: false;
|
|
149
149
|
};
|
|
150
150
|
}>;
|
|
@@ -152,52 +152,52 @@ declare const SendMessageOutputModel: _contractspec_lib_schema0.SchemaModel<{
|
|
|
152
152
|
isOptional: false;
|
|
153
153
|
};
|
|
154
154
|
provider: {
|
|
155
|
-
type:
|
|
155
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
156
156
|
isOptional: false;
|
|
157
157
|
};
|
|
158
158
|
model: {
|
|
159
|
-
type:
|
|
159
|
+
type: _contractspec_lib_schema28.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_schema28.SchemaModel<{
|
|
167
167
|
conversations: {
|
|
168
|
-
type:
|
|
168
|
+
type: _contractspec_lib_schema28.SchemaModel<{
|
|
169
169
|
id: {
|
|
170
|
-
type:
|
|
170
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
171
171
|
isOptional: false;
|
|
172
172
|
};
|
|
173
173
|
title: {
|
|
174
|
-
type:
|
|
174
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
175
175
|
isOptional: true;
|
|
176
176
|
};
|
|
177
177
|
status: {
|
|
178
|
-
type:
|
|
178
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
179
179
|
isOptional: false;
|
|
180
180
|
};
|
|
181
181
|
messages: {
|
|
182
|
-
type:
|
|
182
|
+
type: _contractspec_lib_schema28.SchemaModel<{
|
|
183
183
|
id: {
|
|
184
|
-
type:
|
|
184
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
185
185
|
isOptional: false;
|
|
186
186
|
};
|
|
187
187
|
role: {
|
|
188
|
-
type:
|
|
188
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
189
189
|
isOptional: false;
|
|
190
190
|
};
|
|
191
191
|
content: {
|
|
192
|
-
type:
|
|
192
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
193
193
|
isOptional: false;
|
|
194
194
|
};
|
|
195
195
|
status: {
|
|
196
|
-
type:
|
|
196
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
197
197
|
isOptional: false;
|
|
198
198
|
};
|
|
199
199
|
createdAt: {
|
|
200
|
-
type:
|
|
200
|
+
type: _contractspec_lib_schema28.FieldType<Date, string>;
|
|
201
201
|
isOptional: false;
|
|
202
202
|
};
|
|
203
203
|
}>;
|
|
@@ -205,11 +205,11 @@ declare const ListConversationsOutputModel: _contractspec_lib_schema0.SchemaMode
|
|
|
205
205
|
isOptional: false;
|
|
206
206
|
};
|
|
207
207
|
provider: {
|
|
208
|
-
type:
|
|
208
|
+
type: _contractspec_lib_schema28.FieldType<string, string>;
|
|
209
209
|
isOptional: false;
|
|
210
210
|
};
|
|
211
211
|
model: {
|
|
212
|
-
type:
|
|
212
|
+
type: _contractspec_lib_schema28.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,6CAAgB;;UAS3B,0BAAA,CAAA;IATW,UAAA,EAAA,KASX;EAAA,CAAA;;;;;;8CAT2B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAWhB,CAAA;EAUX,MAAA,EAAA;;;;;;;;;cAVW,kDAAqB;;UAUhC,0BAAA,CAAA;;EAVgC,CAAA;EAYrB,KAAA,EAAA;IAUX,IAAA,sCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;IAVgC,IAAA,sCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAYrB,UAAA,EAAA,KAAA;EAMX,CAAA;;;;;;;;;;;;;;;;;;;;kDANiC,KAAA,EAAA,MAAA,CAAA;QAAA,UAAA,EAAA,KAAA;MAQtB,CAAA;IASX,CAAA,CAAA;;;;;;;;;;;;;cA7BW,qBAoB4B,6BApBP,WAoBO,CAAA;EAAA,cAAA,EAAA;UAVvC,0BAAA,CAAA;;;;;;;;;;;;cAEW,mDAAsB;;;;cAMjC,0BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAEW,yDAA4B;;;;cASvC,0BAAA,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/module.ai-chat",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.48.0",
|
|
4
4
|
"description": "AI chat interface module",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contractspec",
|
|
@@ -10,8 +10,6 @@
|
|
|
10
10
|
"typescript"
|
|
11
11
|
],
|
|
12
12
|
"type": "module",
|
|
13
|
-
"main": "./dist/index.js",
|
|
14
|
-
"module": "./dist/index.js",
|
|
15
13
|
"types": "./dist/index.d.ts",
|
|
16
14
|
"files": [
|
|
17
15
|
"dist",
|
|
@@ -31,25 +29,25 @@
|
|
|
31
29
|
"test": "bun test"
|
|
32
30
|
},
|
|
33
31
|
"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.
|
|
42
|
-
"@ai-sdk/react": "3.0.
|
|
43
|
-
"ai": "6.0.
|
|
32
|
+
"@contractspec/lib.ai-agent": "1.48.0",
|
|
33
|
+
"@contractspec/lib.ai-providers": "1.48.0",
|
|
34
|
+
"@contractspec/lib.contracts": "1.48.0",
|
|
35
|
+
"@contractspec/lib.schema": "1.48.0",
|
|
36
|
+
"@contractspec/lib.metering": "1.48.0",
|
|
37
|
+
"@contractspec/lib.cost-tracking": "1.48.0",
|
|
38
|
+
"@contractspec/lib.design-system": "1.48.0",
|
|
39
|
+
"@contractspec/lib.ui-kit-web": "1.48.0",
|
|
40
|
+
"@ai-sdk/react": "3.0.31",
|
|
41
|
+
"ai": "6.0.29",
|
|
44
42
|
"lucide-react": "^0.562.0",
|
|
45
43
|
"react": "19.2.3",
|
|
46
|
-
"zod": "^4.
|
|
44
|
+
"zod": "^4.3.5"
|
|
47
45
|
},
|
|
48
46
|
"devDependencies": {
|
|
49
|
-
"@contractspec/tool.tsdown": "1.
|
|
50
|
-
"@contractspec/tool.typescript": "1.
|
|
51
|
-
"@types/react": "^19.
|
|
52
|
-
"tsdown": "^0.
|
|
47
|
+
"@contractspec/tool.tsdown": "1.48.0",
|
|
48
|
+
"@contractspec/tool.typescript": "1.48.0",
|
|
49
|
+
"@types/react": "^19.2.8",
|
|
50
|
+
"tsdown": "^0.19.0",
|
|
53
51
|
"typescript": "^5.9.3"
|
|
54
52
|
},
|
|
55
53
|
"peerDependencies": {
|