@jskit-ai/agent-docs 0.1.385 → 0.1.387

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 (27) hide show
  1. package/guide/agent/framework/material-3.md +38 -11
  2. package/guide/agent/framework/typed-features.md +0 -20
  3. package/guide/agent/framework/ui-operations.md +23 -0
  4. package/package.json +1 -1
  5. package/patterns/minimal-foundation/example/AGENTS.md +5 -0
  6. package/patterns/minimal-foundation/example/package.json +2 -2
  7. package/patterns/shell-foundation/example/AGENTS.md +5 -0
  8. package/patterns/shell-foundation/example/package.json +3 -3
  9. package/reference/autogen/PATTERN_INDEX.md +37 -37
  10. package/reference/autogen/packages/shell-web.md +12 -0
  11. package/skills/jskit/references/material-3.md +38 -11
  12. package/skills/jskit/references/pattern-index.md +37 -37
  13. package/skills/jskit/references/patterns/app/minimal-foundation/example/AGENTS.md +5 -0
  14. package/skills/jskit/references/patterns/app/minimal-foundation/example/package.json +2 -2
  15. package/skills/jskit/references/patterns/app/shell-foundation/example/AGENTS.md +5 -0
  16. package/skills/jskit/references/patterns/app/shell-foundation/example/package.json +3 -3
  17. package/skills/jskit/references/patterns/auth/accounts-hub/example/package.json +3 -3
  18. package/skills/jskit/references/patterns/auth/oidc-sign-in/example/package.json +2 -2
  19. package/skills/jskit/references/patterns/connectors/calendar-cli/example/package.json +4 -4
  20. package/skills/jskit/references/patterns/crud/crud-feature-package/example/packages/books/package.json +1 -1
  21. package/skills/jskit/references/patterns/database/mysql-application/example/package.json +2 -2
  22. package/skills/jskit/references/patterns/database/postgres-application/example/package.json +2 -2
  23. package/skills/jskit/references/patterns/realtime/realtime-application/example/package.json +2 -2
  24. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users/package.json +2 -2
  25. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users-workspace/package.json +4 -4
  26. package/skills/jskit/references/typed-features.md +0 -20
  27. package/skills/jskit/references/ui-operations.md +23 -0
@@ -118,6 +118,13 @@ without it adds:
118
118
  - Ready when: `GET` `/api/health` returns `200`
119
119
  ```
120
120
 
121
+ Every test of a worker reaches its server from one address, 127.0.0.1, as a
122
+ different person each time, so a browser test server counts no per-address
123
+ rate limit: a route's `rateLimit`, auth's sign-in limits and the accounts hub's
124
+ per-address counters. The servers' launcher sets `JSKIT_BROWSER_TEST_SERVER=1`,
125
+ and a server with it whose `APP_ENV` is not `test` refuses to start. Prove a
126
+ limit with a Node test against an ordinary server.
127
+
121
128
  The build and the snapshot are reused while their sources are unchanged, so a
122
129
  focused check never rebuilds them. After a change to the browser-test setup,
123
130
  run the suite twice: the second run says `Frontend build unchanged, reused` and
@@ -134,3 +141,19 @@ directly:
134
141
  ```bash
135
142
  npx playwright test <test-file> -g "<changed behavior>"
136
143
  ```
144
+
145
+ A test that must run without live updates closes the realtime socket with
146
+ `context.routeWebSocket(/\/socket\.io\//, (socket) => socket.close())` before
147
+ its page opens. JSKIT's realtime connects by WebSocket only, which
148
+ `page.route()` and `context.route()` never see, so an HTTP route that aborts
149
+ `/socket.io` changes nothing. Any HTTP route also turns the browser's cache off
150
+ for its page or context, so a guard that only watches requests listens to
151
+ `page.on("request")` instead.
152
+
153
+ `browserTestConfig()` keeps a failed test's trace with DOM snapshots. To take
154
+ them, Playwright runs a script in every frame, and Chromium logs `Blocked script
155
+ execution in 'about:srcdoc' because the document's frame is sandboxed and the
156
+ 'allow-scripts' permission is not set.` for each frame sandboxed without
157
+ `allow-scripts`, such as an email preview. That is the sandbox doing its job,
158
+ not the app failing: a test that fails on console errors leaves out that line,
159
+ and only that line.