@jskit-ai/agent-docs 0.1.366 → 0.1.367

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.
@@ -283,7 +283,9 @@ dialog, chip or FAB.
283
283
  widths the bar shows the single `primary` action (a form's Save) and puts
284
284
  the other actions, and the top-right items that don't fit beside the title,
285
285
  in its "More actions" menu, where `overflow` actions always are; medium and
286
- wider bars show them all.
286
+ wider bars show the actions that fit beside the whole title and put the
287
+ rest there, the last first, so the menu button and the top-right items
288
+ stay on screen. Put the most used actions first.
287
289
  - **Window size classes:** compact under 600 (navigation bar), medium 600–839
288
290
  (navigation rail), expanded 840–1199 and large from 1200 (drawer), read from
289
291
  `useShellWindowSizeClass()`
@@ -143,9 +143,12 @@ The rules it applies are in [Typed features](/guide/framework/typed-features),
143
143
  `types/typed-router.d.ts`, outside `src`.
144
144
  - No fixed sleep: a web-first assertion (`await expect(locator).toBeVisible()`),
145
145
  `expect.poll()`, the event itself, or a fake clock (`mock.timers`,
146
- `vi.useFakeTimers()`, `page.clock`) for the app's own delays. The one fixed
147
- wait that stays proves nothing happens in a window and says so on the line
148
- before, `// jskit-test: fixed-wait - <reason>`.
146
+ `vi.useFakeTimers()`, `page.clock`) for the app's own delays. A poll's
147
+ interval, in a loop that re-reads its condition, and a timer racing another
148
+ wait in `Promise.race([…])` wait for a condition and are not reported. The
149
+ fixed waits that stay prove nothing happens in a window, or simulate a
150
+ stand-in's latency, and say so on the line before,
151
+ `// jskit-test: fixed-wait - <what the window proves, or the latency the stand-in simulates>`.
149
152
  - A file imports what it needs at its top level, so loading counts against the
150
153
  file, not a test's time limit.
151
154
  - The bounds stay: `jskit test`'s 10 minutes a file and 45 a run, and
@@ -1420,7 +1420,7 @@ that must run alone says so on its own first line instead.
1420
1420
  | `test/playwright-isolation` | a Playwright webServer every worker shares, without `browserTestConfig()` | [Test files run in parallel](#test-files-run-in-parallel) |
1421
1421
  | `test/playwright-global-timeout` | a Playwright config without a `globalTimeout` (or `browserTestConfig()`), or with `globalTimeout: 0` | [Test files run in parallel](#test-files-run-in-parallel) |
1422
1422
  | `test/vitest-workers` | `--maxWorkers`, `--minWorkers` or `--no-file-parallelism` passed to Vitest, or its config without `maxWorkers: testConcurrency()` or with `fileParallelism: false` | [Test files run in parallel](#test-files-run-in-parallel) |
1423
- | `test/script-files` | a script that gives `jskit test` files or globs (`jskit test --databases tests/*.test.js`), so `npm test -- <file>` runs every file and that one; drop them, as `jskit test` finds test files by node's default pattern | [Test files run in parallel](#test-files-run-in-parallel) |
1423
+ | `test/script-files` | a script that gives `jskit test` the files node's default pattern selects anyway (`jskit test --databases tests/**/*.test.js`), so `npm test -- <file>` runs every file and that one; drop them, as `jskit test` finds those files itself. A script that runs some of them (`tests/server/*.test.js`) or files the pattern leaves out (`tests/*.integration.js`) names them for a reason and is not reported | [Test files run in parallel](#test-files-run-in-parallel) |
1424
1424
 
1425
1425
  The rules see shapes, not intent. Feature files, owned state beyond
1426
1426
  registries, shutdown, loggers, shared action fields, strict inputs, the action
@@ -1437,19 +1437,44 @@ Vite config, and reports what makes a test run slow, fragile or unsafe.
1437
1437
 
1438
1438
  | Rule | Reports | Fix |
1439
1439
  | --- | --- | --- |
1440
- | `test/fixed-sleep` | in a test file, `page.waitForTimeout(…)`, a `new Promise` that resolves on `setTimeout(…, <ms>)`, or an awaited `setTimeout`, `sleep`, `delay`, `wait` or `pause` of a number of milliseconds | wait for the condition: a web-first assertion (`await expect(locator).toBeVisible()`), `expect.poll()`, the event itself, or a fake clock (`mock.timers`, `vi.useFakeTimers()`, `page.clock`) |
1441
- | `test/fixed-database-name` | a test script that sets `TEST_DB_NAME`, `BROWSER_TEST_DB_NAME` or `DB_NAME`; a test file or runner config that falls back to or assigns a name for one (`process.env.TEST_DB_NAME \|\| "shop_test"`); a runner config that names one (`DB_NAME: "shop_e2e"`) | drop the name: the run's test-only env file or the host names the database, `jskit test --databases` gives each test file its own copy of `TEST_DB_NAME`, and `browserTestConfig()`'s `prepare` module derives each worker's from `BROWSER_TEST_DB_NAME` |
1440
+ | `test/fixed-sleep` | in a test file, `page.waitForTimeout(…)`, a `new Promise` that resolves on `setTimeout(…, <ms>)`, or an awaited `setTimeout`, `sleep`, `delay`, `pause` (its own or an object's, such as `timers.setTimeout(…)`) or `wait` (its own or node's `scheduler.wait(…)`) of a number of milliseconds | wait for the condition: a web-first assertion (`await expect(locator).toBeVisible()`), `expect.poll()`, the event itself, or a fake clock (`mock.timers`, `vi.useFakeTimers()`, `page.clock`) |
1441
+ | `test/fixed-database-name` | a test script that sets `TEST_DB_NAME`, `BROWSER_TEST_DB_NAME` or `DB_NAME`; a test file or runner config that falls back to or assigns a name for one (`process.env.TEST_DB_NAME \|\| "shop_test"`), outside a thrown error's message; a runner config that names one (`DB_NAME: "shop_e2e"`) | drop the name: the run's test-only env file or the host names the database, `jskit test --databases` gives each test file its own copy of `TEST_DB_NAME`, and `browserTestConfig()`'s `prepare` module derives each worker's from `BROWSER_TEST_DB_NAME` |
1442
1442
  | `test/test-database-is-app-database` | a CI workflow whose `TEST_DB_NAME` or `BROWSER_TEST_DB_NAME` is its `DB_NAME`, by value or as an `env.DB_NAME` expression | give it a name of its own, such as `<DB_NAME>_test`: a test run replaces its test databases from the snapshot, and JSKIT refuses to run one on `DB_NAME` |
1443
1443
  | `test/generated-into-src` | a `dts` path under `src/` in the root `vite.config.*`, such as vue-router's `src/typed-router.d.ts` or a components declaration file | write it outside `src`, such as `dts: "types/typed-router.d.ts"`, and move the file and its `.gitignore` line: a file written into `src` while the frontend builds keeps the browser tests from reusing that build (`not kept for reuse, as src changed while it ran`) |
1444
1444
 
1445
- A 0 ms timer yields a turn and is not reported. The one fixed wait a test
1446
- needs is a window that proves nothing happens, such as no second read within
1447
- it, and it says so on the line before, with its reason; a marker without a
1448
- reason is a finding itself, and no other comment excuses these rules:
1445
+ `test/fixed-sleep` reports a wait that stands in for a condition, not every
1446
+ timer. It does not report:
1447
+
1448
+ - a 0 ms timer, which yields a turn;
1449
+ - a timer that is an element of `Promise.race([…])`, which bounds the wait
1450
+ for something else;
1451
+ - a poll's interval: a wait in a loop that re-reads its condition each round,
1452
+ either in its header (`while (!(await ready()))`,
1453
+ `while (running(run) && Date.now() < deadline)`) or through a conditional
1454
+ `return` or `break` in its own body. A loop that only counts or watches the
1455
+ clock (`for (let i = 0; i < 20; i += 1)`, `while (Date.now() < end)`) waits
1456
+ a fixed time all the same and is reported;
1457
+ - another object's method named `wait`, such as a fake clock's
1458
+ `page.wait(60_000)`.
1459
+
1460
+ `jskit check` reads those loops and races from the file's brackets, past its
1461
+ strings, template literals, comments and regular expressions; a file whose
1462
+ brackets it cannot match is read a line at a time, so each of its waits is
1463
+ reported.
1464
+
1465
+ The fixed waits a test needs are a window that proves nothing happens, such
1466
+ as no second read within it, and the latency a stand-in simulates. Each says
1467
+ so on the line before, with its reason,
1468
+ `// jskit-test: fixed-wait - <what the window proves, or the latency the stand-in simulates>`;
1469
+ a marker without a reason is a finding itself, and no other comment excuses
1470
+ these rules:
1449
1471
 
1450
1472
  ```js
1451
1473
  // jskit-test: fixed-wait - the window in which the list must make no second read
1452
1474
  await page.waitForTimeout(2000);
1475
+
1476
+ // jskit-test: fixed-wait - the latency of the mail provider this stand-in simulates
1477
+ await sleep(200);
1453
1478
  ```
1454
1479
 
1455
1480
  Why: a fixed sleep makes every run as slow as its longest guess and fails on
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/agent-docs",
3
- "version": "0.1.366",
3
+ "version": "0.1.367",
4
4
  "description": "Distributed JSKIT agent references, prompts, guides, and generated reference maps.",
5
5
  "type": "module",
6
6
  "files": [
@@ -35,7 +35,7 @@
35
35
  "@local/main": "0.1.0",
36
36
  "@fastify/static": "^10.1.3",
37
37
  "@jskit-ai/kernel": "0.2.35",
38
- "@jskit-ai/material-web": "0.1.15",
38
+ "@jskit-ai/material-web": "0.1.16",
39
39
  "@tanstack/vue-query": "^5.101.0",
40
40
  "fastify": "^5.12.7",
41
41
  "pino": "^10.3.1",
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "@jskit-ai/config-eslint": "0.1.254",
53
- "@jskit-ai/jskit-catalog": "0.2.118",
53
+ "@jskit-ai/jskit-catalog": "0.2.119",
54
54
  "@playwright/test": "1.61.1",
55
55
  "@vitejs/plugin-vue": "^6.0.7",
56
56
  "eslint": "^10.8.0",
@@ -35,7 +35,7 @@
35
35
  "@local/main": "0.1.0",
36
36
  "@fastify/static": "^10.1.3",
37
37
  "@jskit-ai/kernel": "0.2.35",
38
- "@jskit-ai/material-web": "0.1.15",
38
+ "@jskit-ai/material-web": "0.1.16",
39
39
  "@tanstack/vue-query": "^5.101.0",
40
40
  "fastify": "^5.12.7",
41
41
  "pino": "^10.3.1",
@@ -45,13 +45,13 @@
45
45
  "vue-router": "^5.3.1",
46
46
  "vuetify": "^4.3.0",
47
47
  "@jskit-ai/http-runtime": "0.2.36",
48
- "@jskit-ai/shell-web": "0.2.56",
48
+ "@jskit-ai/shell-web": "0.2.57",
49
49
  "@fastify/fast-json-stringify-compiler": "^5.1.0",
50
50
  "@vue/devtools-api": "^8.2.1"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@jskit-ai/config-eslint": "0.1.254",
54
- "@jskit-ai/jskit-catalog": "0.2.118",
54
+ "@jskit-ai/jskit-catalog": "0.2.119",
55
55
  "@playwright/test": "1.61.1",
56
56
  "@vitejs/plugin-vue": "^6.0.7",
57
57
  "eslint": "^10.8.0",
@@ -15,7 +15,7 @@ A concrete Fastify, Vue, and JSKIT application foundation for products that do n
15
15
 
16
16
  - Id: `app/minimal-foundation`
17
17
  - Keywords: `app`, `fastify`, `foundation`, `minimal`, `server`, `vite`, `vue`
18
- - Owner: `@jskit-ai/agent-docs@0.1.366`
18
+ - Owner: `@jskit-ai/agent-docs@0.1.367`
19
19
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/app/minimal-foundation/PATTERN.md)
20
20
  - Examples: [example/](../../skills/jskit/references/patterns/app/minimal-foundation/example/)
21
21
  - Requires: `@jskit-ai/http-runtime`, `@jskit-ai/kernel`
@@ -26,7 +26,7 @@ A concrete JSKIT web application foundation with responsive shell navigation, se
26
26
 
27
27
  - Id: `app/shell-foundation`
28
28
  - Keywords: `app`, `foundation`, `material`, `navigation`, `placements`, `shell`, `vite`, `vue`
29
- - Owner: `@jskit-ai/agent-docs@0.1.366`
29
+ - Owner: `@jskit-ai/agent-docs@0.1.367`
30
30
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/app/shell-foundation/PATTERN.md)
31
31
  - Examples: [example/](../../skills/jskit/references/patterns/app/shell-foundation/example/)
32
32
  - Requires: `@jskit-ai/http-runtime`, `@jskit-ai/kernel`, `@jskit-ai/shell-web`
@@ -37,7 +37,7 @@ Configure an assistant runtime for one application surface and expose its chat a
37
37
 
38
38
  - Id: `assistant/assistant-surface`
39
39
  - Keywords: `ai`, `assistant`, `chat`, `config`, `environment`, `page`, `placement`, `settings`, `surface`
40
- - Owner: `@jskit-ai/assistant-runtime@0.2.100`
40
+ - Owner: `@jskit-ai/assistant-runtime@0.2.101`
41
41
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/assistant/assistant-surface/PATTERN.md)
42
42
  - Examples: [example/](../../skills/jskit/references/patterns/assistant/assistant-surface/example/)
43
43
  - Requires: `@jskit-ai/assistant-runtime`, `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`, `@jskit-ai/shell-web`
@@ -59,7 +59,7 @@ Compose JSKIT authentication routes, views, profile controls, and public surface
59
59
 
60
60
  - Id: `auth/auth-surface`
61
61
  - Keywords: `account`, `auth`, `login`, `logout`, `password`, `placement`, `profile`, `reset`, `surface`
62
- - Owner: `@jskit-ai/auth-web@0.2.64`
62
+ - Owner: `@jskit-ai/auth-web@0.2.65`
63
63
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/auth/auth-surface/PATTERN.md)
64
64
  - Examples: [example/](../../skills/jskit/references/patterns/auth/auth-surface/example/)
65
65
  - Requires: `@jskit-ai/auth-core`, `@jskit-ai/auth-web`, `@jskit-ai/shell-web`
@@ -70,7 +70,7 @@ Let people sign in with the accounts they already have in an accounts hub or ano
70
70
 
71
71
  - Id: `auth/oidc-sign-in`
72
72
  - Keywords: `accounts hub`, `auth`, `authentication`, `back-channel logout`, `dynamic client registration`, `issuer`, `master login`, `oidc`, `openid connect`, `single sign-on`, `sso`
73
- - Owner: `@jskit-ai/auth-provider-oidc-core@0.2.73`
73
+ - Owner: `@jskit-ai/auth-provider-oidc-core@0.2.74`
74
74
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/auth/oidc-sign-in/PATTERN.md)
75
75
  - Examples: [example/](../../skills/jskit/references/patterns/auth/oidc-sign-in/example/)
76
76
  - Requires: `@jskit-ai/auth-provider-oidc-core`, `@jskit-ai/auth-web`
@@ -81,7 +81,7 @@ Write the sign-in screen and the second-factor prompt in an application's own de
81
81
 
82
82
  - Id: `auth/own-design-sign-in`
83
83
  - Keywords: `auth`, `custom design`, `design system`, `login`, `own look`, `second factor`, `sign in`, `step up`, `style`, `without vuetify`
84
- - Owner: `@jskit-ai/auth-web@0.2.64`
84
+ - Owner: `@jskit-ai/auth-web@0.2.65`
85
85
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/auth/own-design-sign-in/PATTERN.md)
86
86
  - Examples: [example/](../../skills/jskit/references/patterns/auth/own-design-sign-in/example/)
87
87
  - Requires: `@jskit-ai/auth-web`, `@jskit-ai/kernel`
@@ -257,7 +257,7 @@ Add a protected administration surface, settings shell, and semantic navigation
257
257
 
258
258
  - Id: `console/console-surface`
259
259
  - Keywords: `admin`, `console`, `navigation`, `owner`, `placement`, `settings`, `surface`
260
- - Owner: `@jskit-ai/console-web@0.1.306`
260
+ - Owner: `@jskit-ai/console-web@0.1.307`
261
261
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/console/console-surface/PATTERN.md)
262
262
  - Examples: [example/](../../skills/jskit/references/patterns/console/console-surface/example/)
263
263
  - Requires: `@jskit-ai/console-core`, `@jskit-ai/console-web`, `@jskit-ai/shell-web`
@@ -290,7 +290,7 @@ Build a routed CRUD user interface as thin application pages over JSKIT's shared
290
290
 
291
291
  - Id: `crud/crud-screen-set`
292
292
  - Keywords: `actions`, `add`, `crud`, `delete`, `edit`, `filters`, `list`, `material`, `routes`, `view`, `vue`
293
- - Owner: `@jskit-ai/http-web@0.2.65`
293
+ - Owner: `@jskit-ai/http-web@0.2.66`
294
294
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/crud/crud-screen-set/PATTERN.md)
295
295
  - Examples: [example/](../../skills/jskit/references/patterns/crud/crud-screen-set/example/)
296
296
  - Requires: `@jskit-ai/http-web`, `@jskit-ai/resource-core`, `@jskit-ai/resource-crud-core`
@@ -334,7 +334,7 @@ Wrap a JSKIT web application in a Capacitor Android shell using native Capacitor
334
334
 
335
335
  - Id: `mobile/android-application`
336
336
  - Keywords: `android`, `capacitor`, `device`, `mobile`, `native`, `shell`, `webview`
337
- - Owner: `@jskit-ai/mobile-capacitor@0.2.56`
337
+ - Owner: `@jskit-ai/mobile-capacitor@0.2.57`
338
338
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/mobile/android-application/PATTERN.md)
339
339
  - Examples: [example/](../../skills/jskit/references/patterns/mobile/android-application/example/)
340
340
  - Requires: `@capacitor/android`, `@capacitor/app`, `@capacitor/cli`, `@jskit-ai/mobile-capacitor`
@@ -345,7 +345,7 @@ Add JSKIT realtime events with an optional Redis backplane and an explicit shell
345
345
 
346
346
  - Id: `realtime/realtime-application`
347
347
  - Keywords: `realtime`, `redis`, `socket.io`, `sockets`, `status`, `websocket`
348
- - Owner: `@jskit-ai/realtime@0.2.59`
348
+ - Owner: `@jskit-ai/realtime@0.2.60`
349
349
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/realtime/realtime-application/PATTERN.md)
350
350
  - Examples: [example/](../../skills/jskit/references/patterns/realtime/realtime-application/example/)
351
351
  - Requires: `@jskit-ai/realtime`, `@jskit-ai/shell-web`
@@ -356,7 +356,7 @@ Compose application-owned Google Publisher Tag delivery with the generic rewarde
356
356
 
357
357
  - Id: `rewards/google-rewarded`
358
358
  - Keywords: `ads`, `google`, `publisher tag`, `rewarded`, `unlock`
359
- - Owner: `@jskit-ai/rewarded-web@0.2.82`
359
+ - Owner: `@jskit-ai/rewarded-web@0.2.83`
360
360
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/rewards/google-rewarded/PATTERN.md)
361
361
  - Examples: [example/](../../skills/jskit/references/patterns/rewards/google-rewarded/example/)
362
362
  - Requires: `@jskit-ai/rewarded-web`
@@ -367,7 +367,7 @@ Define a server feature through explicit capabilities and first-class actions, a
367
367
 
368
368
  - Id: `server/feature-package`
369
369
  - Keywords: `actions`, `aggregate`, `feature`, `handle`, `orchestration`, `owns`, `package`, `provider`, `repository`, `routes`, `server`, `table resource`
370
- - Owner: `@jskit-ai/agent-docs@0.1.366`
370
+ - Owner: `@jskit-ai/agent-docs@0.1.367`
371
371
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/server/feature-package/PATTERN.md)
372
372
  - Examples: [example/](../../skills/jskit/references/patterns/server/feature-package/example/)
373
373
  - Requires: `@jskit-ai/kernel`
@@ -378,7 +378,7 @@ Compose the JSKIT responsive shell, semantic placements, settings navigation, an
378
378
 
379
379
  - Id: `shell/application-shell`
380
380
  - Keywords: `adaptive`, `app`, `layout`, `navigation`, `placement`, `responsive`, `settings`, `shell`
381
- - Owner: `@jskit-ai/shell-web@0.2.56`
381
+ - Owner: `@jskit-ai/shell-web@0.2.57`
382
382
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/shell/application-shell/PATTERN.md)
383
383
  - Examples: [example/](../../skills/jskit/references/patterns/shell/application-shell/example/)
384
384
  - Requires: `@jskit-ai/kernel`, `@jskit-ai/shell-web`
@@ -389,7 +389,7 @@ Add product routes and shell extensions through file routing, semantic placement
389
389
 
390
390
  - Id: `ui/page-and-placement`
391
391
  - Keywords: `component`, `navigation`, `outlet`, `page`, `placement`, `routes`, `section`, `shell`, `subpages`, `vue`
392
- - Owner: `@jskit-ai/shell-web@0.2.56`
392
+ - Owner: `@jskit-ai/shell-web@0.2.57`
393
393
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/ui/page-and-placement/PATTERN.md)
394
394
  - Examples: [example/](../../skills/jskit/references/patterns/ui/page-and-placement/example/)
395
395
  - Requires: `@jskit-ai/kernel`, `@jskit-ai/shell-web`
@@ -400,7 +400,7 @@ Compose an account settings route and profile, preference, notification, and sig
400
400
 
401
401
  - Id: `users/account-settings`
402
402
  - Keywords: `account`, `link provider`, `notifications`, `oauth`, `preferences`, `profile`, `settings`, `sign-in methods`, `user`, `vue`
403
- - Owner: `@jskit-ai/users-web@0.2.90`
403
+ - Owner: `@jskit-ai/users-web@0.2.91`
404
404
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/users/account-settings/PATTERN.md)
405
405
  - Examples: [example/](../../skills/jskit/references/patterns/users/account-settings/example/)
406
406
  - Requires: `@jskit-ai/shell-web`, `@jskit-ai/users-core`, `@jskit-ai/users-web`
@@ -433,7 +433,7 @@ Compose workspace selection, invitation, member administration, settings, and re
433
433
 
434
434
  - Id: `workspaces/workspace-surfaces`
435
435
  - Keywords: `admin`, `invite`, `member`, `navigation`, `settings`, `surface`, `switcher`, `workspace`
436
- - Owner: `@jskit-ai/workspaces-web@0.2.90`
436
+ - Owner: `@jskit-ai/workspaces-web@0.2.91`
437
437
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/workspaces/workspace-surfaces/PATTERN.md)
438
438
  - Examples: [example/](../../skills/jskit/references/patterns/workspaces/workspace-surfaces/example/)
439
439
  - Requires: `@jskit-ai/shell-web`, `@jskit-ai/workspaces-core`, `@jskit-ai/workspaces-web`
@@ -224,6 +224,7 @@ Exports
224
224
  - `retainAssistantConversation`
225
225
  Local functions
226
226
  - `turnMatchesOptimisticMessage(turn = {}, optimistic = {})`
227
+ - `acceptedReceipt(messageId, turnId)`
227
228
 
228
229
  ### `src/client/conversation/retainedConversation.js`
229
230
  Exports
@@ -44,6 +44,7 @@ Exports
44
44
  - `createMaterialVuetifyOptions({ seed = DEFAULT_SEED, colors = {}, icons = {}, typography = {} } = {})`
45
45
  Local functions
46
46
  - `typefaceVariables({ brand = ROBOTO_FLEX, plain = ROBOTO_FLEX } = {})`
47
+ - `startLoadingTypefaces(view, typefaces)`
47
48
  - `appIconAliases(icons)`
48
49
 
49
50
  ### `src/client/keyboardRipple.js`
@@ -182,7 +182,7 @@ Exports
182
182
 
183
183
  ### `src/client/composables/useShellDrawer.js`
184
184
  Exports
185
- - `useShellDrawer({ props, modalLayout, viewportWidth, navigationToggle, layoutState })`
185
+ - `useShellDrawer({ props, hasDrawer, modalLayout, viewportWidth, navigationToggle, layoutState })`
186
186
  Local functions
187
187
  - `navigationDrawerElement()`
188
188
 
@@ -216,6 +216,13 @@ Exports
216
216
  Exports
217
217
  - `useShellOutletPlacements(target, context = {})`
218
218
 
219
+ ### `src/client/composables/useShellPageActionsFold.js`
220
+ Exports
221
+ - `useShellPageActionsFold({ enabled, registry, target, ownMenu })`
222
+ Local functions
223
+ - `actionsRoom(row, target, menuButton)`
224
+ - `widthOfChildren(element)`
225
+
219
226
  ### `src/client/composables/useShellPageClose.js`
220
227
  Exports
221
228
  - `useShellPageClose({ label, close })`
@@ -234,11 +241,15 @@ Local functions
234
241
  Exports
235
242
  - `useShellRouteTransition(props)`
236
243
 
244
+ ### `src/client/composables/useShellSettled.js`
245
+ Exports
246
+ - `useShellSettled({ settleNavigation })`
247
+ Local functions
248
+ - `commitLayout()`
249
+
237
250
  ### `src/client/composables/useShellTopRightOverflow.js`
238
251
  Exports
239
252
  - `useShellTopRightOverflow({ enabled, placements, pageActions, row, headline, items, menuId })`
240
- Local functions
241
- - `wholeTitleWidth(title)`
242
253
 
243
254
  ### `src/client/composables/useShellWindowSizeClass.js`
244
255
  Exports
@@ -604,6 +615,13 @@ Local functions
604
615
  Exports
605
616
  - `useShellLayoutStore`
606
617
 
618
+ ### `src/client/support/appBarWidths.js`
619
+ Exports
620
+ - `ICON_BUTTON_WIDTH`
621
+ - `contentWidth(element)`
622
+ - `wholeTitleWidth(title)`
623
+ - `widthInRow(element)`
624
+
607
625
  ### `src/client/support/drawerPresentation.js`
608
626
  Exports
609
627
  - `DESKTOP_DRAWER_CLOSED_MODES`
@@ -670,12 +688,14 @@ Exports
670
688
  - `NO_SHELL_PAGE_ACTIONS_REGISTRY`
671
689
  - `SHELL_PAGE_ACTIONS_REGISTRY_KEY`
672
690
  - `createShellPageActionsRegistry({ isCompact })`
673
- - `overflowEntries(entries, compact)`
691
+ - `overflowEntries(entries, compact, folded = 0)`
692
+ - `resolveFoldedPageActions({ room, fixed, actions, menuButton, menuShown })`
674
693
  - `type ShellPageActionState`
675
694
  - `type ShellPageActionEntry`
676
695
  - `type ShellPageActionsRegistry`
677
696
  Local functions
678
697
  - `documentOrder(left, right)`
698
+ - `isFoldable(entry)`
679
699
 
680
700
  ### `src/client/support/primaryNavigation.js`
681
701
  Exports
@@ -779,6 +799,8 @@ Exports
779
799
  ### `fixtures/adaptive-shell/src/App.vue`
780
800
  Exports
781
801
  - None
802
+ Local functions
803
+ - `loadConsoleSession()`
782
804
 
783
805
  ### `fixtures/adaptive-shell/src/ButtonContrastPage.vue`
784
806
  Exports
@@ -798,6 +820,12 @@ Exports
798
820
  Local functions
799
821
  - `jumpToLastBooking()`
800
822
 
823
+ ### `fixtures/adaptive-shell/src/ConsolePage.vue`
824
+ Exports
825
+ - None
826
+ Local functions
827
+ - `press(name)`
828
+
801
829
  ### `fixtures/adaptive-shell/src/DialogFeedbackPage.vue`
802
830
  Exports
803
831
  - None
@@ -810,6 +838,10 @@ Exports
810
838
  Local functions
811
839
  - `press(name)`
812
840
 
841
+ ### `fixtures/adaptive-shell/src/LongActionsPage.vue`
842
+ Exports
843
+ - None
844
+
813
845
  ### `fixtures/adaptive-shell/src/main.js`
814
846
  Exports
815
847
  - None
@@ -435,11 +435,12 @@ Local functions
435
435
 
436
436
  ### `scripts/test-command.mjs`
437
437
  Exports
438
+ - `DEFAULT_PATTERN`
439
+ - `findTestFiles(patterns, cwd)`
438
440
  - `planTestRuns(args, { cwd = process.cwd(), concurrency = testConcurrency() } = {})`
439
441
  - `runTests(args)`
440
442
  - `withTimeReporter(run, destination)`
441
443
  Local functions
442
- - `findTestFiles(patterns, cwd)`
443
444
  - `missedTestFiles(defaultFiles, cwd)`
444
445
  - `readMarkedFiles(files, cwd)`
445
446
  - `markedDestination(destination, kind)`
@@ -507,6 +508,20 @@ Local functions
507
508
  - `checkLoggerLevel({ root, report })`
508
509
  - `checkRunnerConfig({ root, configPath, directory, runner, report })`
509
510
 
511
+ ### `scripts/test-sources-scan.mjs`
512
+ Exports
513
+ - `excusedWait(text, offset, tokens = scanSource(text))`
514
+ - `scanSource(text)`
515
+ Local functions
516
+ - `tokenize(text, at = 0, inTemplate = false)`
517
+ - `skipQuoted(text, at, quote)`
518
+ - `skipTemplate(text, at)`
519
+ - `precededBy(tokens, index, ...values)`
520
+ - `loopKeyword(tokens, close)`
521
+ - `blockOf(tokens, open)`
522
+ - `rereads(tokens, keyword, body)`
523
+ - `leaves(tokens, index, body, isBreak)`
524
+
510
525
  ### `scripts/test-sources.mjs`
511
526
  Exports
512
527
  - `checkTestSources({ projectRoot })`
@@ -517,11 +532,12 @@ Local functions
517
532
  - `isTestFile(file)`
518
533
  - `asNumber(literal)`
519
534
  - `fixedWait(line)`
520
- - `checkFixedWaits(file, lines, report)`
535
+ - `checkFixedWaits(file, text, report)`
521
536
  - `checkDatabaseNames(file, lines, { configFile }, report)`
522
537
  - `lineOf(contents, needle, after = "")`
523
538
  - `jskitTestFiles(script)`
524
- - `checkScripts(file, contents, report)`
539
+ - `selectsDefaultFiles(directory, files, defaults)`
540
+ - `checkScripts(root, file, contents, report)`
525
541
  - `unquoted(value)`
526
542
  - `workflowPairs(lines)`
527
543
  - `checkWorkflow(file, lines, report)`
@@ -97,6 +97,9 @@ Local functions
97
97
  - `publishCommand(options)`
98
98
  - `forgetPinnedLockEntries(repoRoot, names)`
99
99
  - `installReleasedPins(repoRoot, { attempts = 20, delayMs = Number(process.env.JSKIT_RELEASE_RETRY_DELAY_MS || 10_000) } = {})`
100
+ - `declaresCatalog(repoRoot)`
101
+ - `runPinStep(repoRoot, name, argv, env = process.env)`
102
+ - `writeInstalledAgentsBlock(repoRoot)`
100
103
  - `pinCommand({ cwd: repoRoot, from, dryRun, noCommit, noPush, branch })`
101
104
 
102
105
  ### bin
@@ -39,6 +39,7 @@ Placement entries:
39
39
  - Use `props` for the rendered component props, including labels, icons, `surface`, `scopedSuffix`, `unscopedSuffix`, or explicit `to`.
40
40
  - A main navigation link whose `label` is wider than a phone's navigation bar slot (about 68px) also takes `shortLabel`, the label the bar shows; menus, the rail and the drawer show `label`. The adaptive shell smoke check fails on a bar label that is cut or ends in an ellipsis.
41
41
  - Use `when(context)` only for auth, permissions, feature flags, and runtime state. Do not use `when()` for layout adaptation.
42
+ - Context that a `when(context)` reads and the app loads after the page opens, such as its own session's permissions, is marked pending while it loads: `mergeContext({ permissions: [] }, "app.session", { pending: true })` in the setup of the component that loads it, before `ShellLayout` mounts, then `mergeContext({ permissions }, "app.session")` once it arrives or fails. `ShellLayout` keeps the page unseen until no source is pending, so its drawer, rail and navigation bar never arrive under a person's pointer; a source that never ends its wait keeps the page unseen.
42
43
  - Direct concrete placement must use `target: "host:position"` plus `internal: true`. Treat this as low-level infrastructure, not normal app authoring.
43
44
 
44
45
  Placement topology:
@@ -278,7 +278,9 @@ dialog, chip or FAB.
278
278
  widths the bar shows the single `primary` action (a form's Save) and puts
279
279
  the other actions, and the top-right items that don't fit beside the title,
280
280
  in its "More actions" menu, where `overflow` actions always are; medium and
281
- wider bars show them all.
281
+ wider bars show the actions that fit beside the whole title and put the
282
+ rest there, the last first, so the menu button and the top-right items
283
+ stay on screen. Put the most used actions first.
282
284
  - **Window size classes:** compact under 600 (navigation bar), medium 600–839
283
285
  (navigation rail), expanded 840–1199 and large from 1200 (drawer), read from
284
286
  `useShellWindowSizeClass()`
@@ -15,7 +15,7 @@ A concrete Fastify, Vue, and JSKIT application foundation for products that do n
15
15
 
16
16
  - Id: `app/minimal-foundation`
17
17
  - Keywords: `app`, `fastify`, `foundation`, `minimal`, `server`, `vite`, `vue`
18
- - Owner: `@jskit-ai/agent-docs@0.1.366`
18
+ - Owner: `@jskit-ai/agent-docs@0.1.367`
19
19
  - Read: [PATTERN.md](patterns/app/minimal-foundation/PATTERN.md)
20
20
  - Examples: [example/](patterns/app/minimal-foundation/example/)
21
21
  - Requires: `@jskit-ai/http-runtime`, `@jskit-ai/kernel`
@@ -26,7 +26,7 @@ A concrete JSKIT web application foundation with responsive shell navigation, se
26
26
 
27
27
  - Id: `app/shell-foundation`
28
28
  - Keywords: `app`, `foundation`, `material`, `navigation`, `placements`, `shell`, `vite`, `vue`
29
- - Owner: `@jskit-ai/agent-docs@0.1.366`
29
+ - Owner: `@jskit-ai/agent-docs@0.1.367`
30
30
  - Read: [PATTERN.md](patterns/app/shell-foundation/PATTERN.md)
31
31
  - Examples: [example/](patterns/app/shell-foundation/example/)
32
32
  - Requires: `@jskit-ai/http-runtime`, `@jskit-ai/kernel`, `@jskit-ai/shell-web`
@@ -37,7 +37,7 @@ Configure an assistant runtime for one application surface and expose its chat a
37
37
 
38
38
  - Id: `assistant/assistant-surface`
39
39
  - Keywords: `ai`, `assistant`, `chat`, `config`, `environment`, `page`, `placement`, `settings`, `surface`
40
- - Owner: `@jskit-ai/assistant-runtime@0.2.100`
40
+ - Owner: `@jskit-ai/assistant-runtime@0.2.101`
41
41
  - Read: [PATTERN.md](patterns/assistant/assistant-surface/PATTERN.md)
42
42
  - Examples: [example/](patterns/assistant/assistant-surface/example/)
43
43
  - Requires: `@jskit-ai/assistant-runtime`, `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`, `@jskit-ai/shell-web`
@@ -59,7 +59,7 @@ Compose JSKIT authentication routes, views, profile controls, and public surface
59
59
 
60
60
  - Id: `auth/auth-surface`
61
61
  - Keywords: `account`, `auth`, `login`, `logout`, `password`, `placement`, `profile`, `reset`, `surface`
62
- - Owner: `@jskit-ai/auth-web@0.2.64`
62
+ - Owner: `@jskit-ai/auth-web@0.2.65`
63
63
  - Read: [PATTERN.md](patterns/auth/auth-surface/PATTERN.md)
64
64
  - Examples: [example/](patterns/auth/auth-surface/example/)
65
65
  - Requires: `@jskit-ai/auth-core`, `@jskit-ai/auth-web`, `@jskit-ai/shell-web`
@@ -70,7 +70,7 @@ Let people sign in with the accounts they already have in an accounts hub or ano
70
70
 
71
71
  - Id: `auth/oidc-sign-in`
72
72
  - Keywords: `accounts hub`, `auth`, `authentication`, `back-channel logout`, `dynamic client registration`, `issuer`, `master login`, `oidc`, `openid connect`, `single sign-on`, `sso`
73
- - Owner: `@jskit-ai/auth-provider-oidc-core@0.2.73`
73
+ - Owner: `@jskit-ai/auth-provider-oidc-core@0.2.74`
74
74
  - Read: [PATTERN.md](patterns/auth/oidc-sign-in/PATTERN.md)
75
75
  - Examples: [example/](patterns/auth/oidc-sign-in/example/)
76
76
  - Requires: `@jskit-ai/auth-provider-oidc-core`, `@jskit-ai/auth-web`
@@ -81,7 +81,7 @@ Write the sign-in screen and the second-factor prompt in an application's own de
81
81
 
82
82
  - Id: `auth/own-design-sign-in`
83
83
  - Keywords: `auth`, `custom design`, `design system`, `login`, `own look`, `second factor`, `sign in`, `step up`, `style`, `without vuetify`
84
- - Owner: `@jskit-ai/auth-web@0.2.64`
84
+ - Owner: `@jskit-ai/auth-web@0.2.65`
85
85
  - Read: [PATTERN.md](patterns/auth/own-design-sign-in/PATTERN.md)
86
86
  - Examples: [example/](patterns/auth/own-design-sign-in/example/)
87
87
  - Requires: `@jskit-ai/auth-web`, `@jskit-ai/kernel`
@@ -257,7 +257,7 @@ Add a protected administration surface, settings shell, and semantic navigation
257
257
 
258
258
  - Id: `console/console-surface`
259
259
  - Keywords: `admin`, `console`, `navigation`, `owner`, `placement`, `settings`, `surface`
260
- - Owner: `@jskit-ai/console-web@0.1.306`
260
+ - Owner: `@jskit-ai/console-web@0.1.307`
261
261
  - Read: [PATTERN.md](patterns/console/console-surface/PATTERN.md)
262
262
  - Examples: [example/](patterns/console/console-surface/example/)
263
263
  - Requires: `@jskit-ai/console-core`, `@jskit-ai/console-web`, `@jskit-ai/shell-web`
@@ -290,7 +290,7 @@ Build a routed CRUD user interface as thin application pages over JSKIT's shared
290
290
 
291
291
  - Id: `crud/crud-screen-set`
292
292
  - Keywords: `actions`, `add`, `crud`, `delete`, `edit`, `filters`, `list`, `material`, `routes`, `view`, `vue`
293
- - Owner: `@jskit-ai/http-web@0.2.65`
293
+ - Owner: `@jskit-ai/http-web@0.2.66`
294
294
  - Read: [PATTERN.md](patterns/crud/crud-screen-set/PATTERN.md)
295
295
  - Examples: [example/](patterns/crud/crud-screen-set/example/)
296
296
  - Requires: `@jskit-ai/http-web`, `@jskit-ai/resource-core`, `@jskit-ai/resource-crud-core`
@@ -334,7 +334,7 @@ Wrap a JSKIT web application in a Capacitor Android shell using native Capacitor
334
334
 
335
335
  - Id: `mobile/android-application`
336
336
  - Keywords: `android`, `capacitor`, `device`, `mobile`, `native`, `shell`, `webview`
337
- - Owner: `@jskit-ai/mobile-capacitor@0.2.56`
337
+ - Owner: `@jskit-ai/mobile-capacitor@0.2.57`
338
338
  - Read: [PATTERN.md](patterns/mobile/android-application/PATTERN.md)
339
339
  - Examples: [example/](patterns/mobile/android-application/example/)
340
340
  - Requires: `@capacitor/android`, `@capacitor/app`, `@capacitor/cli`, `@jskit-ai/mobile-capacitor`
@@ -345,7 +345,7 @@ Add JSKIT realtime events with an optional Redis backplane and an explicit shell
345
345
 
346
346
  - Id: `realtime/realtime-application`
347
347
  - Keywords: `realtime`, `redis`, `socket.io`, `sockets`, `status`, `websocket`
348
- - Owner: `@jskit-ai/realtime@0.2.59`
348
+ - Owner: `@jskit-ai/realtime@0.2.60`
349
349
  - Read: [PATTERN.md](patterns/realtime/realtime-application/PATTERN.md)
350
350
  - Examples: [example/](patterns/realtime/realtime-application/example/)
351
351
  - Requires: `@jskit-ai/realtime`, `@jskit-ai/shell-web`
@@ -356,7 +356,7 @@ Compose application-owned Google Publisher Tag delivery with the generic rewarde
356
356
 
357
357
  - Id: `rewards/google-rewarded`
358
358
  - Keywords: `ads`, `google`, `publisher tag`, `rewarded`, `unlock`
359
- - Owner: `@jskit-ai/rewarded-web@0.2.82`
359
+ - Owner: `@jskit-ai/rewarded-web@0.2.83`
360
360
  - Read: [PATTERN.md](patterns/rewards/google-rewarded/PATTERN.md)
361
361
  - Examples: [example/](patterns/rewards/google-rewarded/example/)
362
362
  - Requires: `@jskit-ai/rewarded-web`
@@ -367,7 +367,7 @@ Define a server feature through explicit capabilities and first-class actions, a
367
367
 
368
368
  - Id: `server/feature-package`
369
369
  - Keywords: `actions`, `aggregate`, `feature`, `handle`, `orchestration`, `owns`, `package`, `provider`, `repository`, `routes`, `server`, `table resource`
370
- - Owner: `@jskit-ai/agent-docs@0.1.366`
370
+ - Owner: `@jskit-ai/agent-docs@0.1.367`
371
371
  - Read: [PATTERN.md](patterns/server/feature-package/PATTERN.md)
372
372
  - Examples: [example/](patterns/server/feature-package/example/)
373
373
  - Requires: `@jskit-ai/kernel`
@@ -378,7 +378,7 @@ Compose the JSKIT responsive shell, semantic placements, settings navigation, an
378
378
 
379
379
  - Id: `shell/application-shell`
380
380
  - Keywords: `adaptive`, `app`, `layout`, `navigation`, `placement`, `responsive`, `settings`, `shell`
381
- - Owner: `@jskit-ai/shell-web@0.2.56`
381
+ - Owner: `@jskit-ai/shell-web@0.2.57`
382
382
  - Read: [PATTERN.md](patterns/shell/application-shell/PATTERN.md)
383
383
  - Examples: [example/](patterns/shell/application-shell/example/)
384
384
  - Requires: `@jskit-ai/kernel`, `@jskit-ai/shell-web`
@@ -389,7 +389,7 @@ Add product routes and shell extensions through file routing, semantic placement
389
389
 
390
390
  - Id: `ui/page-and-placement`
391
391
  - Keywords: `component`, `navigation`, `outlet`, `page`, `placement`, `routes`, `section`, `shell`, `subpages`, `vue`
392
- - Owner: `@jskit-ai/shell-web@0.2.56`
392
+ - Owner: `@jskit-ai/shell-web@0.2.57`
393
393
  - Read: [PATTERN.md](patterns/ui/page-and-placement/PATTERN.md)
394
394
  - Examples: [example/](patterns/ui/page-and-placement/example/)
395
395
  - Requires: `@jskit-ai/kernel`, `@jskit-ai/shell-web`
@@ -400,7 +400,7 @@ Compose an account settings route and profile, preference, notification, and sig
400
400
 
401
401
  - Id: `users/account-settings`
402
402
  - Keywords: `account`, `link provider`, `notifications`, `oauth`, `preferences`, `profile`, `settings`, `sign-in methods`, `user`, `vue`
403
- - Owner: `@jskit-ai/users-web@0.2.90`
403
+ - Owner: `@jskit-ai/users-web@0.2.91`
404
404
  - Read: [PATTERN.md](patterns/users/account-settings/PATTERN.md)
405
405
  - Examples: [example/](patterns/users/account-settings/example/)
406
406
  - Requires: `@jskit-ai/shell-web`, `@jskit-ai/users-core`, `@jskit-ai/users-web`
@@ -433,7 +433,7 @@ Compose workspace selection, invitation, member administration, settings, and re
433
433
 
434
434
  - Id: `workspaces/workspace-surfaces`
435
435
  - Keywords: `admin`, `invite`, `member`, `navigation`, `settings`, `surface`, `switcher`, `workspace`
436
- - Owner: `@jskit-ai/workspaces-web@0.2.90`
436
+ - Owner: `@jskit-ai/workspaces-web@0.2.91`
437
437
  - Read: [PATTERN.md](patterns/workspaces/workspace-surfaces/PATTERN.md)
438
438
  - Examples: [example/](patterns/workspaces/workspace-surfaces/example/)
439
439
  - Requires: `@jskit-ai/shell-web`, `@jskit-ai/workspaces-core`, `@jskit-ai/workspaces-web`
@@ -35,7 +35,7 @@
35
35
  "@local/main": "0.1.0",
36
36
  "@fastify/static": "^10.1.3",
37
37
  "@jskit-ai/kernel": "0.2.35",
38
- "@jskit-ai/material-web": "0.1.15",
38
+ "@jskit-ai/material-web": "0.1.16",
39
39
  "@tanstack/vue-query": "^5.101.0",
40
40
  "fastify": "^5.12.7",
41
41
  "pino": "^10.3.1",
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "@jskit-ai/config-eslint": "0.1.254",
53
- "@jskit-ai/jskit-catalog": "0.2.118",
53
+ "@jskit-ai/jskit-catalog": "0.2.119",
54
54
  "@playwright/test": "1.61.1",
55
55
  "@vitejs/plugin-vue": "^6.0.7",
56
56
  "eslint": "^10.8.0",
@@ -35,7 +35,7 @@
35
35
  "@local/main": "0.1.0",
36
36
  "@fastify/static": "^10.1.3",
37
37
  "@jskit-ai/kernel": "0.2.35",
38
- "@jskit-ai/material-web": "0.1.15",
38
+ "@jskit-ai/material-web": "0.1.16",
39
39
  "@tanstack/vue-query": "^5.101.0",
40
40
  "fastify": "^5.12.7",
41
41
  "pino": "^10.3.1",
@@ -45,13 +45,13 @@
45
45
  "vue-router": "^5.3.1",
46
46
  "vuetify": "^4.3.0",
47
47
  "@jskit-ai/http-runtime": "0.2.36",
48
- "@jskit-ai/shell-web": "0.2.56",
48
+ "@jskit-ai/shell-web": "0.2.57",
49
49
  "@fastify/fast-json-stringify-compiler": "^5.1.0",
50
50
  "@vue/devtools-api": "^8.2.1"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@jskit-ai/config-eslint": "0.1.254",
54
- "@jskit-ai/jskit-catalog": "0.2.118",
54
+ "@jskit-ai/jskit-catalog": "0.2.119",
55
55
  "@playwright/test": "1.61.1",
56
56
  "@vitejs/plugin-vue": "^6.0.7",
57
57
  "eslint": "^10.8.0",
@@ -2,7 +2,7 @@
2
2
  "private": true,
3
3
  "type": "module",
4
4
  "dependencies": {
5
- "@jskit-ai/auth-provider-oidc-core": "0.2.73",
6
- "@jskit-ai/auth-web": "0.2.64"
5
+ "@jskit-ai/auth-provider-oidc-core": "0.2.74",
6
+ "@jskit-ai/auth-web": "0.2.65"
7
7
  }
8
8
  }
@@ -2,7 +2,7 @@
2
2
  "private": true,
3
3
  "type": "module",
4
4
  "dependencies": {
5
- "@jskit-ai/realtime": "0.2.59",
6
- "@jskit-ai/shell-web": "0.2.56"
5
+ "@jskit-ai/realtime": "0.2.60",
6
+ "@jskit-ai/shell-web": "0.2.57"
7
7
  }
8
8
  }
@@ -138,9 +138,12 @@ The rules it applies are in [Typed features](typed-features.md),
138
138
  `types/typed-router.d.ts`, outside `src`.
139
139
  - No fixed sleep: a web-first assertion (`await expect(locator).toBeVisible()`),
140
140
  `expect.poll()`, the event itself, or a fake clock (`mock.timers`,
141
- `vi.useFakeTimers()`, `page.clock`) for the app's own delays. The one fixed
142
- wait that stays proves nothing happens in a window and says so on the line
143
- before, `// jskit-test: fixed-wait - <reason>`.
141
+ `vi.useFakeTimers()`, `page.clock`) for the app's own delays. A poll's
142
+ interval, in a loop that re-reads its condition, and a timer racing another
143
+ wait in `Promise.race([…])` wait for a condition and are not reported. The
144
+ fixed waits that stay prove nothing happens in a window, or simulate a
145
+ stand-in's latency, and say so on the line before,
146
+ `// jskit-test: fixed-wait - <what the window proves, or the latency the stand-in simulates>`.
144
147
  - A file imports what it needs at its top level, so loading counts against the
145
148
  file, not a test's time limit.
146
149
  - The bounds stay: `jskit test`'s 10 minutes a file and 45 a run, and
@@ -1415,7 +1415,7 @@ that must run alone says so on its own first line instead.
1415
1415
  | `test/playwright-isolation` | a Playwright webServer every worker shares, without `browserTestConfig()` | [Test files run in parallel](#test-files-run-in-parallel) |
1416
1416
  | `test/playwright-global-timeout` | a Playwright config without a `globalTimeout` (or `browserTestConfig()`), or with `globalTimeout: 0` | [Test files run in parallel](#test-files-run-in-parallel) |
1417
1417
  | `test/vitest-workers` | `--maxWorkers`, `--minWorkers` or `--no-file-parallelism` passed to Vitest, or its config without `maxWorkers: testConcurrency()` or with `fileParallelism: false` | [Test files run in parallel](#test-files-run-in-parallel) |
1418
- | `test/script-files` | a script that gives `jskit test` files or globs (`jskit test --databases tests/*.test.js`), so `npm test -- <file>` runs every file and that one; drop them, as `jskit test` finds test files by node's default pattern | [Test files run in parallel](#test-files-run-in-parallel) |
1418
+ | `test/script-files` | a script that gives `jskit test` the files node's default pattern selects anyway (`jskit test --databases tests/**/*.test.js`), so `npm test -- <file>` runs every file and that one; drop them, as `jskit test` finds those files itself. A script that runs some of them (`tests/server/*.test.js`) or files the pattern leaves out (`tests/*.integration.js`) names them for a reason and is not reported | [Test files run in parallel](#test-files-run-in-parallel) |
1419
1419
 
1420
1420
  The rules see shapes, not intent. Feature files, owned state beyond
1421
1421
  registries, shutdown, loggers, shared action fields, strict inputs, the action
@@ -1432,19 +1432,44 @@ Vite config, and reports what makes a test run slow, fragile or unsafe.
1432
1432
 
1433
1433
  | Rule | Reports | Fix |
1434
1434
  | --- | --- | --- |
1435
- | `test/fixed-sleep` | in a test file, `page.waitForTimeout(…)`, a `new Promise` that resolves on `setTimeout(…, <ms>)`, or an awaited `setTimeout`, `sleep`, `delay`, `wait` or `pause` of a number of milliseconds | wait for the condition: a web-first assertion (`await expect(locator).toBeVisible()`), `expect.poll()`, the event itself, or a fake clock (`mock.timers`, `vi.useFakeTimers()`, `page.clock`) |
1436
- | `test/fixed-database-name` | a test script that sets `TEST_DB_NAME`, `BROWSER_TEST_DB_NAME` or `DB_NAME`; a test file or runner config that falls back to or assigns a name for one (`process.env.TEST_DB_NAME \|\| "shop_test"`); a runner config that names one (`DB_NAME: "shop_e2e"`) | drop the name: the run's test-only env file or the host names the database, `jskit test --databases` gives each test file its own copy of `TEST_DB_NAME`, and `browserTestConfig()`'s `prepare` module derives each worker's from `BROWSER_TEST_DB_NAME` |
1435
+ | `test/fixed-sleep` | in a test file, `page.waitForTimeout(…)`, a `new Promise` that resolves on `setTimeout(…, <ms>)`, or an awaited `setTimeout`, `sleep`, `delay`, `pause` (its own or an object's, such as `timers.setTimeout(…)`) or `wait` (its own or node's `scheduler.wait(…)`) of a number of milliseconds | wait for the condition: a web-first assertion (`await expect(locator).toBeVisible()`), `expect.poll()`, the event itself, or a fake clock (`mock.timers`, `vi.useFakeTimers()`, `page.clock`) |
1436
+ | `test/fixed-database-name` | a test script that sets `TEST_DB_NAME`, `BROWSER_TEST_DB_NAME` or `DB_NAME`; a test file or runner config that falls back to or assigns a name for one (`process.env.TEST_DB_NAME \|\| "shop_test"`), outside a thrown error's message; a runner config that names one (`DB_NAME: "shop_e2e"`) | drop the name: the run's test-only env file or the host names the database, `jskit test --databases` gives each test file its own copy of `TEST_DB_NAME`, and `browserTestConfig()`'s `prepare` module derives each worker's from `BROWSER_TEST_DB_NAME` |
1437
1437
  | `test/test-database-is-app-database` | a CI workflow whose `TEST_DB_NAME` or `BROWSER_TEST_DB_NAME` is its `DB_NAME`, by value or as an `env.DB_NAME` expression | give it a name of its own, such as `<DB_NAME>_test`: a test run replaces its test databases from the snapshot, and JSKIT refuses to run one on `DB_NAME` |
1438
1438
  | `test/generated-into-src` | a `dts` path under `src/` in the root `vite.config.*`, such as vue-router's `src/typed-router.d.ts` or a components declaration file | write it outside `src`, such as `dts: "types/typed-router.d.ts"`, and move the file and its `.gitignore` line: a file written into `src` while the frontend builds keeps the browser tests from reusing that build (`not kept for reuse, as src changed while it ran`) |
1439
1439
 
1440
- A 0 ms timer yields a turn and is not reported. The one fixed wait a test
1441
- needs is a window that proves nothing happens, such as no second read within
1442
- it, and it says so on the line before, with its reason; a marker without a
1443
- reason is a finding itself, and no other comment excuses these rules:
1440
+ `test/fixed-sleep` reports a wait that stands in for a condition, not every
1441
+ timer. It does not report:
1442
+
1443
+ - a 0 ms timer, which yields a turn;
1444
+ - a timer that is an element of `Promise.race([…])`, which bounds the wait
1445
+ for something else;
1446
+ - a poll's interval: a wait in a loop that re-reads its condition each round,
1447
+ either in its header (`while (!(await ready()))`,
1448
+ `while (running(run) && Date.now() < deadline)`) or through a conditional
1449
+ `return` or `break` in its own body. A loop that only counts or watches the
1450
+ clock (`for (let i = 0; i < 20; i += 1)`, `while (Date.now() < end)`) waits
1451
+ a fixed time all the same and is reported;
1452
+ - another object's method named `wait`, such as a fake clock's
1453
+ `page.wait(60_000)`.
1454
+
1455
+ `jskit check` reads those loops and races from the file's brackets, past its
1456
+ strings, template literals, comments and regular expressions; a file whose
1457
+ brackets it cannot match is read a line at a time, so each of its waits is
1458
+ reported.
1459
+
1460
+ The fixed waits a test needs are a window that proves nothing happens, such
1461
+ as no second read within it, and the latency a stand-in simulates. Each says
1462
+ so on the line before, with its reason,
1463
+ `// jskit-test: fixed-wait - <what the window proves, or the latency the stand-in simulates>`;
1464
+ a marker without a reason is a finding itself, and no other comment excuses
1465
+ these rules:
1444
1466
 
1445
1467
  ```js
1446
1468
  // jskit-test: fixed-wait - the window in which the list must make no second read
1447
1469
  await page.waitForTimeout(2000);
1470
+
1471
+ // jskit-test: fixed-wait - the latency of the mail provider this stand-in simulates
1472
+ await sleep(200);
1448
1473
  ```
1449
1474
 
1450
1475
  Why: a fixed sleep makes every run as slow as its longest guess and fails on