@jskit-ai/agent-docs 0.1.282 → 0.1.284

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 (151) hide show
  1. package/guide/agent/app-extras/assistant.md +14 -2
  2. package/guide/agent/app-extras/realtime.md +38 -1
  3. package/guide/agent/app-setup/authentication.md +64 -14
  4. package/guide/agent/app-setup/console.md +8 -0
  5. package/guide/agent/app-setup/database-layer.md +23 -103
  6. package/guide/agent/app-setup/existing-application-migration.md +105 -72
  7. package/guide/agent/app-setup/multi-homing.md +94 -32
  8. package/guide/agent/app-setup/quickstart.md +1 -1
  9. package/guide/agent/app-setup/run-an-accounts-hub.md +1 -1
  10. package/guide/agent/app-setup/upgrading-jskit.md +8 -3
  11. package/guide/agent/app-setup/users.md +8 -5
  12. package/guide/agent/framework/application-operations.md +1 -1
  13. package/guide/agent/framework/crud-operations.md +63 -45
  14. package/guide/agent/framework/data-access.md +1031 -0
  15. package/guide/agent/framework/sanity-checks.md +26 -27
  16. package/guide/agent/framework/typed-features.md +114 -247
  17. package/guide/agent/index.md +2 -0
  18. package/package.json +6 -3
  19. package/patterns/feature-package/PATTERN.md +25 -17
  20. package/patterns/feature-package/example/booking-engine/package.json +1 -1
  21. package/patterns/feature-package/example/variations/InvoiceRollupFeature.js +6 -7
  22. package/patterns/feature-package/example/variations/invoiceResource.js +15 -0
  23. package/patterns/feature-package/example/variations/invoiceRollupActions.js +4 -4
  24. package/patterns/feature-package/example/variations/ownedTableRepository.js +27 -0
  25. package/patterns/feature-package/example/variations/types.js +1 -1
  26. package/patterns/minimal-foundation/example/AGENTS.md +4 -0
  27. package/patterns/minimal-foundation/example/package.json +4 -4
  28. package/patterns/minimal-foundation/example/server.js +4 -1
  29. package/patterns/shell-foundation/example/AGENTS.md +4 -0
  30. package/patterns/shell-foundation/example/package.json +5 -5
  31. package/patterns/shell-foundation/example/packages/main/package.json +1 -1
  32. package/patterns/shell-foundation/example/server.js +4 -1
  33. package/reference/autogen/KERNEL_MAP.md +2 -1
  34. package/reference/autogen/PATTERN_INDEX.md +70 -59
  35. package/reference/autogen/README.md +1 -1
  36. package/reference/autogen/packages/agent-docs.md +7 -3
  37. package/reference/autogen/packages/agent-runtime.md +48 -11
  38. package/reference/autogen/packages/architecture-inspector.md +6 -2
  39. package/reference/autogen/packages/assistant-core.md +4 -4
  40. package/reference/autogen/packages/assistant-runtime.md +33 -13
  41. package/reference/autogen/packages/auth-provider-local-core.md +3 -1
  42. package/reference/autogen/packages/auth-provider-local-db-core.md +65 -14
  43. package/reference/autogen/packages/auth-provider-oidc-core.md +5 -1
  44. package/reference/autogen/packages/auth-provider-supabase-core.md +1 -1
  45. package/reference/autogen/packages/connectors-core.md +22 -2
  46. package/reference/autogen/packages/console-core.md +9 -5
  47. package/reference/autogen/packages/crud-core.md +38 -173
  48. package/reference/autogen/packages/database-runtime.md +8 -32
  49. package/reference/autogen/packages/http-runtime.md +3 -3
  50. package/reference/autogen/packages/http-web.md +12 -0
  51. package/reference/autogen/packages/kernel.md +25 -2
  52. package/reference/autogen/packages/oidc-issuer-core.md +4 -0
  53. package/reference/autogen/packages/payments-core.md +29 -6
  54. package/reference/autogen/packages/realtime.md +15 -6
  55. package/reference/autogen/packages/resource-core.md +30 -5
  56. package/reference/autogen/packages/resource-crud-core.md +30 -34
  57. package/reference/autogen/packages/resource-runtime.md +198 -0
  58. package/reference/autogen/packages/rewarded-core.md +16 -10
  59. package/reference/autogen/packages/shell-web.md +1 -0
  60. package/reference/autogen/packages/users-core.md +26 -14
  61. package/reference/autogen/packages/workspaces-core.md +17 -10
  62. package/reference/autogen/tooling/config-eslint.md +69 -0
  63. package/reference/autogen/tooling/jskit-catalog.md +40 -1
  64. package/reference/autogen/tooling/jskit-release.md +3 -0
  65. package/skills/jskit/SKILL.md +4 -1
  66. package/skills/jskit/references/app-operations.md +1 -1
  67. package/skills/jskit/references/crud-operations.md +62 -44
  68. package/skills/jskit/references/data-access.md +1026 -0
  69. package/skills/jskit/references/database-layer.md +411 -0
  70. package/skills/jskit/references/existing-application-migration.md +105 -72
  71. package/skills/jskit/references/heuristics/INDEX.md +6 -4
  72. package/skills/jskit/references/heuristics/crud-authoring.md +22 -14
  73. package/skills/jskit/references/heuristics/data-access.md +19 -0
  74. package/skills/jskit/references/heuristics/filters.md +6 -6
  75. package/skills/jskit/references/heuristics/row-policies.md +40 -16
  76. package/skills/jskit/references/heuristics/server-search.md +30 -42
  77. package/skills/jskit/references/heuristics/table-resource-fields.md +78 -0
  78. package/skills/jskit/references/heuristics/typed-features.md +3 -3
  79. package/skills/jskit/references/multi-homing.md +94 -32
  80. package/skills/jskit/references/pattern-index.md +70 -59
  81. package/skills/jskit/references/patterns/app/minimal-foundation/example/AGENTS.md +4 -0
  82. package/skills/jskit/references/patterns/app/minimal-foundation/example/package.json +4 -4
  83. package/skills/jskit/references/patterns/app/minimal-foundation/example/server.js +4 -1
  84. package/skills/jskit/references/patterns/app/shell-foundation/example/AGENTS.md +4 -0
  85. package/skills/jskit/references/patterns/app/shell-foundation/example/package.json +5 -5
  86. package/skills/jskit/references/patterns/app/shell-foundation/example/packages/main/package.json +1 -1
  87. package/skills/jskit/references/patterns/app/shell-foundation/example/server.js +4 -1
  88. package/skills/jskit/references/patterns/assistant/assistant-surface/PATTERN.md +5 -2
  89. package/skills/jskit/references/patterns/auth/accounts-hub/example/package.json +3 -2
  90. package/skills/jskit/references/patterns/auth/auth-surface/PATTERN.md +15 -0
  91. package/skills/jskit/references/patterns/auth/oidc-sign-in/example/package.json +2 -2
  92. package/skills/jskit/references/patterns/auth/supabase-auth/example/package.json +1 -1
  93. package/skills/jskit/references/patterns/connectors/calendar-cli/example/package.json +4 -4
  94. package/skills/jskit/references/patterns/crud/crud-contract/PATTERN.md +133 -0
  95. package/skills/jskit/references/patterns/crud/crud-contract/example/bookResource.js +74 -0
  96. package/skills/jskit/references/patterns/crud/{json-api-resource-package → crud-feature-package}/PATTERN.md +69 -37
  97. package/skills/jskit/references/patterns/crud/{json-api-resource-package → crud-feature-package}/example/packages/books/package.json +5 -4
  98. package/skills/jskit/references/patterns/crud/crud-feature-package/example/packages/books/src/server/BooksFeature.js +13 -0
  99. package/skills/jskit/references/patterns/crud/crud-feature-package/example/packages/books/src/shared/bookResource.js +74 -0
  100. package/skills/jskit/references/patterns/crud/crud-feature-package/example/packages/books/src/shared/index.js +1 -0
  101. package/skills/jskit/references/patterns/crud/crud-screen-set/PATTERN.md +26 -8
  102. package/skills/jskit/references/patterns/crud/crud-screen-set/example/books/BookEditPage.vue +2 -2
  103. package/skills/jskit/references/patterns/crud/crud-screen-set/example/books/BookListPage.vue +2 -2
  104. package/skills/jskit/references/patterns/crud/crud-screen-set/example/books/BookNewPage.vue +2 -2
  105. package/skills/jskit/references/patterns/crud/crud-screen-set/example/books/BookViewPage.vue +3 -3
  106. package/skills/jskit/references/patterns/database/mysql-application/PATTERN.md +9 -4
  107. package/skills/jskit/references/patterns/database/mysql-application/example/package.json +2 -1
  108. package/skills/jskit/references/patterns/database/mysql-application/example/scripts/prepare-database.js +8 -0
  109. package/skills/jskit/references/patterns/database/postgres-application/PATTERN.md +8 -4
  110. package/skills/jskit/references/patterns/database/postgres-application/example/package.json +2 -1
  111. package/skills/jskit/references/patterns/database/postgres-application/example/scripts/prepare-database.js +8 -0
  112. package/skills/jskit/references/patterns/database/table-resource/PATTERN.md +117 -0
  113. package/skills/jskit/references/patterns/database/table-resource/example/orderResource.js +25 -0
  114. package/skills/jskit/references/patterns/realtime/realtime-application/PATTERN.md +7 -0
  115. package/skills/jskit/references/patterns/realtime/realtime-application/example/package.json +2 -2
  116. package/skills/jskit/references/patterns/rewards/google-rewarded/PATTERN.md +1 -1
  117. package/skills/jskit/references/patterns/server/feature-package/PATTERN.md +25 -17
  118. package/skills/jskit/references/patterns/server/feature-package/example/booking-engine/package.json +1 -1
  119. package/skills/jskit/references/patterns/server/feature-package/example/variations/InvoiceRollupFeature.js +6 -7
  120. package/skills/jskit/references/patterns/server/feature-package/example/variations/invoiceResource.js +15 -0
  121. package/skills/jskit/references/patterns/server/feature-package/example/variations/invoiceRollupActions.js +4 -4
  122. package/skills/jskit/references/patterns/server/feature-package/example/variations/ownedTableRepository.js +27 -0
  123. package/skills/jskit/references/patterns/server/feature-package/example/variations/types.js +1 -1
  124. package/skills/jskit/references/patterns/users/user-administration-server/PATTERN.md +59 -10
  125. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users/package.json +5 -4
  126. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users/src/server/UsersFeature.js +7 -5
  127. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users/src/shared/index.js +1 -1
  128. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users/src/shared/userCrud.js +21 -0
  129. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users-workspace/package.json +11 -5
  130. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users-workspace/src/server/UsersWorkspaceFeature.js +14 -5
  131. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users-workspace/src/server/workspaceMembersOnly.js +52 -0
  132. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users-workspace/src/shared/index.js +1 -1
  133. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users-workspace/src/shared/userCrud.js +21 -0
  134. package/skills/jskit/references/patterns/workspaces/workspace-server/PATTERN.md +9 -9
  135. package/skills/jskit/references/patterns/workspaces/workspace-surfaces/PATTERN.md +16 -0
  136. package/skills/jskit/references/patterns/workspaces/workspace-surfaces/example/src/pages/home/workspaces/index.vue +2 -0
  137. package/skills/jskit/references/sanity-checks.md +27 -28
  138. package/skills/jskit/references/typed-features.md +114 -247
  139. package/patterns/feature-package/example/variations/customKnexRepository.js +0 -40
  140. package/reference/autogen/packages/json-rest-api-core.md +0 -66
  141. package/skills/jskit/references/heuristics/crud-repository-mapping.md +0 -140
  142. package/skills/jskit/references/patterns/crud/json-api-resource-package/example/packages/books/src/server/BooksFeature.js +0 -13
  143. package/skills/jskit/references/patterns/crud/json-api-resource-package/example/packages/books/src/shared/bookResource.js +0 -83
  144. package/skills/jskit/references/patterns/crud/json-api-resource-package/example/packages/books/src/shared/index.js +0 -1
  145. package/skills/jskit/references/patterns/crud/resource-contract/PATTERN.md +0 -155
  146. package/skills/jskit/references/patterns/crud/resource-contract/example/bookResource.js +0 -87
  147. package/skills/jskit/references/patterns/server/feature-package/example/variations/customKnexRepository.js +0 -40
  148. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users/src/shared/userResource.js +0 -69
  149. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users-workspace/src/shared/userResource.js +0 -56
  150. /package/skills/jskit/references/patterns/crud/{json-api-resource-package → crud-feature-package}/example/migrations/20260815000000_books.cjs +0 -0
  151. /package/skills/jskit/references/patterns/crud/{json-api-resource-package → crud-feature-package}/example/packages/books/src/server/types.js +0 -0
@@ -110,14 +110,25 @@ The package migrations create and own these tables:
110
110
  | `workspace_invites` | `workspace_id`, `email`, `role_sid`, `status`, `token_hash`, `invited_by_user_id`, `expires_at`, `accepted_at`, `revoked_at` |
111
111
 
112
112
  Application records that belong to a workspace use a non-null `workspace_id`
113
- foreign key to `workspaces.id`. Read and change these tables through the
114
- `workspaces.core` repositories and services, not directly.
113
+ foreign key to `workspaces.id`. Read and change these tables through their
114
+ owners' capabilities (`workspaces`, `workspaces.memberships` and
115
+ `workspaces.core`, below), not directly.
115
116
 
116
117
  ## Server composition
117
118
 
118
119
  Use `workspaces/workspace-server` for role vocabulary, creation policy,
119
120
  invitations, settings, and app-owned invitation email rendering.
120
121
 
122
+ Two server settings are required, and the server refuses to start without
123
+ them: whether new workspaces accept invitations, and how long an invitation
124
+ lasts.
125
+
126
+ ```js
127
+ // config/server.js
128
+ config.workspaceSettings = { defaults: { invitesEnabled: true } };
129
+ config.workspaceMembers = { defaults: { inviteExpiresInMs: 7 * 24 * 60 * 60 * 1000 } };
130
+ ```
131
+
121
132
  Workspace scope must reach repository queries. Parsing a workspace slug or
122
133
  hiding an admin link is not authorization. Membership and role checks happen
123
134
  before an operation discloses records or record existence.
@@ -125,14 +136,12 @@ before an operation discloses records or record existence.
125
136
  ### Workspace-scoped features and routes
126
137
 
127
138
  For a standard CRUD resource owned by a workspace, give its table the
128
- `workspace_id` column, set the resource's `autofilter: "workspace"`, and bind
129
- `defineCrudJsonApiFeature()` with `ownershipFilter: "workspace"` and `scope:
130
- WORKSPACE_CRUD_SCOPE` (from `@jskit-ai/workspaces-core/server/support/workspaceCrud`)
131
- on a workspace surface. JSKIT then filters `workspaceId` by the workspace in the
132
- route. A repository method you add reads the workspace id with
133
- `resolveWorkspaceScopeValue(options.context)`
134
- (`@jskit-ai/json-rest-api-core/server/jsonRestApiHost`), which throws when the
135
- context names two workspaces.
139
+ `workspace_id` column, set its table resource's `ownership: "workspace"`, and bind
140
+ `defineCrudFeature()` with `scope: WORKSPACE_CRUD_SCOPE` (from
141
+ `@jskit-ai/workspaces-core/server/support/workspaceCrud`) on a workspace
142
+ surface. JSKIT then filters `workspaceId` by the workspace in the route. A
143
+ repository method you add passes the call's `options` on to the table's handle,
144
+ which scopes every read and write to the context's workspace.
136
145
  `workspace_user` also filters by the signed-in user. See the CRUD operations
137
146
  guide.
138
147
 
@@ -175,9 +184,29 @@ capability provides:
175
184
  | `workspaces.services.members` | Members, roles and invitations |
176
185
  | `workspaces.services.pendingInvitations` | Invitation resolution, redemption and acceptance participants |
177
186
  | `workspaces.services.settings` | Workspace settings |
178
- | `workspaces.repositories.workspaces`, `.workspaceMemberships`, `.workspaceSettings`, `.workspaceInvites` | Repository access inside the application's own transactions |
187
+ | `workspaces.repositories.workspaceSettings`, `.workspaceInvites` | Settings and invitation records inside the application's own transactions |
179
188
  | `workspaces.tenancyProfile` | The resolved tenancy mode and workspace policy |
180
189
 
190
+ The workspaces and their memberships are their own capabilities, for code that
191
+ reads or changes them inside its own transactions, typed `Workspaces` and
192
+ `WorkspacesMemberships` in `@jskit-ai/workspaces-core/server/types`. Every
193
+ method takes the call's `options` last and joins the transaction of the
194
+ `txOptions` it is given.
195
+
196
+ | Capability | Methods |
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)` |
199
+ | `workspaces.memberships` | `findByWorkspaceIdAndUserId`, `ensureOwnerMembership`, `upsertMembership(workspaceId, userId, patch, options)`, `addMember({ workspaceId, userId, roleSid }, options)`, `activeMemberIds(workspaceId, options)`, `listActiveByWorkspaceId`, `findActiveByWorkspaceIdAndUserId`, `listActiveWorkspaceIdsByUserId`, `listActiveWorkspaceIdsByUserIds` |
200
+
201
+ `addMember` makes the user an active member with the role (`member` when none
202
+ is given), adding the membership or reactivating it. `activeMemberIds` answers
203
+ the active members' user ids at the same cost however many members there
204
+ are, without including their profiles. `lock` takes
205
+ the workspace's row lock until the caller's transaction ends, so work that must
206
+ not interleave for one workspace takes turns; it runs only inside a
207
+ transaction, given its `txOptions`, and answers `{ id }`, or `null` when there
208
+ is no such workspace.
209
+
181
210
  To check one person's membership, for example a notification recipient, call
182
211
  `workspaces.services.members.getMember(workspace, userId, options)`. It answers
183
212
  that member's `listMembers` entry, or `null` for a removed or unknown member,
@@ -225,8 +254,8 @@ workspace routes, `workspaces-web` switches Vuetify to the `workspace-light` or
225
254
  colours. Other routes use the application's themes.
226
255
 
227
256
  New workspaces start from JSKIT's blue palette unless `config/server.js` sets
228
- the application's own. Missing fields keep JSKIT's values; an invalid colour
229
- stops the server at startup:
257
+ the application's own beside the required `invitesEnabled`. Missing colours
258
+ keep JSKIT's values; an invalid colour stops the server at startup:
230
259
 
231
260
  ```js
232
261
  // config/server.js
@@ -301,11 +330,11 @@ authorization and role checks. Do not pass arbitrary HTTP input as options.
301
330
 
302
331
  | Capability method | Contract |
303
332
  | --- | --- |
304
- | `workspaces.repositories.workspaceInvites.withTransaction(work)` | Delegates to the same JSON REST API's managed `transaction(work)`; awaits commit and completion hooks before resolving. Runs `work` again when the database aborts it as a deadlock victim (see [Database layer](https://mobily-enterprises.github.io/jskit-ai/guide/app-setup/database-layer#deadlock-retries)). |
305
- | `workspaces.repositories.workspaceInvites.lockWorkspaceForInvitations(workspaceId, { trx })` | Locks the workspace before application receipt/draft rows when composing preparation. Requires an active transaction. |
306
- | `workspaces.services.members.prepareInvite(workspace, actor, payload, options)` | Requires a managed `options.trx`. Validates the invitation role, replaces pending invitations for that workspace/email, and returns `{ createdInviteId, inviteTokenPreview }`. Never sends. |
307
- | `workspaces.services.members.sendInvite(workspace, actor, prepared, options)` | Requires no `options.trx`. Reloads the committed pending invitation and workspace display data, validates expiry and token correspondence, and sends that invitation without replacement. |
308
- | `workspaces.services.members.createInvite(workspace, actor, payload, options)` | Owns preparation and commit, then calls `sendInvite`, and answers with `sendInvite`'s result as JSON:API data (`returnJsonApiData`, read it from `.value`), as the invite action sends it. Rejects `options.trx`. |
333
+ | `workspaces.repositories.workspaceInvites.withTransaction(options, (txOptions) => …)` | The invitations handle's `withTransaction`: joins the caller's transaction or opens one and hands `work` the `txOptions` to pass on; awaits commit and completion hooks before resolving. Runs `work` again when the database aborts it as a deadlock victim (see [data access](https://mobily-enterprises.github.io/jskit-ai/guide/framework/data-access#transactions)). `{ ...options, outermost: true }` refuses a call that already runs inside one. |
334
+ | `workspaces.lock(workspaceId, txOptions)` (capability `workspaces`) | Locks the workspace before application receipt/draft rows when composing preparation. Requires an active transaction. |
335
+ | `workspaces.services.members.prepareInvite(workspace, actor, payload, txOptions)` | Runs only inside a transaction, given its `txOptions`. Validates the invitation role, replaces pending invitations for that workspace/email, and returns `{ createdInviteId, inviteTokenPreview }`. Never sends. |
336
+ | `workspaces.services.members.sendInvite(workspace, actor, prepared, options)` | Refuses to run inside a transaction: it delivers after the preparation's transaction commits. Reloads the committed pending invitation and workspace display data, validates expiry and token correspondence, and sends that invitation without replacement. |
337
+ | `workspaces.services.members.createInvite(workspace, actor, payload, options)` | Owns preparation and commit, then calls `sendInvite`, and answers with `sendInvite`'s result as JSON:API data (`returnJsonApiData`, read it from `.value`), as the invite action sends it. Refuses to run inside a transaction. |
309
338
  | `workspaces.invite-acceptance-participant` (optional capability) | One application function receiving `({ invite, user }, options)` inside the acceptance transaction. Without it, acceptance activates the membership only. |
310
339
 
311
340
  `sendInvite` accepts `{ createdInviteId, inviteTokenPreview }` from preparation or
@@ -344,21 +373,20 @@ setup: ({ reviewedPeople, people, scopes, audit }) => ({
344
373
  })
345
374
 
346
375
  // Inside an authorized application command, in a feature that requires
347
- // workspaces: "workspaces.core":
376
+ // workspaces: "workspaces.core" and workspaceRecords: "workspaces":
348
377
  const { members } = workspaces.services;
349
378
  const invites = workspaces.repositories.workspaceInvites;
350
- const prepared = await invites.withTransaction(async (trx) => {
351
- const options = { trx, context };
379
+ const prepared = await invites.withTransaction({ context }, async (txOptions) => {
352
380
  // Match acceptance's order: workspace, then application draft/receipt rows.
353
- await invites.lockWorkspaceForInvitations(workspace.id, options);
354
- const reviewed = await reviewedPeople.lockAuthorizedDraft(draftId, workspace.id, actor, options);
355
- const receipt = await reviewedPeople.findMatchingReceipt(reviewed, requestId, options);
381
+ await workspaceRecords.lock(workspace.id, txOptions);
382
+ const reviewed = await reviewedPeople.lockAuthorizedDraft(draftId, workspace.id, actor, txOptions);
383
+ const receipt = await reviewedPeople.findMatchingReceipt(reviewed, requestId, txOptions);
356
384
  if (receipt) return { createdInviteId: receipt.inviteId };
357
385
  const created = await members.prepareInvite(workspace, actor, {
358
386
  email: reviewed.email,
359
387
  roleSid: reviewed.roleSid
360
- }, options);
361
- await reviewedPeople.associateInvitationAndSaveReceipt(reviewed, requestId, created.createdInviteId, options);
388
+ }, txOptions);
389
+ await reviewedPeople.associateInvitationAndSaveReceipt(reviewed, requestId, created.createdInviteId, txOptions);
362
390
  return { createdInviteId: created.createdInviteId };
363
391
  });
364
392
 
@@ -401,8 +429,8 @@ exactly once. Revocation after sending starts cannot recall a message.
401
429
  Register one callback during feature setup to call the required application
402
430
  services. Non-functions throw `TypeError`; duplicate registration throws, and
403
431
  registration closes when acceptance/refusal first begins. The callback's invite,
404
- user and options are shallow frozen. JSKIT owns the transaction and passes its
405
- `trx` and request `context` to the callback.
432
+ user and options are shallow frozen. JSKIT owns the transaction and passes the
433
+ callback the `txOptions` that carry it and the request's `context`.
406
434
 
407
435
  Acceptance checks authentication, recipient email, pending state and expiry under
408
436
  workspace/invitation locks. Before calling the participant, it activates membership
@@ -420,8 +448,8 @@ callback must not commit, roll back, create transactions/savepoints or perform
420
448
  external effects. Participant and later invitation-status failures roll back
421
449
  membership (including its previous role/status), person/training links, scopes,
422
450
  audit and accepted status. Invalid invitations and refusals do not call the
423
- participant. Acceptance/refusal reject borrowed `options.trx`; revocation can
424
- join a managed transaction or create one.
451
+ participant. Acceptance and refusal refuse to run inside the caller's
452
+ transaction; revocation can join one or open its own.
425
453
 
426
454
  Acceptance/refusal return 401 for unauthenticated access, 403 for a recipient
427
455
  email mismatch and 404 for a missing or handled invitation. A matching recipient's
@@ -435,7 +463,7 @@ Preserve `error.transactionOutcome` and `error.cause`: `rolledBack` confirms
435
463
  rollback, `committed` can accompany a failed completion hook, and `unknown`
436
464
  requires resolving the outcome before retrying. Errors after commit cannot undo
437
465
  persistence. See
438
- [managed transaction guidance](existing-application-migration.md#json-rest-v2-integration).
466
+ [managed transaction guidance](existing-application-migration.md#data-access-on-table-resources-json-rest-api-3).
439
467
 
440
468
  Invitation mutations lock workspace before invitation rows. A losing acceptance,
441
469
  refusal, revocation or replacement cannot overwrite accepted/revoked state.
@@ -494,7 +522,41 @@ Workspace surfaces put the slug in their pages root, such as
494
522
  `w/[workspaceSlug]/admin` for administration. Keep the default surface
495
523
  (`surfaceDefaultId`, usually `home`) free of a workspace requirement: `/`,
496
524
  invitation links and other unscoped pages belong to it. With
497
- `webRootAllowed: "no"`, `/` opens that surface's root.
525
+ `webRootAllowed: "no"`, `/` opens that surface's root. The foundation
526
+ defines `home` and its `public` access policy, and the `auth/auth-surface`
527
+ pattern the `auth` surface; the workspace surfaces add a policy and two
528
+ definitions:
529
+
530
+ ```js
531
+ // config/surfaceAccessPolicies.js
532
+ surfaceAccessPolicies.workspace_member = { requireAuth: true, requireWorkspaceMembership: true };
533
+
534
+ // config/public.js
535
+ config.surfaceDefinitions.app = {
536
+ id: "app",
537
+ label: "App",
538
+ pagesRoot: "w/[workspaceSlug]",
539
+ requiresAuth: true,
540
+ requiresWorkspace: true,
541
+ accessPolicyId: "workspace_member"
542
+ };
543
+ config.surfaceDefinitions.admin = {
544
+ id: "admin",
545
+ label: "Admin",
546
+ pagesRoot: "w/[workspaceSlug]/admin",
547
+ requiresAuth: true,
548
+ requiresWorkspace: true,
549
+ accessPolicyId: "workspace_member"
550
+ };
551
+ ```
552
+
553
+ An access policy takes `requireAuth`, `requireWorkspaceMembership`,
554
+ `requireAnyPermissions` and `requireAllPermissions` (permission lists), and
555
+ `requireFlagsAny` and `requireFlagsAll` (flags the server's bootstrap sets in
556
+ `surfaceAccess`). Without `requireAuth` or `requireWorkspaceMembership` it
557
+ takes the surface's `requiresAuth` or `requiresWorkspace`. The browser applies
558
+ the whole policy; the server reads only `requireWorkspaceMembership: false`
559
+ from it, and a route's own `auth` and `permission` authorize it there.
498
560
 
499
561
  `workspaces-web` remembers the last workspace each person opened in this
500
562
  browser. The **Your workspaces** page, `WorkspacesClientElement` from
@@ -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.282`
18
+ - Owner: `@jskit-ai/agent-docs@0.1.284`
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.282`
29
+ - Owner: `@jskit-ai/agent-docs@0.1.284`
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.29`
40
+ - Owner: `@jskit-ai/assistant-runtime@0.2.30`
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`
@@ -48,7 +48,7 @@ Run one OpenID Connect sign-in for all of an owner's apps as its own JSKIT proje
48
48
 
49
49
  - Id: `auth/accounts-hub`
50
50
  - Keywords: `accounts hub`, `auth`, `authentication`, `issuer`, `master login`, `oidc`, `openid connect`, `single sign-on`, `sso`
51
- - Owner: `@jskit-ai/oidc-issuer-core@0.1.21`
51
+ - Owner: `@jskit-ai/oidc-issuer-core@0.1.22`
52
52
  - Read: [PATTERN.md](patterns/auth/accounts-hub/PATTERN.md)
53
53
  - Examples: [example/](patterns/auth/accounts-hub/example/)
54
54
  - Requires: `@jskit-ai/oidc-issuer-core`
@@ -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.18`
62
+ - Owner: `@jskit-ai/auth-web@0.2.19`
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.20`
73
+ - Owner: `@jskit-ai/auth-provider-oidc-core@0.2.21`
74
74
  - Read: [PATTERN.md](patterns/auth/oidc-sign-in/PATTERN.md)
75
75
  - Examples: [example/](patterns/auth/oidc-sign-in/example/)
76
76
  - Requires: `@jskit-ai/auth-provider-oidc-core`, `@jskit-ai/auth-web`
@@ -81,7 +81,7 @@ Add Supabase authentication through normal npm composition, explicit environment
81
81
 
82
82
  - Id: `auth/supabase-auth`
83
83
  - Keywords: `auth`, `authentication`, `oauth`, `sessions`, `supabase`
84
- - Owner: `@jskit-ai/auth-provider-supabase-core@0.2.15`
84
+ - Owner: `@jskit-ai/auth-provider-supabase-core@0.2.16`
85
85
  - Read: [PATTERN.md](patterns/auth/supabase-auth/PATTERN.md)
86
86
  - Examples: [example/](patterns/auth/supabase-auth/example/)
87
87
  - Requires: `@jskit-ai/auth-provider-supabase-core`
@@ -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.14`
95
+ - Owner: `@jskit-ai/connectors-catalog@0.2.15`
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.14`
106
+ - Owner: `@jskit-ai/connectors-catalog@0.2.15`
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.14`
117
+ - Owner: `@jskit-ai/connectors-catalog@0.2.15`
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.14`
128
+ - Owner: `@jskit-ai/connectors-catalog@0.2.15`
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.14`
139
+ - Owner: `@jskit-ai/connectors-catalog@0.2.15`
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.14`
150
+ - Owner: `@jskit-ai/connector-google-calendar@0.2.15`
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.14`
161
+ - Owner: `@jskit-ai/connectors-catalog@0.2.15`
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.14`
172
+ - Owner: `@jskit-ai/connectors-catalog@0.2.15`
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.14`
183
+ - Owner: `@jskit-ai/connectors-catalog@0.2.15`
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.14`
194
+ - Owner: `@jskit-ai/connectors-catalog@0.2.15`
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.14`
205
+ - Owner: `@jskit-ai/connectors-catalog@0.2.15`
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.14`
216
+ - Owner: `@jskit-ai/connectors-catalog@0.2.15`
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.14`
227
+ - Owner: `@jskit-ai/connectors-catalog@0.2.15`
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.14`
238
+ - Owner: `@jskit-ai/connectors-catalog@0.2.15`
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,43 +246,43 @@ 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.240`
249
+ - Owner: `@jskit-ai/console-web@0.1.241`
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`
253
253
 
254
- ## CRUD list, view, create, and edit screens
254
+ ## Owner-scoped CRUD contract
255
255
 
256
- Build a routed CRUD user interface as thin application pages over JSKIT's shared screen components and composables.
256
+ Define an application table resource whose records belong to the current user, and the authenticated CRUD contract that serves it.
257
257
 
258
- - Id: `crud/crud-screen-set`
259
- - Keywords: `actions`, `add`, `crud`, `delete`, `edit`, `filters`, `list`, `material`, `routes`, `view`, `vue`
260
- - Owner: `@jskit-ai/http-web@0.2.21`
261
- - Read: [PATTERN.md](patterns/crud/crud-screen-set/PATTERN.md)
262
- - Examples: [example/](patterns/crud/crud-screen-set/example/)
263
- - Requires: `@jskit-ai/http-web`, `@jskit-ai/resource-crud-core`
258
+ - Id: `crud/crud-contract`
259
+ - Keywords: `authenticated`, `crud`, `database`, `owner-scoped`, `resource`, `table`, `user`
260
+ - Owner: `@jskit-ai/resource-crud-core@0.1.205`
261
+ - Read: [PATTERN.md](patterns/crud/crud-contract/PATTERN.md)
262
+ - Examples: [example/](patterns/crud/crud-contract/example/)
263
+ - Requires: `@jskit-ai/resource-core`, `@jskit-ai/resource-crud-core`
264
264
 
265
- ## JSON API CRUD resource package
265
+ ## CRUD feature package
266
266
 
267
- Build a complete application-owned CRUD server package from a migration, resource contract, and one framework module declaration.
267
+ Build a complete application-owned CRUD server package from a migration, a table resource with its CRUD contract, and one framework module declaration.
268
268
 
269
- - Id: `crud/json-api-resource-package`
270
- - Keywords: `actions`, `crud`, `database`, `json-api`, `migration`, `permissions`, `provider`, `repository`, `routes`, `service`
271
- - Owner: `@jskit-ai/crud-core@0.2.14`
272
- - Read: [PATTERN.md](patterns/crud/json-api-resource-package/PATTERN.md)
273
- - Examples: [example/](patterns/crud/json-api-resource-package/example/)
274
- - Requires: `@jskit-ai/crud-core`, `@jskit-ai/resource-crud-core`
269
+ - Id: `crud/crud-feature-package`
270
+ - Keywords: `actions`, `crud`, `database`, `defineCrudFeature`, `json-api`, `migration`, `owns`, `permissions`, `repository`, `routes`, `service`, `table resource`
271
+ - Owner: `@jskit-ai/crud-core@0.2.15`
272
+ - Read: [PATTERN.md](patterns/crud/crud-feature-package/PATTERN.md)
273
+ - Examples: [example/](patterns/crud/crud-feature-package/example/)
274
+ - Requires: `@jskit-ai/crud-core`, `@jskit-ai/resource-core`, `@jskit-ai/resource-crud-core`
275
275
 
276
- ## Owner-scoped CRUD resource contract
276
+ ## CRUD list, view, create, and edit screens
277
277
 
278
- Define an authenticated application resource whose records belong to the current user.
278
+ Build a routed CRUD user interface as thin application pages over JSKIT's shared screen components and composables.
279
279
 
280
- - Id: `crud/resource-contract`
281
- - Keywords: `authenticated`, `crud`, `database`, `owner-scoped`, `resource`, `user`
282
- - Owner: `@jskit-ai/resource-crud-core@0.1.204`
283
- - Read: [PATTERN.md](patterns/crud/resource-contract/PATTERN.md)
284
- - Examples: [example/](patterns/crud/resource-contract/example/)
285
- - Requires: `@jskit-ai/resource-crud-core`
280
+ - Id: `crud/crud-screen-set`
281
+ - Keywords: `actions`, `add`, `crud`, `delete`, `edit`, `filters`, `list`, `material`, `routes`, `view`, `vue`
282
+ - Owner: `@jskit-ai/http-web@0.2.22`
283
+ - Read: [PATTERN.md](patterns/crud/crud-screen-set/PATTERN.md)
284
+ - Examples: [example/](patterns/crud/crud-screen-set/example/)
285
+ - Requires: `@jskit-ai/http-web`, `@jskit-ai/resource-core`, `@jskit-ai/resource-crud-core`
286
286
 
287
287
  ## MySQL application database
288
288
 
@@ -290,7 +290,7 @@ Configure a JSKIT application for MySQL with a fixed driver, ordinary environmen
290
290
 
291
291
  - Id: `database/mysql-application`
292
292
  - Keywords: `database`, `knex`, `mariadb`, `migrations`, `mysql`, `mysql2`
293
- - Owner: `@jskit-ai/database-runtime-mysql@0.1.260`
293
+ - Owner: `@jskit-ai/database-runtime-mysql@0.1.261`
294
294
  - Read: [PATTERN.md](patterns/database/mysql-application/PATTERN.md)
295
295
  - Examples: [example/](patterns/database/mysql-application/example/)
296
296
  - Requires: `@jskit-ai/database-runtime-mysql`
@@ -301,18 +301,29 @@ Configure a JSKIT application for PostgreSQL with a fixed driver, ordinary envir
301
301
 
302
302
  - Id: `database/postgres-application`
303
303
  - Keywords: `database`, `knex`, `migrations`, `pg`, `postgres`, `postgresql`
304
- - Owner: `@jskit-ai/database-runtime-postgres@0.1.259`
304
+ - Owner: `@jskit-ai/database-runtime-postgres@0.1.260`
305
305
  - Read: [PATTERN.md](patterns/database/postgres-application/PATTERN.md)
306
306
  - Examples: [example/](patterns/database/postgres-application/example/)
307
307
  - Requires: `@jskit-ai/database-runtime-postgres`
308
308
 
309
+ ## Table resource
310
+
311
+ Describe one database table once (its fields, columns, ownership, search and sort) so its owner feature reads and writes it through a scoped handle.
312
+
313
+ - Id: `database/table-resource`
314
+ - Keywords: `database`, `defaultTo`, `defineTableResource`, `lockVersionField`, `lookup`, `ownership`, `owns`, `resource`, `table`, `workspace_or_shared`
315
+ - Owner: `@jskit-ai/resource-core@0.1.205`
316
+ - Read: [PATTERN.md](patterns/database/table-resource/PATTERN.md)
317
+ - Examples: [example/](patterns/database/table-resource/example/)
318
+ - Requires: `@jskit-ai/resource-core`
319
+
309
320
  ## Capacitor Android application
310
321
 
311
322
  Wrap a JSKIT web application in a Capacitor Android shell using native Capacitor and Android commands.
312
323
 
313
324
  - Id: `mobile/android-application`
314
325
  - Keywords: `android`, `capacitor`, `device`, `mobile`, `native`, `shell`, `webview`
315
- - Owner: `@jskit-ai/mobile-capacitor@0.2.16`
326
+ - Owner: `@jskit-ai/mobile-capacitor@0.2.17`
316
327
  - Read: [PATTERN.md](patterns/mobile/android-application/PATTERN.md)
317
328
  - Examples: [example/](patterns/mobile/android-application/example/)
318
329
  - Requires: `@capacitor/android`, `@capacitor/app`, `@capacitor/cli`, `@jskit-ai/mobile-capacitor`
@@ -323,7 +334,7 @@ Add JSKIT realtime events with an optional Redis backplane and an explicit shell
323
334
 
324
335
  - Id: `realtime/realtime-application`
325
336
  - Keywords: `realtime`, `redis`, `socket.io`, `sockets`, `status`, `websocket`
326
- - Owner: `@jskit-ai/realtime@0.2.19`
337
+ - Owner: `@jskit-ai/realtime@0.2.20`
327
338
  - Read: [PATTERN.md](patterns/realtime/realtime-application/PATTERN.md)
328
339
  - Examples: [example/](patterns/realtime/realtime-application/example/)
329
340
  - Requires: `@jskit-ai/realtime`, `@jskit-ai/shell-web`
@@ -334,7 +345,7 @@ Compose application-owned Google Publisher Tag delivery with the generic rewarde
334
345
 
335
346
  - Id: `rewards/google-rewarded`
336
347
  - Keywords: `ads`, `google`, `publisher tag`, `rewarded`, `unlock`
337
- - Owner: `@jskit-ai/rewarded-web@0.2.18`
348
+ - Owner: `@jskit-ai/rewarded-web@0.2.19`
338
349
  - Read: [PATTERN.md](patterns/rewards/google-rewarded/PATTERN.md)
339
350
  - Examples: [example/](patterns/rewards/google-rewarded/example/)
340
351
  - Requires: `@jskit-ai/rewarded-web`
@@ -344,8 +355,8 @@ Compose application-owned Google Publisher Tag delivery with the generic rewarde
344
355
  Define a server feature through explicit capabilities and first-class actions, adding services or repositories only when its domain earns them.
345
356
 
346
357
  - Id: `server/feature-package`
347
- - Keywords: `actions`, `feature`, `json-rest`, `knex`, `orchestration`, `package`, `provider`, `repository`, `routes`, `server`
348
- - Owner: `@jskit-ai/agent-docs@0.1.282`
358
+ - Keywords: `actions`, `aggregate`, `feature`, `handle`, `orchestration`, `owns`, `package`, `provider`, `repository`, `routes`, `server`, `table resource`
359
+ - Owner: `@jskit-ai/agent-docs@0.1.284`
349
360
  - Read: [PATTERN.md](patterns/server/feature-package/PATTERN.md)
350
361
  - Examples: [example/](patterns/server/feature-package/example/)
351
362
  - Requires: `@jskit-ai/kernel`
@@ -356,7 +367,7 @@ Compose the JSKIT responsive shell, semantic placements, settings navigation, an
356
367
 
357
368
  - Id: `shell/application-shell`
358
369
  - Keywords: `adaptive`, `app`, `layout`, `navigation`, `placement`, `responsive`, `settings`, `shell`
359
- - Owner: `@jskit-ai/shell-web@0.2.16`
370
+ - Owner: `@jskit-ai/shell-web@0.2.17`
360
371
  - Read: [PATTERN.md](patterns/shell/application-shell/PATTERN.md)
361
372
  - Examples: [example/](patterns/shell/application-shell/example/)
362
373
  - Requires: `@jskit-ai/kernel`, `@jskit-ai/shell-web`
@@ -367,7 +378,7 @@ Add product routes and shell extensions through file routing, semantic placement
367
378
 
368
379
  - Id: `ui/page-and-placement`
369
380
  - Keywords: `component`, `navigation`, `outlet`, `page`, `placement`, `routes`, `section`, `shell`, `subpages`, `vue`
370
- - Owner: `@jskit-ai/shell-web@0.2.16`
381
+ - Owner: `@jskit-ai/shell-web@0.2.17`
371
382
  - Read: [PATTERN.md](patterns/ui/page-and-placement/PATTERN.md)
372
383
  - Examples: [example/](patterns/ui/page-and-placement/example/)
373
384
  - Requires: `@jskit-ai/kernel`, `@jskit-ai/shell-web`
@@ -378,7 +389,7 @@ Compose an account settings route and profile, preference, notification, and sig
378
389
 
379
390
  - Id: `users/account-settings`
380
391
  - Keywords: `account`, `link provider`, `notifications`, `oauth`, `preferences`, `profile`, `settings`, `sign-in methods`, `user`, `vue`
381
- - Owner: `@jskit-ai/users-web@0.2.23`
392
+ - Owner: `@jskit-ai/users-web@0.2.24`
382
393
  - Read: [PATTERN.md](patterns/users/account-settings/PATTERN.md)
383
394
  - Examples: [example/](patterns/users/account-settings/example/)
384
395
  - Requires: `@jskit-ai/shell-web`, `@jskit-ai/users-core`, `@jskit-ai/users-web`
@@ -389,7 +400,7 @@ Expose user administration and workspace-scoped member operations through app-ow
389
400
 
390
401
  - Id: `users/user-administration-server`
391
402
  - Keywords: `account`, `admin`, `member`, `repository`, `resource`, `routes`, `service`, `user`, `workspace`
392
- - Owner: `@jskit-ai/users-core@0.2.15`
403
+ - Owner: `@jskit-ai/users-core@0.2.16`
393
404
  - Read: [PATTERN.md](patterns/users/user-administration-server/PATTERN.md)
394
405
  - Examples: [example/](patterns/users/user-administration-server/example/)
395
406
  - Requires: `@jskit-ai/crud-core`, `@jskit-ai/users-core`
@@ -400,7 +411,7 @@ Configure roles, workspace access policy, invitations, and app-owned invitation
400
411
 
401
412
  - Id: `workspaces/workspace-server`
402
413
  - Keywords: `access`, `invite`, `membership`, `multitenancy`, `policy`, `role`, `tenancy`, `workspace`
403
- - Owner: `@jskit-ai/workspaces-core@0.2.15`
414
+ - Owner: `@jskit-ai/workspaces-core@0.2.16`
404
415
  - Read: [PATTERN.md](patterns/workspaces/workspace-server/PATTERN.md)
405
416
  - Examples: [example/](patterns/workspaces/workspace-server/example/)
406
417
  - Requires: `@jskit-ai/users-core`, `@jskit-ai/workspaces-core`
@@ -411,7 +422,7 @@ Compose workspace selection, invitation, member administration, settings, and re
411
422
 
412
423
  - Id: `workspaces/workspace-surfaces`
413
424
  - Keywords: `admin`, `invite`, `member`, `navigation`, `settings`, `surface`, `switcher`, `workspace`
414
- - Owner: `@jskit-ai/workspaces-web@0.2.23`
425
+ - Owner: `@jskit-ai/workspaces-web@0.2.24`
415
426
  - Read: [PATTERN.md](patterns/workspaces/workspace-surfaces/PATTERN.md)
416
427
  - Examples: [example/](patterns/workspaces/workspace-surfaces/example/)
417
428
  - Requires: `@jskit-ai/shell-web`, `@jskit-ai/workspaces-core`, `@jskit-ai/workspaces-web`
@@ -8,6 +8,10 @@ Framework references:
8
8
  - `https://mobily-enterprises.github.io/jskit-ai/guide/`
9
9
  - `https://mobily-enterprises.github.io/jskit-ai/patterns/`
10
10
 
11
+ Before writing or reviewing code that reads or writes a database table, read
12
+ the data access guide at
13
+ `https://mobily-enterprises.github.io/jskit-ai/guide/framework/data-access`.
14
+
11
15
  Before writing or reviewing server code (a feature, provider, action, service,
12
16
  repository, route, error or test), read the typed features guide at
13
17
  `https://mobily-enterprises.github.io/jskit-ai/guide/framework/typed-features`.
@@ -34,7 +34,7 @@
34
34
  "dependencies": {
35
35
  "@local/main": "0.1.0",
36
36
  "@fastify/static": "^10.1.3",
37
- "@jskit-ai/kernel": "0.2.13",
37
+ "@jskit-ai/kernel": "0.2.14",
38
38
  "@jskit-ai/material-web": "0.1.3",
39
39
  "@tanstack/vue-query": "^5.101.0",
40
40
  "fastify": "^5.12.7",
@@ -44,13 +44,13 @@
44
44
  "vue": "^3.5.44",
45
45
  "vue-router": "^5.3.1",
46
46
  "vuetify": "^4.3.0",
47
- "@jskit-ai/http-runtime": "0.2.13",
47
+ "@jskit-ai/http-runtime": "0.2.14",
48
48
  "@fastify/fast-json-stringify-compiler": "^5.1.0",
49
49
  "@vue/devtools-api": "^8.2.1"
50
50
  },
51
51
  "devDependencies": {
52
- "@jskit-ai/config-eslint": "0.1.246",
53
- "@jskit-ai/jskit-catalog": "0.2.34",
52
+ "@jskit-ai/config-eslint": "0.1.247",
53
+ "@jskit-ai/jskit-catalog": "0.2.36",
54
54
  "@playwright/test": "1.61.1",
55
55
  "@vitejs/plugin-vue": "^6.0.7",
56
56
  "eslint": "^10.8.0",