@jskit-ai/agent-docs 0.1.354 → 0.1.356

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.
Files changed (44) hide show
  1. package/guide/agent/app-extras/assistant-conversation.md +7 -0
  2. package/guide/agent/app-extras/assistant.md +51 -0
  3. package/guide/agent/app-setup/authentication.md +6 -0
  4. package/guide/agent/app-setup/database-layer.md +40 -15
  5. package/guide/agent/app-setup/upgrading-jskit.md +6 -3
  6. package/guide/agent/framework/material-3.md +3 -4
  7. package/guide/agent/framework/speed-pass.md +7 -1
  8. package/guide/agent/framework/typed-features.md +46 -20
  9. package/package.json +1 -1
  10. package/patterns/feature-package/example/booking-engine/package.json +1 -1
  11. package/patterns/minimal-foundation/example/package.json +6 -6
  12. package/patterns/shell-foundation/example/package.json +7 -7
  13. package/patterns/shell-foundation/example/packages/main/package.json +1 -1
  14. package/patterns/shell-foundation/example/src/components/menus/TabLinkItem.vue +5 -0
  15. package/reference/autogen/PATTERN_INDEX.md +39 -39
  16. package/reference/autogen/packages/agent-runtime.md +1 -1
  17. package/reference/autogen/packages/assistant-core.md +3 -2
  18. package/reference/autogen/packages/assistant-runtime.md +8 -1
  19. package/reference/autogen/packages/assistant-voice-sherpa.md +2 -1
  20. package/reference/autogen/packages/kernel.md +1 -1
  21. package/reference/autogen/packages/material-web.md +2 -0
  22. package/reference/autogen/tooling/jskit-catalog.md +8 -2
  23. package/skills/jskit/references/database-layer.md +40 -15
  24. package/skills/jskit/references/heuristics/placements.md +1 -0
  25. package/skills/jskit/references/material-3.md +3 -4
  26. package/skills/jskit/references/pattern-index.md +39 -39
  27. package/skills/jskit/references/patterns/app/minimal-foundation/example/package.json +6 -6
  28. package/skills/jskit/references/patterns/app/shell-foundation/example/package.json +7 -7
  29. package/skills/jskit/references/patterns/app/shell-foundation/example/packages/main/package.json +1 -1
  30. package/skills/jskit/references/patterns/app/shell-foundation/example/src/components/menus/TabLinkItem.vue +5 -0
  31. package/skills/jskit/references/patterns/auth/accounts-hub/example/package.json +3 -3
  32. package/skills/jskit/references/patterns/auth/oidc-sign-in/example/package.json +2 -2
  33. package/skills/jskit/references/patterns/auth/supabase-auth/example/package.json +1 -1
  34. package/skills/jskit/references/patterns/connectors/calendar-cli/example/package.json +5 -5
  35. package/skills/jskit/references/patterns/crud/crud-feature-package/example/packages/books/package.json +3 -3
  36. package/skills/jskit/references/patterns/database/mysql-application/example/package.json +2 -2
  37. package/skills/jskit/references/patterns/database/postgres-application/example/package.json +2 -2
  38. package/skills/jskit/references/patterns/realtime/realtime-application/example/package.json +2 -2
  39. package/skills/jskit/references/patterns/server/feature-package/example/booking-engine/package.json +1 -1
  40. package/skills/jskit/references/patterns/shell/application-shell/example/src/components/menus/TabLinkItem.vue +5 -0
  41. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users/package.json +3 -3
  42. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users-workspace/package.json +6 -6
  43. package/skills/jskit/references/speed-pass.md +7 -1
  44. package/skills/jskit/references/typed-features.md +46 -20
@@ -2489,6 +2489,13 @@ so it is not compacted, and history an application supplies as `apiHistory` is
2489
2489
  used as given. History turns within the newest 20 messages send their files again;
2490
2490
  older turns name their files without their content.
2491
2491
 
2492
+ `apiTurnNote({ context })`, a server-owned function `createConversationRuntime`
2493
+ takes beside `apiHistory`, adds the application's note to one API turn: the text
2494
+ it returns for the turn's context goes before that turn's message, to the model
2495
+ alone. It is never saved, so no later turn reads it, and `""` adds nothing. The
2496
+ database-backed assistant uses it for the page the person has open (the
2497
+ Assistant guide's "The page the person is looking at").
2498
+
2492
2499
  Each reply streams one message per step: `reply-1`, `reply-2` and so on. A step
2493
2500
  that also calls actions ends as commentary, complete before the first of its actions
2494
2501
  runs, and the reply's last step becomes the answer. The answer leaves out words already shown as commentary, unless they are
@@ -1001,6 +1001,57 @@ classes or pass the retired renderer's `variant`, `features`, `ui`, or `copy`
1001
1001
  objects. `AssistantClientElement` and its Markdown/keyboard helpers have been
1002
1002
  removed; there is no forwarding alias.
1003
1003
 
1004
+ ### The page the person is looking at
1005
+
1006
+ `AssistantSurfaceClientElement` and `useAssistantRuntime` take an optional
1007
+ `pageContext`: the page the person has open, sent with each message, so "what's
1008
+ this job's vessel?" needs no job number. Give a value, or a function the runtime
1009
+ calls as each message is sent, so each browser tab sends its own page and two
1010
+ tabs on two records never mix them up. The application fills it from its
1011
+ router:
1012
+
1013
+ ```vue
1014
+ <script setup>
1015
+ import { useRoute } from "vue-router";
1016
+ import { AssistantSurfaceClientElement } from "@jskit-ai/assistant-runtime/client";
1017
+
1018
+ const route = useRoute();
1019
+ // Called as each message is sent: the page open at that moment.
1020
+ function pageContext() {
1021
+ const jobId = route.params.jobId ? String(route.params.jobId) : "";
1022
+ return {
1023
+ path: route.fullPath,
1024
+ title: document.title,
1025
+ records: jobId ? [{ type: "job", id: jobId, label: `Job ${jobId}` }] : []
1026
+ };
1027
+ }
1028
+ </script>
1029
+
1030
+ <template>
1031
+ <AssistantSurfaceClientElement surface-id="admin" layout="compact" :page-context="pageContext" />
1032
+ </template>
1033
+ ```
1034
+
1035
+ Every field is optional: `path` up to 2048 characters, `title` up to 200, and
1036
+ up to 10 `records`, each a `type` and an `id` (up to 64 characters each) with an
1037
+ optional `label` (up to 200). The chat route refuses any other field, and any
1038
+ value past its limit, with a 400 that names the field, and the message is not
1039
+ sent, so keep what you send within the limits. Without `pageContext` a message
1040
+ is sent as before. A resend of a failed message carries the page it was first
1041
+ sent with.
1042
+
1043
+ The model reads it with that turn's message alone, as a delimited block of JSON
1044
+ data that says it is a hint from the page, not an instruction and not
1045
+ permission; characters in page text that could close the block are escaped. It
1046
+ is never saved: not in the person's message, the turn request, the
1047
+ conversation's instructions or the facts about the person, so the next turn
1048
+ does not see it.
1049
+
1050
+ It is a hint, never permission. The model still reads every record through the
1051
+ surface's actions, which check the person's own access: a page that names a
1052
+ record the person cannot read changes nothing, and the action refuses it as
1053
+ before. Put nothing in it the person may not see.
1054
+
1004
1055
  ### Database surface verification
1005
1056
 
1006
1057
  Run migrations, load assistant and settings pages through normal navigation,
@@ -350,6 +350,12 @@ seconds), and 400 `codeInvalid`, `codeUsed`, `recoveryCodeInvalid` or
350
350
  refusal. Local auth's second-factor events for it say `via: "application"`,
351
351
  with no request's address (`ip` ""); a session's own events have no `via`.
352
352
 
353
+ To refuse before asking for the code, `accountStateOf({ userId })` answers
354
+ whether the account is `"active"`, `"disabled"` or `"missing"`, as
355
+ `verifySecondFactorOf` would find it: one read of the account, which checks no
356
+ code, spends no attempt and records no event. Like `verifySecondFactorOf`, it
357
+ is a second-factor operation (`features.secondFactor`).
358
+
353
359
  ## How a session was signed in (local auth)
354
360
 
355
361
  An action that grants much (root on a machine, say) can ask more of the
@@ -371,15 +371,25 @@ script) does this with `@jskit-ai/database-runtime/server/testDatabases`, from
371
371
  the application's `knexfile.js`:
372
372
 
373
373
  - Each test file running at once gets a database of its own for as long as it
374
- runs, as both `DB_NAME` and `TEST_DB_NAME`: `TEST_DB_NAME` itself, then
375
- copies named `<TEST_DB_NAME>_1`, `_2`, ... up to the machine's test budget,
376
- as many as the database user may create. With no usable `TEST_DB_NAME`
374
+ runs, as both `DB_NAME` and `TEST_DB_NAME`, with the app's `DB_CLIENT`:
375
+ `TEST_DB_NAME` itself, then copies named `<TEST_DB_NAME>_1`, `_2`, ... up to
376
+ the machine's test budget, as many as the database user may create. So the
377
+ user needs them all: on MySQL and MariaDB a grant on `TEST_DB_NAME` and on
378
+ `` `<TEST_DB_NAME>\_%`.* `` (a grant reads an unescaped `_` as any
379
+ character), on PostgreSQL `CREATEDB`. A run that gets fewer databases than
380
+ the files its budget would run at once says so, and why, at its start and
381
+ its end (`jskit test: test files run 1 at a time, not the 4 this machine's
382
+ test budget allows: the database user may not create shop_test_1. ...`),
383
+ and fails once its tests have run: a machine meant to run files in parallel
384
+ never runs them one at a time unnoticed. With no usable `TEST_DB_NAME`
377
385
  (unset, the connected database itself, or one the database user may not
378
- prepare), the files run one at a time on the connected database. A copy
379
- named like the application's database, `STAGING_DB_NAME` or
380
- `PRODUCTION_DB_NAME`, or a server that cannot be reached, fails the run
381
- instead. So does a run while `PROD_DB_NAME`, which those two replaced, is
382
- set.
386
+ prepare) the files run one at a time on the connected database, the same
387
+ way. To run that way on purpose, set the budget to what the databases allow
388
+ (`V64_TEST_CONCURRENCY=1`); a focused run of one file loses nothing and only
389
+ says which database it used. A copy named like the application's database,
390
+ `STAGING_DB_NAME` or `PRODUCTION_DB_NAME`, or a server that cannot be
391
+ reached, fails the run instead. So does a run while `PROD_DB_NAME`, which
392
+ those two replaced, is set.
383
393
  Every file starts from the snapshot, rows included: a copy an earlier file of
384
394
  the run used is restored before the next file takes it, so no file sees what
385
395
  another wrote.
@@ -429,6 +439,17 @@ the application's `knexfile.js`:
429
439
  `knex.migrate.latest()`), and `files` lists every file it reads, its own
430
440
  module included, relative to the application root: their contents join the
431
441
  digest, so changing one takes a new snapshot.
442
+ - A test file that needs a scratch database beside its own copy, an empty one
443
+ for tables the test creates or several at once, takes each from
444
+ `createPackageTestKnex(t, { environment: process.env })` (from
445
+ `@jskit-ai/resource-runtime/test`): with the run's `DB_CLIENT` in the file's
446
+ environment, each call on MySQL or MariaDB claims one of the 26 lettered
447
+ copies of the run's designated database, `<TEST_DB_NAME>_a` to `_z`,
448
+ recreated empty and dropped after the test, and on PostgreSQL a schema of
449
+ its own in the file's database
450
+ ([data access tests](/guide/framework/data-access#tests)). A file is the
451
+ unit that starts from the snapshot: tests that each need the snapshot's
452
+ database afresh go in files of their own.
432
453
  - A test that runs migrations up or down, or otherwise changes the tables,
433
454
  leaves its database dirty: its tables or migration ledger differ from the
434
455
  snapshot's. The harness restores the snapshot before another test file uses
@@ -488,12 +509,16 @@ disable email, payments or other external effects: configure those test controls
488
509
  and verify the actual server identity before destructive requests.
489
510
 
490
511
  A host's browser test target, such as a Vibe64 Outputs target with
491
- ``- Data: `test` ``, runs `jskit browser-test-server <host> <port>`: one worker's
492
- server of the app's own `browserTestConfig()`, on the production build, with the
493
- database its `prepare` module gives that worker (`BROWSER_TEST_DB_NAME` itself in
494
- the database patterns), its test-only `env` and `APP_ENV=test`, on the host's
512
+ ``- Data: `test` ``, runs `jskit browser-test-server <host> <port> <workers>`:
513
+ `<workers>` servers of the app's own `browserTestConfig()` (1 to 64, else one),
514
+ worker *i* on `<port>`+*i*, on the production build, each with the database its
515
+ `prepare` module gives that worker (`BROWSER_TEST_DB_NAME` itself for the first
516
+ in the database patterns), its test-only `env` and `APP_ENV=test`, on the host's
495
517
  address. The JSKIT Stack piece declares that target as `test-app`, so
496
518
  `vibe64-helper playwright --target test-app npm-run test:e2e` runs the app's
497
- suite against its own test database from the first commit. The target signs
498
- nothing in; the host supplies the suite's login state through the target's
499
- Preview identity, the same command as the normal target's.
519
+ suite against its own test database from the first commit, one Playwright worker
520
+ per server: the host lists them in `PLAYWRIGHT_WORKER_TARGETS`, and
521
+ `browserTestConfig()` gives each worker its own server and signed-in state and
522
+ refuses another worker count. The target signs nothing in; the host supplies
523
+ each worker's login state through the target's Preview identity, the same
524
+ command as the normal target's.
@@ -172,7 +172,7 @@ For example:
172
172
  ```json
173
173
  {
174
174
  "scripts": {
175
- "verify": "npm run jskit:check && npm run lint && npm test && npm run build"
175
+ "verify": "npm run jskit:check && npm run lint && npm test && npm run test:client && npm run test:e2e"
176
176
  }
177
177
  }
178
178
  ```
@@ -233,8 +233,11 @@ An application adopts it once, at the upgrade that brings `jskit test`:
233
233
  1. Its test scripts run `jskit test` with their own files or globs, for
234
234
  example `"test": "jskit test"`, never `node --test` or
235
235
  `--test-concurrency`.
236
- 2. `playwright.config.*` sets `workers: testConcurrency()` and the Vitest
237
- config sets `maxWorkers: testConcurrency()`, with
236
+ 2. `playwright.config.*` is `browserTestConfig()`, or sets
237
+ `workers: browserTestWorkers()` with
238
+ `import { browserTestWorkers } from "@jskit-ai/jskit-catalog/browser-tests";`
239
+ (half the budget: each worker drives a browser), and the Vitest config sets
240
+ `maxWorkers: testConcurrency()`, with
238
241
  `import { testConcurrency } from "@jskit-ai/jskit-catalog/test-budget";`,
239
242
  and no script passes `--workers`, `-j` or `--maxWorkers`.
240
243
  3. Files that collide when run together get their own port, temporary
@@ -240,8 +240,8 @@ JSKIT ships these exact sizes; an app never re-implements or overrides them:
240
240
  and the 48dp target. No icon button is under 32dp, and a target stops at
241
241
  the edge of a button beside it, so each of a row's touching icon buttons
242
242
  answers its own press;
243
- - one-line button labels, ending in an ellipsis: keep labels short, and give
244
- one that can run long, such as a name, its full label as `title`;
243
+ - one-line button and chip labels, ending in an ellipsis: keep labels short,
244
+ and give one that can run long, such as a name, its full label as `title`;
245
245
  - 12dp cards: flat (the default) and tonal at level 0, `variant="elevated"`
246
246
  at level 1; flat expansion panels;
247
247
  - 28dp dialogs and bottom-sheet top corners, square full-screen dialogs;
@@ -313,8 +313,7 @@ dialog, chip or FAB.
313
313
  color alone.
314
314
  - Surfaces are separated by tone (`surface-container-lowest` to
315
315
  `-highest`), not borders: no `variant="outlined"` cards and no `border` on
316
- cards or sheets. A VCard default `color` becomes the text colour on outlined
317
- and tonal cards.
316
+ cards or sheets.
318
317
  - Keep WCAG AA contrast in both schemes. Use elevation `0` through `5` and
319
318
  component variants instead of arbitrary shadows.
320
319
 
@@ -48,9 +48,15 @@ database time, apply that page to the path.
48
48
  that runs files one at a time ([test-run rules](/guide/framework/typed-features#test-run-rules)).
49
49
  - Files that collide are isolated, never run one at a time: a port from
50
50
  `listen(0)`, a directory from `mkdtemp`, the database `jskit test --databases`
51
- gives each file, and a Vite `cacheDir` of its own. The
51
+ gives each file, a scratch database from
52
+ `createPackageTestKnex(t, { environment: process.env })` for a test that
53
+ needs an empty one (or several), and a Vite `cacheDir` of its own. The
52
54
  `// jskit-test: alone - <reason>` marker is only for a file that holds a
53
55
  resource of the whole machine.
56
+ - A `jskit test --databases` run whose databases let fewer files run at once
57
+ than the budget (no `TEST_DB_NAME`, or copies the database user may not
58
+ create) says why at its start and end and fails: give the user its copies
59
+ ([Integration test databases](/guide/app-setup/database-layer#integration-test-databases)).
54
60
  - `jskit test --databases` restores each file's database from a snapshot
55
61
  rebuilt only when the migrations' digest changes. A file that runs
56
62
  `knex.migrate.latest()` itself replays the whole history for every file:
@@ -90,19 +90,25 @@ the kernel's own (`runtime.actions`, `runtime.events`, `runtime.http`,
90
90
  `runtime.bootstrap`) and those the package provides itself.** Late
91
91
  capabilities are required; optional ones are not. A requirement no feature has stays only when
92
92
  the package needs it at install time, such as the database its migrations
93
- need.
93
+ need, and `installRequires` marks it so; it stays in `requires` too.
94
94
 
95
95
  Why: start-up resolves every package's requirements from the manifests, and
96
- refuses a manifest that disagrees with the package's features. Plain
97
- `jskit check` loads each application package's features (the server providers
98
- `jskit.runtime.server.providers` declares) and reports the drift before that
99
- (`manifest/capabilities`), each capability to add or remove; it lists the
100
- requirements no feature has for review.
96
+ refuses a manifest that disagrees with the package's features, including an
97
+ `installRequires` mark on a capability a feature requires or `requires` does
98
+ not list. It logs, at every start, each requirement no feature has that
99
+ `installRequires` does not mark. Plain `jskit check` loads each application
100
+ package's features (the server providers `jskit.runtime.server.providers`
101
+ declares) and reports the drift before that (`manifest/capabilities`), each
102
+ capability to add or remove; it lists the unmarked requirements no feature has
103
+ for review.
101
104
 
102
105
  ```jsonc
103
106
  // good: BooksFeature provides app.books and requires crud.contracts and runtime.actions
104
107
  "capabilities": { "provides": ["app.books"], "requires": ["crud.contracts"] }
105
108
 
109
+ // good: the migrations need the database, which no feature requires
110
+ "capabilities": { "provides": ["app.books"], "requires": ["crud.contracts", "runtime.database"], "installRequires": ["runtime.database"] }
111
+
106
112
  // bad: app.books missing from provides, crud.contracts from requires
107
113
  "capabilities": { "provides": ["app.book"], "requires": [] }
108
114
  ```
@@ -1056,13 +1062,17 @@ one-line test.
1056
1062
 
1057
1063
  **A test suite runs its files in parallel, as many at a time as the machine's
1058
1064
  test budget allows: never one file at a time, and never more than the machine
1059
- can take. Node's test runner runs through `jskit test`; Playwright's `workers`
1060
- and Vitest's `maxWorkers` come from `testConcurrency()`.**
1065
+ can take. Node's test runner runs through `jskit test`; Vitest's `maxWorkers`
1066
+ comes from `testConcurrency()`, and Playwright's `workers` from
1067
+ `browserTestWorkers()`, half of it, as each worker drives a browser and often
1068
+ its own app server.**
1061
1069
 
1062
1070
  - The budget is `V64_TEST_CONCURRENCY` when it is a positive whole number (a
1063
1071
  test runner that hands out slots exports it for each run), otherwise half of
1064
- the machine's CPUs, rounded down and at least 1: a 2-vCPU VPS runs one file
1065
- at a time, an 8-thread machine four.
1072
+ the CPUs the process may use, rounded down and at least 1: a 2-vCPU VPS runs
1073
+ one file at a time, an 8-thread machine four, and a container or slice whose
1074
+ cgroup `cpu.max` quota gives it 3 CPUs of a 16-thread machine one
1075
+ (`availableCpus()`).
1066
1076
  - `jskit test` (from `@jskit-ai/jskit-catalog`) passes its arguments to
1067
1077
  `node --test` and sets `--test-concurrency` to the budget.
1068
1078
  `testConcurrency()` from `@jskit-ai/jskit-catalog/test-budget` returns the
@@ -1072,16 +1082,21 @@ and Vitest's `maxWorkers` come from `testConcurrency()`.**
1072
1082
  default pattern and fails on a `tests/` file it would leave out, such as
1073
1083
  `<name>.integration.js` or `<name>.spec.js`.
1074
1084
  - No script passes a fixed concurrency or worker count. `jskit check` fails a
1075
- package script that runs `node --test` directly or passes one, and a
1076
- Playwright or Vitest config those scripts use whose workers do not come from
1077
- `testConcurrency()` ([test-run rules](#test-run-rules)).
1085
+ package script that runs `node --test` directly or passes one, a Vitest
1086
+ config those scripts use whose `maxWorkers` does not come from
1087
+ `testConcurrency()`, and a Playwright config whose `workers` do not come from
1088
+ `browserTestWorkers()` of `@jskit-ai/jskit-catalog/browser-tests` or
1089
+ `browserTestConfig()`: one worker for each budget thread started twice the
1090
+ browsers and servers the runner gave ([test-run rules](#test-run-rules)).
1078
1091
  - Each file isolates what it shares: a port the system picks (`listen(0)`), a
1079
1092
  directory from `mkdtemp`, its own database or schema with a name no other
1080
1093
  file uses, its own Vite `cacheDir` for each dev server it starts (Vite
1081
1094
  replaces a shared dependency cache under servers still reading it), and no
1082
1095
  writes into the source tree. Files that collide are isolated, never
1083
1096
  serialised. A database test file gets its own copy of `TEST_DB_NAME` from
1084
- `jskit test --databases`
1097
+ `jskit test --databases`, and a scratch database beside it from
1098
+ `createPackageTestKnex()`; a run whose databases let fewer files run at
1099
+ once than the budget says why and fails
1085
1100
  ([integration test databases](https://mobily-enterprises.github.io/jskit-ai/guide/app-setup/database-layer#integration-test-databases)).
1086
1101
  - An application's `playwright.config.mjs` is
1087
1102
  `defineConfig(browserTestConfig({ testDir: "./tests/e2e" }))` from
@@ -1277,10 +1292,15 @@ Why: a comment that narrates history is wrong the day after it is written.
1277
1292
  ### Running the checks
1278
1293
 
1279
1294
  `npm run lint` runs ESLint with `@jskit-ai/config-eslint`, and `npm run
1280
- verify` runs `jskit check` (the package graph, navigation, [data
1281
- access](/guide/framework/data-access#exceptions), [test
1282
- runs](#test-run-rules) and [package manifests](#package-manifest)), lint, the
1283
- tests and the build. The foundations'
1295
+ verify` is the whole suite, each section once: `jskit check` (the package
1296
+ graph, navigation, [data access](/guide/framework/data-access#exceptions),
1297
+ [test runs](#test-run-rules) and [package manifests](#package-manifest)),
1298
+ lint, the Node tests (`npm test`), the client tests (`npm run test:client`)
1299
+ and the browser suite (`npm run test:e2e`), which builds the production
1300
+ frontend it serves, so no separate build runs. Each section takes its
1301
+ concurrency from the machine's test budget and ends with its slowest files.
1302
+ A host's Verification declares the same sections, each as its own entry. The
1303
+ foundations'
1284
1304
  `eslint.config.mjs` already holds a new
1285
1305
  application's code to every check:
1286
1306
 
@@ -1322,7 +1342,13 @@ export default [
1322
1342
  `**/src/server/**`, so an existing application sees them before it lists a
1323
1343
  package; it lists each package as it converts it. It makes the
1324
1344
  [data-access rules](/guide/framework/data-access#hard-rules) errors in all
1325
- code but a package's `src/client`, tests, migrations and seeds.
1345
+ code but a package's `src/client`, tests, migrations and seeds. In every
1346
+ file it refuses a name read before its `const`, `let`, `class` or `import`
1347
+ in the same scope (`no-use-before-define`): such a read throws a
1348
+ `ReferenceError` when it runs, as a local that shadows a helper called a
1349
+ line earlier does. Imports go at the top of the file. A hoisted function
1350
+ called above its declaration, or a function that runs later and reads a
1351
+ name declared below it, is fine.
1326
1352
  - `clientFeaturesConfig(globs)` holds client code to the same rules; see
1327
1353
  [client features](/guide/framework/client-features#running-the-checks).
1328
1354
 
@@ -1366,7 +1392,7 @@ that must run alone says so on its own first line instead.
1366
1392
  | --- | --- | --- |
1367
1393
  | `test/node-test` | a script that runs `node --test` directly instead of `jskit test` | [Test files run in parallel](#test-files-run-in-parallel) |
1368
1394
  | `test/fixed-concurrency` | `--test-concurrency` in a script, or a script that pins `V64_TEST_CONCURRENCY` or `PLAYWRIGHT_WORKERS` | [Test files run in parallel](#test-files-run-in-parallel) |
1369
- | `test/playwright-workers` | `--workers` or `-j` passed to `playwright test`, its config without `workers: testConcurrency()` or `browserTestConfig()`, or with `workers` set over `browserTestConfig()`'s | [Test files run in parallel](#test-files-run-in-parallel) |
1395
+ | `test/playwright-workers` | `--workers` or `-j` passed to `playwright test`, its config without `workers: browserTestWorkers()` or `browserTestConfig()`, or with `workers` set over `browserTestConfig()`'s | [Test files run in parallel](#test-files-run-in-parallel) |
1370
1396
  | `test/playwright-dev-server` | a Playwright webServer command that runs the development server (`npm run develop`, `npm run dev`, `bin/develop.js`, `vite`, `vite dev`) | [Test files run in parallel](#test-files-run-in-parallel) |
1371
1397
  | `test/playwright-isolation` | a Playwright webServer every worker shares, without `browserTestConfig()` | [Test files run in parallel](#test-files-run-in-parallel) |
1372
1398
  | `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) |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/agent-docs",
3
- "version": "0.1.354",
3
+ "version": "0.1.356",
4
4
  "description": "Distributed JSKIT agent references, prompts, guides, and generated reference maps.",
5
5
  "type": "module",
6
6
  "files": [
@@ -5,7 +5,7 @@
5
5
  "private": true,
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@jskit-ai/kernel": "0.2.34",
8
+ "@jskit-ai/kernel": "0.2.35",
9
9
  "json-rest-schema": "^1.0.20"
10
10
  },
11
11
  "exports": {
@@ -29,13 +29,13 @@
29
29
  "test:e2e": "playwright test tests/e2e",
30
30
  "jskit:update": "npx --yes @jskit-ai/jskit-catalog@latest update",
31
31
  "jskit:check": "jskit check",
32
- "verify": "npm run jskit:check && npm run lint && npm run test && npm run test:client && npm run build"
32
+ "verify": "npm run jskit:check && npm run lint && npm run test && npm run test:client && npm run test:e2e"
33
33
  },
34
34
  "dependencies": {
35
35
  "@local/main": "0.1.0",
36
36
  "@fastify/static": "^10.1.3",
37
- "@jskit-ai/kernel": "0.2.34",
38
- "@jskit-ai/material-web": "0.1.10",
37
+ "@jskit-ai/kernel": "0.2.35",
38
+ "@jskit-ai/material-web": "0.1.11",
39
39
  "@tanstack/vue-query": "^5.101.0",
40
40
  "fastify": "^5.12.7",
41
41
  "pino": "^10.3.1",
@@ -44,13 +44,13 @@
44
44
  "vue": "^3.5.44",
45
45
  "vue-router": "^5.3.1",
46
46
  "vuetify": "^4.3.0",
47
- "@jskit-ai/http-runtime": "0.2.35",
47
+ "@jskit-ai/http-runtime": "0.2.36",
48
48
  "@fastify/fast-json-stringify-compiler": "^5.1.0",
49
49
  "@vue/devtools-api": "^8.2.1"
50
50
  },
51
51
  "devDependencies": {
52
- "@jskit-ai/config-eslint": "0.1.252",
53
- "@jskit-ai/jskit-catalog": "0.2.106",
52
+ "@jskit-ai/config-eslint": "0.1.253",
53
+ "@jskit-ai/jskit-catalog": "0.2.108",
54
54
  "@playwright/test": "1.61.1",
55
55
  "@vitejs/plugin-vue": "^6.0.7",
56
56
  "eslint": "^10.8.0",
@@ -29,13 +29,13 @@
29
29
  "test:e2e": "playwright test tests/e2e",
30
30
  "jskit:update": "npx --yes @jskit-ai/jskit-catalog@latest update",
31
31
  "jskit:check": "jskit check",
32
- "verify": "npm run jskit:check && npm run lint && npm run test && npm run test:client && npm run build"
32
+ "verify": "npm run jskit:check && npm run lint && npm run test && npm run test:client && npm run test:e2e"
33
33
  },
34
34
  "dependencies": {
35
35
  "@local/main": "0.1.0",
36
36
  "@fastify/static": "^10.1.3",
37
- "@jskit-ai/kernel": "0.2.34",
38
- "@jskit-ai/material-web": "0.1.10",
37
+ "@jskit-ai/kernel": "0.2.35",
38
+ "@jskit-ai/material-web": "0.1.11",
39
39
  "@tanstack/vue-query": "^5.101.0",
40
40
  "fastify": "^5.12.7",
41
41
  "pino": "^10.3.1",
@@ -44,14 +44,14 @@
44
44
  "vue": "^3.5.44",
45
45
  "vue-router": "^5.3.1",
46
46
  "vuetify": "^4.3.0",
47
- "@jskit-ai/http-runtime": "0.2.35",
48
- "@jskit-ai/shell-web": "0.2.51",
47
+ "@jskit-ai/http-runtime": "0.2.36",
48
+ "@jskit-ai/shell-web": "0.2.52",
49
49
  "@fastify/fast-json-stringify-compiler": "^5.1.0",
50
50
  "@vue/devtools-api": "^8.2.1"
51
51
  },
52
52
  "devDependencies": {
53
- "@jskit-ai/config-eslint": "0.1.252",
54
- "@jskit-ai/jskit-catalog": "0.2.106",
53
+ "@jskit-ai/config-eslint": "0.1.253",
54
+ "@jskit-ai/jskit-catalog": "0.2.108",
55
55
  "@playwright/test": "1.61.1",
56
56
  "@vitejs/plugin-vue": "^6.0.7",
57
57
  "eslint": "^10.8.0",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "description": "App-local runtime composition and lightweight glue.",
11
11
  "dependencies": {
12
- "@jskit-ai/kernel": "0.2.34"
12
+ "@jskit-ai/kernel": "0.2.35"
13
13
  },
14
14
  "jskit": {
15
15
  "kind": "runtime",
@@ -6,6 +6,11 @@ const props = defineProps({
6
6
  type: String,
7
7
  default: ""
8
8
  },
9
+ // The navigation bar's label when `label` is wider than a phone's slot.
10
+ shortLabel: {
11
+ type: String,
12
+ default: ""
13
+ },
9
14
  to: {
10
15
  type: String,
11
16
  default: ""