@open-mercato/ui 0.6.3-develop.3574.1.f3c5dcf345 → 0.6.3-develop.3576.1.51c9149577
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-mercato/ui",
|
|
3
|
-
"version": "0.6.3-develop.
|
|
3
|
+
"version": "0.6.3-develop.3576.1.51c9149577",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -141,13 +141,13 @@
|
|
|
141
141
|
"remark-gfm": "^4.0.1"
|
|
142
142
|
},
|
|
143
143
|
"peerDependencies": {
|
|
144
|
-
"@open-mercato/shared": "0.6.3-develop.
|
|
144
|
+
"@open-mercato/shared": "0.6.3-develop.3576.1.51c9149577",
|
|
145
145
|
"react": ">=18.0.0",
|
|
146
146
|
"react-dom": ">=18.0.0",
|
|
147
147
|
"react-is": ">=18.0.0"
|
|
148
148
|
},
|
|
149
149
|
"devDependencies": {
|
|
150
|
-
"@open-mercato/shared": "0.6.3-develop.
|
|
150
|
+
"@open-mercato/shared": "0.6.3-develop.3576.1.51c9149577",
|
|
151
151
|
"@testing-library/dom": "^10.4.1",
|
|
152
152
|
"@testing-library/jest-dom": "^6.9.1",
|
|
153
153
|
"@testing-library/react": "^16.3.1",
|
|
@@ -185,6 +185,19 @@ function createErrorResponse(status: number, payload: Record<string, unknown>):
|
|
|
185
185
|
describe('<AiChat>', () => {
|
|
186
186
|
beforeEach(() => {
|
|
187
187
|
jest.clearAllMocks()
|
|
188
|
+
const apiCallMock = apiCall as unknown as jest.Mock
|
|
189
|
+
apiCallMock.mockReset()
|
|
190
|
+
apiCallMock.mockResolvedValue({
|
|
191
|
+
ok: true,
|
|
192
|
+
status: 200,
|
|
193
|
+
result: {
|
|
194
|
+
agentId: 'customers.account_assistant',
|
|
195
|
+
allowRuntimeModelOverride: false,
|
|
196
|
+
defaultProviderId: 'openai',
|
|
197
|
+
defaultModelId: 'gpt-5-mini',
|
|
198
|
+
providers: [],
|
|
199
|
+
},
|
|
200
|
+
})
|
|
188
201
|
window.localStorage.clear()
|
|
189
202
|
lastResizeObserver = null
|
|
190
203
|
})
|
|
@@ -238,7 +251,9 @@ describe('<AiChat>', () => {
|
|
|
238
251
|
'Default: openai / gpt-5-mini',
|
|
239
252
|
)
|
|
240
253
|
})
|
|
241
|
-
|
|
254
|
+
await waitFor(() => {
|
|
255
|
+
expect(window.localStorage.getItem('om-ai-model-picker:customers.account_assistant')).toBeNull()
|
|
256
|
+
})
|
|
242
257
|
})
|
|
243
258
|
|
|
244
259
|
it('does not send provider or model overrides while the model picker is on Default', async () => {
|