@jskit-ai/agent-docs 0.1.333 → 0.1.335

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 (28) hide show
  1. package/guide/agent/framework/crud-operations.md +5 -0
  2. package/guide/agent/framework/data-access.md +112 -9
  3. package/guide/agent/framework/material-3.md +2 -1
  4. package/guide/agent/framework/security-pass.md +3 -1
  5. package/package.json +1 -1
  6. package/patterns/minimal-foundation/example/package.json +1 -1
  7. package/patterns/shell-foundation/example/package.json +2 -2
  8. package/reference/autogen/PATTERN_INDEX.md +32 -32
  9. package/reference/autogen/packages/resource-runtime.md +1 -0
  10. package/reference/autogen/packages/shell-web.md +15 -0
  11. package/reference/autogen/packages/users-core.md +1 -0
  12. package/reference/autogen/packages/workspaces-core.md +6 -0
  13. package/reference/autogen/tooling/testUtils.md +1 -0
  14. package/skills/jskit/references/crud-operations.md +5 -0
  15. package/skills/jskit/references/data-access.md +112 -9
  16. package/skills/jskit/references/heuristics/INDEX.md +1 -1
  17. package/skills/jskit/references/heuristics/data-access.md +4 -2
  18. package/skills/jskit/references/material-3.md +2 -1
  19. package/skills/jskit/references/pattern-index.md +32 -32
  20. package/skills/jskit/references/patterns/app/minimal-foundation/example/package.json +1 -1
  21. package/skills/jskit/references/patterns/app/shell-foundation/example/package.json +2 -2
  22. package/skills/jskit/references/patterns/auth/oidc-sign-in/example/package.json +2 -2
  23. package/skills/jskit/references/patterns/connectors/calendar-cli/example/package.json +2 -2
  24. package/skills/jskit/references/patterns/crud/crud-feature-package/example/packages/books/package.json +1 -1
  25. package/skills/jskit/references/patterns/realtime/realtime-application/example/package.json +2 -2
  26. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users/package.json +2 -2
  27. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users-workspace/package.json +4 -4
  28. package/skills/jskit/references/security-pass.md +3 -1
@@ -83,6 +83,11 @@ always does. Do not add authentication or workspace machinery to
83
83
  make up for an unneeded `always` override. Server access and ownership
84
84
  remain authoritative.
85
85
 
86
+ A `user` or `workspace_user` table's rows reach only the signed-in user, on
87
+ every route, never a `userId` the request sends. Keep such a table's default
88
+ route visibility: a `workspace` route over a `workspace_user` table reaches the
89
+ member's own rows too, but announces their changes to the whole workspace.
90
+
86
91
  The Books source patterns show user ownership. For a public create/list
87
92
  resource, use them with this table resource and CRUD contract:
88
93
 
@@ -37,7 +37,7 @@ through its handle's calls, and every call takes the call's `options` last:
37
37
  | `queryAll({ filters, sort, include, take }, options)` | every matching row, or the first `take`, for jobs, id lists and one parent's rows |
38
38
  | `queryPages({ filters, sort, include }, options)` | every matching row, a page at a time, for work over many rows |
39
39
  | `get(id, params, options)` | one record |
40
- | `aggregate({ measures, groupBy, filters, sort, page }, options)` | totals, grouped by fields or date buckets |
40
+ | `aggregate({ measures, groupBy, filters, sort, page }, options)` | totals, grouped by fields or date buckets; with `lockMode` in a transaction, one row of totals whose rows stay locked ([Layer 4](#layer-4-locks)) |
41
41
  | `create(data, options)`, `findOrCreate({ id, ...data }, options)` | one record; a keyed one, created once |
42
42
  | `patch(id, changes, options)`, `delete(id, options)` | one record |
43
43
  | `createMany(rows, options)` | many records, or an upsert with `onConflict` |
@@ -110,6 +110,16 @@ migration, a seed) sets its own. Pass the call's `options` (its context and
110
110
  transaction) to every handle call; a call without a context throws instead of
111
111
  guessing.
112
112
 
113
+ The owner a call reaches comes from its context, never from its input. A
114
+ request's context names the workspace its route resolved and the signed-in
115
+ user, on every route: a `workspace` route reaches the signed-in member's own
116
+ rows of a `user` or `workspace_user` table, as a `workspace_user` route does,
117
+ and stamps that member on the rows it creates. An owner value in the input that
118
+ differs is refused, a signed-out request reaches none of those rows (a
119
+ `MissingScopeError`), and a job context names the user `forUser` or
120
+ `forWorkspaceUser` gave it. So application code never sets `scopeValues.userId`
121
+ (lint `jskit/no-hand-context` refuses it).
122
+
113
123
  ```js
114
124
  // shared/receivalResource.js: the table's facts, shared with the client
115
125
  const receivalResource = defineTableResource({
@@ -805,9 +815,33 @@ const recordPayment = (input, options) => retryLostInsertRace(options, () => pay
805
815
 
806
816
  ## Layer 4: locks
807
817
 
808
- When two requests could change the same rows at once (allocating stock,
809
- numbering documents, moving items into a batch), lock the rows first, inside
810
- 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
811
845
  `lockWhere(filters, txOptions)`. The handle locks only rows the caller may
812
846
  see, in id order, so nobody locks another workspace's rows: a missing or
813
847
  hidden id throws not-found, as for `get`, or with `missing: "skip"` is left
@@ -891,7 +925,13 @@ locking reads, which see the latest rows whatever the snapshot:
891
925
  up to 1,000 (`pageSize`) at a time, in id order, each page one locking read
892
926
  after the last id of the page before. It still locks the governing row first,
893
927
  since PostgreSQL keeps no new row out of a page already locked. In a request it
894
- 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
895
935
  tool: MySQL and MariaDB fix it when a transaction starts, and READ COMMITTED
896
936
  alone reads each page at a different moment. `patchWhere` and `deleteWhere`
897
937
  select their rows with a locking read on MySQL and MariaDB, so they too see
@@ -999,6 +1039,56 @@ const file = (input, options) => documents.withTransaction(options, async (txOpt
999
1039
  await memberships.patch(input.membershipId, { lastFiledAt: new Date() }, txOptions);
1000
1040
  ```
1001
1041
 
1042
+ A save that decides on a count or a sum of many rows (an account's open
1043
+ invoices stay within its credit limit, a member holds at most five leases)
1044
+ takes a locking aggregate: `aggregate({ measures, filters }, { ...txOptions,
1045
+ lockMode: "share" })` answers one row of totals from one statement, with the
1046
+ lock on the rows they read held until the transaction ends, however many rows
1047
+ match, none of them read into the application. Never `lockWhere` and a count:
1048
+ it reads every id into the application and refuses past 1,000. `"share"` lets
1049
+ other such checks read the rows at once; `"update"` or `"noKeyUpdate"` hold
1050
+ them exclusively. An update or a delete of a counted row waits until the
1051
+ transaction ends. A new matching row differs by database: on MySQL and MariaDB
1052
+ its insert waits too, since InnoDB locks the index range the read walked
1053
+ (under REPEATABLE READ, their default; READ COMMITTED locks no range), while
1054
+ PostgreSQL's `FOR SHARE` holds only rows that exist, so an insert goes on and
1055
+ the transaction's next statement counts it (json-rest-api reads PostgreSQL's
1056
+ totals again until no row joined them while it waited). Two saves that each
1057
+ total and then insert would both pass a limit there. So a limit that must keep
1058
+ new rows out on every database also locks the one row that governs the set
1059
+ (the account, the member's record) with `lock` and the default `"update"`, as
1060
+ every writer of the set does first: the saves take turns, and the aggregate
1061
+ holds the rows already there against a write that skips that row (a patch of
1062
+ an amount).
1063
+
1064
+ On MySQL and MariaDB a locking aggregate reads through the index `lockWhere`
1065
+ needs and locks the entries it reads there: a count of rows reads that index
1066
+ alone, so a write of a column it leaves out goes on, while a sum, a distinct
1067
+ count or a measure's `where` over another column locks each row it reads. With
1068
+ `lockMode`, `groupBy` or `page` is a `TypeError` (total each group as a
1069
+ measure with a `where`, `{ open: { count: "*", where: { status: "open" } } }`),
1070
+ a call outside a transaction throws `RestApiLockOutsideTransactionError`, and
1071
+ a filter on another table's field, or a row policy that joins another table,
1072
+ is refused as in `lockWhere`: test the other table in a subquery.
1073
+
1074
+ ```js
1075
+ // good: the account locked first, as every writer of its invoices does; one statement totals what it owes
1076
+ const issue = (input, options) => invoices.withTransaction(options, async (txOptions) => {
1077
+ const account = await accounts.lock(input.accountId, { ...txOptions, fields: ["creditLimit"] });
1078
+ const [{ owed }] = await invoices.aggregate(
1079
+ { measures: { owed: { sum: "amount" } }, filters: { accountId: input.accountId, status: "open" } },
1080
+ { ...txOptions, lockMode: "share" }
1081
+ );
1082
+ if ((owed ?? 0) + input.amount > account.creditLimit) {
1083
+ throw new ConflictError("invoices.overCreditLimit");
1084
+ }
1085
+ return invoices.create(input, txOptions);
1086
+ });
1087
+
1088
+ // bad: every open invoice's id read into the application to be counted, refused past 1,000
1089
+ const open = await invoices.lockWhere({ accountId, status: "open" }, { ...txOptions, lockMode: "share", fields: ["amount"] });
1090
+ ```
1091
+
1002
1092
  Locks stay on the owner's handle and its owner API. A `scopedQuery()` or
1003
1093
  `joinSource()` builder takes no lock, not even a shared one: PostgreSQL's `FOR
1004
1094
  SHARE OF` an alias would lock only that source's rows, but MariaDB has no `FOR
@@ -1043,9 +1133,11 @@ rows with its own `lock`, `lockMany` or `lockWhere`, the owners in one fixed
1043
1133
  order on every path (a parent's owner before its children's), so two
1044
1134
  transactions never take them in opposite orders.
1045
1135
 
1046
- A record that a person edits from a form it read earlier carries a version
1047
- number: the table resource names it with `lockVersionField`, an integer field
1048
- 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`.
1049
1141
  `patch(id, changes, { ...options, lockVersion })` then locks the row, applies
1050
1142
  `changes` only while it still holds that version, and advances it. A record
1051
1143
  whose version moved on rejects with a 409 coded
@@ -1491,7 +1583,18 @@ const SettlementFeature = defineFeature({
1491
1583
  `users.profile.notFound`. It reads the user, the workspace and its settings,
1492
1584
  and writes nothing. Work done as a real member takes `memberContext`, which
1493
1585
  refuses anyone who is not one; `roleContext` is for installer and seed work
1494
- 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.
1495
1598
  - A job finds its units with an `aggregate` grouped by the ownership field,
1496
1599
  which a system context may group by (and count distinct) even when the table
1497
1600
  hides it, then runs each unit scoped to it. It reads the units in pages, all
@@ -347,7 +347,8 @@ dialog, chip or FAB.
347
347
  - **Dialogs:** plain `v-dialog` and `v-bottom-sheet`; JSKIT gives them their
348
348
  Material 3 shapes. A full-screen dialog (compact and medium) puts close, title
349
349
  and its confirm action in a top bar, never at the bottom where a snackbar
350
- covers them.
350
+ covers them. While one is open, `ShellLayout` makes the page behind it
351
+ inert: run axe on the whole page.
351
352
  - **Menus and badges:** a menu's list has `role="menu"` and its items
352
353
  `role="menuitem"`, with `aria-disabled` on unavailable ones; a badge has a
353
354
  `label` such as "3 batches". JSKIT draws a menu's list and a dialog's card;
@@ -53,7 +53,9 @@ a JSKIT app. The rules it applies are already in [Typed features](/guide/framewo
53
53
  context built by hand skips that scope: search for each. Confirm every
54
54
  `public` table is meant to be read by anyone.
55
55
  - Who acts is `resolveActor(context)`; the workspace comes from the context
56
- only, never from the body or another input
56
+ only, and so does the user whose `user` or `workspace_user` rows a request
57
+ reaches (the signed-in user, on every route), never from the body or another
58
+ input
57
59
  ([Request context](/guide/framework/typed-features#request-context)). A row
58
60
  policy decides from `caller` and the server-resolved `context.workspace`,
59
61
  `context.membership` and `context.permissions`, never from request input.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/agent-docs",
3
- "version": "0.1.333",
3
+ "version": "0.1.335",
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.85",
53
+ "@jskit-ai/jskit-catalog": "0.2.87",
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.39",
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.85",
54
+ "@jskit-ai/jskit-catalog": "0.2.87",
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.333`
18
+ - Owner: `@jskit-ai/agent-docs@0.1.335`
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.333`
29
+ - Owner: `@jskit-ai/agent-docs@0.1.335`
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.71`
40
+ - Owner: `@jskit-ai/assistant-runtime@0.2.73`
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.45`
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.49`
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.41`
95
+ - Owner: `@jskit-ai/connectors-catalog@0.2.43`
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.41`
106
+ - Owner: `@jskit-ai/connectors-catalog@0.2.43`
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.41`
117
+ - Owner: `@jskit-ai/connectors-catalog@0.2.43`
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.41`
128
+ - Owner: `@jskit-ai/connectors-catalog@0.2.43`
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.41`
139
+ - Owner: `@jskit-ai/connectors-catalog@0.2.43`
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.40`
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.41`
161
+ - Owner: `@jskit-ai/connectors-catalog@0.2.43`
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.41`
172
+ - Owner: `@jskit-ai/connectors-catalog@0.2.43`
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.41`
183
+ - Owner: `@jskit-ai/connectors-catalog@0.2.43`
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.41`
194
+ - Owner: `@jskit-ai/connectors-catalog@0.2.43`
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.41`
205
+ - Owner: `@jskit-ai/connectors-catalog@0.2.43`
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.41`
216
+ - Owner: `@jskit-ai/connectors-catalog@0.2.43`
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.41`
227
+ - Owner: `@jskit-ai/connectors-catalog@0.2.43`
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.41`
238
+ - Owner: `@jskit-ai/connectors-catalog@0.2.43`
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.280`
249
+ - Owner: `@jskit-ai/console-web@0.1.282`
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.41`
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.46`
282
+ - Owner: `@jskit-ai/http-web@0.2.48`
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.39`
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.42`
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.57`
348
+ - Owner: `@jskit-ai/rewarded-web@0.2.59`
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.333`
359
+ - Owner: `@jskit-ai/agent-docs@0.1.335`
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.39`
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.39`
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.63`
392
+ - Owner: `@jskit-ai/users-web@0.2.65`
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.50`
403
+ - Owner: `@jskit-ai/users-core@0.2.52`
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.50`
414
+ - Owner: `@jskit-ai/workspaces-core@0.2.52`
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.63`
425
+ - Owner: `@jskit-ai/workspaces-web@0.2.65`
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`
@@ -112,6 +112,7 @@ Local functions
112
112
 
113
113
  ### `src/server/handleLocks.js`
114
114
  Exports
115
+ - `aggregateTransactionOf(name, { groupBy, page }, options)`
115
116
  - `createLockReads({ api, name, resource, jsonRest, readFields, contextOf, hiddenFields, handleNamed, resourceNamed, settings })`
116
117
  - `lockModeOf(name, caller, lockMode)`
117
118
  Local functions
@@ -194,6 +194,13 @@ Local functions
194
194
  - `isSameSnackbarEntry(left = null, right = null)`
195
195
  - `publishInlineBannerHeight(height = 0)`
196
196
 
197
+ ### `src/client/composables/useShellInertBehindDialog.js`
198
+ Exports
199
+ - `useShellInertBehindDialog()`
200
+ Local functions
201
+ - `stackOrder(first, second)`
202
+ - `concernsDialogs(records)`
203
+
197
204
  ### `src/client/composables/useShellLayoutState.js`
198
205
  Exports
199
206
  - `useShellLayoutState(props = {})`
@@ -770,6 +777,14 @@ Exports
770
777
  Local functions
771
778
  - `refuseBlockedRecord(to)`
772
779
 
780
+ ### `fixtures/adaptive-shell/src/NotesPage.vue`
781
+ Exports
782
+ - None
783
+ Local functions
784
+ - `press(name)`
785
+ - `copyLink()`
786
+ - `reportProblem()`
787
+
773
788
  ### `fixtures/adaptive-shell/src/OwnBarLayout.vue`
774
789
  Exports
775
790
  - None
@@ -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
@@ -30,6 +30,7 @@ Local functions
30
30
  - `stopChild(child)`
31
31
  - `takeCacheDir(configPath)`
32
32
  - `returnCacheDir(configPath, cacheDir)`
33
+ - `warmUp(browser, baseURL)`
33
34
 
34
35
  ### `fakeFastify.mjs`
35
36
  Exports
@@ -77,6 +77,11 @@ always does. Do not add authentication or workspace machinery to
77
77
  make up for an unneeded `always` override. Server access and ownership
78
78
  remain authoritative.
79
79
 
80
+ A `user` or `workspace_user` table's rows reach only the signed-in user, on
81
+ every route, never a `userId` the request sends. Keep such a table's default
82
+ route visibility: a `workspace` route over a `workspace_user` table reaches the
83
+ member's own rows too, but announces their changes to the whole workspace.
84
+
80
85
  The Books source patterns show user ownership. For a public create/list
81
86
  resource, use them with this table resource and CRUD contract:
82
87