@jskit-ai/agent-docs 0.1.323 → 0.1.325

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 (31) hide show
  1. package/guide/agent/app-extras/assistant.md +8 -5
  2. package/guide/agent/framework/data-pass.md +160 -0
  3. package/guide/agent/framework/quality-pass.md +99 -0
  4. package/guide/agent/framework/visual-identity.md +152 -0
  5. package/guide/agent/index.md +6 -0
  6. package/package.json +1 -1
  7. package/patterns/feature-package/example/booking-engine/package.json +1 -1
  8. package/patterns/minimal-foundation/example/package.json +4 -4
  9. package/patterns/shell-foundation/example/package.json +5 -5
  10. package/patterns/shell-foundation/example/packages/main/package.json +1 -1
  11. package/reference/autogen/PATTERN_INDEX.md +38 -38
  12. package/reference/autogen/packages/kernel.md +1 -1
  13. package/skills/jskit/SKILL.md +5 -1
  14. package/skills/jskit/references/data-pass.md +155 -0
  15. package/skills/jskit/references/pattern-index.md +38 -38
  16. package/skills/jskit/references/patterns/app/minimal-foundation/example/package.json +4 -4
  17. package/skills/jskit/references/patterns/app/shell-foundation/example/package.json +5 -5
  18. package/skills/jskit/references/patterns/app/shell-foundation/example/packages/main/package.json +1 -1
  19. package/skills/jskit/references/patterns/auth/accounts-hub/example/package.json +3 -3
  20. package/skills/jskit/references/patterns/auth/oidc-sign-in/example/package.json +2 -2
  21. package/skills/jskit/references/patterns/auth/supabase-auth/example/package.json +1 -1
  22. package/skills/jskit/references/patterns/connectors/calendar-cli/example/package.json +4 -4
  23. package/skills/jskit/references/patterns/crud/crud-feature-package/example/packages/books/package.json +3 -3
  24. package/skills/jskit/references/patterns/database/mysql-application/example/package.json +2 -2
  25. package/skills/jskit/references/patterns/database/postgres-application/example/package.json +2 -2
  26. package/skills/jskit/references/patterns/realtime/realtime-application/example/package.json +2 -2
  27. package/skills/jskit/references/patterns/server/feature-package/example/booking-engine/package.json +1 -1
  28. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users/package.json +3 -3
  29. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users-workspace/package.json +6 -6
  30. package/skills/jskit/references/quality-pass.md +94 -0
  31. package/skills/jskit/references/visual-identity.md +147 -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.323`
18
+ - Owner: `@jskit-ai/agent-docs@0.1.325`
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.323`
29
+ - Owner: `@jskit-ai/agent-docs@0.1.325`
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.63`
40
+ - Owner: `@jskit-ai/assistant-runtime@0.2.65`
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`
@@ -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.37`
51
+ - Owner: `@jskit-ai/oidc-issuer-core@0.1.38`
52
52
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/auth/accounts-hub/PATTERN.md)
53
53
  - Examples: [example/](../../skills/jskit/references/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.38`
62
+ - Owner: `@jskit-ai/auth-web@0.2.40`
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.42`
73
+ - Owner: `@jskit-ai/auth-provider-oidc-core@0.2.44`
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`
@@ -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.29`
84
+ - Owner: `@jskit-ai/auth-provider-supabase-core@0.2.30`
85
85
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/auth/supabase-auth/PATTERN.md)
86
86
  - Examples: [example/](../../skills/jskit/references/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.35`
95
+ - Owner: `@jskit-ai/connectors-catalog@0.2.36`
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.35`
106
+ - Owner: `@jskit-ai/connectors-catalog@0.2.36`
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.35`
117
+ - Owner: `@jskit-ai/connectors-catalog@0.2.36`
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.35`
128
+ - Owner: `@jskit-ai/connectors-catalog@0.2.36`
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.35`
139
+ - Owner: `@jskit-ai/connectors-catalog@0.2.36`
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.35`
150
+ - Owner: `@jskit-ai/connector-google-calendar@0.2.36`
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.35`
161
+ - Owner: `@jskit-ai/connectors-catalog@0.2.36`
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.35`
172
+ - Owner: `@jskit-ai/connectors-catalog@0.2.36`
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.35`
183
+ - Owner: `@jskit-ai/connectors-catalog@0.2.36`
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.35`
194
+ - Owner: `@jskit-ai/connectors-catalog@0.2.36`
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.35`
205
+ - Owner: `@jskit-ai/connectors-catalog@0.2.36`
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.35`
216
+ - Owner: `@jskit-ai/connectors-catalog@0.2.36`
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.35`
227
+ - Owner: `@jskit-ai/connectors-catalog@0.2.36`
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.35`
238
+ - Owner: `@jskit-ai/connectors-catalog@0.2.36`
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.270`
249
+ - Owner: `@jskit-ai/console-web@0.1.272`
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`
@@ -257,7 +257,7 @@ Define an application table resource whose records belong to the current user, a
257
257
 
258
258
  - Id: `crud/crud-contract`
259
259
  - Keywords: `authenticated`, `crud`, `database`, `owner-scoped`, `resource`, `table`, `user`
260
- - Owner: `@jskit-ai/resource-crud-core@0.1.218`
260
+ - Owner: `@jskit-ai/resource-crud-core@0.1.219`
261
261
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/crud/crud-contract/PATTERN.md)
262
262
  - Examples: [example/](../../skills/jskit/references/patterns/crud/crud-contract/example/)
263
263
  - Requires: `@jskit-ai/resource-core`, `@jskit-ai/resource-crud-core`
@@ -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.36`
271
+ - Owner: `@jskit-ai/crud-core@0.2.37`
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.41`
282
+ - Owner: `@jskit-ai/http-web@0.2.43`
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`
@@ -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.272`
293
+ - Owner: `@jskit-ai/database-runtime-mysql@0.1.273`
294
294
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/database/mysql-application/PATTERN.md)
295
295
  - Examples: [example/](../../skills/jskit/references/patterns/database/mysql-application/example/)
296
296
  - Requires: `@jskit-ai/database-runtime-mysql`
@@ -301,7 +301,7 @@ 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.271`
304
+ - Owner: `@jskit-ai/database-runtime-postgres@0.1.272`
305
305
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/database/postgres-application/PATTERN.md)
306
306
  - Examples: [example/](../../skills/jskit/references/patterns/database/postgres-application/example/)
307
307
  - Requires: `@jskit-ai/database-runtime-postgres`
@@ -312,7 +312,7 @@ Describe one database table once (its fields, columns, ownership, search and sor
312
312
 
313
313
  - Id: `database/table-resource`
314
314
  - Keywords: `database`, `defaultTo`, `defineTableResource`, `lockVersionField`, `lookup`, `ownership`, `owns`, `resource`, `system`, `table`, `workspace_or_shared`
315
- - Owner: `@jskit-ai/resource-core@0.1.216`
315
+ - Owner: `@jskit-ai/resource-core@0.1.217`
316
316
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/database/table-resource/PATTERN.md)
317
317
  - Examples: [example/](../../skills/jskit/references/patterns/database/table-resource/example/)
318
318
  - Requires: `@jskit-ai/resource-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.34`
326
+ - Owner: `@jskit-ai/mobile-capacitor@0.2.36`
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.37`
337
+ - Owner: `@jskit-ai/realtime@0.2.39`
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.47`
348
+ - Owner: `@jskit-ai/rewarded-web@0.2.49`
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.323`
359
+ - Owner: `@jskit-ai/agent-docs@0.1.325`
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.34`
370
+ - Owner: `@jskit-ai/shell-web@0.2.36`
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.34`
381
+ - Owner: `@jskit-ai/shell-web@0.2.36`
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.53`
392
+ - Owner: `@jskit-ai/users-web@0.2.55`
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.41`
403
+ - Owner: `@jskit-ai/users-core@0.2.42`
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.41`
414
+ - Owner: `@jskit-ai/workspaces-core@0.2.42`
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.53`
425
+ - Owner: `@jskit-ai/workspaces-web@0.2.55`
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`
@@ -812,7 +812,6 @@ Local functions
812
812
  - `hiddenServerErrorFields(code = "")`
813
813
  - `resolveRequestRouteTransport(request)`
814
814
  - `applyRouteTransportErrorResponse(reply, request, error, { statusCode = 500, normalizedErrorCode = "", message = error?.message, exposeDetails = true, messageFields = {}, outcomeFields = {} } = {})`
815
- - `resolveApiErrorStatus(error, code)`
816
815
  - `applyErrorHeaders(reply, error)`
817
816
  - `findRefusal(thrown)`
818
817
 
@@ -1044,6 +1043,7 @@ Exports
1044
1043
  Exports
1045
1044
  - `isAppError(error)`
1046
1045
  - `hideDatabaseError(error)`
1046
+ - `resolveApiErrorStatus(error)`
1047
1047
  - `isDomainError(error)`
1048
1048
  - `createValidationError(fieldErrors)`
1049
1049
  - `AppError`
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jskit
3
- description: Build, extend, troubleshoot, review, deslop, and verify JSKIT apps using its public framework APIs, package-owned source patterns, runtime capabilities, surfaces, placements, CRUDs, verification conventions, and Vue/Vuetify Material 3 UI contract, including UI passes over a task's changes, a section, or the whole app. Use for every JSKIT UI creation, modification, review, cleanup, or UI pass task.
3
+ description: Build, extend, troubleshoot, review, deslop, and verify JSKIT apps using its public framework APIs, package-owned source patterns, runtime capabilities, surfaces, placements, CRUDs, verification conventions, and Vue/Vuetify Material 3 UI contract, including UI passes over a task's changes, a section, or the whole app, and the JSKIT half of identity, quality and data passes. Use for every JSKIT UI creation, modification, review, cleanup, or pass task.
4
4
  ---
5
5
 
6
6
  # JSKIT
@@ -62,6 +62,10 @@ manifests, migrations, tests, and runtime behaviour are the evidence.
62
62
  also read [Material 3](references/material-3.md) completely before acting.
63
63
  - For a UI pass (the changes, a section, or the whole app), also read
64
64
  [UI pass](references/ui-pass.md) completely.
65
+ - For an identity pass, a quality pass or a data pass, also read
66
+ [visual identity](references/visual-identity.md),
67
+ [quality pass](references/quality-pass.md) or
68
+ [data pass](references/data-pass.md) completely.
65
69
  - Before writing a list, save, batch or test, a refactor, or calling work
66
70
  done, read [sanity checks](references/sanity-checks.md).
67
71
 
@@ -0,0 +1,155 @@
1
+ <!-- Generated from `packages/agent-docs/site/guide/framework/data-pass.md`. -->
2
+
3
+ # Data pass
4
+
5
+ A data pass makes an app's data hold up at real sizes. Genesis's data pass
6
+ skill (`genesis-data-pass`) holds the method: map the data, measure each path
7
+ at a few rows and at a realistic size, then make counts follow the rows read,
8
+ narrow reads in the query, enforce and try every constraint, migrate safely,
9
+ index the real filters, and leave tests at realistic sizes. This page says
10
+ which JSKIT pieces each step uses. The rules themselves are in
11
+ [Data access](data-access.md) and the [sanity checks](sanity-checks.md);
12
+ read the sections each step names.
13
+
14
+ ## Map the data
15
+
16
+ - Each table has one owner: the feature whose table resource (`own()`)
17
+ declares it ([The resource is the only door](data-access.md#the-resource-is-the-only-door)).
18
+ Other features read it through that owner
19
+ ([Tables you don't own](data-access.md#tables-you-don-t-own)).
20
+ `expectEveryTableOwned()` fails on a table nobody owns.
21
+ - A table's constraints and indexes are in the migrations of the package that
22
+ owns it, and the foreign keys between packages in a `constraints/`
23
+ subdirectory ([Directory order comes before filenames](database-layer.md#directory-order-comes-before-filenames)).
24
+ - The paths to measure are the CRUD lists and records, the feature's actions
25
+ and services, the [many-row writes](data-access.md#layer-3-many-rows-at-once),
26
+ the [reports](data-access.md#layer-5-reports-the-resource-cannot-express)
27
+ and the [background work](data-access.md#background-work).
28
+
29
+ ## Measure
30
+
31
+ Count each path's statements on `TEST_DB_NAME`, never `DB_NAME`, with
32
+ `expectFlatQueries()` from `@jskit-ai/resource-runtime/test`, or
33
+ `countQueries(knex, work)` from
34
+ `@jskit-ai/database-runtime/server/testDatabases` when you want the counts and
35
+ statements themselves ([Tests](data-access.md#tests),
36
+ [Query counts and batches](sanity-checks.md#query-counts-and-batches)).
37
+ Record each count at a few rows and at the realistic size before changing
38
+ anything; the report compares them.
39
+
40
+ ## Fix the paths
41
+
42
+ - **Counts follow the rows read.** A handle's `get()` or `query()`, or a
43
+ service call, inside a loop becomes one id-list read through `queryAll()` or
44
+ `include`, grouped with `Map.groupBy()`
45
+ ([Reads shaped for the screen](data-access.md#reads-shaped-for-the-screen)).
46
+ A write that does not use its result passes `returning: "id"` or `"none"`; a
47
+ batch uses `createMany()` and `patchMany()`.
48
+ - **The query narrows.** Filters, sorts, limits, existence checks and counts go
49
+ in the read: the searchSchema's filters, `q` for typed text, `take: 1` for
50
+ one row, `aggregate()` for a count
51
+ ([Narrow in the query](data-access.md#narrow-in-the-query)).
52
+ The lint rules `jskit/narrow-in-query` and `jskit/search-on-server`, and
53
+ `jskit check`'s `data/search-q`, report what they can see.
54
+ - A fix that needs an API the owner does not have is asked of that owner, or
55
+ of JSKIT for its packages, never written around it
56
+ ([Exceptions](data-access.md#exceptions)).
57
+
58
+ ## Constraints
59
+
60
+ - Required fields, enumerations and ranges are in the resource's schema, and
61
+ required, unique and foreign keys in the table's migration. A rule the
62
+ schema cannot express, such as a uniqueness within an owner or a check that
63
+ reads another row, belongs to the owner's service, inside its
64
+ [transaction](data-access.md#transactions).
65
+ - Try each one: a server test sends one value that breaks it and asserts the
66
+ refusal's status and code, and that the message tells the person what to do
67
+ ([Every refusal explained](quality-pass.md#every-refusal-explained)).
68
+ A unique or foreign key the database enforces needs that test too, so its
69
+ error reaches the person as a sentence, not a 500.
70
+ - `addMissingForeignKey(knex, key)` from
71
+ `@jskit-ai/database-runtime/server/foreignKeyMigrations` adds a key on fresh
72
+ and already-migrated databases alike; it fails, naming the rows with no
73
+ parent, and deletes nothing. Before adding any constraint, count the rows
74
+ that break it; ask the person what they should say rather than rewrite them.
75
+
76
+ ## Migrations
77
+
78
+ - Each change is a new `.cjs` Knex migration in the package that owns the
79
+ table; one that has run anywhere is never edited
80
+ ([Authoring schema changes](database-layer.md#authoring-schema-changes),
81
+ [Migration ownership](crud-operations.md#migration-ownership)).
82
+ - Backfill large tables in bounded chunks with the many-row writes, from a job
83
+ or a script, not inside one migration statement that holds a lock for its
84
+ whole run. Seed data is not a migration
85
+ ([Seed data is not a migration](database-layer.md#seed-data-is-not-a-migration)).
86
+ - Prove a migration on the selected engine as the database layer's
87
+ [Verification](database-layer.md#verification) describes: fresh
88
+ preparation, an upgrade that keeps rows, and a second preparation with
89
+ nothing pending. Changing a migration or seed source changes the test
90
+ databases' snapshot digest, so the next test run rebuilds them
91
+ ([Integration test databases](database-layer.md#integration-test-databases)).
92
+
93
+ ## Indexes
94
+
95
+ - Take the filters, sorts and joins from the statements `countQueries()`
96
+ captured, and give each an index in a new migration, its columns in the order
97
+ the query uses them; the owner columns of a scoped table usually come first.
98
+ - A filter on another table's field needs that field declared `indexed: true`
99
+ on its own table resource, with a database index on its column; `own()`
100
+ refuses it at startup otherwise ([Layer 1: the table resource](data-access.md#layer-1-the-table-resource)).
101
+ - `lockWhere` needs an index that starts with the ownership columns, and with
102
+ `sort` or `limit` one that reads rows in the lock's order; without it the
103
+ lock refuses and names the index ([Layer 4: locks](data-access.md#layer-4-locks)).
104
+ - Read the plan on the test database at the realistic size (below, per engine)
105
+ and see each index used.
106
+
107
+ ## Tests at realistic sizes
108
+
109
+ - Each list, batch and write path keeps a one-line `expectFlatQueries()` test
110
+ whose `seed` builds the realistic size; each scoped path keeps an
111
+ `expectScoped()` test proving another owner's rows stay unseen and unchanged
112
+ ([Tests](data-access.md#tests)).
113
+ - A capped read keeps a test that seeds past its cap and finds the row it
114
+ needs.
115
+ - Run `npm run lint`, `npx jskit check` and `npm run verify`.
116
+
117
+ ## PostgreSQL
118
+
119
+ - `CREATE INDEX CONCURRENTLY` builds an index without blocking writes, but
120
+ cannot run in a transaction: give that migration `exports.config = {
121
+ transaction: false }` and nothing else, and use `DROP INDEX CONCURRENTLY` in
122
+ its `down()`. A failed concurrent build leaves an invalid index behind; drop
123
+ it before retrying.
124
+ - On a large table, add a foreign key or check `NOT VALID`, which takes only a
125
+ brief lock and enforces it for new rows, then `VALIDATE CONSTRAINT` in a
126
+ later migration, which reads the old rows without blocking writes.
127
+ - Adding a column with a constant default is instant; changing a column's type
128
+ rewrites the table and locks it for the whole rewrite.
129
+ - PostgreSQL does not index a foreign key's column for you: index it when the
130
+ app filters or joins by it, or deletes parent rows.
131
+ - A partial index (`WHERE archived_at IS NULL`) serves a filter the app always
132
+ applies, at a fraction of the size.
133
+ - Read plans with `EXPLAIN (ANALYZE, BUFFERS)`, after `ANALYZE` on freshly
134
+ seeded tables, so the planner sees the realistic size.
135
+ - Counts and sums come back as strings; compare them with `Number()` in tests.
136
+
137
+ ## MySQL
138
+
139
+ - DDL commits as it goes, so a migration with several schema statements can
140
+ stop half-applied: one schema change per migration, written for its partial
141
+ states ([MySQL and MariaDB failures can leave partial schema](database-layer.md#mysql-and-mariadb-failures-can-leave-partial-schema)).
142
+ - Ask for an online change explicitly, `ALGORITHM=INPLACE, LOCK=NONE` (or
143
+ `ALGORITHM=INSTANT` to add a column), so a change that would lock the table
144
+ fails instead of locking it.
145
+ - InnoDB indexes each foreign key's column itself; an index whose leading
146
+ columns match makes it a duplicate.
147
+ - MySQL has no partial indexes; an index on the filtered column plus the owner
148
+ columns serves the same filter.
149
+ - With the `utf8mb4_0900_ai_ci` collation a unique key ignores case and accents
150
+ (`Soup` and `soup` collide); try a value that differs only in case when such a
151
+ key is a constraint.
152
+ - Read plans with `EXPLAIN ANALYZE` (MySQL 8.0.18 and later; `EXPLAIN` on
153
+ MariaDB).
154
+ - `information_schema` reads are slow and lock metadata: keep them in
155
+ migrations and checks, never on a request path.