@jskit-ai/agent-docs 0.1.291 → 0.1.292

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.
@@ -34,7 +34,7 @@ through its handle's calls, and every call takes the call's `options` last:
34
34
  | Call | Does |
35
35
  | --- | --- |
36
36
  | `query({ filters, sort, page, include }, options)` | one page: `{ records, page }` |
37
- | `queryAll({ filters, sort, include }, options)` | every matching row, for jobs, id lists and one parent's rows |
37
+ | `queryAll({ filters, sort, include, take }, options)` | every matching row, or the first `take`, for jobs, id lists and one parent's rows |
38
38
  | `queryPages({ filters, sort, include }, options)` | every matching row, a page at a time, for work over many rows |
39
39
  | `get(id, params, options)` | one record |
40
40
  | `aggregate({ measures, groupBy, filters, sort, page }, options)` | totals, grouped by fields or date buckets |
@@ -261,6 +261,63 @@ the other table hides, which would tell a caller which rows hold a value it
261
261
  may not read. For either, the other table's owner answers the ids it matches
262
262
  through its owner API, and the filter takes the list: `filters: { supplierIds }`.
263
263
 
264
+ A filter that asks whether a row has, or lacks, another owner's rows
265
+ (projects with an open task, projects with no task) reads that owner's join
266
+ source. The `owns` entry's `searchSchema` names each join source by an alias,
267
+ with a function answering its owner from the feature's `requires` or its own
268
+ handles (`owned`), and `applyFilter` gets `joinSource(alias)`: that owner's
269
+ `{ query, column }` for the caller's scope, as a report's join source
270
+ ([Layer 5](#layer-5-reports-the-resource-cannot-express)), which it ties to
271
+ the row with `whereColumn` inside `whereExists` or `whereNotExists`:
272
+
273
+ ```js
274
+ // the projects feature's owns entry; the feature requires the tasks owner as `tasks`
275
+ {
276
+ resource: projectResource,
277
+ searchSchema: {
278
+ hasOpenTask: {
279
+ type: "boolean",
280
+ joinSources: { k: ({ requires }) => requires.tasks },
281
+ applyFilter(query, wanted, { column, joinSource }) {
282
+ const task = joinSource("k");
283
+ const openTasks = task.query
284
+ .select(task.column("id"))
285
+ .whereColumn(task.column("projectId"), column("id"))
286
+ .where(task.column("status"), "open");
287
+ if (wanted) {
288
+ query.whereExists(openTasks);
289
+ } else {
290
+ query.whereNotExists(openTasks);
291
+ }
292
+ }
293
+ }
294
+ }
295
+ }
296
+ ```
297
+
298
+ The handle builds the join sources a read's filters use just before the read,
299
+ in the call's own context and transaction, so `query`, `queryAll`,
300
+ `queryPages`, `aggregate` and `joinSource` take the filter in their one
301
+ statement, and the other owner's ownership, row policy and hidden fields
302
+ decide which of its rows count (`column()` refuses a hidden field). A filter
303
+ that prefers one match and falls back on another when no row of the table has
304
+ the first (the projects named like the term, or, when none is, those with a
305
+ task in that status) names the feature's own handle for its own table,
306
+ `({ owned }) => owned.projects`. Only a read through a handle builds join
307
+ sources. `own()` refuses, at startup, `joinSources` that is not a record of
308
+ functions under aliases, such a filter with `oneOf` or without `applyFilter`,
309
+ and `joinSources` in the table resource's own `searchSchema`, which names no
310
+ feature to answer it.
311
+
312
+ An app switches to such a filter where a search resolves another owner's
313
+ matches first: a repository that reads the other owner's ids (an id report on
314
+ its `scopedQuery()`, or that owner's `queryAll` matched in memory) and then
315
+ filters `id` by the list, or a filter that was a `whereRaw` with `EXISTS
316
+ (SELECT ... FROM ...)`, which `jskit/sql-literal` refuses. The filter moves
317
+ into the `owns` entry with the other owner as a join source, the code that
318
+ resolved ids goes, and the read is one statement however many rows match,
319
+ where the id list grew with the matches.
320
+
264
321
  A table keyed by a `uuid` or `string` primary key takes its ids as text; an
265
322
  `owns` entry's `normalizeId` is only for an id written some other way.
266
323
 
@@ -569,8 +626,9 @@ waiter with errno 1020 ("Record has changed since last read"), which a write
569
626
  that owns its transaction runs again. For one row,
570
627
  `patch(id, changes, { ...options, onlyIf: { status: "open" } })` does the same.
571
628
  A filter on another table (a search field whose `actualField` reaches a
572
- related table) is refused on MySQL and MariaDB (`RestApiValidationError`, rule
573
- `selection_cross_table`), even when it matches no row. A search entry's own
629
+ related table, or one that reads a join source) is refused on MySQL and
630
+ MariaDB (`RestApiValidationError`, rule `selection_cross_table`), even when it
631
+ matches no row; `lockWhere` and `claim` refuse it the same way. A search entry's own
574
632
  `applyFilter` that reads another table through a subquery is not detected, and
575
633
  is no compare-and-set there either. Filter on the row's own columns instead, for example
576
634
  on the link after locking its targets with `lockMany` in the same transaction
@@ -627,17 +685,31 @@ or a counter row taken with `lock(id)`. Every lock needs a transaction; SQLite
627
685
  runs one transaction at a time, so there is no row lock to take. Take locks in
628
686
  one order on every path, a parent before its children.
629
687
 
630
- A lock answers only the rows it locks, with the fields `fields` names, and
631
- refuses `include` before any statement. Read the locked rows' related records
632
- after the lock, in the same transaction: `queryAll({ filters: { id: ids },
633
- include }, txOptions)`, or the related table's read by id list. On PostgreSQL
634
- every statement sees what had committed when it began, so that read is current.
635
- On MySQL and MariaDB a plain read inside a transaction sees the snapshot of the
688
+ A lock answers the rows it locks, with the fields `fields` names. Its
689
+ `include` names belongs-to relationships (`include: ["customer"]`, or
690
+ `"batch.yard"` a level further): after its own rows, the lock locks the
691
+ records they name through each related table's own handle (its scope, its row
692
+ policy, its hidden fields), in id order, each related table once however many
693
+ rows name it, and nests them as a read's include does; a link to a record the
694
+ caller may not see reads as in a read, its belongs-to field null. Those are locks too, so on MySQL and MariaDB
695
+ they find a record committed after the transaction's first plain read, which a
696
+ plain read misses. They come after the rows, a child before the parent it
697
+ names, so a path that locks the parent first and then its children (to add one)
698
+ takes the other order: the database ends a deadlock between the two by failing
699
+ one transaction, which `withTransaction` runs again, and a path that runs
700
+ often keeps one order on both sides. A collection (`include: ["lines"]`) is
701
+ refused before any statement: lock a parent's children with their own
702
+ table's `lockWhere` in the same transaction.
703
+
704
+ Every other read after the lock is a plain read. On PostgreSQL every statement
705
+ sees what had committed when it began, so that read is current. On MySQL and
706
+ MariaDB a plain read inside a transaction sees the snapshot of the
636
707
  transaction's first plain read, and a lock that waited does not move it. So
637
708
  take the lock before any plain read in the transaction: the reads after it then
638
709
  see what the lock's previous holder committed. A related row the work decides
639
- on (is this seat already booked?) is locked itself, or read after a lock
640
- that every writer of it takes first.
710
+ on (is this seat already booked?) is locked itself, through the lock's
711
+ `include` or a lock of its own, or read after a lock that every writer of it
712
+ takes first.
641
713
 
642
714
  ```js
643
715
  // good: the lock is the transaction's first read, so the bookings read after it are current
@@ -802,7 +874,10 @@ async function activeDays(memberIds, options) {
802
874
  its own row with `whereColumn`; one that counts them joins the source grouped,
803
875
  as `projectSummary` does. Rows matched by a related row's value ("items
804
876
  whose supplier is named Acme") need no report: a cross-table search filter
805
- answers them in a plain read ([Layer 1](#layer-1-the-table-resource)).
877
+ answers them in a plain read ([Layer 1](#layer-1-the-table-resource)). Nor
878
+ does a question that only narrows a plain read's rows (has an open task, has
879
+ no task): a search filter that reads the other owner's join source answers
880
+ it in that read, with its page, sort and includes as usual (Layer 1).
806
881
 
807
882
  ```js
808
883
  // Knex: report - the caller's projects with no task the caller sees
@@ -816,6 +891,32 @@ async function activeDays(memberIds, options) {
816
891
  }
817
892
  ```
818
893
 
894
+ - A report in a feature that owns none of its tables (a console's, over
895
+ several owners) roots at the main owner's `joinSource()` instead of a
896
+ `scopedQuery()`, and ties the other owners' join sources to it the same way,
897
+ in one statement, every owner's scope and row policy applied.
898
+
899
+ ```js
900
+ // Knex: report - the caller's projects with no task the caller sees, for a console that owns neither table
901
+ async function idleProjects(options) {
902
+ const project = await projects.joinSource({ alias: "p" }, options);
903
+ const task = await tasks.joinSource({ alias: "k" }, options);
904
+ return project.query
905
+ .whereNotExists(task.query.select(task.column("id")).whereColumn(task.column("projectId"), project.column("id")))
906
+ .select({ name: project.column("name") });
907
+ }
908
+ ```
909
+
910
+ - An app switches a report it kept as a raw-SQL exception (another owner's
911
+ table joined by name, or a subquery in `raw()`, in a file under an
912
+ infrastructure exception, see [Exceptions](#exceptions)) to these: the
913
+ report's feature requires each owner whose rows it reads, puts each owner's
914
+ join source where the table stood (`whereExists`, `whereNotExists`, or
915
+ joined grouped for counts and sums), roots at its own table's
916
+ `scopedQuery()` or at the main owner's `joinSource()`, and the file drops
917
+ its `readable-check: allow` lines and its `jskit-data-access.json` entry.
918
+ When an owner is a JSKIT package, its owner API answers `joinSource`
919
+ ([Tables you don't own](#tables-you-dont-own)).
819
920
  - When each owner can answer on its own (keys in, grouped totals out), the
820
921
  report is a feature of its own that calls each owner's method and merges the
821
922
  answers in memory: one statement per owner, never a call per row.
@@ -843,6 +944,11 @@ async function activeDays(memberIds, options) {
843
944
  request it stops past the request row limit (`pageLimits().requestRows`,
844
945
  10,000 rows) with a 400 coded `RESOURCE_ROW_LIMIT`, and never answers part
845
946
  of the rows. A job reads without that limit and holds every row in memory.
947
+ `queryAll({ ..., take: 500 })` answers only the first 500 rows in its sort
948
+ order and reads no row past them, the last page no larger than the rows still
949
+ wanted. `take` is then the read's bound, so a request may name more than the
950
+ request row limit and never gets `RESOURCE_ROW_LIMIT`: name the bound the
951
+ work can hold, never one from the request unchecked.
846
952
  - Work over many rows reads `queryPages` and handles one page at a time:
847
953
  `for await (const records of handle.queryPages(params, options))`. Each
848
954
  page is one statement of up to `pageLimits().server` rows (fewer when its
@@ -116,6 +116,10 @@ expects the relationship id or an unselected field never gets it.
116
116
  once](/guide/framework/typed-features#test-databases-are-prepared-once),
117
117
  [integration test
118
118
  databases](/guide/app-setup/database-layer#integration-test-databases)).
119
+ - A component's content and states are checked in a Vitest component test;
120
+ a browser check is an assertion in the Playwright spec that already reaches
121
+ that screen. Every Playwright run ends with its 10 slowest tests: compare a
122
+ new test's time, and the suite's, before and after.
119
123
 
120
124
  ### Inputs and access
121
125
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/agent-docs",
3
- "version": "0.1.291",
3
+ "version": "0.1.292",
4
4
  "description": "Distributed JSKIT agent references, prompts, guides, and generated reference maps.",
5
5
  "type": "module",
6
6
  "files": [
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "@jskit-ai/config-eslint": "0.1.248",
53
- "@jskit-ai/jskit-catalog": "0.2.43",
53
+ "@jskit-ai/jskit-catalog": "0.2.44",
54
54
  "@playwright/test": "1.61.1",
55
55
  "@vitejs/plugin-vue": "^6.0.7",
56
56
  "eslint": "^10.8.0",
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "@jskit-ai/config-eslint": "0.1.248",
54
- "@jskit-ai/jskit-catalog": "0.2.43",
54
+ "@jskit-ai/jskit-catalog": "0.2.44",
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.291`
18
+ - Owner: `@jskit-ai/agent-docs@0.1.292`
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.291`
29
+ - Owner: `@jskit-ai/agent-docs@0.1.292`
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.37`
40
+ - Owner: `@jskit-ai/assistant-runtime@0.2.38`
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`
@@ -92,7 +92,7 @@ Resolve an administrator environment key or an individual user's grant, then use
92
92
 
93
93
  - Id: `connectors/ai-connections`
94
94
  - Keywords: `ai`, `api-key`, `cli`, `environment`, `free`, `models`, `ownership`, `zai`, `zen`
95
- - Owner: `@jskit-ai/connectors-catalog@0.2.21`
95
+ - Owner: `@jskit-ai/connectors-catalog@0.2.22`
96
96
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/ai-connections/PATTERN.md)
97
97
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/ai-connections/example/)
98
98
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -103,7 +103,7 @@ Compose provider operations, authorization and encrypted file storage from a CLI
103
103
 
104
104
  - Id: `connectors/api-key-connection`
105
105
  - Keywords: `api-key`, `clay`, `cli`, `clickhouse`, `connectors`, `dbt`, `files`, `firecrawl`, `granola`, `integrations`, `metrics`, `prestashop`, `resend`, `semantic-layer`, `semrush`, `x-twitter`
106
- - Owner: `@jskit-ai/connectors-catalog@0.2.21`
106
+ - Owner: `@jskit-ai/connectors-catalog@0.2.22`
107
107
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/api-key-connection/PATTERN.md)
108
108
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/api-key-connection/example/)
109
109
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -114,7 +114,7 @@ Compose token-based MCP discovery and explicitly authorized tool calls using the
114
114
 
115
115
  - Id: `connectors/assistant-mcp`
116
116
  - Keywords: `assistant`, `cli`, `connectors`, `files`, `integrations`, `mcp`, `n8n`, `sanity`
117
- - Owner: `@jskit-ai/connectors-catalog@0.2.21`
117
+ - Owner: `@jskit-ai/connectors-catalog@0.2.22`
118
118
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/assistant-mcp/PATTERN.md)
119
119
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/assistant-mcp/example/)
120
120
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -125,7 +125,7 @@ Configure assistant OAuth clients, then compose existing state, encrypted file g
125
125
 
126
126
  - Id: `connectors/assistant-mcp-oauth`
127
127
  - Keywords: `amplitude`, `assistant`, `atlassian`, `canva`, `cli`, `client metadata`, `confidence`, `connectors`, `figma`, `files`, `granola`, `hex`, `mcp`, `miro`, `oauth`
128
- - Owner: `@jskit-ai/connectors-catalog@0.2.21`
128
+ - Owner: `@jskit-ai/connectors-catalog@0.2.22`
129
129
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/assistant-mcp-oauth/PATTERN.md)
130
130
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/assistant-mcp-oauth/example/)
131
131
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -136,7 +136,7 @@ Compose signed AWS operations, file configuration and application authorization
136
136
 
137
137
  - Id: `connectors/aws-storage-queries`
138
138
  - Keywords: `athena`, `aws`, `cli`, `connectors`, `files`, `iam`, `queries`, `s3`, `storage`, `sts`
139
- - Owner: `@jskit-ai/connectors-catalog@0.2.21`
139
+ - Owner: `@jskit-ai/connectors-catalog@0.2.22`
140
140
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/aws-storage-queries/PATTERN.md)
141
141
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/aws-storage-queries/example/)
142
142
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -147,7 +147,7 @@ Compose reusable connection libraries with portable configuration, application o
147
147
 
148
148
  - Id: `connectors/calendar-cli`
149
149
  - Keywords: `calendar`, `cli`, `connectors`, `google`, `integrations`, `oauth`, `permissions`
150
- - Owner: `@jskit-ai/connector-google-calendar@0.2.21`
150
+ - Owner: `@jskit-ai/connector-google-calendar@0.2.22`
151
151
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/calendar-cli/PATTERN.md)
152
152
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/calendar-cli/example/)
153
153
  - Requires: `@jskit-ai/connector-google-calendar`, `@jskit-ai/connectors-core`, `@jskit-ai/database-runtime-mysql`
@@ -158,7 +158,7 @@ Compose the shared connector runtime for event delivery while leaving workflow c
158
158
 
159
159
  - Id: `connectors/event-delivery`
160
160
  - Keywords: `cli`, `connectors`, `events`, `files`, `inngest`, `integrations`, `workflows`
161
- - Owner: `@jskit-ai/connectors-catalog@0.2.21`
161
+ - Owner: `@jskit-ai/connectors-catalog@0.2.22`
162
162
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/event-delivery/PATTERN.md)
163
163
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/event-delivery/example/)
164
164
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -169,7 +169,7 @@ Wire service-account grants, file storage, explicit message actions and public b
169
169
 
170
170
  - Id: `connectors/firebase-messaging`
171
171
  - Keywords: `cli`, `connectors`, `fcm`, `files`, `firebase`, `integrations`, `jwt`, `notifications`, `push`, `service-account`, `vapid`
172
- - Owner: `@jskit-ai/connectors-catalog@0.2.21`
172
+ - Owner: `@jskit-ai/connectors-catalog@0.2.22`
173
173
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/firebase-messaging/PATTERN.md)
174
174
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/firebase-messaging/example/)
175
175
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -180,7 +180,7 @@ Compose reviewed Search campaigns with project-owned Google OAuth and portable s
180
180
 
181
181
  - Id: `connectors/google-ads-search`
182
182
  - Keywords: `ads`, `campaigns`, `cli`, `connectors`, `conversion`, `google`, `search`
183
- - Owner: `@jskit-ai/connectors-catalog@0.2.21`
183
+ - Owner: `@jskit-ai/connectors-catalog@0.2.22`
184
184
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/google-ads-search/PATTERN.md)
185
185
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/google-ads-search/example/)
186
186
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -191,7 +191,7 @@ Compose provider consent, verification and encrypted file persistence from an ap
191
191
 
192
192
  - Id: `connectors/oauth-connection`
193
193
  - Keywords: `accounting`, `assistant permissions`, `books`, `cli`, `client credentials`, `connectors`, `consent`, `crm`, `databricks`, `developer token`, `fabric`, `files`, `gaql`, `google ads`, `graphql`, `integrations`, `linkedin`, `microsoft`, `oauth`, `powerpoint`, `salesforce`, `service principal`, `shopify`, `soql`, `staffing`, `tiktok`, `twitch`, `wave`, `word`, `wordpress`, `workday`, `xero`, `zoho`
194
- - Owner: `@jskit-ai/connectors-catalog@0.2.21`
194
+ - Owner: `@jskit-ai/connectors-catalog@0.2.22`
195
195
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/oauth-connection/PATTERN.md)
196
196
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/oauth-connection/example/)
197
197
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -202,7 +202,7 @@ Compose a sequential catalogue batch and preserve partial success for applicatio
202
202
 
203
203
  - Id: `connectors/paddle-catalogue`
204
204
  - Keywords: `batch`, `paddle`, `payments`, `prices`, `products`
205
- - Owner: `@jskit-ai/connectors-catalog@0.2.21`
205
+ - Owner: `@jskit-ai/connectors-catalog@0.2.22`
206
206
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/paddle-catalogue/PATTERN.md)
207
207
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/paddle-catalogue/example/)
208
208
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -213,7 +213,7 @@ Resolve a publishable image key deliberately and use the shared URL library in a
213
213
 
214
214
  - Id: `connectors/public-image`
215
215
  - Keywords: `cli`, `connectors`, `files`, `images`, `integrations`, `logo-dev`, `public-key`
216
- - Owner: `@jskit-ai/connectors-catalog@0.2.21`
216
+ - Owner: `@jskit-ai/connectors-catalog@0.2.22`
217
217
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/public-image/PATTERN.md)
218
218
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/public-image/example/)
219
219
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -224,7 +224,7 @@ Compose file configuration, Redshift Data API operations and application query o
224
224
 
225
225
  - Id: `connectors/redshift-queries`
226
226
  - Keywords: `aws`, `cli`, `connectors`, `files`, `iam`, `provisioned`, `redshift`, `serverless`, `sql`, `warehouse`
227
- - Owner: `@jskit-ai/connectors-catalog@0.2.21`
227
+ - Owner: `@jskit-ai/connectors-catalog@0.2.22`
228
228
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/redshift-queries/PATTERN.md)
229
229
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/redshift-queries/example/)
230
230
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -235,7 +235,7 @@ Use the shared scanner runtime from a CLI or a host worker with portable configu
235
235
 
236
236
  - Id: `connectors/source-scanning`
237
237
  - Keywords: `cancellation`, `cli`, `connectors`, `integrations`, `scanning`, `security`, `source`, `wiz`, `worker`
238
- - Owner: `@jskit-ai/connectors-catalog@0.2.21`
238
+ - Owner: `@jskit-ai/connectors-catalog@0.2.22`
239
239
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/connectors/source-scanning/PATTERN.md)
240
240
  - Examples: [example/](../../skills/jskit/references/patterns/connectors/source-scanning/example/)
241
241
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -246,7 +246,7 @@ Add a protected administration surface, settings shell, and semantic navigation
246
246
 
247
247
  - Id: `console/console-surface`
248
248
  - Keywords: `admin`, `console`, `navigation`, `owner`, `placement`, `settings`, `surface`
249
- - Owner: `@jskit-ai/console-web@0.1.248`
249
+ - Owner: `@jskit-ai/console-web@0.1.249`
250
250
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/console/console-surface/PATTERN.md)
251
251
  - Examples: [example/](../../skills/jskit/references/patterns/console/console-surface/example/)
252
252
  - Requires: `@jskit-ai/console-core`, `@jskit-ai/console-web`, `@jskit-ai/shell-web`
@@ -268,7 +268,7 @@ Build a complete application-owned CRUD server package from a migration, a table
268
268
 
269
269
  - Id: `crud/crud-feature-package`
270
270
  - Keywords: `actions`, `crud`, `database`, `defineCrudFeature`, `json-api`, `migration`, `owns`, `permissions`, `repository`, `routes`, `service`, `table resource`
271
- - Owner: `@jskit-ai/crud-core@0.2.21`
271
+ - Owner: `@jskit-ai/crud-core@0.2.22`
272
272
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/crud/crud-feature-package/PATTERN.md)
273
273
  - Examples: [example/](../../skills/jskit/references/patterns/crud/crud-feature-package/example/)
274
274
  - Requires: `@jskit-ai/crud-core`, `@jskit-ai/resource-core`, `@jskit-ai/resource-crud-core`
@@ -345,7 +345,7 @@ Compose application-owned Google Publisher Tag delivery with the generic rewarde
345
345
 
346
346
  - Id: `rewards/google-rewarded`
347
347
  - Keywords: `ads`, `google`, `publisher tag`, `rewarded`, `unlock`
348
- - Owner: `@jskit-ai/rewarded-web@0.2.26`
348
+ - Owner: `@jskit-ai/rewarded-web@0.2.27`
349
349
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/rewards/google-rewarded/PATTERN.md)
350
350
  - Examples: [example/](../../skills/jskit/references/patterns/rewards/google-rewarded/example/)
351
351
  - Requires: `@jskit-ai/rewarded-web`
@@ -356,7 +356,7 @@ Define a server feature through explicit capabilities and first-class actions, a
356
356
 
357
357
  - Id: `server/feature-package`
358
358
  - Keywords: `actions`, `aggregate`, `feature`, `handle`, `orchestration`, `owns`, `package`, `provider`, `repository`, `routes`, `server`, `table resource`
359
- - Owner: `@jskit-ai/agent-docs@0.1.291`
359
+ - Owner: `@jskit-ai/agent-docs@0.1.292`
360
360
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/server/feature-package/PATTERN.md)
361
361
  - Examples: [example/](../../skills/jskit/references/patterns/server/feature-package/example/)
362
362
  - Requires: `@jskit-ai/kernel`
@@ -389,7 +389,7 @@ Compose an account settings route and profile, preference, notification, and sig
389
389
 
390
390
  - Id: `users/account-settings`
391
391
  - Keywords: `account`, `link provider`, `notifications`, `oauth`, `preferences`, `profile`, `settings`, `sign-in methods`, `user`, `vue`
392
- - Owner: `@jskit-ai/users-web@0.2.31`
392
+ - Owner: `@jskit-ai/users-web@0.2.32`
393
393
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/users/account-settings/PATTERN.md)
394
394
  - Examples: [example/](../../skills/jskit/references/patterns/users/account-settings/example/)
395
395
  - Requires: `@jskit-ai/shell-web`, `@jskit-ai/users-core`, `@jskit-ai/users-web`
@@ -400,7 +400,7 @@ Expose user administration and workspace-scoped member operations through app-ow
400
400
 
401
401
  - Id: `users/user-administration-server`
402
402
  - Keywords: `account`, `admin`, `member`, `repository`, `resource`, `routes`, `service`, `user`, `workspace`
403
- - Owner: `@jskit-ai/users-core@0.2.22`
403
+ - Owner: `@jskit-ai/users-core@0.2.23`
404
404
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/users/user-administration-server/PATTERN.md)
405
405
  - Examples: [example/](../../skills/jskit/references/patterns/users/user-administration-server/example/)
406
406
  - Requires: `@jskit-ai/crud-core`, `@jskit-ai/users-core`
@@ -411,7 +411,7 @@ Configure roles, workspace access policy, invitations, and app-owned invitation
411
411
 
412
412
  - Id: `workspaces/workspace-server`
413
413
  - Keywords: `access`, `invite`, `membership`, `multitenancy`, `policy`, `role`, `tenancy`, `workspace`
414
- - Owner: `@jskit-ai/workspaces-core@0.2.22`
414
+ - Owner: `@jskit-ai/workspaces-core@0.2.23`
415
415
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/workspaces/workspace-server/PATTERN.md)
416
416
  - Examples: [example/](../../skills/jskit/references/patterns/workspaces/workspace-server/example/)
417
417
  - Requires: `@jskit-ai/users-core`, `@jskit-ai/workspaces-core`
@@ -422,7 +422,7 @@ Compose workspace selection, invitation, member administration, settings, and re
422
422
 
423
423
  - Id: `workspaces/workspace-surfaces`
424
424
  - Keywords: `admin`, `invite`, `member`, `navigation`, `settings`, `surface`, `switcher`, `workspace`
425
- - Owner: `@jskit-ai/workspaces-web@0.2.31`
425
+ - Owner: `@jskit-ai/workspaces-web@0.2.32`
426
426
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/workspaces/workspace-surfaces/PATTERN.md)
427
427
  - Examples: [example/](../../skills/jskit/references/patterns/workspaces/workspace-surfaces/example/)
428
428
  - Requires: `@jskit-ai/shell-web`, `@jskit-ai/workspaces-core`, `@jskit-ai/workspaces-web`
@@ -100,7 +100,7 @@ Exports
100
100
  Local functions
101
101
  - `documentNotFound()`
102
102
  - `requireDocument(document)`
103
- - `isNotFound(error)`
103
+ - `isNotFound(error, resourceName)`
104
104
  - `recordOutput(crud)`
105
105
  - `contractShape(crud)`
106
106
  - `includedShape({ attributes, relationships }, labelKey = "")`
@@ -42,6 +42,14 @@ Exports
42
42
  - `UnpagedQueryError`
43
43
  - `UnsupportedDatabaseError`
44
44
 
45
+ ### `src/server/filterJoinSources.js`
46
+ Exports
47
+ - `filterJoinSources(featureId, resource, searchSchema)`
48
+ - `joinSourceHooks({ resourceName, declared, ownerOf })`
49
+ - `withCallOptions(jsonRestContext, options)`
50
+ Local functions
51
+ - `preparedFilter(resourceName, filter, applyFilter)`
52
+
45
53
  ### `src/server/foreignKeyCheck.js`
46
54
  Exports
47
55
  - `checkForeignKeys({ knex, resources, tables = [] })`
@@ -102,14 +110,16 @@ Local functions
102
110
 
103
111
  ### `src/server/handleLocks.js`
104
112
  Exports
105
- - `createLockReads({ name, resource, jsonRest, readFields, contextOf, hiddenFields })`
113
+ - `createLockReads({ api, name, resource, jsonRest, readFields, contextOf, hiddenFields, handleNamed, resourceNamed })`
106
114
  - `lockModeOf(name, caller, lockMode)`
107
115
  Local functions
108
- - `refuseInclude(name, caller, include)`
116
+ - `lockedIncludes(resource, caller, include)`
109
117
 
110
118
  ### `src/server/handleRecords.js`
111
119
  Exports
112
120
  - `aggregateMeasures(measures)`
121
+ - `defaultFieldList({ outputFields, outputRelationships, idProperty })`
122
+ - `includedRelationships(include)`
113
123
  - `MANY_RETURNING`
114
124
  - `SINGLE_RETURNING`
115
125
  - `handleRecords(resource, records, { include, fields } = {}, resourceNamed)`
@@ -131,7 +141,6 @@ Local functions
131
141
  - `setsOwnTimestamps(context)`
132
142
  - `atPrecision(field, value)`
133
143
  - `stampedAttributes(resource, attributes, stamp, context)`
134
- - `includedRelationships(include)`
135
144
  - `handleRecord(resource, record, included, named, resourceNamed)`
136
145
 
137
146
  ### `src/server/index.js`
@@ -181,7 +190,7 @@ Local functions
181
190
  ### `src/server/resourceHandle.js`
182
191
  Exports
183
192
  - `MANY_ROW_CHANNEL`
184
- - `createResourceHandle({ api, resource, hooks, settings, resourceNamed })`
193
+ - `createResourceHandle({ api, resource, hooks, settings, resourceNamed, handleNamed })`
185
194
  Local functions
186
195
  - `reportManyRow(resource, operation, rows, chunkSize)`
187
196
  - `requireHandleTransaction(name, options)`
@@ -29,7 +29,7 @@ through its handle's calls, and every call takes the call's `options` last:
29
29
  | Call | Does |
30
30
  | --- | --- |
31
31
  | `query({ filters, sort, page, include }, options)` | one page: `{ records, page }` |
32
- | `queryAll({ filters, sort, include }, options)` | every matching row, for jobs, id lists and one parent's rows |
32
+ | `queryAll({ filters, sort, include, take }, options)` | every matching row, or the first `take`, for jobs, id lists and one parent's rows |
33
33
  | `queryPages({ filters, sort, include }, options)` | every matching row, a page at a time, for work over many rows |
34
34
  | `get(id, params, options)` | one record |
35
35
  | `aggregate({ measures, groupBy, filters, sort, page }, options)` | totals, grouped by fields or date buckets |
@@ -256,6 +256,63 @@ the other table hides, which would tell a caller which rows hold a value it
256
256
  may not read. For either, the other table's owner answers the ids it matches
257
257
  through its owner API, and the filter takes the list: `filters: { supplierIds }`.
258
258
 
259
+ A filter that asks whether a row has, or lacks, another owner's rows
260
+ (projects with an open task, projects with no task) reads that owner's join
261
+ source. The `owns` entry's `searchSchema` names each join source by an alias,
262
+ with a function answering its owner from the feature's `requires` or its own
263
+ handles (`owned`), and `applyFilter` gets `joinSource(alias)`: that owner's
264
+ `{ query, column }` for the caller's scope, as a report's join source
265
+ ([Layer 5](#layer-5-reports-the-resource-cannot-express)), which it ties to
266
+ the row with `whereColumn` inside `whereExists` or `whereNotExists`:
267
+
268
+ ```js
269
+ // the projects feature's owns entry; the feature requires the tasks owner as `tasks`
270
+ {
271
+ resource: projectResource,
272
+ searchSchema: {
273
+ hasOpenTask: {
274
+ type: "boolean",
275
+ joinSources: { k: ({ requires }) => requires.tasks },
276
+ applyFilter(query, wanted, { column, joinSource }) {
277
+ const task = joinSource("k");
278
+ const openTasks = task.query
279
+ .select(task.column("id"))
280
+ .whereColumn(task.column("projectId"), column("id"))
281
+ .where(task.column("status"), "open");
282
+ if (wanted) {
283
+ query.whereExists(openTasks);
284
+ } else {
285
+ query.whereNotExists(openTasks);
286
+ }
287
+ }
288
+ }
289
+ }
290
+ }
291
+ ```
292
+
293
+ The handle builds the join sources a read's filters use just before the read,
294
+ in the call's own context and transaction, so `query`, `queryAll`,
295
+ `queryPages`, `aggregate` and `joinSource` take the filter in their one
296
+ statement, and the other owner's ownership, row policy and hidden fields
297
+ decide which of its rows count (`column()` refuses a hidden field). A filter
298
+ that prefers one match and falls back on another when no row of the table has
299
+ the first (the projects named like the term, or, when none is, those with a
300
+ task in that status) names the feature's own handle for its own table,
301
+ `({ owned }) => owned.projects`. Only a read through a handle builds join
302
+ sources. `own()` refuses, at startup, `joinSources` that is not a record of
303
+ functions under aliases, such a filter with `oneOf` or without `applyFilter`,
304
+ and `joinSources` in the table resource's own `searchSchema`, which names no
305
+ feature to answer it.
306
+
307
+ An app switches to such a filter where a search resolves another owner's
308
+ matches first: a repository that reads the other owner's ids (an id report on
309
+ its `scopedQuery()`, or that owner's `queryAll` matched in memory) and then
310
+ filters `id` by the list, or a filter that was a `whereRaw` with `EXISTS
311
+ (SELECT ... FROM ...)`, which `jskit/sql-literal` refuses. The filter moves
312
+ into the `owns` entry with the other owner as a join source, the code that
313
+ resolved ids goes, and the read is one statement however many rows match,
314
+ where the id list grew with the matches.
315
+
259
316
  A table keyed by a `uuid` or `string` primary key takes its ids as text; an
260
317
  `owns` entry's `normalizeId` is only for an id written some other way.
261
318
 
@@ -564,8 +621,9 @@ waiter with errno 1020 ("Record has changed since last read"), which a write
564
621
  that owns its transaction runs again. For one row,
565
622
  `patch(id, changes, { ...options, onlyIf: { status: "open" } })` does the same.
566
623
  A filter on another table (a search field whose `actualField` reaches a
567
- related table) is refused on MySQL and MariaDB (`RestApiValidationError`, rule
568
- `selection_cross_table`), even when it matches no row. A search entry's own
624
+ related table, or one that reads a join source) is refused on MySQL and
625
+ MariaDB (`RestApiValidationError`, rule `selection_cross_table`), even when it
626
+ matches no row; `lockWhere` and `claim` refuse it the same way. A search entry's own
569
627
  `applyFilter` that reads another table through a subquery is not detected, and
570
628
  is no compare-and-set there either. Filter on the row's own columns instead, for example
571
629
  on the link after locking its targets with `lockMany` in the same transaction
@@ -622,17 +680,31 @@ or a counter row taken with `lock(id)`. Every lock needs a transaction; SQLite
622
680
  runs one transaction at a time, so there is no row lock to take. Take locks in
623
681
  one order on every path, a parent before its children.
624
682
 
625
- A lock answers only the rows it locks, with the fields `fields` names, and
626
- refuses `include` before any statement. Read the locked rows' related records
627
- after the lock, in the same transaction: `queryAll({ filters: { id: ids },
628
- include }, txOptions)`, or the related table's read by id list. On PostgreSQL
629
- every statement sees what had committed when it began, so that read is current.
630
- On MySQL and MariaDB a plain read inside a transaction sees the snapshot of the
683
+ A lock answers the rows it locks, with the fields `fields` names. Its
684
+ `include` names belongs-to relationships (`include: ["customer"]`, or
685
+ `"batch.yard"` a level further): after its own rows, the lock locks the
686
+ records they name through each related table's own handle (its scope, its row
687
+ policy, its hidden fields), in id order, each related table once however many
688
+ rows name it, and nests them as a read's include does; a link to a record the
689
+ caller may not see reads as in a read, its belongs-to field null. Those are locks too, so on MySQL and MariaDB
690
+ they find a record committed after the transaction's first plain read, which a
691
+ plain read misses. They come after the rows, a child before the parent it
692
+ names, so a path that locks the parent first and then its children (to add one)
693
+ takes the other order: the database ends a deadlock between the two by failing
694
+ one transaction, which `withTransaction` runs again, and a path that runs
695
+ often keeps one order on both sides. A collection (`include: ["lines"]`) is
696
+ refused before any statement: lock a parent's children with their own
697
+ table's `lockWhere` in the same transaction.
698
+
699
+ Every other read after the lock is a plain read. On PostgreSQL every statement
700
+ sees what had committed when it began, so that read is current. On MySQL and
701
+ MariaDB a plain read inside a transaction sees the snapshot of the
631
702
  transaction's first plain read, and a lock that waited does not move it. So
632
703
  take the lock before any plain read in the transaction: the reads after it then
633
704
  see what the lock's previous holder committed. A related row the work decides
634
- on (is this seat already booked?) is locked itself, or read after a lock
635
- that every writer of it takes first.
705
+ on (is this seat already booked?) is locked itself, through the lock's
706
+ `include` or a lock of its own, or read after a lock that every writer of it
707
+ takes first.
636
708
 
637
709
  ```js
638
710
  // good: the lock is the transaction's first read, so the bookings read after it are current
@@ -797,7 +869,10 @@ async function activeDays(memberIds, options) {
797
869
  its own row with `whereColumn`; one that counts them joins the source grouped,
798
870
  as `projectSummary` does. Rows matched by a related row's value ("items
799
871
  whose supplier is named Acme") need no report: a cross-table search filter
800
- answers them in a plain read ([Layer 1](#layer-1-the-table-resource)).
872
+ answers them in a plain read ([Layer 1](#layer-1-the-table-resource)). Nor
873
+ does a question that only narrows a plain read's rows (has an open task, has
874
+ no task): a search filter that reads the other owner's join source answers
875
+ it in that read, with its page, sort and includes as usual (Layer 1).
801
876
 
802
877
  ```js
803
878
  // Knex: report - the caller's projects with no task the caller sees
@@ -811,6 +886,32 @@ async function activeDays(memberIds, options) {
811
886
  }
812
887
  ```
813
888
 
889
+ - A report in a feature that owns none of its tables (a console's, over
890
+ several owners) roots at the main owner's `joinSource()` instead of a
891
+ `scopedQuery()`, and ties the other owners' join sources to it the same way,
892
+ in one statement, every owner's scope and row policy applied.
893
+
894
+ ```js
895
+ // Knex: report - the caller's projects with no task the caller sees, for a console that owns neither table
896
+ async function idleProjects(options) {
897
+ const project = await projects.joinSource({ alias: "p" }, options);
898
+ const task = await tasks.joinSource({ alias: "k" }, options);
899
+ return project.query
900
+ .whereNotExists(task.query.select(task.column("id")).whereColumn(task.column("projectId"), project.column("id")))
901
+ .select({ name: project.column("name") });
902
+ }
903
+ ```
904
+
905
+ - An app switches a report it kept as a raw-SQL exception (another owner's
906
+ table joined by name, or a subquery in `raw()`, in a file under an
907
+ infrastructure exception, see [Exceptions](#exceptions)) to these: the
908
+ report's feature requires each owner whose rows it reads, puts each owner's
909
+ join source where the table stood (`whereExists`, `whereNotExists`, or
910
+ joined grouped for counts and sums), roots at its own table's
911
+ `scopedQuery()` or at the main owner's `joinSource()`, and the file drops
912
+ its `readable-check: allow` lines and its `jskit-data-access.json` entry.
913
+ When an owner is a JSKIT package, its owner API answers `joinSource`
914
+ ([Tables you don't own](#tables-you-dont-own)).
814
915
  - When each owner can answer on its own (keys in, grouped totals out), the
815
916
  report is a feature of its own that calls each owner's method and merges the
816
917
  answers in memory: one statement per owner, never a call per row.
@@ -838,6 +939,11 @@ async function activeDays(memberIds, options) {
838
939
  request it stops past the request row limit (`pageLimits().requestRows`,
839
940
  10,000 rows) with a 400 coded `RESOURCE_ROW_LIMIT`, and never answers part
840
941
  of the rows. A job reads without that limit and holds every row in memory.
942
+ `queryAll({ ..., take: 500 })` answers only the first 500 rows in its sort
943
+ order and reads no row past them, the last page no larger than the rows still
944
+ wanted. `take` is then the read's bound, so a request may name more than the
945
+ request row limit and never gets `RESOURCE_ROW_LIMIT`: name the bound the
946
+ work can hold, never one from the request unchecked.
841
947
  - Work over many rows reads `queryPages` and handles one page at a time:
842
948
  `for await (const records of handle.queryPages(params, options))`. Each
843
949
  page is one statement of up to `pageLimits().server` rows (fewer when its
@@ -11,7 +11,9 @@ Use when:
11
11
 
12
12
  Rules:
13
13
 
14
- - Any chunk that adds or changes user-facing UI must include a Playwright flow that exercises the changed behavior before the chunk is done.
14
+ - Any chunk that adds or changes user-facing UI proves the changed behavior with an automated test before the chunk is done, at the cheapest level that can: a component's content, states and conditional display in a client component test (Vitest); only what needs a real browser (navigation, a flow across screens, layout at the standard widths, focus, the real sign-in) in Playwright.
15
+ - Put a new browser check in the existing spec that already reaches that screen with the data it needs. Add a new spec only for a new flow, using the app's shared server, sign-in and fixture setup. A browser test that pays its own server start, sign-in or seeding to check one card, label or state is not acceptable: every run pays for it for as long as it exists. Move that check to a component test or an existing spec, and report the spec's time and the suite's time before and after.
16
+ - Never wait out the app's own delays (request retries, debounce, polling) in real time, and never change the scenario to skip them: install Playwright's `page.clock` before the page loads and advance it with `page.clock.runFor(...)`, or use Vitest's fake timers in a component test. Change the scenario only when another test already proves the skipped path.
15
17
  - Pattern and framework UI changes must be checked at compact phone, tablet-ish medium, and expanded desktop widths.
16
18
  - Check horizontal overflow, clipped or invisible text, duplicate navigation, and broken route placement at every standard viewport. On compact screens, also check screen tap targets under 48 px; medium and expanded layouts may use their documented denser controls.
17
19
  - Apps with `shell-web` installed should start from `tests/e2e/adaptive-shell.spec.ts` and extend it with feature-specific assertions.
@@ -186,7 +188,8 @@ browser check with a full lint, build, or test sweep; follow its verification po
186
188
 
187
189
  Do not mark the chunk done if:
188
190
 
189
- - the feature changed user-facing UI but no Playwright flow ran
190
- - the Playwright flow skipped the changed behavior itself
191
+ - the feature changed user-facing UI but no test at the right level proves it
192
+ - the test skipped the changed behavior itself
193
+ - a new browser test pays its own setup to check what a component test or an existing spec could
191
194
  - a managed environment was bypassed by installing another browser
192
195
  - an authenticated flow was left untested without clearly reporting the missing session-bootstrap seam
@@ -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.291`
18
+ - Owner: `@jskit-ai/agent-docs@0.1.292`
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.291`
29
+ - Owner: `@jskit-ai/agent-docs@0.1.292`
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.37`
40
+ - Owner: `@jskit-ai/assistant-runtime@0.2.38`
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`
@@ -92,7 +92,7 @@ Resolve an administrator environment key or an individual user's grant, then use
92
92
 
93
93
  - Id: `connectors/ai-connections`
94
94
  - Keywords: `ai`, `api-key`, `cli`, `environment`, `free`, `models`, `ownership`, `zai`, `zen`
95
- - Owner: `@jskit-ai/connectors-catalog@0.2.21`
95
+ - Owner: `@jskit-ai/connectors-catalog@0.2.22`
96
96
  - Read: [PATTERN.md](patterns/connectors/ai-connections/PATTERN.md)
97
97
  - Examples: [example/](patterns/connectors/ai-connections/example/)
98
98
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -103,7 +103,7 @@ Compose provider operations, authorization and encrypted file storage from a CLI
103
103
 
104
104
  - Id: `connectors/api-key-connection`
105
105
  - Keywords: `api-key`, `clay`, `cli`, `clickhouse`, `connectors`, `dbt`, `files`, `firecrawl`, `granola`, `integrations`, `metrics`, `prestashop`, `resend`, `semantic-layer`, `semrush`, `x-twitter`
106
- - Owner: `@jskit-ai/connectors-catalog@0.2.21`
106
+ - Owner: `@jskit-ai/connectors-catalog@0.2.22`
107
107
  - Read: [PATTERN.md](patterns/connectors/api-key-connection/PATTERN.md)
108
108
  - Examples: [example/](patterns/connectors/api-key-connection/example/)
109
109
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -114,7 +114,7 @@ Compose token-based MCP discovery and explicitly authorized tool calls using the
114
114
 
115
115
  - Id: `connectors/assistant-mcp`
116
116
  - Keywords: `assistant`, `cli`, `connectors`, `files`, `integrations`, `mcp`, `n8n`, `sanity`
117
- - Owner: `@jskit-ai/connectors-catalog@0.2.21`
117
+ - Owner: `@jskit-ai/connectors-catalog@0.2.22`
118
118
  - Read: [PATTERN.md](patterns/connectors/assistant-mcp/PATTERN.md)
119
119
  - Examples: [example/](patterns/connectors/assistant-mcp/example/)
120
120
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -125,7 +125,7 @@ Configure assistant OAuth clients, then compose existing state, encrypted file g
125
125
 
126
126
  - Id: `connectors/assistant-mcp-oauth`
127
127
  - Keywords: `amplitude`, `assistant`, `atlassian`, `canva`, `cli`, `client metadata`, `confidence`, `connectors`, `figma`, `files`, `granola`, `hex`, `mcp`, `miro`, `oauth`
128
- - Owner: `@jskit-ai/connectors-catalog@0.2.21`
128
+ - Owner: `@jskit-ai/connectors-catalog@0.2.22`
129
129
  - Read: [PATTERN.md](patterns/connectors/assistant-mcp-oauth/PATTERN.md)
130
130
  - Examples: [example/](patterns/connectors/assistant-mcp-oauth/example/)
131
131
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -136,7 +136,7 @@ Compose signed AWS operations, file configuration and application authorization
136
136
 
137
137
  - Id: `connectors/aws-storage-queries`
138
138
  - Keywords: `athena`, `aws`, `cli`, `connectors`, `files`, `iam`, `queries`, `s3`, `storage`, `sts`
139
- - Owner: `@jskit-ai/connectors-catalog@0.2.21`
139
+ - Owner: `@jskit-ai/connectors-catalog@0.2.22`
140
140
  - Read: [PATTERN.md](patterns/connectors/aws-storage-queries/PATTERN.md)
141
141
  - Examples: [example/](patterns/connectors/aws-storage-queries/example/)
142
142
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -147,7 +147,7 @@ Compose reusable connection libraries with portable configuration, application o
147
147
 
148
148
  - Id: `connectors/calendar-cli`
149
149
  - Keywords: `calendar`, `cli`, `connectors`, `google`, `integrations`, `oauth`, `permissions`
150
- - Owner: `@jskit-ai/connector-google-calendar@0.2.21`
150
+ - Owner: `@jskit-ai/connector-google-calendar@0.2.22`
151
151
  - Read: [PATTERN.md](patterns/connectors/calendar-cli/PATTERN.md)
152
152
  - Examples: [example/](patterns/connectors/calendar-cli/example/)
153
153
  - Requires: `@jskit-ai/connector-google-calendar`, `@jskit-ai/connectors-core`, `@jskit-ai/database-runtime-mysql`
@@ -158,7 +158,7 @@ Compose the shared connector runtime for event delivery while leaving workflow c
158
158
 
159
159
  - Id: `connectors/event-delivery`
160
160
  - Keywords: `cli`, `connectors`, `events`, `files`, `inngest`, `integrations`, `workflows`
161
- - Owner: `@jskit-ai/connectors-catalog@0.2.21`
161
+ - Owner: `@jskit-ai/connectors-catalog@0.2.22`
162
162
  - Read: [PATTERN.md](patterns/connectors/event-delivery/PATTERN.md)
163
163
  - Examples: [example/](patterns/connectors/event-delivery/example/)
164
164
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -169,7 +169,7 @@ Wire service-account grants, file storage, explicit message actions and public b
169
169
 
170
170
  - Id: `connectors/firebase-messaging`
171
171
  - Keywords: `cli`, `connectors`, `fcm`, `files`, `firebase`, `integrations`, `jwt`, `notifications`, `push`, `service-account`, `vapid`
172
- - Owner: `@jskit-ai/connectors-catalog@0.2.21`
172
+ - Owner: `@jskit-ai/connectors-catalog@0.2.22`
173
173
  - Read: [PATTERN.md](patterns/connectors/firebase-messaging/PATTERN.md)
174
174
  - Examples: [example/](patterns/connectors/firebase-messaging/example/)
175
175
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -180,7 +180,7 @@ Compose reviewed Search campaigns with project-owned Google OAuth and portable s
180
180
 
181
181
  - Id: `connectors/google-ads-search`
182
182
  - Keywords: `ads`, `campaigns`, `cli`, `connectors`, `conversion`, `google`, `search`
183
- - Owner: `@jskit-ai/connectors-catalog@0.2.21`
183
+ - Owner: `@jskit-ai/connectors-catalog@0.2.22`
184
184
  - Read: [PATTERN.md](patterns/connectors/google-ads-search/PATTERN.md)
185
185
  - Examples: [example/](patterns/connectors/google-ads-search/example/)
186
186
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -191,7 +191,7 @@ Compose provider consent, verification and encrypted file persistence from an ap
191
191
 
192
192
  - Id: `connectors/oauth-connection`
193
193
  - Keywords: `accounting`, `assistant permissions`, `books`, `cli`, `client credentials`, `connectors`, `consent`, `crm`, `databricks`, `developer token`, `fabric`, `files`, `gaql`, `google ads`, `graphql`, `integrations`, `linkedin`, `microsoft`, `oauth`, `powerpoint`, `salesforce`, `service principal`, `shopify`, `soql`, `staffing`, `tiktok`, `twitch`, `wave`, `word`, `wordpress`, `workday`, `xero`, `zoho`
194
- - Owner: `@jskit-ai/connectors-catalog@0.2.21`
194
+ - Owner: `@jskit-ai/connectors-catalog@0.2.22`
195
195
  - Read: [PATTERN.md](patterns/connectors/oauth-connection/PATTERN.md)
196
196
  - Examples: [example/](patterns/connectors/oauth-connection/example/)
197
197
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -202,7 +202,7 @@ Compose a sequential catalogue batch and preserve partial success for applicatio
202
202
 
203
203
  - Id: `connectors/paddle-catalogue`
204
204
  - Keywords: `batch`, `paddle`, `payments`, `prices`, `products`
205
- - Owner: `@jskit-ai/connectors-catalog@0.2.21`
205
+ - Owner: `@jskit-ai/connectors-catalog@0.2.22`
206
206
  - Read: [PATTERN.md](patterns/connectors/paddle-catalogue/PATTERN.md)
207
207
  - Examples: [example/](patterns/connectors/paddle-catalogue/example/)
208
208
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -213,7 +213,7 @@ Resolve a publishable image key deliberately and use the shared URL library in a
213
213
 
214
214
  - Id: `connectors/public-image`
215
215
  - Keywords: `cli`, `connectors`, `files`, `images`, `integrations`, `logo-dev`, `public-key`
216
- - Owner: `@jskit-ai/connectors-catalog@0.2.21`
216
+ - Owner: `@jskit-ai/connectors-catalog@0.2.22`
217
217
  - Read: [PATTERN.md](patterns/connectors/public-image/PATTERN.md)
218
218
  - Examples: [example/](patterns/connectors/public-image/example/)
219
219
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -224,7 +224,7 @@ Compose file configuration, Redshift Data API operations and application query o
224
224
 
225
225
  - Id: `connectors/redshift-queries`
226
226
  - Keywords: `aws`, `cli`, `connectors`, `files`, `iam`, `provisioned`, `redshift`, `serverless`, `sql`, `warehouse`
227
- - Owner: `@jskit-ai/connectors-catalog@0.2.21`
227
+ - Owner: `@jskit-ai/connectors-catalog@0.2.22`
228
228
  - Read: [PATTERN.md](patterns/connectors/redshift-queries/PATTERN.md)
229
229
  - Examples: [example/](patterns/connectors/redshift-queries/example/)
230
230
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -235,7 +235,7 @@ Use the shared scanner runtime from a CLI or a host worker with portable configu
235
235
 
236
236
  - Id: `connectors/source-scanning`
237
237
  - Keywords: `cancellation`, `cli`, `connectors`, `integrations`, `scanning`, `security`, `source`, `wiz`, `worker`
238
- - Owner: `@jskit-ai/connectors-catalog@0.2.21`
238
+ - Owner: `@jskit-ai/connectors-catalog@0.2.22`
239
239
  - Read: [PATTERN.md](patterns/connectors/source-scanning/PATTERN.md)
240
240
  - Examples: [example/](patterns/connectors/source-scanning/example/)
241
241
  - Requires: `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`
@@ -246,7 +246,7 @@ Add a protected administration surface, settings shell, and semantic navigation
246
246
 
247
247
  - Id: `console/console-surface`
248
248
  - Keywords: `admin`, `console`, `navigation`, `owner`, `placement`, `settings`, `surface`
249
- - Owner: `@jskit-ai/console-web@0.1.248`
249
+ - Owner: `@jskit-ai/console-web@0.1.249`
250
250
  - Read: [PATTERN.md](patterns/console/console-surface/PATTERN.md)
251
251
  - Examples: [example/](patterns/console/console-surface/example/)
252
252
  - Requires: `@jskit-ai/console-core`, `@jskit-ai/console-web`, `@jskit-ai/shell-web`
@@ -268,7 +268,7 @@ Build a complete application-owned CRUD server package from a migration, a table
268
268
 
269
269
  - Id: `crud/crud-feature-package`
270
270
  - Keywords: `actions`, `crud`, `database`, `defineCrudFeature`, `json-api`, `migration`, `owns`, `permissions`, `repository`, `routes`, `service`, `table resource`
271
- - Owner: `@jskit-ai/crud-core@0.2.21`
271
+ - Owner: `@jskit-ai/crud-core@0.2.22`
272
272
  - Read: [PATTERN.md](patterns/crud/crud-feature-package/PATTERN.md)
273
273
  - Examples: [example/](patterns/crud/crud-feature-package/example/)
274
274
  - Requires: `@jskit-ai/crud-core`, `@jskit-ai/resource-core`, `@jskit-ai/resource-crud-core`
@@ -345,7 +345,7 @@ Compose application-owned Google Publisher Tag delivery with the generic rewarde
345
345
 
346
346
  - Id: `rewards/google-rewarded`
347
347
  - Keywords: `ads`, `google`, `publisher tag`, `rewarded`, `unlock`
348
- - Owner: `@jskit-ai/rewarded-web@0.2.26`
348
+ - Owner: `@jskit-ai/rewarded-web@0.2.27`
349
349
  - Read: [PATTERN.md](patterns/rewards/google-rewarded/PATTERN.md)
350
350
  - Examples: [example/](patterns/rewards/google-rewarded/example/)
351
351
  - Requires: `@jskit-ai/rewarded-web`
@@ -356,7 +356,7 @@ Define a server feature through explicit capabilities and first-class actions, a
356
356
 
357
357
  - Id: `server/feature-package`
358
358
  - Keywords: `actions`, `aggregate`, `feature`, `handle`, `orchestration`, `owns`, `package`, `provider`, `repository`, `routes`, `server`, `table resource`
359
- - Owner: `@jskit-ai/agent-docs@0.1.291`
359
+ - Owner: `@jskit-ai/agent-docs@0.1.292`
360
360
  - Read: [PATTERN.md](patterns/server/feature-package/PATTERN.md)
361
361
  - Examples: [example/](patterns/server/feature-package/example/)
362
362
  - Requires: `@jskit-ai/kernel`
@@ -389,7 +389,7 @@ Compose an account settings route and profile, preference, notification, and sig
389
389
 
390
390
  - Id: `users/account-settings`
391
391
  - Keywords: `account`, `link provider`, `notifications`, `oauth`, `preferences`, `profile`, `settings`, `sign-in methods`, `user`, `vue`
392
- - Owner: `@jskit-ai/users-web@0.2.31`
392
+ - Owner: `@jskit-ai/users-web@0.2.32`
393
393
  - Read: [PATTERN.md](patterns/users/account-settings/PATTERN.md)
394
394
  - Examples: [example/](patterns/users/account-settings/example/)
395
395
  - Requires: `@jskit-ai/shell-web`, `@jskit-ai/users-core`, `@jskit-ai/users-web`
@@ -400,7 +400,7 @@ Expose user administration and workspace-scoped member operations through app-ow
400
400
 
401
401
  - Id: `users/user-administration-server`
402
402
  - Keywords: `account`, `admin`, `member`, `repository`, `resource`, `routes`, `service`, `user`, `workspace`
403
- - Owner: `@jskit-ai/users-core@0.2.22`
403
+ - Owner: `@jskit-ai/users-core@0.2.23`
404
404
  - Read: [PATTERN.md](patterns/users/user-administration-server/PATTERN.md)
405
405
  - Examples: [example/](patterns/users/user-administration-server/example/)
406
406
  - Requires: `@jskit-ai/crud-core`, `@jskit-ai/users-core`
@@ -411,7 +411,7 @@ Configure roles, workspace access policy, invitations, and app-owned invitation
411
411
 
412
412
  - Id: `workspaces/workspace-server`
413
413
  - Keywords: `access`, `invite`, `membership`, `multitenancy`, `policy`, `role`, `tenancy`, `workspace`
414
- - Owner: `@jskit-ai/workspaces-core@0.2.22`
414
+ - Owner: `@jskit-ai/workspaces-core@0.2.23`
415
415
  - Read: [PATTERN.md](patterns/workspaces/workspace-server/PATTERN.md)
416
416
  - Examples: [example/](patterns/workspaces/workspace-server/example/)
417
417
  - Requires: `@jskit-ai/users-core`, `@jskit-ai/workspaces-core`
@@ -422,7 +422,7 @@ Compose workspace selection, invitation, member administration, settings, and re
422
422
 
423
423
  - Id: `workspaces/workspace-surfaces`
424
424
  - Keywords: `admin`, `invite`, `member`, `navigation`, `settings`, `surface`, `switcher`, `workspace`
425
- - Owner: `@jskit-ai/workspaces-web@0.2.31`
425
+ - Owner: `@jskit-ai/workspaces-web@0.2.32`
426
426
  - Read: [PATTERN.md](patterns/workspaces/workspace-surfaces/PATTERN.md)
427
427
  - Examples: [example/](patterns/workspaces/workspace-surfaces/example/)
428
428
  - Requires: `@jskit-ai/shell-web`, `@jskit-ai/workspaces-core`, `@jskit-ai/workspaces-web`
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "@jskit-ai/config-eslint": "0.1.248",
53
- "@jskit-ai/jskit-catalog": "0.2.43",
53
+ "@jskit-ai/jskit-catalog": "0.2.44",
54
54
  "@playwright/test": "1.61.1",
55
55
  "@vitejs/plugin-vue": "^6.0.7",
56
56
  "eslint": "^10.8.0",
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "@jskit-ai/config-eslint": "0.1.248",
54
- "@jskit-ai/jskit-catalog": "0.2.43",
54
+ "@jskit-ai/jskit-catalog": "0.2.44",
55
55
  "@playwright/test": "1.61.1",
56
56
  "@vitejs/plugin-vue": "^6.0.7",
57
57
  "eslint": "^10.8.0",
@@ -7,8 +7,8 @@
7
7
  "db:migrate:status": "knex --knexfile ./knexfile.js migrate:list"
8
8
  },
9
9
  "dependencies": {
10
- "@jskit-ai/connectors-core": "0.2.21",
11
- "@jskit-ai/connector-google-calendar": "0.2.21",
10
+ "@jskit-ai/connectors-core": "0.2.22",
11
+ "@jskit-ai/connector-google-calendar": "0.2.22",
12
12
  "@jskit-ai/database-runtime": "0.1.266",
13
13
  "@jskit-ai/database-runtime-mysql": "0.1.264",
14
14
  "knex": "^3.1.0"
@@ -9,7 +9,7 @@
9
9
  "./shared": "./src/shared/index.js"
10
10
  },
11
11
  "dependencies": {
12
- "@jskit-ai/crud-core": "0.2.21",
12
+ "@jskit-ai/crud-core": "0.2.22",
13
13
  "@jskit-ai/resource-core": "0.1.208",
14
14
  "@jskit-ai/resource-crud-core": "0.1.208"
15
15
  },
@@ -10,9 +10,9 @@
10
10
  "./shared": "./src/shared/index.js"
11
11
  },
12
12
  "dependencies": {
13
- "@jskit-ai/crud-core": "0.2.21",
13
+ "@jskit-ai/crud-core": "0.2.22",
14
14
  "@jskit-ai/resource-crud-core": "0.1.208",
15
- "@jskit-ai/users-core": "0.2.22"
15
+ "@jskit-ai/users-core": "0.2.23"
16
16
  },
17
17
  "jskit": {
18
18
  "kind": "runtime",
@@ -10,14 +10,14 @@
10
10
  "./shared": "./src/shared/index.js"
11
11
  },
12
12
  "dependencies": {
13
- "@jskit-ai/crud-core": "0.2.21",
13
+ "@jskit-ai/crud-core": "0.2.22",
14
14
  "@jskit-ai/resource-crud-core": "0.1.208",
15
- "@jskit-ai/users-core": "0.2.22",
16
- "@jskit-ai/workspaces-core": "0.2.22"
15
+ "@jskit-ai/users-core": "0.2.23",
16
+ "@jskit-ai/workspaces-core": "0.2.23"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "@jskit-ai/kernel": "0.2.17",
20
- "@jskit-ai/resource-runtime": "0.2.18"
20
+ "@jskit-ai/resource-runtime": "0.2.19"
21
21
  },
22
22
  "jskit": {
23
23
  "kind": "runtime",
@@ -116,6 +116,10 @@ expects the relationship id or an unselected field never gets it.
116
116
  once](typed-features.md#test-databases-are-prepared-once),
117
117
  [integration test
118
118
  databases](database-layer.md#integration-test-databases)).
119
+ - A component's content and states are checked in a Vitest component test;
120
+ a browser check is an assertion in the Playwright spec that already reaches
121
+ that screen. Every Playwright run ends with its 10 slowest tests: compare a
122
+ new test's time, and the suite's, before and after.
119
123
 
120
124
  ### Inputs and access
121
125