@jskit-ai/agent-docs 0.1.390 → 0.1.391

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.
@@ -202,6 +202,21 @@ server outside Fastify's hooks, so realtime gives its answers, such a refusal
202
202
  and the 101 that opens a WebSocket, `X-Content-Type-Options: nosniff` and
203
203
  `Cache-Control: no-store, no-cache, must-revalidate`, as API answers get.
204
204
 
205
+ Socket.IO takes the WebSocket upgrades on `/socket.io/` and leaves every other
206
+ upgrade to the application's own WebSocket routes, such as a terminal or a
207
+ proxy, however long their access checks take. Node hands an upgrade's
208
+ connection to the server's `upgrade` listeners without the HTTP server's error
209
+ handling, so realtime gives every upgrade's connection an error listener before
210
+ any other listener runs: a client that resets its connection ends that
211
+ connection alone, never the server. Realtime refuses an upgrade that no listener
212
+ takes with a `404 Not Found`, with the same two headers, and closes it: once the
213
+ listeners have run when the application registers no `upgrade` listener of its
214
+ own, or else when none of its listeners has taken the upgrade 30 seconds later.
215
+ A listener takes an upgrade by answering, ending or reading its connection, or
216
+ by listening to it, so a route that checks access first answers, or listens to
217
+ the connection, within those 30 seconds. Socket.IO's `destroyUpgradeTimeout`
218
+ option, given to `createSocketIoServer`, sets them.
219
+
205
220
  Whatever runs in front of the application, a proxy, load balancer or edge,
206
221
  must pass WebSocket upgrades on `/socket.io`; the realtime package's Vite
207
222
  development proxy does (`ws: true`). Where a network blocks WebSockets,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/agent-docs",
3
- "version": "0.1.390",
3
+ "version": "0.1.391",
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.256",
53
- "@jskit-ai/jskit-catalog": "0.2.142",
53
+ "@jskit-ai/jskit-catalog": "0.2.143",
54
54
  "@playwright/test": "1.61.1",
55
55
  "@vitejs/plugin-vue": "^6.0.7",
56
56
  "eslint": "^10.8.0",
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "@jskit-ai/config-eslint": "0.1.256",
54
- "@jskit-ai/jskit-catalog": "0.2.142",
54
+ "@jskit-ai/jskit-catalog": "0.2.143",
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.390`
18
+ - Owner: `@jskit-ai/agent-docs@0.1.391`
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.390`
29
+ - Owner: `@jskit-ai/agent-docs@0.1.391`
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.122`
40
+ - Owner: `@jskit-ai/assistant-runtime@0.2.123`
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`
@@ -301,7 +301,7 @@ Build a routed CRUD user interface as thin application pages over JSKIT's shared
301
301
 
302
302
  - Id: `crud/crud-screen-set`
303
303
  - Keywords: `actions`, `add`, `crud`, `delete`, `edit`, `filters`, `list`, `material`, `routes`, `view`, `vue`
304
- - Owner: `@jskit-ai/http-web@0.2.80`
304
+ - Owner: `@jskit-ai/http-web@0.2.81`
305
305
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/crud/crud-screen-set/PATTERN.md)
306
306
  - Examples: [example/](../../skills/jskit/references/patterns/crud/crud-screen-set/example/)
307
307
  - Requires: `@jskit-ai/http-web`, `@jskit-ai/resource-core`, `@jskit-ai/resource-crud-core`
@@ -356,7 +356,7 @@ Add JSKIT realtime events with an optional Redis backplane and an explicit shell
356
356
 
357
357
  - Id: `realtime/realtime-application`
358
358
  - Keywords: `realtime`, `redis`, `socket.io`, `sockets`, `status`, `websocket`
359
- - Owner: `@jskit-ai/realtime@0.2.73`
359
+ - Owner: `@jskit-ai/realtime@0.2.74`
360
360
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/realtime/realtime-application/PATTERN.md)
361
361
  - Examples: [example/](../../skills/jskit/references/patterns/realtime/realtime-application/example/)
362
362
  - Requires: `@jskit-ai/realtime`, `@jskit-ai/shell-web`
@@ -378,7 +378,7 @@ Define a server feature through explicit capabilities and first-class actions, a
378
378
 
379
379
  - Id: `server/feature-package`
380
380
  - Keywords: `actions`, `aggregate`, `feature`, `handle`, `orchestration`, `owns`, `package`, `provider`, `repository`, `routes`, `server`, `table resource`
381
- - Owner: `@jskit-ai/agent-docs@0.1.390`
381
+ - Owner: `@jskit-ai/agent-docs@0.1.391`
382
382
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/server/feature-package/PATTERN.md)
383
383
  - Examples: [example/](../../skills/jskit/references/patterns/server/feature-package/example/)
384
384
  - Requires: `@jskit-ai/kernel`
@@ -411,7 +411,7 @@ Compose an account settings route and profile, preference, notification, and sig
411
411
 
412
412
  - Id: `users/account-settings`
413
413
  - Keywords: `account`, `link provider`, `notifications`, `oauth`, `preferences`, `profile`, `settings`, `sign-in methods`, `user`, `vue`
414
- - Owner: `@jskit-ai/users-web@0.2.108`
414
+ - Owner: `@jskit-ai/users-web@0.2.109`
415
415
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/users/account-settings/PATTERN.md)
416
416
  - Examples: [example/](../../skills/jskit/references/patterns/users/account-settings/example/)
417
417
  - Requires: `@jskit-ai/http-web`, `@jskit-ai/shell-web`, `@jskit-ai/users-core`, `@jskit-ai/users-web`
@@ -444,7 +444,7 @@ Compose workspace selection, invitation, member administration, settings, and re
444
444
 
445
445
  - Id: `workspaces/workspace-surfaces`
446
446
  - Keywords: `admin`, `invite`, `member`, `navigation`, `settings`, `surface`, `switcher`, `workspace`
447
- - Owner: `@jskit-ai/workspaces-web@0.2.108`
447
+ - Owner: `@jskit-ai/workspaces-web@0.2.109`
448
448
  - Read: [PATTERN.md](../../skills/jskit/references/patterns/workspaces/workspace-surfaces/PATTERN.md)
449
449
  - Examples: [example/](../../skills/jskit/references/patterns/workspaces/workspace-surfaces/example/)
450
450
  - Requires: `@jskit-ai/shell-web`, `@jskit-ai/workspaces-core`, `@jskit-ai/workspaces-web`
@@ -153,6 +153,10 @@ Local functions
153
153
  - `resolveHttpServer({ httpServer = null, fastify = null } = {})`
154
154
  - `closeConnectionsAtPreClose(fastify, io)`
155
155
  - `addEngineHeaders(io)`
156
+ - `refuseUntakenUpgrades(server, { socketIoListeners, socketIoPrefix, timeoutMs })`
157
+ - `upgradeSocketState(socket)`
158
+ - `upgradeTaken(socket, before)`
159
+ - `refuseUpgrade(socket)`
156
160
  - `closeSocketIoConnections(io)`
157
161
  - `buildSocketIoRedisAdapterKey(redisNamespace = "")`
158
162
 
@@ -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.390`
18
+ - Owner: `@jskit-ai/agent-docs@0.1.391`
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.390`
29
+ - Owner: `@jskit-ai/agent-docs@0.1.391`
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.122`
40
+ - Owner: `@jskit-ai/assistant-runtime@0.2.123`
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`
@@ -301,7 +301,7 @@ Build a routed CRUD user interface as thin application pages over JSKIT's shared
301
301
 
302
302
  - Id: `crud/crud-screen-set`
303
303
  - Keywords: `actions`, `add`, `crud`, `delete`, `edit`, `filters`, `list`, `material`, `routes`, `view`, `vue`
304
- - Owner: `@jskit-ai/http-web@0.2.80`
304
+ - Owner: `@jskit-ai/http-web@0.2.81`
305
305
  - Read: [PATTERN.md](patterns/crud/crud-screen-set/PATTERN.md)
306
306
  - Examples: [example/](patterns/crud/crud-screen-set/example/)
307
307
  - Requires: `@jskit-ai/http-web`, `@jskit-ai/resource-core`, `@jskit-ai/resource-crud-core`
@@ -356,7 +356,7 @@ Add JSKIT realtime events with an optional Redis backplane and an explicit shell
356
356
 
357
357
  - Id: `realtime/realtime-application`
358
358
  - Keywords: `realtime`, `redis`, `socket.io`, `sockets`, `status`, `websocket`
359
- - Owner: `@jskit-ai/realtime@0.2.73`
359
+ - Owner: `@jskit-ai/realtime@0.2.74`
360
360
  - Read: [PATTERN.md](patterns/realtime/realtime-application/PATTERN.md)
361
361
  - Examples: [example/](patterns/realtime/realtime-application/example/)
362
362
  - Requires: `@jskit-ai/realtime`, `@jskit-ai/shell-web`
@@ -378,7 +378,7 @@ Define a server feature through explicit capabilities and first-class actions, a
378
378
 
379
379
  - Id: `server/feature-package`
380
380
  - Keywords: `actions`, `aggregate`, `feature`, `handle`, `orchestration`, `owns`, `package`, `provider`, `repository`, `routes`, `server`, `table resource`
381
- - Owner: `@jskit-ai/agent-docs@0.1.390`
381
+ - Owner: `@jskit-ai/agent-docs@0.1.391`
382
382
  - Read: [PATTERN.md](patterns/server/feature-package/PATTERN.md)
383
383
  - Examples: [example/](patterns/server/feature-package/example/)
384
384
  - Requires: `@jskit-ai/kernel`
@@ -411,7 +411,7 @@ Compose an account settings route and profile, preference, notification, and sig
411
411
 
412
412
  - Id: `users/account-settings`
413
413
  - Keywords: `account`, `link provider`, `notifications`, `oauth`, `preferences`, `profile`, `settings`, `sign-in methods`, `user`, `vue`
414
- - Owner: `@jskit-ai/users-web@0.2.108`
414
+ - Owner: `@jskit-ai/users-web@0.2.109`
415
415
  - Read: [PATTERN.md](patterns/users/account-settings/PATTERN.md)
416
416
  - Examples: [example/](patterns/users/account-settings/example/)
417
417
  - Requires: `@jskit-ai/http-web`, `@jskit-ai/shell-web`, `@jskit-ai/users-core`, `@jskit-ai/users-web`
@@ -444,7 +444,7 @@ Compose workspace selection, invitation, member administration, settings, and re
444
444
 
445
445
  - Id: `workspaces/workspace-surfaces`
446
446
  - Keywords: `admin`, `invite`, `member`, `navigation`, `settings`, `surface`, `switcher`, `workspace`
447
- - Owner: `@jskit-ai/workspaces-web@0.2.108`
447
+ - Owner: `@jskit-ai/workspaces-web@0.2.109`
448
448
  - Read: [PATTERN.md](patterns/workspaces/workspace-surfaces/PATTERN.md)
449
449
  - Examples: [example/](patterns/workspaces/workspace-surfaces/example/)
450
450
  - Requires: `@jskit-ai/shell-web`, `@jskit-ai/workspaces-core`, `@jskit-ai/workspaces-web`
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "devDependencies": {
52
52
  "@jskit-ai/config-eslint": "0.1.256",
53
- "@jskit-ai/jskit-catalog": "0.2.142",
53
+ "@jskit-ai/jskit-catalog": "0.2.143",
54
54
  "@playwright/test": "1.61.1",
55
55
  "@vitejs/plugin-vue": "^6.0.7",
56
56
  "eslint": "^10.8.0",
@@ -51,7 +51,7 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "@jskit-ai/config-eslint": "0.1.256",
54
- "@jskit-ai/jskit-catalog": "0.2.142",
54
+ "@jskit-ai/jskit-catalog": "0.2.143",
55
55
  "@playwright/test": "1.61.1",
56
56
  "@vitejs/plugin-vue": "^6.0.7",
57
57
  "eslint": "^10.8.0",
@@ -34,6 +34,9 @@ staging or production needs a Redis backplane.
34
34
  - Event payloads do not become an undocumented second API.
35
35
  - Socket.IO owns `/socket.io`; other WebSocket routes keep their own upgrade
36
36
  and access-check lifecycle without Socket.IO's one-second cleanup timeout.
37
+ Realtime refuses with a 404 an upgrade that no listener takes: at once when
38
+ the app has no `upgrade` listener of its own, or else after 30 seconds, so a
39
+ route answers its upgrade, or listens to its socket, within them.
37
40
  - Realtime connects over WebSocket only, so no address carries its session id;
38
41
  whatever runs in front of the app passes WebSocket upgrades on `/socket.io`.
39
42
 
@@ -2,7 +2,7 @@
2
2
  "private": true,
3
3
  "type": "module",
4
4
  "dependencies": {
5
- "@jskit-ai/realtime": "0.2.73",
5
+ "@jskit-ai/realtime": "0.2.74",
6
6
  "@jskit-ai/shell-web": "0.2.70"
7
7
  }
8
8
  }