@jskit-ai/assistant-runtime 0.2.47 → 0.2.48
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": "@jskit-ai/assistant-runtime",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.48",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jskit test"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"./locales/en.json": "./locales/en.json"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@jskit-ai/assistant-core": "0.2.
|
|
18
|
+
"@jskit-ai/assistant-core": "0.2.46",
|
|
19
19
|
"@jskit-ai/resource-core": "0.1.211",
|
|
20
20
|
"json-rest-schema": "^1.0.20"
|
|
21
21
|
},
|
|
@@ -348,9 +348,11 @@ test("the first native goal preserves absent identity and later controls capture
|
|
|
348
348
|
const start = f.page.getByRole("button", { name: "Start goal", exact: true });
|
|
349
349
|
await expect(start).toBeEnabled();
|
|
350
350
|
await start.click();
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
await
|
|
351
|
+
// A native control starts no turn here, so the active goal says nothing is working on it yet.
|
|
352
|
+
const notRunning = f.primary.getByRole("button", { name: "Goal not running", exact: true });
|
|
353
|
+
await expect(notRunning).toBeVisible();
|
|
354
|
+
await expect(notRunning).toHaveAttribute("aria-expanded", "false");
|
|
355
|
+
await notRunning.click();
|
|
354
356
|
const pause = f.page.getByRole("button", { name: "Pause goal", exact: true });
|
|
355
357
|
await expect(pause).toBeEnabled();
|
|
356
358
|
await pause.click();
|
|
@@ -3535,7 +3537,8 @@ test("a background goal read keeps current pinned controls available and seriali
|
|
|
3535
3537
|
try {
|
|
3536
3538
|
await f.page.evaluate(() => window.conversationFixture.eventReaders([{ id: "goal-reader", goal: true }]));
|
|
3537
3539
|
await expect.poll(() => f.page.evaluate(() => window.conversationFixture.current().goalState.value?.pending)).toBe(false);
|
|
3538
|
-
|
|
3540
|
+
// Nothing works on the active goal here, so its chip says so.
|
|
3541
|
+
await f.primary.getByRole("button", { name: "Goal not running", exact: true }).click();
|
|
3539
3542
|
holdRead = true;
|
|
3540
3543
|
await f.page.evaluate(() => { window.fixtureBackgroundGoalRead = window.conversationFixture.current().refreshGoal(); });
|
|
3541
3544
|
await expect.poll(() => Boolean(releaseRead)).toBe(true);
|