@jskit-ai/agent-docs 0.1.353 → 0.1.354

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 (54) hide show
  1. package/guide/agent/app-extras/assistant.md +70 -0
  2. package/guide/agent/app-setup/authentication.md +151 -2
  3. package/guide/agent/app-setup/database-layer.md +9 -0
  4. package/guide/agent/app-setup/service-keys.md +103 -0
  5. package/guide/agent/app-setup/upgrading-jskit.md +11 -2
  6. package/guide/agent/framework/data-access.md +13 -0
  7. package/guide/agent/framework/typed-features.md +10 -5
  8. package/guide/agent/index.md +2 -0
  9. package/package.json +1 -1
  10. package/patterns/feature-package/example/booking-engine/package.json +1 -1
  11. package/patterns/minimal-foundation/example/package.json +3 -3
  12. package/patterns/shell-foundation/example/package.json +4 -4
  13. package/patterns/shell-foundation/example/packages/main/package.json +1 -1
  14. package/reference/autogen/PATTERN_INDEX.md +49 -38
  15. package/reference/autogen/packages/assistant-core.md +44 -8
  16. package/reference/autogen/packages/assistant-runtime.md +25 -0
  17. package/reference/autogen/packages/auth-core.md +4 -0
  18. package/reference/autogen/packages/auth-provider-local-core.md +13 -0
  19. package/reference/autogen/packages/auth-web.md +60 -16
  20. package/reference/autogen/packages/crud-core.md +3 -1
  21. package/reference/autogen/packages/database-runtime.md +1 -0
  22. package/reference/autogen/packages/http-web.md +1 -0
  23. package/reference/autogen/packages/realtime.md +2 -1
  24. package/reference/autogen/packages/resource-runtime.md +9 -0
  25. package/reference/autogen/packages/shell-web.md +35 -0
  26. package/reference/autogen/tooling/jskit-catalog.md +13 -6
  27. package/reference/autogen/tooling/testUtils.md +1 -0
  28. package/skills/jskit/references/data-access.md +13 -0
  29. package/skills/jskit/references/database-layer.md +9 -0
  30. package/skills/jskit/references/heuristics/row-policies.md +1 -1
  31. package/skills/jskit/references/heuristics/ui-testing.md +3 -3
  32. package/skills/jskit/references/pattern-index.md +49 -38
  33. package/skills/jskit/references/patterns/app/minimal-foundation/example/package.json +3 -3
  34. package/skills/jskit/references/patterns/app/shell-foundation/example/package.json +4 -4
  35. package/skills/jskit/references/patterns/app/shell-foundation/example/packages/main/package.json +1 -1
  36. package/skills/jskit/references/patterns/auth/accounts-hub/example/package.json +3 -3
  37. package/skills/jskit/references/patterns/auth/auth-surface/PATTERN.md +3 -0
  38. package/skills/jskit/references/patterns/auth/oidc-sign-in/example/package.json +2 -2
  39. package/skills/jskit/references/patterns/auth/own-design-sign-in/PATTERN.md +141 -0
  40. package/skills/jskit/references/patterns/auth/own-design-sign-in/example/src/components/ConfirmItsYouDialog.vue +182 -0
  41. package/skills/jskit/references/patterns/auth/own-design-sign-in/example/src/theme/tokens.css +35 -0
  42. package/skills/jskit/references/patterns/auth/own-design-sign-in/example/src/views/auth/LoginView.vue +473 -0
  43. package/skills/jskit/references/patterns/auth/supabase-auth/example/package.json +1 -1
  44. package/skills/jskit/references/patterns/connectors/calendar-cli/example/package.json +5 -5
  45. package/skills/jskit/references/patterns/crud/crud-feature-package/example/packages/books/package.json +3 -3
  46. package/skills/jskit/references/patterns/crud/crud-screen-set/example/books/BookListPage.vue +1 -1
  47. package/skills/jskit/references/patterns/database/mysql-application/example/package.json +2 -2
  48. package/skills/jskit/references/patterns/database/postgres-application/example/package.json +2 -2
  49. package/skills/jskit/references/patterns/realtime/realtime-application/PATTERN.md +5 -1
  50. package/skills/jskit/references/patterns/realtime/realtime-application/example/package.json +2 -2
  51. package/skills/jskit/references/patterns/server/feature-package/example/booking-engine/package.json +1 -1
  52. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users/package.json +3 -3
  53. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users-workspace/package.json +6 -6
  54. package/skills/jskit/references/typed-features.md +10 -5
@@ -7,11 +7,11 @@
7
7
  "db:migrate:status": "knex --knexfile ./knexfile.js migrate:list"
8
8
  },
9
9
  "dependencies": {
10
- "@jskit-ai/connectors-core": "0.2.51",
11
- "@jskit-ai/connector-google-calendar": "0.2.51",
12
- "@jskit-ai/database-runtime": "0.1.284",
13
- "@jskit-ai/database-runtime-mysql": "0.1.282",
14
- "@jskit-ai/kernel": "0.2.33",
10
+ "@jskit-ai/connectors-core": "0.2.52",
11
+ "@jskit-ai/connector-google-calendar": "0.2.52",
12
+ "@jskit-ai/database-runtime": "0.1.285",
13
+ "@jskit-ai/database-runtime-mysql": "0.1.283",
14
+ "@jskit-ai/kernel": "0.2.34",
15
15
  "knex": "^3.1.0"
16
16
  }
17
17
  }
@@ -9,9 +9,9 @@
9
9
  "./shared": "./src/shared/index.js"
10
10
  },
11
11
  "dependencies": {
12
- "@jskit-ai/crud-core": "0.2.52",
13
- "@jskit-ai/resource-core": "0.1.224",
14
- "@jskit-ai/resource-crud-core": "0.1.226"
12
+ "@jskit-ai/crud-core": "0.2.53",
13
+ "@jskit-ai/resource-core": "0.1.225",
14
+ "@jskit-ai/resource-crud-core": "0.1.227"
15
15
  },
16
16
  "jskit": {
17
17
  "kind": "runtime",
@@ -31,7 +31,7 @@ const screen = useCrudListScreen({
31
31
  empty-body="Add your first book to begin the catalogue."
32
32
  >
33
33
  <template #card-fields="{ record, formatListCardValue }">
34
- <dl class="d-grid ga-2 mb-0">
34
+ <dl class="d-flex flex-column ga-2 mb-0">
35
35
  <div>
36
36
  <dt class="text-body-small on-surface-variant">Author</dt>
37
37
  <dd class="text-body-medium ma-0">{{ formatListCardValue(record.author) }}</dd>
@@ -9,7 +9,7 @@
9
9
  "test": "jskit test --databases"
10
10
  },
11
11
  "dependencies": {
12
- "@jskit-ai/database-runtime": "0.1.284",
13
- "@jskit-ai/database-runtime-mysql": "0.1.282"
12
+ "@jskit-ai/database-runtime": "0.1.285",
13
+ "@jskit-ai/database-runtime-mysql": "0.1.283"
14
14
  }
15
15
  }
@@ -9,7 +9,7 @@
9
9
  "test": "jskit test --databases"
10
10
  },
11
11
  "dependencies": {
12
- "@jskit-ai/database-runtime": "0.1.284",
13
- "@jskit-ai/database-runtime-postgres": "0.1.281"
12
+ "@jskit-ai/database-runtime": "0.1.285",
13
+ "@jskit-ai/database-runtime-postgres": "0.1.282"
14
14
  }
15
15
  }
@@ -74,7 +74,11 @@ so the next handshake resolves the new actor.
74
74
  Use `auth.service.realtime.authorizeEvent({ actor, event: { name, payload } })`
75
75
  for resource-specific read authorization. Return `true` only when the current
76
76
  actor can read that event's resource. Authentication is revalidated before
77
- delivery and every 30 seconds while idle. Redis peers perform the same checks
77
+ delivery and every 30 seconds while idle. A service that can tell when a login
78
+ ends offers `realtime.holdSocket(request, close)`: realtime holds each signed-in
79
+ socket with it, the service calls `close` the moment that login ends, and the
80
+ socket is then authenticated at its handshake and every 30 seconds instead of
81
+ before every delivery (`authorizeEvent` still answers each one). Redis peers perform the same checks
78
82
  locally. Realtime failures are logged without failing an already-successful
79
83
  mutation; one mutation owner publishes each completion, while progress events
80
84
  describe distinct lifecycle states.
@@ -2,7 +2,7 @@
2
2
  "private": true,
3
3
  "type": "module",
4
4
  "dependencies": {
5
- "@jskit-ai/realtime": "0.2.53",
6
- "@jskit-ai/shell-web": "0.2.50"
5
+ "@jskit-ai/realtime": "0.2.54",
6
+ "@jskit-ai/shell-web": "0.2.51"
7
7
  }
8
8
  }
@@ -5,7 +5,7 @@
5
5
  "private": true,
6
6
  "type": "module",
7
7
  "dependencies": {
8
- "@jskit-ai/kernel": "0.2.33",
8
+ "@jskit-ai/kernel": "0.2.34",
9
9
  "json-rest-schema": "^1.0.20"
10
10
  },
11
11
  "exports": {
@@ -10,9 +10,9 @@
10
10
  "./shared": "./src/shared/index.js"
11
11
  },
12
12
  "dependencies": {
13
- "@jskit-ai/crud-core": "0.2.52",
14
- "@jskit-ai/resource-crud-core": "0.1.226",
15
- "@jskit-ai/users-core": "0.2.63"
13
+ "@jskit-ai/crud-core": "0.2.53",
14
+ "@jskit-ai/resource-crud-core": "0.1.227",
15
+ "@jskit-ai/users-core": "0.2.64"
16
16
  },
17
17
  "jskit": {
18
18
  "kind": "runtime",
@@ -10,14 +10,14 @@
10
10
  "./shared": "./src/shared/index.js"
11
11
  },
12
12
  "dependencies": {
13
- "@jskit-ai/crud-core": "0.2.52",
14
- "@jskit-ai/resource-crud-core": "0.1.226",
15
- "@jskit-ai/users-core": "0.2.63",
16
- "@jskit-ai/workspaces-core": "0.2.63"
13
+ "@jskit-ai/crud-core": "0.2.53",
14
+ "@jskit-ai/resource-crud-core": "0.1.227",
15
+ "@jskit-ai/users-core": "0.2.64",
16
+ "@jskit-ai/workspaces-core": "0.2.64"
17
17
  },
18
18
  "peerDependencies": {
19
- "@jskit-ai/kernel": "0.2.33",
20
- "@jskit-ai/resource-runtime": "0.2.48"
19
+ "@jskit-ai/kernel": "0.2.34",
20
+ "@jskit-ai/resource-runtime": "0.2.49"
21
21
  },
22
22
  "jskit": {
23
23
  "kind": "runtime",
@@ -1081,11 +1081,14 @@ and Vitest's `maxWorkers` come from `testConcurrency()`.**
1081
1081
  - An application's `playwright.config.mjs` is
1082
1082
  `defineConfig(browserTestConfig({ testDir: "./tests/e2e" }))` from
1083
1083
  `@jskit-ai/jskit-catalog/browser-tests`. It builds the production frontend
1084
- once (reused while its sources are unchanged) and gives each worker its own
1085
- server, port and, through its `prepare` module, its own seeded database; a
1084
+ once (reused while the files it read are unchanged, so an edit to server
1085
+ code alone does not rebuild it) and gives each worker its own server, port
1086
+ and, through its `prepare` module, its own seeded database; a
1086
1087
  spec file's tests run in order in one worker. With `PLAYWRIGHT_BASE_URL`, the
1087
- tests use that managed target as its host serves it. Every run is bounded by
1088
- a `globalTimeout` (20 minutes, or the suite's own measured bound) and ends
1088
+ tests use that managed target as its host serves it. A local run takes free
1089
+ ports of its own, so two runs on one machine never meet. Every run is bounded
1090
+ by a `globalTimeout` (80 worker-minutes, never under 20 minutes: 20 on 4
1091
+ workers, 80 on one; or the suite's own measured bound) and ends
1089
1092
  with its 10 slowest tests. Each action and navigation is bounded too
1090
1093
  (`actionTimeout` 15 s, `navigationTimeout` 30 s): a stale locator should
1091
1094
  fail in seconds, not minutes, so a test waiting on something that never
@@ -1108,7 +1111,9 @@ and Vitest's `maxWorkers` come from `testConcurrency()`.**
1108
1111
  file's own bound in `test-time-bounds.json`, with the measurement in the
1109
1112
  commit that raises it; a file that got slow is fixed instead. A file still
1110
1113
  running at twice its bound, or sooner at ten times the time it last finished
1111
- in (at least two minutes), is stopped and fails the run by name, so the other
1114
+ all its tests in (at least two minutes; a run filtered by
1115
+ `--test-name-pattern`, `--test-skip-pattern` or `--test-only` records no
1116
+ time), is stopped and fails the run by name, so the other
1112
1117
  files still finish and report: look for what it leaves open (a server, child
1113
1118
  process, timer or socket) or a test without a timeout. A file with its own
1114
1119
  bound is stopped at twice that bound.