@bevel-software/platform-core-frontend 0.28.0 → 0.29.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/package.json +11 -4
- package/src/core/CoreAppShell.tsx +29 -11
- package/src/core/__tests__/ShellRoutes.test.tsx +43 -1
- package/src/core/events.ts +4 -2
- package/src/core/registry.ts +25 -3
- package/src/modules/embed/__tests__/EmbedView.test.tsx +560 -17
- package/src/modules/embed/__tests__/embed-config.test.ts +77 -1
- package/src/modules/embed/__tests__/mcp-app-view.test.ts +203 -1
- package/src/modules/embed/components/EmbedView.tsx +233 -47
- package/src/modules/embed/embed-config.ts +126 -2
- package/src/modules/embed/embed-host.ts +11 -2
- package/src/modules/embed/mount.tsx +1 -0
- package/src/modules/library/__tests__/LibraryRoutes.test.tsx +213 -4
- package/src/modules/library/__tests__/PluginPage.test.tsx +1 -1
- package/src/modules/library/__tests__/SkillPage.test.tsx +10 -0
- package/src/modules/library/components/LibraryLayout.tsx +2 -2
- package/src/modules/library/components/PluginPage.tsx +2 -1
- package/src/modules/library/components/skill-page/SkillPage.tsx +2 -2
- package/src/modules/library/components/tool-page/ToolPage.tsx +1 -1
- package/src/modules/library/index.ts +18 -0
- package/src/modules/library/routes/LibraryRoutes.tsx +17 -1
- package/src/modules/library/routes/library-paths.ts +16 -2
- package/src/modules/onboarding/__tests__/get-started-column.test.tsx +3 -3
- package/src/modules/secrets-vault/components/ConnectToolsPage.tsx +39 -32
- package/src/modules/secrets-vault/components/SecretsPage.tsx +9 -24
- package/src/modules/secrets-vault/components/__tests__/ConnectToolsPage.test.tsx +111 -8
- package/src/modules/secrets-vault/components/__tests__/connect-lists-what-the-banner-counted.test.tsx +1 -1
- package/src/modules/secrets-vault/index.ts +7 -0
- package/src/modules/settings/settings-nav-items.tsx +3 -3
- package/src/modules/toolbar/commands/__tests__/actions.test.tsx +20 -37
- package/src/modules/toolbar/commands/actions.tsx +62 -50
- package/src/modules/toolbar/commands/command-menu.ts +37 -3
- package/src/modules/toolbar/commands/useCommandShortcuts.ts +29 -76
- package/src/modules/toolbar/components/ExternalAgentAccessPage.tsx +4 -2
- package/src/modules/toolbar/components/SearchPalette.tsx +20 -21
- package/src/modules/toolbar/components/__tests__/ExternalAgentAccessPage.test.tsx +5 -2
- package/src/modules/toolbar/components/__tests__/SearchPalette.test.tsx +242 -103
- package/src/modules/toolbar/components/__tests__/Toolbar.test.tsx +51 -1
- package/src/modules/toolbar/search/__tests__/rank.test.ts +7 -3
- package/src/modules/workflow/hooks/__tests__/useFileLock.test.tsx +475 -0
- package/src/modules/workflow/hooks/__tests__/useFileLock.wire.test.tsx +115 -0
- package/src/modules/workflow/hooks/useFileLock.ts +321 -57
- package/src/modules/workflow/index.ts +8 -0
- package/src/modules/workflow/services/__tests__/lock.api.test.ts +4 -0
- package/src/modules/workflow/services/lock.api.ts +28 -9
- package/src/modules/workspace/components/FileViewer.tsx +30 -16
- package/src/modules/workspace/components/KbPageHeader.tsx +8 -1
- package/src/modules/workspace/components/__tests__/FileViewer.test.tsx +107 -4
- package/src/modules/workspace/components/__tests__/KbPageHeader.test.tsx +12 -0
- package/src/modules/workspace/components/renderers/HtmlRenderer.tsx +118 -13
- package/src/modules/workspace/components/renderers/__tests__/HtmlRenderer.test.tsx +189 -0
- package/src/modules/workspace/components/renderers/__tests__/htmlSandbox.test.ts +9 -0
- package/src/modules/workspace/components/renderers/__tests__/kbGraphLoader.test.tsx +60 -0
- package/src/modules/workspace/components/renderers/frameResizeHandle.ts +116 -0
- package/src/modules/workspace/components/renderers/index.ts +6 -0
- package/src/modules/workspace/components/renderers/kbGraphLoader.ts +27 -0
- package/src/modules/workspace/components/renderers/lazyRenderer.tsx +1 -1
- package/src/modules/workspace/components/renderers/rendererSurface.ts +19 -0
- package/src/modules/workspace/index.ts +33 -0
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { afterEach, describe, expect, it, vi } from 'vitest';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
configureEmbed,
|
|
4
|
+
EMBED_HANDOFF_GLOBAL,
|
|
5
|
+
embedToken,
|
|
6
|
+
readEmbedHandoff,
|
|
7
|
+
resetEmbedConfig,
|
|
8
|
+
withEmbedToken,
|
|
9
|
+
} from '../embed-config';
|
|
3
10
|
import { embedRawUrl, loadEmbed, lockEmbed, saveEmbed } from '../services/embed.api';
|
|
4
11
|
import { openThroughHost, resolveToAppUrl } from '../embed-host';
|
|
5
12
|
|
|
@@ -111,6 +118,14 @@ describe('the handoff the view leaves on the window', () => {
|
|
|
111
118
|
expect(readEmbedHandoff()).toEqual({ baseUrl: BASE, token: 'tok', openLink });
|
|
112
119
|
});
|
|
113
120
|
|
|
121
|
+
it('keeps the way to renew the token the view lent, and only a function', () => {
|
|
122
|
+
const renew = async () => 'tok-2';
|
|
123
|
+
set({ baseUrl: BASE, token: 'tok', renew });
|
|
124
|
+
expect(readEmbedHandoff()).toEqual({ baseUrl: BASE, token: 'tok', renew });
|
|
125
|
+
set({ baseUrl: BASE, token: 'tok', renew: 'tok-2' });
|
|
126
|
+
expect(readEmbedHandoff()).toEqual({ baseUrl: BASE, token: 'tok' });
|
|
127
|
+
});
|
|
128
|
+
|
|
114
129
|
it('keeps the path prefix a deployment is served under', () => {
|
|
115
130
|
set({ baseUrl: `${BASE}/hexis/`, token: 'tok' });
|
|
116
131
|
expect(readEmbedHandoff()).toEqual({ baseUrl: `${BASE}/hexis`, token: 'tok' });
|
|
@@ -126,3 +141,64 @@ describe('the handoff the view leaves on the window', () => {
|
|
|
126
141
|
expect(readEmbedHandoff()).toBeNull();
|
|
127
142
|
});
|
|
128
143
|
});
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* A call refused for its token is retried once with a fresh one — but only
|
|
147
|
+
* under the mount it was sent from. When another `open_page` in the chat
|
|
148
|
+
* replaced the mount meanwhile, the token now current is for another page,
|
|
149
|
+
* and an old draft must never be sent with it.
|
|
150
|
+
*/
|
|
151
|
+
describe('a refused call, retried only under its own mount', () => {
|
|
152
|
+
const refused = () => Object.assign(new Error('expired'), { status: 401 });
|
|
153
|
+
|
|
154
|
+
it('is retried once with the fresh token under the same mount', async () => {
|
|
155
|
+
configureEmbed({ baseUrl: BASE, token: 'tok-1', renew: async () => 'tok-2' });
|
|
156
|
+
const call = vi.fn(async (token: string) => {
|
|
157
|
+
if (token === 'tok-1') throw refused();
|
|
158
|
+
return token;
|
|
159
|
+
});
|
|
160
|
+
await expect(withEmbedToken(call)).resolves.toBe('tok-2');
|
|
161
|
+
expect(call.mock.calls.map((c) => c[0])).toEqual(['tok-1', 'tok-2']);
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
it('is not retried with the successor mount token when the mount was replaced while it ran', async () => {
|
|
165
|
+
configureEmbed({ baseUrl: BASE, token: 'page-a', renew: async () => 'page-a-2' });
|
|
166
|
+
let refuse!: () => void;
|
|
167
|
+
const call = vi.fn(
|
|
168
|
+
(token: string) =>
|
|
169
|
+
new Promise<string>((resolve, reject) => {
|
|
170
|
+
if (token !== 'page-a') return resolve(token);
|
|
171
|
+
refuse = () => reject(refused());
|
|
172
|
+
}),
|
|
173
|
+
);
|
|
174
|
+
const save = withEmbedToken(call);
|
|
175
|
+
// Another open_page in the chat: a new mount, for another page.
|
|
176
|
+
resetEmbedConfig();
|
|
177
|
+
configureEmbed({ baseUrl: BASE, token: 'page-b', renew: async () => 'page-b-2' });
|
|
178
|
+
refuse();
|
|
179
|
+
await expect(save).rejects.toMatchObject({ status: 401 });
|
|
180
|
+
expect(call.mock.calls.map((c) => c[0])).toEqual(['page-a']);
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
it('is not retried when the mount was replaced while its renewal ran', async () => {
|
|
184
|
+
let answer!: (token: string) => void;
|
|
185
|
+
configureEmbed({
|
|
186
|
+
baseUrl: BASE,
|
|
187
|
+
token: 'page-a',
|
|
188
|
+
renew: () => new Promise<string>((resolve) => (answer = resolve)),
|
|
189
|
+
});
|
|
190
|
+
const call = vi.fn(async (token: string) => {
|
|
191
|
+
if (token === 'page-a') throw refused();
|
|
192
|
+
return token;
|
|
193
|
+
});
|
|
194
|
+
const save = withEmbedToken(call);
|
|
195
|
+
await vi.waitFor(() => expect(answer).toBeTypeOf('function'));
|
|
196
|
+
resetEmbedConfig();
|
|
197
|
+
configureEmbed({ baseUrl: BASE, token: 'page-b', renew: async () => 'page-b-2' });
|
|
198
|
+
answer('page-a-2');
|
|
199
|
+
await expect(save).rejects.toMatchObject({ status: 401 });
|
|
200
|
+
expect(call.mock.calls.map((c) => c[0])).toEqual(['page-a']);
|
|
201
|
+
// And the successor keeps its own token.
|
|
202
|
+
expect(embedToken()).toBe('page-b');
|
|
203
|
+
});
|
|
204
|
+
});
|
|
@@ -45,7 +45,12 @@ const realParent = Object.getOwnPropertyDescriptor(window, 'parent');
|
|
|
45
45
|
*/
|
|
46
46
|
const registered: EventListener[] = [];
|
|
47
47
|
|
|
48
|
-
type Handoff = {
|
|
48
|
+
type Handoff = {
|
|
49
|
+
baseUrl: string;
|
|
50
|
+
token: string;
|
|
51
|
+
openLink: (url: string) => void;
|
|
52
|
+
renew: () => Promise<string | null>;
|
|
53
|
+
};
|
|
49
54
|
const handoff = () => (window as unknown as { __HEXIS_EMBED__?: Handoff }).__HEXIS_EMBED__;
|
|
50
55
|
|
|
51
56
|
beforeEach(() => {
|
|
@@ -129,6 +134,16 @@ describe('the MCP App view', () => {
|
|
|
129
134
|
expect(params.appCapabilities).toEqual(expect.any(Object));
|
|
130
135
|
});
|
|
131
136
|
|
|
137
|
+
/**
|
|
138
|
+
* The extension gives a view no way to say it CALLS server tools —
|
|
139
|
+
* `appCapabilities.tools` would mean the view exposes tools of its own — so
|
|
140
|
+
* the view declares nothing and reads the host's `serverTools` instead.
|
|
141
|
+
*/
|
|
142
|
+
it('declares no capabilities of its own at ui/initialize', () => {
|
|
143
|
+
const [message] = host.postMessage.mock.calls[0] as [{ params: { appCapabilities: unknown } }];
|
|
144
|
+
expect(message.params.appCapabilities).toEqual({});
|
|
145
|
+
});
|
|
146
|
+
|
|
132
147
|
it('confirms the handshake with ui/notifications/initialized', () => {
|
|
133
148
|
const { id } = host.postMessage.mock.calls[0][0] as { id: string };
|
|
134
149
|
fromHost({ jsonrpc: '2.0', id, result: { protocolVersion: '2026-01-26' } });
|
|
@@ -293,3 +308,190 @@ describe('the MCP App view', () => {
|
|
|
293
308
|
expect(handoff()).toBeUndefined();
|
|
294
309
|
});
|
|
295
310
|
});
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* The token `open_page` mints lives minutes. When the bundle's call is
|
|
314
|
+
* refused for it, the bundle calls the `renew` the view handed it, and the
|
|
315
|
+
* view asks its host to call `open_page` again — `tools/call`, app to host,
|
|
316
|
+
* over the chat's own connection and so as its identity — for the same path
|
|
317
|
+
* and heading, and takes the token out of the `embedUrl` it answers.
|
|
318
|
+
*/
|
|
319
|
+
describe('the MCP App view renewing its token', () => {
|
|
320
|
+
/** The view's handshake, answered with the host capabilities given. */
|
|
321
|
+
function handshake(hostCapabilities?: Record<string, unknown>) {
|
|
322
|
+
const { id } = host.postMessage.mock.calls[0][0] as { id: string };
|
|
323
|
+
fromHost({
|
|
324
|
+
jsonrpc: '2.0',
|
|
325
|
+
id,
|
|
326
|
+
result: { protocolVersion: '2026-01-26', ...(hostCapabilities ? { hostCapabilities } : {}) },
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/** The `tools/call` requests the view sent its host. */
|
|
331
|
+
const toolCalls = () =>
|
|
332
|
+
host.postMessage.mock.calls
|
|
333
|
+
.map((c) => c[0] as { id?: string; method?: string; params?: { name?: string; arguments?: unknown } })
|
|
334
|
+
.filter((m) => m.method === 'tools/call');
|
|
335
|
+
|
|
336
|
+
async function opened(structuredContent: Record<string, unknown> = { path: 'Data/Thing.md' }) {
|
|
337
|
+
fromHost(pageResult(structuredContent));
|
|
338
|
+
await settled();
|
|
339
|
+
return handoff()!;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
it('asks the host to call open_page for its own path and heading, and takes the fresh token', async () => {
|
|
343
|
+
handshake({ serverTools: {} });
|
|
344
|
+
const page = await opened({ path: 'knowledge-base/Data/Thing.md', heading: 'what-it-is' });
|
|
345
|
+
const renewed = page.renew();
|
|
346
|
+
const [call] = toolCalls();
|
|
347
|
+
expect(call).toMatchObject({
|
|
348
|
+
jsonrpc: '2.0',
|
|
349
|
+
method: 'tools/call',
|
|
350
|
+
// Under `body`, as every Hexis tool takes its arguments over `/api/mcp`:
|
|
351
|
+
// flat ones are refused there and no token comes back.
|
|
352
|
+
params: {
|
|
353
|
+
name: 'open_page',
|
|
354
|
+
arguments: { body: { path: 'knowledge-base/Data/Thing.md', heading: 'what-it-is' } },
|
|
355
|
+
},
|
|
356
|
+
});
|
|
357
|
+
fromHost({
|
|
358
|
+
jsonrpc: '2.0',
|
|
359
|
+
id: call.id,
|
|
360
|
+
result: { structuredContent: { embedUrl: `${ORIGIN}/embed?token=t2`, appUrl: APP_URL } },
|
|
361
|
+
});
|
|
362
|
+
await expect(renewed).resolves.toBe('t2');
|
|
363
|
+
// The handoff follows, so whatever reads it next reads the fresh token.
|
|
364
|
+
expect(handoff()!.token).toBe('t2');
|
|
365
|
+
});
|
|
366
|
+
|
|
367
|
+
it('asks with the path alone when the view was not opened at a heading', async () => {
|
|
368
|
+
handshake({ serverTools: {} });
|
|
369
|
+
const page = await opened({ path: 'Data/Thing.md' });
|
|
370
|
+
const renewed = page.renew();
|
|
371
|
+
expect(toolCalls()[0].params?.arguments).toEqual({ body: { path: 'Data/Thing.md' } });
|
|
372
|
+
// Answered, so no renewal timer outlives the test.
|
|
373
|
+
fromHost({ jsonrpc: '2.0', id: toolCalls()[0].id, result: { structuredContent: { embedUrl: `${ORIGIN}/embed?token=t2` } } });
|
|
374
|
+
await expect(renewed).resolves.toBe('t2');
|
|
375
|
+
});
|
|
376
|
+
|
|
377
|
+
it('shares one call between renewals asked for together', async () => {
|
|
378
|
+
handshake({ serverTools: {} });
|
|
379
|
+
const page = await opened();
|
|
380
|
+
const first = page.renew();
|
|
381
|
+
const second = page.renew();
|
|
382
|
+
expect(toolCalls()).toHaveLength(1);
|
|
383
|
+
fromHost({ jsonrpc: '2.0', id: toolCalls()[0].id, result: { structuredContent: { embedUrl: `${ORIGIN}/embed?token=t2` } } });
|
|
384
|
+
await expect(first).resolves.toBe('t2');
|
|
385
|
+
await expect(second).resolves.toBe('t2');
|
|
386
|
+
});
|
|
387
|
+
|
|
388
|
+
it('does not ask a host that said it runs no server tools for a view', async () => {
|
|
389
|
+
handshake({ openLinks: {}, serverTools: false });
|
|
390
|
+
const page = await opened();
|
|
391
|
+
await expect(page.renew()).resolves.toBeNull();
|
|
392
|
+
expect(toolCalls()).toHaveLength(0);
|
|
393
|
+
});
|
|
394
|
+
|
|
395
|
+
/** Capabilities that leave `serverTools` out say nothing about it: that is not a no. */
|
|
396
|
+
it('asks a host whose capabilities leave serverTools out once, and takes a refusal as its answer', async () => {
|
|
397
|
+
handshake({ openLinks: {} });
|
|
398
|
+
const page = await opened();
|
|
399
|
+
const renewed = page.renew();
|
|
400
|
+
expect(toolCalls()).toHaveLength(1);
|
|
401
|
+
fromHost({ jsonrpc: '2.0', id: toolCalls()[0].id, error: { code: -32601, message: 'Method not found' } });
|
|
402
|
+
await expect(renewed).resolves.toBeNull();
|
|
403
|
+
await expect(page.renew()).resolves.toBeNull();
|
|
404
|
+
expect(toolCalls()).toHaveLength(1);
|
|
405
|
+
});
|
|
406
|
+
|
|
407
|
+
it('takes the token from a host whose capabilities leave serverTools out', async () => {
|
|
408
|
+
handshake({ openLinks: {} });
|
|
409
|
+
const page = await opened();
|
|
410
|
+
const renewed = page.renew();
|
|
411
|
+
fromHost({ jsonrpc: '2.0', id: toolCalls()[0].id, result: { structuredContent: { embedUrl: `${ORIGIN}/embed?token=t2` } } });
|
|
412
|
+
await expect(renewed).resolves.toBe('t2');
|
|
413
|
+
});
|
|
414
|
+
|
|
415
|
+
/** A host that said nothing either way is asked once; a refusal is its answer. */
|
|
416
|
+
it('asks a host that said nothing once, and takes a refusal as its answer', async () => {
|
|
417
|
+
handshake();
|
|
418
|
+
const page = await opened();
|
|
419
|
+
const renewed = page.renew();
|
|
420
|
+
expect(toolCalls()).toHaveLength(1);
|
|
421
|
+
fromHost({ jsonrpc: '2.0', id: toolCalls()[0].id, error: { code: -32601, message: 'Method not found' } });
|
|
422
|
+
await expect(renewed).resolves.toBeNull();
|
|
423
|
+
await expect(page.renew()).resolves.toBeNull();
|
|
424
|
+
expect(toolCalls()).toHaveLength(1);
|
|
425
|
+
});
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* `open_page`'s own gate decides: a reader whose access was withdrawn is
|
|
429
|
+
* refused exactly as on a first call, and the view gets no token.
|
|
430
|
+
*/
|
|
431
|
+
it('gets no token when open_page refuses the call', async () => {
|
|
432
|
+
handshake({ serverTools: {} });
|
|
433
|
+
const page = await opened();
|
|
434
|
+
const renewed = page.renew();
|
|
435
|
+
fromHost({
|
|
436
|
+
jsonrpc: '2.0',
|
|
437
|
+
id: toolCalls()[0].id,
|
|
438
|
+
result: { isError: true, content: [{ type: 'text', text: "You don't have read access to \"Data/Thing.md\"" }] },
|
|
439
|
+
});
|
|
440
|
+
await expect(renewed).resolves.toBeNull();
|
|
441
|
+
expect(handoff()!.token).toBe('t');
|
|
442
|
+
});
|
|
443
|
+
|
|
444
|
+
it.each([
|
|
445
|
+
['carries no embed address', { note: 'This deployment is reached over plain http.' }],
|
|
446
|
+
['names another deployment', { embedUrl: 'https://elsewhere.example/embed?token=t2' }],
|
|
447
|
+
['carries no token', { embedUrl: `${ORIGIN}/embed` }],
|
|
448
|
+
])('gets no token when the answer %s', async (_label, structuredContent) => {
|
|
449
|
+
handshake({ serverTools: {} });
|
|
450
|
+
const page = await opened();
|
|
451
|
+
const renewed = page.renew();
|
|
452
|
+
fromHost({ jsonrpc: '2.0', id: toolCalls()[0].id, result: { structuredContent } });
|
|
453
|
+
await expect(renewed).resolves.toBeNull();
|
|
454
|
+
expect(handoff()!.token).toBe('t');
|
|
455
|
+
});
|
|
456
|
+
|
|
457
|
+
it('gives up when the host does not answer', async () => {
|
|
458
|
+
vi.useFakeTimers();
|
|
459
|
+
try {
|
|
460
|
+
handshake({ serverTools: {} });
|
|
461
|
+
fromHost(pageResult({ path: 'Data/Thing.md' }));
|
|
462
|
+
await vi.advanceTimersByTimeAsync(0);
|
|
463
|
+
const renewed = handoff()!.renew();
|
|
464
|
+
expect(toolCalls()).toHaveLength(1);
|
|
465
|
+
await vi.advanceTimersByTimeAsync(20_000);
|
|
466
|
+
await expect(renewed).resolves.toBeNull();
|
|
467
|
+
} finally {
|
|
468
|
+
vi.useRealTimers();
|
|
469
|
+
}
|
|
470
|
+
});
|
|
471
|
+
|
|
472
|
+
/** Silence is not a refusal: a host that said nothing and answered too late is asked again. */
|
|
473
|
+
it('asks a host that said nothing again after it did not answer in time', async () => {
|
|
474
|
+
vi.useFakeTimers();
|
|
475
|
+
try {
|
|
476
|
+
handshake();
|
|
477
|
+
fromHost(pageResult({ path: 'Data/Thing.md' }));
|
|
478
|
+
await vi.advanceTimersByTimeAsync(0);
|
|
479
|
+
const first = handoff()!.renew();
|
|
480
|
+
await vi.advanceTimersByTimeAsync(20_000);
|
|
481
|
+
await expect(first).resolves.toBeNull();
|
|
482
|
+
const second = handoff()!.renew();
|
|
483
|
+
expect(toolCalls()).toHaveLength(2);
|
|
484
|
+
fromHost({ jsonrpc: '2.0', id: toolCalls()[1].id, result: { structuredContent: { embedUrl: `${ORIGIN}/embed?token=t2` } } });
|
|
485
|
+
await expect(second).resolves.toBe('t2');
|
|
486
|
+
} finally {
|
|
487
|
+
vi.useRealTimers();
|
|
488
|
+
}
|
|
489
|
+
});
|
|
490
|
+
|
|
491
|
+
it('has nothing to ask for when the result echoed no path', async () => {
|
|
492
|
+
handshake({ serverTools: {} });
|
|
493
|
+
const page = await opened({});
|
|
494
|
+
await expect(page.renew()).resolves.toBeNull();
|
|
495
|
+
expect(toolCalls()).toHaveLength(0);
|
|
496
|
+
});
|
|
497
|
+
});
|