@jskit-ai/agent-docs 0.1.334 → 0.1.336

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 (22) hide show
  1. package/guide/agent/app-setup/multi-homing.md +36 -1
  2. package/guide/agent/framework/data-access.md +51 -8
  3. package/package.json +1 -1
  4. package/patterns/minimal-foundation/example/package.json +1 -1
  5. package/patterns/shell-foundation/example/package.json +2 -2
  6. package/reference/autogen/PATTERN_INDEX.md +32 -32
  7. package/reference/autogen/packages/users-core.md +1 -0
  8. package/reference/autogen/packages/workspaces-core.md +6 -0
  9. package/reference/autogen/tooling/testUtils.md +2 -0
  10. package/skills/jskit/references/data-access.md +51 -8
  11. package/skills/jskit/references/heuristics/INDEX.md +1 -1
  12. package/skills/jskit/references/heuristics/data-access.md +4 -2
  13. package/skills/jskit/references/multi-homing.md +36 -1
  14. package/skills/jskit/references/pattern-index.md +32 -32
  15. package/skills/jskit/references/patterns/app/minimal-foundation/example/package.json +1 -1
  16. package/skills/jskit/references/patterns/app/shell-foundation/example/package.json +2 -2
  17. package/skills/jskit/references/patterns/auth/oidc-sign-in/example/package.json +2 -2
  18. package/skills/jskit/references/patterns/connectors/calendar-cli/example/package.json +2 -2
  19. package/skills/jskit/references/patterns/crud/crud-feature-package/example/packages/books/package.json +1 -1
  20. package/skills/jskit/references/patterns/realtime/realtime-application/example/package.json +2 -2
  21. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users/package.json +2 -2
  22. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users-workspace/package.json +4 -4
@@ -195,7 +195,7 @@ method takes the call's `options` last and joins the transaction of the
195
195
 
196
196
  | Capability | Methods |
197
197
  | --- | --- |
198
- | `workspaces` | `findById(id, options)`, `findBySlug(slug, options)` (a deleted workspace is not found, though its slug stays taken), `listSlugsIn`, `findPersonalByOwnerUserId`, `listForUserId(userId, options)`, `insert`, `updateById`, `lock(workspaceId, options)` |
198
+ | `workspaces` | `findById(id, options)`, `findBySlug(slug, options)` (a deleted workspace is not found, though its slug stays taken), `listSlugsIn`, `findPersonalByOwnerUserId`, `listForUserId(userId, options)`, `insert`, `updateById`, `lock(workspaceId, options)`, `transferOwnership({ workspaceId, toUserId, previousOwnerRoleSid }, options)` |
199
199
  | `workspaces.memberships` | `findByWorkspaceIdAndUserId`, `ensureOwnerMembership`, `upsertMembership(workspaceId, userId, patch, options)`, `addMember({ workspaceId, userId, roleSid }, options)`, `activeMemberIds(workspaceId, options)`, `listActiveByWorkspaceId`, `findActiveByWorkspaceIdAndUserId`, `listActiveWorkspaceIdsByUserId`, `listActiveWorkspaceIdsByUserIds`, `listActiveWorkspaceIdsByUserIdsAmong(userIds, workspaceIds, options)`, `joinSource({ alias, filters }, options)` |
200
200
 
201
201
  `addMember` makes the user an active member with the role (`member` when none
@@ -222,6 +222,41 @@ that member's `listMembers` entry, or `null` for a removed or unknown member,
222
222
  and reads only that membership. Do not list every member to find one: the list
223
223
  grows with the workspace, and a lookup per row multiplies it.
224
224
 
225
+ ### Moving a workspace to a new owner
226
+
227
+ `workspaces.transferOwnership({ workspaceId, toUserId, previousOwnerRoleSid }, options)`
228
+ hands a workspace to another of its active members, for example when an
229
+ administrator gives a workspace to one of its members. It joins the caller's
230
+ transaction when `options` carries one, and otherwise runs in one of its own.
231
+ It locks the workspace first and then both owners' memberships, so two
232
+ transfers of one workspace take turns and the second moves it on from the owner
233
+ the first left; it sends the same statements however many members there are.
234
+
235
+ - `toUserId` becomes the workspace's owner (`owner_user_id`, and `updatedAt`
236
+ moves) and their membership takes the `owner` role.
237
+ - The previous owner stays an active member with `previousOwnerRoleSid`,
238
+ `admin` unless given; they are given an active membership with it when they
239
+ had none. The role is any role but `owner`, which, like an empty or non-text
240
+ role, is a `TypeError` before any statement. The role catalog is not checked.
241
+ - A personal workspace stops being personal. It was the one provisioned for its
242
+ previous owner, and the new owner's own personal workspace stays theirs.
243
+ Where the application provisions personal workspaces (the `personal` tenancy
244
+ mode), the previous owner is given a new one at their next provisioning.
245
+ - A `toUserId` who already owns the workspace writes nothing and answers
246
+ `changed: false`.
247
+ - A missing or deleted workspace is 404 `workspaces.workspace.notFound`. A
248
+ `toUserId` with no active membership (never a member, only invited, or
249
+ removed) is 409 `workspaces.member.newOwnerNotActive`. Neither writes
250
+ anything.
251
+
252
+ It answers the workspace as `findById` answers it, plus `previousOwnerUserId`
253
+ and `changed`. It publishes no event: the `workspace.workspaces.create` and
254
+ `workspace.workspaces.update` actions publish `entity.changed` on
255
+ `runtime.events`, but this is a capability method, not an action. An
256
+ application that keeps its own copy of workspace facts updates that copy from
257
+ the answer. The method checks no permission: the application decides who may
258
+ transfer a workspace before calling it.
259
+
225
260
  ### Invitation email
226
261
 
227
262
  To send invitation email, provide the optional `workspaces.invite-mailer`
@@ -815,9 +815,33 @@ const recordPayment = (input, options) => retryLostInsertRace(options, () => pay
815
815
 
816
816
  ## Layer 4: locks
817
817
 
818
- When two requests could change the same rows at once (allocating stock,
819
- numbering documents, moving items into a batch), lock the rows first, inside
820
- the transaction: `lock(id, txOptions)`, `lockMany(ids, txOptions)` or
818
+ Most writes take no lock. Choose the lightest tool that keeps the stored data
819
+ right:
820
+
821
+ | The write | The tool |
822
+ | --- | --- |
823
+ | An ordinary edit: a form saving a record, a name, a description, settings | a plain `patch`; the last save wins |
824
+ | A change only while a row still holds a value (open to booked, once) | a compare-and-set: `patch` with `onlyIf`, or `patchWhere` with the value in its filters ([Layer 3](#layer-3-many-rows-at-once)) |
825
+ | A value that must be unique | a unique index, and `retryLostInsertRace` around a transaction whose insert can lose that race ([Layer 3](#layer-3-many-rows-at-once)) |
826
+ | Stock or quantities, money or balances, sequential document numbers, a capacity limit (double booking), a check-then-act on a shared resource | a lock (`lock`, `lockMany`, `lockWhere`, `lockPages`) before the transaction's first plain read, as below |
827
+
828
+ When two people save the same record at once, a plain `patch` lets the later
829
+ change replace the earlier one. For an ordinary edit that is usually
830
+ acceptable, and it needs no lock and no concurrency test; where people would
831
+ care, the record carries a version and a stale save is refused, "changed,
832
+ reload" (`lockVersionField`, at the end of this layer). A compare-and-set
833
+ gives the row to one of two writers and tells the other it wrote nothing
834
+ (`onlyIf` answers `null`, `returning: "ids"` leaves the row out), which the
835
+ code turns into a clear refusal, with no lock. A lock is for a race that would
836
+ silently leave wrong data that matters: two orders taking the last item, two
837
+ payments spending one balance, two invoices given one number, two bookings of
838
+ the last place. It makes other writers wait, needs one order on every path and
839
+ a test with two writers, so it usually pays only there. Whatever the tool, the
840
+ writer that loses gets an answer it can act on, never a 500
841
+ ([Transactions](#transactions)).
842
+
843
+ The rest of this layer applies once a lock is warranted. Lock the rows first,
844
+ inside the transaction: `lock(id, txOptions)`, `lockMany(ids, txOptions)` or
821
845
  `lockWhere(filters, txOptions)`. The handle locks only rows the caller may
822
846
  see, in id order, so nobody locks another workspace's rows: a missing or
823
847
  hidden id throws not-found, as for `get`, or with `missing: "skip"` is left
@@ -901,7 +925,13 @@ locking reads, which see the latest rows whatever the snapshot:
901
925
  up to 1,000 (`pageSize`) at a time, in id order, each page one locking read
902
926
  after the last id of the page before. It still locks the governing row first,
903
927
  since PostgreSQL keeps no new row out of a page already locked. In a request it
904
- throws past the request row limit, as `queryPages` does. Isolation is not the
928
+ throws past the request row limit, as `queryPages` does. `take` in its options,
929
+ a whole number from 1 as `queryAll` takes it, is the call's own bound instead,
930
+ in a request or a job: `lockPages(filters, { ...txOptions, take: 20000 })`
931
+ locks up to 20,000 rows, past the request row limit too, and throws
932
+ `RESOURCE_ROW_LIMIT` naming the take before it hands over the page that passes
933
+ it. Unlike `queryAll`'s, it never stops quietly at part of the set, so name the
934
+ most rows the work can hold, never a number from the request. Isolation is not the
905
935
  tool: MySQL and MariaDB fix it when a transaction starts, and READ COMMITTED
906
936
  alone reads each page at a different moment. `patchWhere` and `deleteWhere`
907
937
  select their rows with a locking read on MySQL and MariaDB, so they too see
@@ -1103,9 +1133,11 @@ rows with its own `lock`, `lockMany` or `lockWhere`, the owners in one fixed
1103
1133
  order on every path (a parent's owner before its children's), so two
1104
1134
  transactions never take them in opposite orders.
1105
1135
 
1106
- A record that a person edits from a form it read earlier carries a version
1107
- number: the table resource names it with `lockVersionField`, an integer field
1108
- over a non-null integer column with `defaultTo: 0`.
1136
+ Where people would mind that a later save replaced theirs without a word, a
1137
+ record edited from a form it read earlier can carry a version number (an
1138
+ ordinary edit, where the last save winning is acceptable, needs none): the
1139
+ table resource names it with `lockVersionField`, an integer field over a
1140
+ non-null integer column with `defaultTo: 0`.
1109
1141
  `patch(id, changes, { ...options, lockVersion })` then locks the row, applies
1110
1142
  `changes` only while it still holds that version, and advances it. A record
1111
1143
  whose version moved on rejects with a 409 coded
@@ -1551,7 +1583,18 @@ const SettlementFeature = defineFeature({
1551
1583
  `users.profile.notFound`. It reads the user, the workspace and its settings,
1552
1584
  and writes nothing. Work done as a real member takes `memberContext`, which
1553
1585
  refuses anyone who is not one; `roleContext` is for installer and seed work
1554
- only, where the person is not given that role in the workspace.
1586
+ only, where the person is not given that role in the workspace. Code outside
1587
+ a server (a migration or seed script that owns its tables through
1588
+ `createStandaloneResources`) takes the same function from
1589
+ `createStandaloneRoleContext({ resources, config })`
1590
+ (`@jskit-ai/workspaces-core/server/standaloneRoleContext`), built the same
1591
+ way from the application's runtime config on its runtime's handles: the same
1592
+ arguments, context and refusals, with the script's own system context. Its
1593
+ runtime owns `ROLE_CONTEXT_TABLES`, the workspaces and users tables, beside
1594
+ its own (`owns: [...ROLE_CONTEXT_TABLES, ...seedTables]`, with a
1595
+ `systemScope`); on a server's Knex client `createStandaloneResources`
1596
+ refuses them, since the server owns them: code there takes
1597
+ `workspaces.core`'s.
1555
1598
  - A job finds its units with an `aggregate` grouped by the ownership field,
1556
1599
  which a system context may group by (and count distinct) even when the table
1557
1600
  hides it, then runs each unit scoped to it. It reads the units in pages, all
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/agent-docs",
3
- "version": "0.1.334",
3
+ "version": "0.1.336",
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.252",
53
- "@jskit-ai/jskit-catalog": "0.2.86",
53
+ "@jskit-ai/jskit-catalog": "0.2.88",
54
54
  "@playwright/test": "1.61.1",
55
55
  "@vitejs/plugin-vue": "^6.0.7",
56
56
  "eslint": "^10.8.0",
@@ -45,13 +45,13 @@
45
45
  "vue-router": "^5.3.1",
46
46
  "vuetify": "^4.3.0",
47
47
  "@jskit-ai/http-runtime": "0.2.27",
48
- "@jskit-ai/shell-web": "0.2.40",
48
+ "@jskit-ai/shell-web": "0.2.41",
49
49
  "@fastify/fast-json-stringify-compiler": "^5.1.0",
50
50
  "@vue/devtools-api": "^8.2.1"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@jskit-ai/config-eslint": "0.1.252",
54
- "@jskit-ai/jskit-catalog": "0.2.86",
54
+ "@jskit-ai/jskit-catalog": "0.2.88",
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.334`
18
+ - Owner: `@jskit-ai/agent-docs@0.1.336`
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.334`
29
+ - Owner: `@jskit-ai/agent-docs@0.1.336`
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.72`
40
+ - Owner: `@jskit-ai/assistant-runtime@0.2.74`
41
41
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/assistant/assistant-surface/PATTERN.md)
42
42
  - Examples: [example/](../../skills/jskit/references/patterns/assistant/assistant-surface/example/)
43
43
  - Requires: `@jskit-ai/assistant-runtime`, `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`, `@jskit-ai/shell-web`
@@ -59,7 +59,7 @@ Compose JSKIT authentication routes, views, profile controls, and public surface
59
59
 
60
60
  - Id: `auth/auth-surface`
61
61
  - Keywords: `account`, `auth`, `login`, `logout`, `password`, `placement`, `profile`, `reset`, `surface`
62
- - Owner: `@jskit-ai/auth-web@0.2.46`
62
+ - Owner: `@jskit-ai/auth-web@0.2.47`
63
63
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/auth/auth-surface/PATTERN.md)
64
64
  - Examples: [example/](../../skills/jskit/references/patterns/auth/auth-surface/example/)
65
65
  - Requires: `@jskit-ai/auth-core`, `@jskit-ai/auth-web`, `@jskit-ai/shell-web`
@@ -70,7 +70,7 @@ Let people sign in with the accounts they already have in an accounts hub or ano
70
70
 
71
71
  - Id: `auth/oidc-sign-in`
72
72
  - Keywords: `accounts hub`, `auth`, `authentication`, `back-channel logout`, `dynamic client registration`, `issuer`, `master login`, `oidc`, `openid connect`, `single sign-on`, `sso`
73
- - Owner: `@jskit-ai/auth-provider-oidc-core@0.2.50`
73
+ - Owner: `@jskit-ai/auth-provider-oidc-core@0.2.51`
74
74
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/auth/oidc-sign-in/PATTERN.md)
75
75
  - Examples: [example/](../../skills/jskit/references/patterns/auth/oidc-sign-in/example/)
76
76
  - Requires: `@jskit-ai/auth-provider-oidc-core`, `@jskit-ai/auth-web`
@@ -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.42`
95
+ - Owner: `@jskit-ai/connectors-catalog@0.2.44`
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.42`
106
+ - Owner: `@jskit-ai/connectors-catalog@0.2.44`
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.42`
117
+ - Owner: `@jskit-ai/connectors-catalog@0.2.44`
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.42`
128
+ - Owner: `@jskit-ai/connectors-catalog@0.2.44`
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.42`
139
+ - Owner: `@jskit-ai/connectors-catalog@0.2.44`
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.41`
150
+ - Owner: `@jskit-ai/connector-google-calendar@0.2.42`
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.42`
161
+ - Owner: `@jskit-ai/connectors-catalog@0.2.44`
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.42`
172
+ - Owner: `@jskit-ai/connectors-catalog@0.2.44`
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.42`
183
+ - Owner: `@jskit-ai/connectors-catalog@0.2.44`
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.42`
194
+ - Owner: `@jskit-ai/connectors-catalog@0.2.44`
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.42`
205
+ - Owner: `@jskit-ai/connectors-catalog@0.2.44`
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.42`
216
+ - Owner: `@jskit-ai/connectors-catalog@0.2.44`
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.42`
227
+ - Owner: `@jskit-ai/connectors-catalog@0.2.44`
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.42`
238
+ - Owner: `@jskit-ai/connectors-catalog@0.2.44`
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.281`
249
+ - Owner: `@jskit-ai/console-web@0.1.283`
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.42`
271
+ - Owner: `@jskit-ai/crud-core@0.2.43`
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`
@@ -279,7 +279,7 @@ Build a routed CRUD user interface as thin application pages over JSKIT's shared
279
279
 
280
280
  - Id: `crud/crud-screen-set`
281
281
  - Keywords: `actions`, `add`, `crud`, `delete`, `edit`, `filters`, `list`, `material`, `routes`, `view`, `vue`
282
- - Owner: `@jskit-ai/http-web@0.2.47`
282
+ - Owner: `@jskit-ai/http-web@0.2.49`
283
283
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/crud/crud-screen-set/PATTERN.md)
284
284
  - Examples: [example/](../../skills/jskit/references/patterns/crud/crud-screen-set/example/)
285
285
  - Requires: `@jskit-ai/http-web`, `@jskit-ai/resource-core`, `@jskit-ai/resource-crud-core`
@@ -323,7 +323,7 @@ Wrap a JSKIT web application in a Capacitor Android shell using native Capacitor
323
323
 
324
324
  - Id: `mobile/android-application`
325
325
  - Keywords: `android`, `capacitor`, `device`, `mobile`, `native`, `shell`, `webview`
326
- - Owner: `@jskit-ai/mobile-capacitor@0.2.40`
326
+ - Owner: `@jskit-ai/mobile-capacitor@0.2.41`
327
327
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/mobile/android-application/PATTERN.md)
328
328
  - Examples: [example/](../../skills/jskit/references/patterns/mobile/android-application/example/)
329
329
  - Requires: `@capacitor/android`, `@capacitor/app`, `@capacitor/cli`, `@jskit-ai/mobile-capacitor`
@@ -334,7 +334,7 @@ Add JSKIT realtime events with an optional Redis backplane and an explicit shell
334
334
 
335
335
  - Id: `realtime/realtime-application`
336
336
  - Keywords: `realtime`, `redis`, `socket.io`, `sockets`, `status`, `websocket`
337
- - Owner: `@jskit-ai/realtime@0.2.43`
337
+ - Owner: `@jskit-ai/realtime@0.2.44`
338
338
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/realtime/realtime-application/PATTERN.md)
339
339
  - Examples: [example/](../../skills/jskit/references/patterns/realtime/realtime-application/example/)
340
340
  - Requires: `@jskit-ai/realtime`, `@jskit-ai/shell-web`
@@ -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.58`
348
+ - Owner: `@jskit-ai/rewarded-web@0.2.60`
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.334`
359
+ - Owner: `@jskit-ai/agent-docs@0.1.336`
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`
@@ -367,7 +367,7 @@ Compose the JSKIT responsive shell, semantic placements, settings navigation, an
367
367
 
368
368
  - Id: `shell/application-shell`
369
369
  - Keywords: `adaptive`, `app`, `layout`, `navigation`, `placement`, `responsive`, `settings`, `shell`
370
- - Owner: `@jskit-ai/shell-web@0.2.40`
370
+ - Owner: `@jskit-ai/shell-web@0.2.41`
371
371
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/shell/application-shell/PATTERN.md)
372
372
  - Examples: [example/](../../skills/jskit/references/patterns/shell/application-shell/example/)
373
373
  - Requires: `@jskit-ai/kernel`, `@jskit-ai/shell-web`
@@ -378,7 +378,7 @@ Add product routes and shell extensions through file routing, semantic placement
378
378
 
379
379
  - Id: `ui/page-and-placement`
380
380
  - Keywords: `component`, `navigation`, `outlet`, `page`, `placement`, `routes`, `section`, `shell`, `subpages`, `vue`
381
- - Owner: `@jskit-ai/shell-web@0.2.40`
381
+ - Owner: `@jskit-ai/shell-web@0.2.41`
382
382
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/ui/page-and-placement/PATTERN.md)
383
383
  - Examples: [example/](../../skills/jskit/references/patterns/ui/page-and-placement/example/)
384
384
  - Requires: `@jskit-ai/kernel`, `@jskit-ai/shell-web`
@@ -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.64`
392
+ - Owner: `@jskit-ai/users-web@0.2.66`
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.51`
403
+ - Owner: `@jskit-ai/users-core@0.2.53`
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.51`
414
+ - Owner: `@jskit-ai/workspaces-core@0.2.53`
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.64`
425
+ - Owner: `@jskit-ai/workspaces-web@0.2.66`
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`
@@ -195,6 +195,7 @@ Exports
195
195
 
196
196
  ### `src/server/usersIdentity.js`
197
197
  Exports
198
+ - `USERS_IDENTITY_TABLES`
198
199
  - `createUsersIdentity({ resources, extensions })`
199
200
 
200
201
  ### `src/server/UsersIdentityProvider.js`
@@ -102,6 +102,11 @@ Exports
102
102
  Exports
103
103
  - `createWorkspacesServerI18n({ appRoot = "" } = {})`
104
104
 
105
+ ### `src/server/standaloneRoleContext.js`
106
+ Exports
107
+ - `ROLE_CONTEXT_TABLES`
108
+ - `createStandaloneRoleContext({ resources, config })`
109
+
105
110
  ### `src/server/support/resolveWorkspace.js`
106
111
  Exports
107
112
  - `resolveWorkspace(context = {}, input = {})`
@@ -308,6 +313,7 @@ Local functions
308
313
  ### `src/server/workspacesRuntime.js`
309
314
  Exports
310
315
  - `WORKSPACES_TABLES`
316
+ - `createWorkspaceDirectory({ config, personalWorkspaceName, resources, userProfiles, workspaceCreatedParticipant, workspaces: workspacesRepository, workspaceMemberships: workspaceMembershipsRepository })`
311
317
  - `createWorkspaceRecords(resources)`
312
318
  - `createWorkspacesRuntime({ appRoot, config, env, inviteMailer, inviteEmailTemplate, inviteAcceptanceParticipant, personalWorkspaceName, resources, userProfiles, userSettings, workspaceCreatedParticipant, workspaces: workspacesRepository, workspaceMemberships: workspaceMembershipsRepository })`
313
319
  Local functions
@@ -48,3 +48,5 @@ Local functions
48
48
  ### `viteFixtureServer.mjs`
49
49
  Exports
50
50
  - None
51
+ Local functions
52
+ - `warm(url)`
@@ -810,9 +810,33 @@ const recordPayment = (input, options) => retryLostInsertRace(options, () => pay
810
810
 
811
811
  ## Layer 4: locks
812
812
 
813
- When two requests could change the same rows at once (allocating stock,
814
- numbering documents, moving items into a batch), lock the rows first, inside
815
- the transaction: `lock(id, txOptions)`, `lockMany(ids, txOptions)` or
813
+ Most writes take no lock. Choose the lightest tool that keeps the stored data
814
+ right:
815
+
816
+ | The write | The tool |
817
+ | --- | --- |
818
+ | An ordinary edit: a form saving a record, a name, a description, settings | a plain `patch`; the last save wins |
819
+ | A change only while a row still holds a value (open to booked, once) | a compare-and-set: `patch` with `onlyIf`, or `patchWhere` with the value in its filters ([Layer 3](#layer-3-many-rows-at-once)) |
820
+ | A value that must be unique | a unique index, and `retryLostInsertRace` around a transaction whose insert can lose that race ([Layer 3](#layer-3-many-rows-at-once)) |
821
+ | Stock or quantities, money or balances, sequential document numbers, a capacity limit (double booking), a check-then-act on a shared resource | a lock (`lock`, `lockMany`, `lockWhere`, `lockPages`) before the transaction's first plain read, as below |
822
+
823
+ When two people save the same record at once, a plain `patch` lets the later
824
+ change replace the earlier one. For an ordinary edit that is usually
825
+ acceptable, and it needs no lock and no concurrency test; where people would
826
+ care, the record carries a version and a stale save is refused, "changed,
827
+ reload" (`lockVersionField`, at the end of this layer). A compare-and-set
828
+ gives the row to one of two writers and tells the other it wrote nothing
829
+ (`onlyIf` answers `null`, `returning: "ids"` leaves the row out), which the
830
+ code turns into a clear refusal, with no lock. A lock is for a race that would
831
+ silently leave wrong data that matters: two orders taking the last item, two
832
+ payments spending one balance, two invoices given one number, two bookings of
833
+ the last place. It makes other writers wait, needs one order on every path and
834
+ a test with two writers, so it usually pays only there. Whatever the tool, the
835
+ writer that loses gets an answer it can act on, never a 500
836
+ ([Transactions](#transactions)).
837
+
838
+ The rest of this layer applies once a lock is warranted. Lock the rows first,
839
+ inside the transaction: `lock(id, txOptions)`, `lockMany(ids, txOptions)` or
816
840
  `lockWhere(filters, txOptions)`. The handle locks only rows the caller may
817
841
  see, in id order, so nobody locks another workspace's rows: a missing or
818
842
  hidden id throws not-found, as for `get`, or with `missing: "skip"` is left
@@ -896,7 +920,13 @@ locking reads, which see the latest rows whatever the snapshot:
896
920
  up to 1,000 (`pageSize`) at a time, in id order, each page one locking read
897
921
  after the last id of the page before. It still locks the governing row first,
898
922
  since PostgreSQL keeps no new row out of a page already locked. In a request it
899
- throws past the request row limit, as `queryPages` does. Isolation is not the
923
+ throws past the request row limit, as `queryPages` does. `take` in its options,
924
+ a whole number from 1 as `queryAll` takes it, is the call's own bound instead,
925
+ in a request or a job: `lockPages(filters, { ...txOptions, take: 20000 })`
926
+ locks up to 20,000 rows, past the request row limit too, and throws
927
+ `RESOURCE_ROW_LIMIT` naming the take before it hands over the page that passes
928
+ it. Unlike `queryAll`'s, it never stops quietly at part of the set, so name the
929
+ most rows the work can hold, never a number from the request. Isolation is not the
900
930
  tool: MySQL and MariaDB fix it when a transaction starts, and READ COMMITTED
901
931
  alone reads each page at a different moment. `patchWhere` and `deleteWhere`
902
932
  select their rows with a locking read on MySQL and MariaDB, so they too see
@@ -1098,9 +1128,11 @@ rows with its own `lock`, `lockMany` or `lockWhere`, the owners in one fixed
1098
1128
  order on every path (a parent's owner before its children's), so two
1099
1129
  transactions never take them in opposite orders.
1100
1130
 
1101
- A record that a person edits from a form it read earlier carries a version
1102
- number: the table resource names it with `lockVersionField`, an integer field
1103
- over a non-null integer column with `defaultTo: 0`.
1131
+ Where people would mind that a later save replaced theirs without a word, a
1132
+ record edited from a form it read earlier can carry a version number (an
1133
+ ordinary edit, where the last save winning is acceptable, needs none): the
1134
+ table resource names it with `lockVersionField`, an integer field over a
1135
+ non-null integer column with `defaultTo: 0`.
1104
1136
  `patch(id, changes, { ...options, lockVersion })` then locks the row, applies
1105
1137
  `changes` only while it still holds that version, and advances it. A record
1106
1138
  whose version moved on rejects with a 409 coded
@@ -1546,7 +1578,18 @@ const SettlementFeature = defineFeature({
1546
1578
  `users.profile.notFound`. It reads the user, the workspace and its settings,
1547
1579
  and writes nothing. Work done as a real member takes `memberContext`, which
1548
1580
  refuses anyone who is not one; `roleContext` is for installer and seed work
1549
- only, where the person is not given that role in the workspace.
1581
+ only, where the person is not given that role in the workspace. Code outside
1582
+ a server (a migration or seed script that owns its tables through
1583
+ `createStandaloneResources`) takes the same function from
1584
+ `createStandaloneRoleContext({ resources, config })`
1585
+ (`@jskit-ai/workspaces-core/server/standaloneRoleContext`), built the same
1586
+ way from the application's runtime config on its runtime's handles: the same
1587
+ arguments, context and refusals, with the script's own system context. Its
1588
+ runtime owns `ROLE_CONTEXT_TABLES`, the workspaces and users tables, beside
1589
+ its own (`owns: [...ROLE_CONTEXT_TABLES, ...seedTables]`, with a
1590
+ `systemScope`); on a server's Knex client `createStandaloneResources`
1591
+ refuses them, since the server owns them: code there takes
1592
+ `workspaces.core`'s.
1550
1593
  - A job finds its units with an `aggregate` grouped by the ownership field,
1551
1594
  which a system context may group by (and count distinct) even when the table
1552
1595
  hides it, then runs each unit scoped to it. It reads the units in pages, all
@@ -42,7 +42,7 @@ How to use it:
42
42
  - [server-search.md](./server-search.md)
43
43
  - `actualField`, `storage.column`, `storage.writeSerializer`, `storage.virtual`, `queryFields`, computed field, virtual field, projection, `defaultTo`, datetime write serialization, temporalPrecision, json-rest-schema dates
44
44
  - [table-resource-fields.md](./table-resource-fields.md)
45
- - data access, database table, knex, raw, SQL, repository, bulk, batch, many rows, set write, upsert, lock, claim, totals, report, aggregate, newest per group, transaction, `trx`, background job, system scope, `systemContext`, every workspace, `listForSystem`, work done as a member, member context, `memberContext`, owner, owns, owner API, another feature's table, scope test, `expectFlatQueries`, `requireTestDatabase`, `jskit/no-direct-knex`, `jskit/no-transaction-reader`, `jskit/no-hand-scope`, `jskit/sql-literal`, `jskit/knex-reason`, `infrastructure:`
45
+ - data access, database table, knex, raw, SQL, repository, bulk, batch, many rows, set write, upsert, lock, concurrent saves, race, last save wins, compare-and-set, `onlyIf`, claim, totals, report, aggregate, newest per group, transaction, `trx`, background job, system scope, `systemContext`, every workspace, `listForSystem`, work done as a member, member context, `memberContext`, owner, owns, owner API, another feature's table, scope test, `expectFlatQueries`, `requireTestDatabase`, `jskit/no-direct-knex`, `jskit/no-transaction-reader`, `jskit/no-hand-scope`, `jskit/sql-literal`, `jskit/knex-reason`, `infrastructure:`
46
46
  - [data-access.md](./data-access.md)
47
47
  - row policy, permission filtering, visibility before pagination, recursive CTE, descendants, package cycle, capability cycle a row policy closes, `late`, `RowPolicyPlugin`, row policy cost, slow writes through a policy, access check per history item
48
48
  - [row-policies.md](./row-policies.md)
@@ -10,11 +10,13 @@ Pick the layer ([Data access](../data-access.md)):
10
10
  - One record, or one page of records: the owner's handle (`get`, `query`, `create`, `patch`, `delete`).
11
11
  - Screens over HTTP: a CRUD contract on the same table resource.
12
12
  - Many rows from one action: `createMany`, `patchMany`, `patchWhere`, `deleteWhere`; never a loop of single writes.
13
- - Two requests could change the same rows: `lockMany` inside `withTransaction`, rows in id order.
13
+ - Two people could save the same record (a form, a name, settings): usually a plain `patch`, and the last save wins, with no lock and no concurrency test, since one edit replacing another is acceptable there. Where people would mind, `lockVersionField` and `patch` with `lockVersion` refuse a stale save ("changed, reload").
14
+ - A change only while a row still holds a value (open to booked, once): `patch` with `onlyIf`, or `patchWhere` with that value in its filters (a compare-and-set on every database, with no lock: of two concurrent writers one wins); a filter on a related table is refused on MySQL and MariaDB (`selection_cross_table`), so filter on the row's own columns, after locking the related rows with `lockMany`, or use `claim`.
15
+ - A value that must be unique: a unique index, and `retryLostInsertRace` around a transaction whose insert can lose that race.
16
+ - A race that would silently leave wrong data that matters (stock or quantities, money or balances, sequential document numbers, a capacity limit, a check-then-act on a shared resource): `lock`, `lockMany`, `lockWhere` or `lockPages` inside `withTransaction`, before its first plain read, in one order on every path (parents before children). A lock makes other writers wait and can deadlock, so it usually pays only here.
14
17
  - A whole set the work decides on (a register's entries): the row that governs it locked first by every writer, and by the work before its first plain read; inside a transaction it joined, which may have read plainly already (MySQL and MariaDB then keep that snapshot), `lockPages` after that lock, never a plain `queryAll`.
15
18
  - A table counted but never read back (anonymous participation): a `crypto.randomUUID()` id, a unique index on the identifying columns, and an owner API of insert (`createMany` with `onConflict` ignore) and count only.
16
19
  - Work inside `withTransaction`: `txOptions` is only `{ context, trx }`, so a key the work needs, the app's own included, comes from the method's `options`, and a write on the method's own table gets `{ ...options, ...txOptions }` so the caller's `returning`, `missing` or `format` reaches it.
17
- - A change only while a row still holds a value (open to booked, once): `patch` with `onlyIf`, or `patchWhere` with that value in its filters (a compare-and-set on every database, so of two concurrent writers one wins); a filter on a related table is refused on MySQL and MariaDB (`selection_cross_table`), so filter on the row's own columns, after locking the related rows with `lockMany`, or use `claim`.
18
20
  - Only some of the rows, one row, whether one exists: in the read (a searchSchema filter, `take: 1` or a page of size 1), never `.filter()`, `.find()`, `.some()`, `.slice()` or `.length` over the rows it answered ([Narrow in the query](../data-access.md#narrow-in-the-query)).
19
21
  - Counts, sums, buckets: `aggregate`; newest per group: a window include; anything else: one `scopedQuery()` method under `// Knex: <kind> - <reason>`.
20
22
  - Every workspace or user at once: a job with `systemScope`, finding its units with an `aggregate` grouped by the ownership field and looping over them, never rows; every workspace itself, a page at a time: `workspaces.listForSystem({ afterId, limit }, { context: systemContext(reason) })`, never the workspaces table.
@@ -195,7 +195,7 @@ method takes the call's `options` last and joins the transaction of the
195
195
 
196
196
  | Capability | Methods |
197
197
  | --- | --- |
198
- | `workspaces` | `findById(id, options)`, `findBySlug(slug, options)` (a deleted workspace is not found, though its slug stays taken), `listSlugsIn`, `findPersonalByOwnerUserId`, `listForUserId(userId, options)`, `insert`, `updateById`, `lock(workspaceId, options)` |
198
+ | `workspaces` | `findById(id, options)`, `findBySlug(slug, options)` (a deleted workspace is not found, though its slug stays taken), `listSlugsIn`, `findPersonalByOwnerUserId`, `listForUserId(userId, options)`, `insert`, `updateById`, `lock(workspaceId, options)`, `transferOwnership({ workspaceId, toUserId, previousOwnerRoleSid }, options)` |
199
199
  | `workspaces.memberships` | `findByWorkspaceIdAndUserId`, `ensureOwnerMembership`, `upsertMembership(workspaceId, userId, patch, options)`, `addMember({ workspaceId, userId, roleSid }, options)`, `activeMemberIds(workspaceId, options)`, `listActiveByWorkspaceId`, `findActiveByWorkspaceIdAndUserId`, `listActiveWorkspaceIdsByUserId`, `listActiveWorkspaceIdsByUserIds`, `listActiveWorkspaceIdsByUserIdsAmong(userIds, workspaceIds, options)`, `joinSource({ alias, filters }, options)` |
200
200
 
201
201
  `addMember` makes the user an active member with the role (`member` when none
@@ -222,6 +222,41 @@ that member's `listMembers` entry, or `null` for a removed or unknown member,
222
222
  and reads only that membership. Do not list every member to find one: the list
223
223
  grows with the workspace, and a lookup per row multiplies it.
224
224
 
225
+ ### Moving a workspace to a new owner
226
+
227
+ `workspaces.transferOwnership({ workspaceId, toUserId, previousOwnerRoleSid }, options)`
228
+ hands a workspace to another of its active members, for example when an
229
+ administrator gives a workspace to one of its members. It joins the caller's
230
+ transaction when `options` carries one, and otherwise runs in one of its own.
231
+ It locks the workspace first and then both owners' memberships, so two
232
+ transfers of one workspace take turns and the second moves it on from the owner
233
+ the first left; it sends the same statements however many members there are.
234
+
235
+ - `toUserId` becomes the workspace's owner (`owner_user_id`, and `updatedAt`
236
+ moves) and their membership takes the `owner` role.
237
+ - The previous owner stays an active member with `previousOwnerRoleSid`,
238
+ `admin` unless given; they are given an active membership with it when they
239
+ had none. The role is any role but `owner`, which, like an empty or non-text
240
+ role, is a `TypeError` before any statement. The role catalog is not checked.
241
+ - A personal workspace stops being personal. It was the one provisioned for its
242
+ previous owner, and the new owner's own personal workspace stays theirs.
243
+ Where the application provisions personal workspaces (the `personal` tenancy
244
+ mode), the previous owner is given a new one at their next provisioning.
245
+ - A `toUserId` who already owns the workspace writes nothing and answers
246
+ `changed: false`.
247
+ - A missing or deleted workspace is 404 `workspaces.workspace.notFound`. A
248
+ `toUserId` with no active membership (never a member, only invited, or
249
+ removed) is 409 `workspaces.member.newOwnerNotActive`. Neither writes
250
+ anything.
251
+
252
+ It answers the workspace as `findById` answers it, plus `previousOwnerUserId`
253
+ and `changed`. It publishes no event: the `workspace.workspaces.create` and
254
+ `workspace.workspaces.update` actions publish `entity.changed` on
255
+ `runtime.events`, but this is a capability method, not an action. An
256
+ application that keeps its own copy of workspace facts updates that copy from
257
+ the answer. The method checks no permission: the application decides who may
258
+ transfer a workspace before calling it.
259
+
225
260
  ### Invitation email
226
261
 
227
262
  To send invitation email, provide the optional `workspaces.invite-mailer`
@@ -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.334`
18
+ - Owner: `@jskit-ai/agent-docs@0.1.336`
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.334`
29
+ - Owner: `@jskit-ai/agent-docs@0.1.336`
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.72`
40
+ - Owner: `@jskit-ai/assistant-runtime@0.2.74`
41
41
  - Read: [PATTERN.md](patterns/assistant/assistant-surface/PATTERN.md)
42
42
  - Examples: [example/](patterns/assistant/assistant-surface/example/)
43
43
  - Requires: `@jskit-ai/assistant-runtime`, `@jskit-ai/connectors-catalog`, `@jskit-ai/connectors-core`, `@jskit-ai/shell-web`
@@ -59,7 +59,7 @@ Compose JSKIT authentication routes, views, profile controls, and public surface
59
59
 
60
60
  - Id: `auth/auth-surface`
61
61
  - Keywords: `account`, `auth`, `login`, `logout`, `password`, `placement`, `profile`, `reset`, `surface`
62
- - Owner: `@jskit-ai/auth-web@0.2.46`
62
+ - Owner: `@jskit-ai/auth-web@0.2.47`
63
63
  - Read: [PATTERN.md](patterns/auth/auth-surface/PATTERN.md)
64
64
  - Examples: [example/](patterns/auth/auth-surface/example/)
65
65
  - Requires: `@jskit-ai/auth-core`, `@jskit-ai/auth-web`, `@jskit-ai/shell-web`
@@ -70,7 +70,7 @@ Let people sign in with the accounts they already have in an accounts hub or ano
70
70
 
71
71
  - Id: `auth/oidc-sign-in`
72
72
  - Keywords: `accounts hub`, `auth`, `authentication`, `back-channel logout`, `dynamic client registration`, `issuer`, `master login`, `oidc`, `openid connect`, `single sign-on`, `sso`
73
- - Owner: `@jskit-ai/auth-provider-oidc-core@0.2.50`
73
+ - Owner: `@jskit-ai/auth-provider-oidc-core@0.2.51`
74
74
  - Read: [PATTERN.md](patterns/auth/oidc-sign-in/PATTERN.md)
75
75
  - Examples: [example/](patterns/auth/oidc-sign-in/example/)
76
76
  - Requires: `@jskit-ai/auth-provider-oidc-core`, `@jskit-ai/auth-web`
@@ -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.42`
95
+ - Owner: `@jskit-ai/connectors-catalog@0.2.44`
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.42`
106
+ - Owner: `@jskit-ai/connectors-catalog@0.2.44`
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.42`
117
+ - Owner: `@jskit-ai/connectors-catalog@0.2.44`
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.42`
128
+ - Owner: `@jskit-ai/connectors-catalog@0.2.44`
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.42`
139
+ - Owner: `@jskit-ai/connectors-catalog@0.2.44`
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.41`
150
+ - Owner: `@jskit-ai/connector-google-calendar@0.2.42`
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.42`
161
+ - Owner: `@jskit-ai/connectors-catalog@0.2.44`
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.42`
172
+ - Owner: `@jskit-ai/connectors-catalog@0.2.44`
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.42`
183
+ - Owner: `@jskit-ai/connectors-catalog@0.2.44`
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.42`
194
+ - Owner: `@jskit-ai/connectors-catalog@0.2.44`
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.42`
205
+ - Owner: `@jskit-ai/connectors-catalog@0.2.44`
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.42`
216
+ - Owner: `@jskit-ai/connectors-catalog@0.2.44`
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.42`
227
+ - Owner: `@jskit-ai/connectors-catalog@0.2.44`
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.42`
238
+ - Owner: `@jskit-ai/connectors-catalog@0.2.44`
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.281`
249
+ - Owner: `@jskit-ai/console-web@0.1.283`
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.42`
271
+ - Owner: `@jskit-ai/crud-core@0.2.43`
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`
@@ -279,7 +279,7 @@ Build a routed CRUD user interface as thin application pages over JSKIT's shared
279
279
 
280
280
  - Id: `crud/crud-screen-set`
281
281
  - Keywords: `actions`, `add`, `crud`, `delete`, `edit`, `filters`, `list`, `material`, `routes`, `view`, `vue`
282
- - Owner: `@jskit-ai/http-web@0.2.47`
282
+ - Owner: `@jskit-ai/http-web@0.2.49`
283
283
  - Read: [PATTERN.md](patterns/crud/crud-screen-set/PATTERN.md)
284
284
  - Examples: [example/](patterns/crud/crud-screen-set/example/)
285
285
  - Requires: `@jskit-ai/http-web`, `@jskit-ai/resource-core`, `@jskit-ai/resource-crud-core`
@@ -323,7 +323,7 @@ Wrap a JSKIT web application in a Capacitor Android shell using native Capacitor
323
323
 
324
324
  - Id: `mobile/android-application`
325
325
  - Keywords: `android`, `capacitor`, `device`, `mobile`, `native`, `shell`, `webview`
326
- - Owner: `@jskit-ai/mobile-capacitor@0.2.40`
326
+ - Owner: `@jskit-ai/mobile-capacitor@0.2.41`
327
327
  - Read: [PATTERN.md](patterns/mobile/android-application/PATTERN.md)
328
328
  - Examples: [example/](patterns/mobile/android-application/example/)
329
329
  - Requires: `@capacitor/android`, `@capacitor/app`, `@capacitor/cli`, `@jskit-ai/mobile-capacitor`
@@ -334,7 +334,7 @@ Add JSKIT realtime events with an optional Redis backplane and an explicit shell
334
334
 
335
335
  - Id: `realtime/realtime-application`
336
336
  - Keywords: `realtime`, `redis`, `socket.io`, `sockets`, `status`, `websocket`
337
- - Owner: `@jskit-ai/realtime@0.2.43`
337
+ - Owner: `@jskit-ai/realtime@0.2.44`
338
338
  - Read: [PATTERN.md](patterns/realtime/realtime-application/PATTERN.md)
339
339
  - Examples: [example/](patterns/realtime/realtime-application/example/)
340
340
  - Requires: `@jskit-ai/realtime`, `@jskit-ai/shell-web`
@@ -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.58`
348
+ - Owner: `@jskit-ai/rewarded-web@0.2.60`
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.334`
359
+ - Owner: `@jskit-ai/agent-docs@0.1.336`
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`
@@ -367,7 +367,7 @@ Compose the JSKIT responsive shell, semantic placements, settings navigation, an
367
367
 
368
368
  - Id: `shell/application-shell`
369
369
  - Keywords: `adaptive`, `app`, `layout`, `navigation`, `placement`, `responsive`, `settings`, `shell`
370
- - Owner: `@jskit-ai/shell-web@0.2.40`
370
+ - Owner: `@jskit-ai/shell-web@0.2.41`
371
371
  - Read: [PATTERN.md](patterns/shell/application-shell/PATTERN.md)
372
372
  - Examples: [example/](patterns/shell/application-shell/example/)
373
373
  - Requires: `@jskit-ai/kernel`, `@jskit-ai/shell-web`
@@ -378,7 +378,7 @@ Add product routes and shell extensions through file routing, semantic placement
378
378
 
379
379
  - Id: `ui/page-and-placement`
380
380
  - Keywords: `component`, `navigation`, `outlet`, `page`, `placement`, `routes`, `section`, `shell`, `subpages`, `vue`
381
- - Owner: `@jskit-ai/shell-web@0.2.40`
381
+ - Owner: `@jskit-ai/shell-web@0.2.41`
382
382
  - Read: [PATTERN.md](patterns/ui/page-and-placement/PATTERN.md)
383
383
  - Examples: [example/](patterns/ui/page-and-placement/example/)
384
384
  - Requires: `@jskit-ai/kernel`, `@jskit-ai/shell-web`
@@ -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.64`
392
+ - Owner: `@jskit-ai/users-web@0.2.66`
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.51`
403
+ - Owner: `@jskit-ai/users-core@0.2.53`
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.51`
414
+ - Owner: `@jskit-ai/workspaces-core@0.2.53`
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.64`
425
+ - Owner: `@jskit-ai/workspaces-web@0.2.66`
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.252",
53
- "@jskit-ai/jskit-catalog": "0.2.86",
53
+ "@jskit-ai/jskit-catalog": "0.2.88",
54
54
  "@playwright/test": "1.61.1",
55
55
  "@vitejs/plugin-vue": "^6.0.7",
56
56
  "eslint": "^10.8.0",
@@ -45,13 +45,13 @@
45
45
  "vue-router": "^5.3.1",
46
46
  "vuetify": "^4.3.0",
47
47
  "@jskit-ai/http-runtime": "0.2.27",
48
- "@jskit-ai/shell-web": "0.2.40",
48
+ "@jskit-ai/shell-web": "0.2.41",
49
49
  "@fastify/fast-json-stringify-compiler": "^5.1.0",
50
50
  "@vue/devtools-api": "^8.2.1"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@jskit-ai/config-eslint": "0.1.252",
54
- "@jskit-ai/jskit-catalog": "0.2.86",
54
+ "@jskit-ai/jskit-catalog": "0.2.88",
55
55
  "@playwright/test": "1.61.1",
56
56
  "@vitejs/plugin-vue": "^6.0.7",
57
57
  "eslint": "^10.8.0",
@@ -2,7 +2,7 @@
2
2
  "private": true,
3
3
  "type": "module",
4
4
  "dependencies": {
5
- "@jskit-ai/auth-provider-oidc-core": "0.2.50",
6
- "@jskit-ai/auth-web": "0.2.46"
5
+ "@jskit-ai/auth-provider-oidc-core": "0.2.51",
6
+ "@jskit-ai/auth-web": "0.2.47"
7
7
  }
8
8
  }
@@ -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.41",
11
- "@jskit-ai/connector-google-calendar": "0.2.41",
10
+ "@jskit-ai/connectors-core": "0.2.42",
11
+ "@jskit-ai/connector-google-calendar": "0.2.42",
12
12
  "@jskit-ai/database-runtime": "0.1.276",
13
13
  "@jskit-ai/database-runtime-mysql": "0.1.274",
14
14
  "@jskit-ai/kernel": "0.2.27",
@@ -9,7 +9,7 @@
9
9
  "./shared": "./src/shared/index.js"
10
10
  },
11
11
  "dependencies": {
12
- "@jskit-ai/crud-core": "0.2.42",
12
+ "@jskit-ai/crud-core": "0.2.43",
13
13
  "@jskit-ai/resource-core": "0.1.218",
14
14
  "@jskit-ai/resource-crud-core": "0.1.220"
15
15
  },
@@ -2,7 +2,7 @@
2
2
  "private": true,
3
3
  "type": "module",
4
4
  "dependencies": {
5
- "@jskit-ai/realtime": "0.2.43",
6
- "@jskit-ai/shell-web": "0.2.40"
5
+ "@jskit-ai/realtime": "0.2.44",
6
+ "@jskit-ai/shell-web": "0.2.41"
7
7
  }
8
8
  }
@@ -10,9 +10,9 @@
10
10
  "./shared": "./src/shared/index.js"
11
11
  },
12
12
  "dependencies": {
13
- "@jskit-ai/crud-core": "0.2.42",
13
+ "@jskit-ai/crud-core": "0.2.43",
14
14
  "@jskit-ai/resource-crud-core": "0.1.220",
15
- "@jskit-ai/users-core": "0.2.51"
15
+ "@jskit-ai/users-core": "0.2.53"
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.42",
13
+ "@jskit-ai/crud-core": "0.2.43",
14
14
  "@jskit-ai/resource-crud-core": "0.1.220",
15
- "@jskit-ai/users-core": "0.2.51",
16
- "@jskit-ai/workspaces-core": "0.2.51"
15
+ "@jskit-ai/users-core": "0.2.53",
16
+ "@jskit-ai/workspaces-core": "0.2.53"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "@jskit-ai/kernel": "0.2.27",
20
- "@jskit-ai/resource-runtime": "0.2.38"
20
+ "@jskit-ai/resource-runtime": "0.2.39"
21
21
  },
22
22
  "jskit": {
23
23
  "kind": "runtime",