@jskit-ai/agent-docs 0.1.331 → 0.1.333

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 (92) hide show
  1. package/guide/agent/app-extras/realtime.md +11 -3
  2. package/guide/agent/app-setup/authentication.md +135 -32
  3. package/guide/agent/app-setup/initial-scaffolding.md +10 -9
  4. package/guide/agent/app-setup/more-than-one-server.md +111 -0
  5. package/guide/agent/app-setup/multi-homing.md +2 -2
  6. package/guide/agent/app-setup/package-with-nix.md +60 -15
  7. package/guide/agent/app-setup/upgrading-jskit.md +36 -1
  8. package/guide/agent/framework/crud-form-actions.md +18 -7
  9. package/guide/agent/framework/environments.md +174 -0
  10. package/guide/agent/framework/material-3.md +9 -3
  11. package/guide/agent/framework/quality-pass.md +8 -2
  12. package/guide/agent/framework/sanity-checks.md +3 -3
  13. package/guide/agent/framework/security-pass.md +7 -5
  14. package/guide/agent/index.md +6 -2
  15. package/package.json +1 -1
  16. package/patterns/feature-package/example/booking-engine/package.json +1 -1
  17. package/patterns/minimal-foundation/example/.env.example +8 -0
  18. package/patterns/minimal-foundation/example/AGENTS.md +7 -5
  19. package/patterns/minimal-foundation/example/bin/develop.js +2 -0
  20. package/patterns/minimal-foundation/example/package.json +7 -7
  21. package/patterns/shell-foundation/example/.env.example +8 -0
  22. package/patterns/shell-foundation/example/AGENTS.md +7 -5
  23. package/patterns/shell-foundation/example/bin/develop.js +2 -0
  24. package/patterns/shell-foundation/example/package.json +8 -8
  25. package/patterns/shell-foundation/example/packages/main/package.json +1 -1
  26. package/reference/autogen/KERNEL_MAP.md +10 -11
  27. package/reference/autogen/PATTERN_INDEX.md +38 -38
  28. package/reference/autogen/packages/auth-core.md +15 -2
  29. package/reference/autogen/packages/auth-provider-local-core.md +48 -13
  30. package/reference/autogen/packages/auth-provider-local-db-core.md +15 -0
  31. package/reference/autogen/packages/auth-provider-oidc-core.md +1 -1
  32. package/reference/autogen/packages/auth-provider-supabase-core.md +2 -2
  33. package/reference/autogen/packages/auth-web.md +26 -0
  34. package/reference/autogen/packages/connectors-core.md +2 -2
  35. package/reference/autogen/packages/http-web.md +2 -0
  36. package/reference/autogen/packages/kernel.md +32 -27
  37. package/reference/autogen/packages/oidc-issuer-core.md +4 -4
  38. package/reference/autogen/packages/payments-core.md +1 -1
  39. package/reference/autogen/packages/shell-web.md +40 -13
  40. package/reference/autogen/packages/storage-runtime.md +6 -0
  41. package/reference/autogen/packages/workspaces-core.md +4 -4
  42. package/reference/autogen/tooling/jskit-catalog.md +6 -1
  43. package/skills/jskit/SKILL.md +2 -1
  44. package/skills/jskit/references/crud-form-actions.md +18 -7
  45. package/skills/jskit/references/environments.md +169 -0
  46. package/skills/jskit/references/heuristics/INDEX.md +1 -1
  47. package/skills/jskit/references/heuristics/client-requests.md +1 -1
  48. package/skills/jskit/references/heuristics/crud-authoring.md +3 -2
  49. package/skills/jskit/references/heuristics/live-actions.md +4 -1
  50. package/skills/jskit/references/heuristics/ui-contract.md +9 -1
  51. package/skills/jskit/references/material-3.md +9 -3
  52. package/skills/jskit/references/multi-homing.md +2 -2
  53. package/skills/jskit/references/package-with-nix.md +60 -15
  54. package/skills/jskit/references/pattern-index.md +38 -38
  55. package/skills/jskit/references/patterns/app/minimal-foundation/example/.env.example +8 -0
  56. package/skills/jskit/references/patterns/app/minimal-foundation/example/AGENTS.md +7 -5
  57. package/skills/jskit/references/patterns/app/minimal-foundation/example/bin/develop.js +2 -0
  58. package/skills/jskit/references/patterns/app/minimal-foundation/example/package.json +7 -7
  59. package/skills/jskit/references/patterns/app/shell-foundation/example/.env.example +8 -0
  60. package/skills/jskit/references/patterns/app/shell-foundation/example/AGENTS.md +7 -5
  61. package/skills/jskit/references/patterns/app/shell-foundation/example/bin/develop.js +2 -0
  62. package/skills/jskit/references/patterns/app/shell-foundation/example/package.json +8 -8
  63. package/skills/jskit/references/patterns/app/shell-foundation/example/packages/main/package.json +1 -1
  64. package/skills/jskit/references/patterns/auth/accounts-hub/example/package.json +3 -3
  65. package/skills/jskit/references/patterns/auth/auth-surface/PATTERN.md +10 -8
  66. package/skills/jskit/references/patterns/auth/auth-surface/example/src/pages/auth/email-change.vue +17 -0
  67. package/skills/jskit/references/patterns/auth/auth-surface/example/src/views/auth/EmailChangeView.vue +12 -0
  68. package/skills/jskit/references/patterns/auth/oidc-sign-in/example/package.json +2 -2
  69. package/skills/jskit/references/patterns/auth/supabase-auth/example/package.json +1 -1
  70. package/skills/jskit/references/patterns/connectors/api-key-connection/PATTERN.md +4 -1
  71. package/skills/jskit/references/patterns/connectors/api-key-connection/example/connections.js +3 -3
  72. package/skills/jskit/references/patterns/connectors/calendar-cli/example/.env.example +1 -0
  73. package/skills/jskit/references/patterns/connectors/calendar-cli/example/package.json +5 -4
  74. package/skills/jskit/references/patterns/connectors/calendar-cli/example/scripts/calendar.js +3 -1
  75. package/skills/jskit/references/patterns/connectors/firebase-messaging/example/server/notifications.js +3 -3
  76. package/skills/jskit/references/patterns/connectors/oauth-connection/PATTERN.md +3 -1
  77. package/skills/jskit/references/patterns/crud/crud-feature-package/example/packages/books/package.json +3 -3
  78. package/skills/jskit/references/patterns/database/mysql-application/example/package.json +2 -2
  79. package/skills/jskit/references/patterns/database/postgres-application/example/package.json +2 -2
  80. package/skills/jskit/references/patterns/realtime/realtime-application/example/.env.example +1 -0
  81. package/skills/jskit/references/patterns/realtime/realtime-application/example/package.json +2 -2
  82. package/skills/jskit/references/patterns/server/feature-package/example/booking-engine/package.json +1 -1
  83. package/skills/jskit/references/patterns/users/account-settings/example/src/components/account/settings/AccountSettingsNotificationsSection.vue +3 -1
  84. package/skills/jskit/references/patterns/users/account-settings/example/src/components/account/settings/AccountSettingsPreferencesSection.vue +3 -1
  85. package/skills/jskit/references/patterns/users/account-settings/example/src/components/account/settings/AccountSettingsProfileSection.vue +4 -1
  86. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users/package.json +3 -3
  87. package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users-workspace/package.json +6 -6
  88. package/skills/jskit/references/quality-pass.md +8 -2
  89. package/skills/jskit/references/sanity-checks.md +3 -3
  90. package/skills/jskit/references/security-pass.md +7 -5
  91. package/guide/agent/framework/side-effects.md +0 -77
  92. package/skills/jskit/references/side-effects.md +0 -72
@@ -108,8 +108,9 @@ is no longer its principal public contract.
108
108
  - test list/view/create/update/delete document shapes
109
109
  - test positive owner access and negative cross-owner access
110
110
  - test relationships and deletion behavior
111
- - verify skeletons, stable pending labels, toast mutation feedback, and no
112
- horizontal overflow in compact, medium, and expanded screens
111
+ - verify skeletons, stable pending labels, pending buttons that keep keyboard
112
+ focus, toast mutation feedback, and no horizontal overflow in compact,
113
+ medium, and expanded screens
113
114
  - run current framework and application verification
114
115
 
115
116
  Avoid generator provenance, scaffold shapes, ownership receipts, workboards,
@@ -34,7 +34,10 @@ Good live-action pattern:
34
34
 
35
35
  - build a narrow payload
36
36
  - call `command.run()`
37
- - disable only the busy control while the command is running
37
+ - mark only the busy control pending while the command is running
38
+ (`v-pending="command.isRunning"`, or `ShellPageAction`'s `pending`), when
39
+ possible, rather than disabling it: it keeps keyboard focus, reads as
40
+ unavailable and ignores a second press
38
41
  - invalidate the relevant query key on success
39
42
  - keep derived business rules on the server
40
43
 
@@ -30,7 +30,15 @@ and action UI.
30
30
 
31
31
  - Initial and structural loading uses shape-matching skeletons.
32
32
  - Never use circular progress, indeterminate spinners, or loading icons.
33
- - Pending buttons keep their position and use stable disabled labels.
33
+ - Pending buttons keep their position, use stable pending labels and, when
34
+ possible, keep keyboard focus: `pending` on `ShellPageAction` and
35
+ `ShellPrimaryAction`, `v-pending`
36
+ (`@jskit-ai/shell-web/client/directives/vPending`) on other buttons, instead
37
+ of `disabled`, which drops a focused button's focus to the page body. When
38
+ the command's refusal marks a field, focus moves to that field; when the
39
+ button goes away as its command settles (the last page of "Load more"), move
40
+ focus to where the next step starts, such as the first record that page
41
+ added.
34
42
  - Resource-load failures stay in the affected region with retry.
35
43
  - Command and mutation failures use the shared toast/snackbar feedback path;
36
44
  they do not insert banners that push page content down.
@@ -269,8 +269,9 @@ dialog, chip or FAB.
269
269
  (`@jskit-ai/shell-web/client/components/ShellPageActions`), each a
270
270
  `ShellPageAction` with `icon`, `label` (also its accessible name and compact
271
271
  tooltip), and `primary`, `to`, `replace`, `href` (with `download` for a
272
- file, such as a CSV export), `disabled`, `loading` or `color` (`error` for a
273
- destructive one); attributes such as `target` reach its button. On compact
272
+ file, such as a CSV export), `disabled`, `pending`, `loading` or `color`
273
+ (`error` for a destructive one); attributes such as `target` reach its
274
+ button. On compact
274
275
  widths the bar shows the single `primary` action (a form's Save) and puts
275
276
  the other actions, and the top-right items that don't fit beside the title,
276
277
  in its "More actions" menu, where `overflow` actions always are; medium and
@@ -362,7 +363,12 @@ dialog, chip or FAB.
362
363
  loading uses Material skeletons that reserve the final content geometry;
363
364
  never use a generic spinner or circular progress indicator, and never let
364
365
  content jump when data arrives. An action without a loading content region
365
- uses a stable disabled/pending label and shared feedback, not a spinner.
366
+ uses a stable pending label ("Saving…") and shared feedback, not a spinner.
367
+ - While a command runs, mark its button pending rather than `disabled` when
368
+ possible: `pending` on `ShellPageAction` and `ShellPrimaryAction`,
369
+ `v-pending` on other buttons. It keeps keyboard focus, reads as unavailable
370
+ and ignores a second press; a focused button that becomes `disabled` drops
371
+ focus to the page body. Keep `disabled` for an action that cannot run.
366
372
  - Keep failures at their semantic owner. A resource that cannot render uses a
367
373
  stable in-page error and retry state; field validation stays beside the
368
374
  field. A user-triggered command uses JSKIT's shared action
@@ -228,8 +228,8 @@ To send invitation email, provide the optional `workspaces.invite-mailer`
228
228
  capability from one of the application's providers. Without one, invitations
229
229
  are still created and delivery reports `mailer_unconfigured`. After **Send
230
230
  invite**, the Members panel's notice follows the delivery status: `sent` says
231
- the invite was sent; `simulated` (a test copy, whose `SIDE_EFFECTS` is not
232
- `live`) and `mailer_unconfigured` say no email was sent; `held` says email
231
+ the invite was sent; `simulated` (logged outside production, see
232
+ [Environments](environments.md)) and `mailer_unconfigured` say no email was sent; `held` says email
233
233
  isn't set up yet, so the invite will be sent once it is; `failed` is a warning
234
234
  that the email failed. Each of those four points to the invite link, which
235
235
  the panel shows under the form with its **Copy** button. For a status the
@@ -78,36 +78,81 @@ environment's. The option is not called `--env-file` because Node reads an
78
78
 
79
79
  | Program | What it does |
80
80
  | --- | --- |
81
- | `<name> [--env FILE] [--migrate]` | Runs the app's `start` script as `npm start` would, without npm, in place of itself: from `lib/<name>`, with `node_modules/.bin` and Node first on `PATH`, and `NODE_ENV=production` unless the environment or the file says otherwise. With `--migrate`, runs `db:migrate` first and starts nothing when it fails. |
81
+ | `<name> [--env FILE] [--migrate]` | Runs the app's `start` script as `npm start` would, without npm, in place of itself: from `lib/<name>`, with `node_modules/.bin` and Node first on `PATH`, and `NODE_ENV=production` unless the environment or the file says otherwise. With `--migrate`, runs `db:migrate` first and starts nothing when it fails; an app with no `db:migrate` script has nothing to migrate, so it starts (and says so), and one service command fits every app. |
82
82
  | `<name>-migrate [--env FILE]` | Runs the `db:migrate` script the same way. Only an app with one has it. |
83
83
  | `<name>-check [--env FILE] [--wait SECONDS]` | Exits 0 once `GET /api/health` answers 200 on `HOST`:`PORT` (127.0.0.1 when `HOST` is unset or any address; port 3000 when `PORT` is unset), and 1 after `--wait` seconds (60). |
84
- | `<name>-prepare --settings JSON --env FILE [--user NAME]` | Writes the settings, one JSON object of environment variables (each a string, a number or `true`/`false`), as `FILE`, mode 0600, owned by `NAME` (`chown NAME:`). It is for a host that hands an app's settings to a step run as root before its services start. |
84
+ | `<name>-prepare --settings JSON --env FILE [--user NAME]` | Writes the settings, one JSON object of environment variables (each a string, a number or `true`/`false`), as `FILE`, mode 0600, owned by `NAME` (`chown NAME:`). It also makes each folder the settings name for the app's files with an absolute path (`JSKIT_STORAGE_FS_BASE_PATH`, `AUTH_LOCAL_STORE_DIR`, `AUTH_OIDC_STORE_DIR`), mode 0700 when it makes it, owned by `NAME`. It is for a host that hands an app's settings to a step run as root before its services start. |
85
85
 
86
86
  ## Running it
87
87
 
88
88
  - The app's folder is read-only. A JSKIT package that writes files keeps them
89
89
  under the app's folder unless told otherwise, so point those at a writable
90
90
  data folder in the settings: `JSKIT_STORAGE_FS_BASE_PATH` (uploads and
91
- `runtime.storage`; `data/storage` by default) and `AUTH_LOCAL_STORE_DIR`
91
+ `runtime.storage`; `data/storage` by default), `AUTH_LOCAL_STORE_DIR`
92
92
  (local sign-in's files, such as the first account's setup code;
93
- `.jskit/auth` by default).
93
+ `.jskit/auth` by default) and, with OIDC sign-in, `AUTH_OIDC_STORE_DIR`.
94
+ `<name>-prepare --user NAME` makes those folders for the user the service
95
+ runs as, so a host's data folder that root owns needs nothing else. With
96
+ `JSKIT_STORAGE_DRIVER=s3`, `runtime.storage` writes to an S3 bucket instead,
97
+ as several instances need.
94
98
  - Secrets come at run time, in the env file or the service's environment,
95
99
  never in the package: anyone who can read the Nix store can read a package.
96
- - The server listens where its `server.js` says: in a JSKIT app, `HOST`
97
- (0.0.0.0) and `PORT` (3000).
100
+ - The server listens where its `server.js` says: `HOST` (0.0.0.0 in a JSKIT
101
+ app) and `PORT`, whose default differs between apps (3000 or 3001). Set
102
+ `PORT` in the settings, so the server, the check and the host agree.
98
103
  - The database comes from the app's own settings: `DATABASE_URL`, or
99
- `DB_CLIENT`, `DB_HOST`, `DB_NAME` and the rest, as the
100
- [database layer](database-layer.md) guide says.
101
- - Migrations run with `<name>-migrate` before the release starts, or with
102
- `<name> --migrate` where the host has no such step. When several instances
103
- start at once, Knex's migration lock lets one run them; the others fail and
104
- start again once it is done, as a service restarted on failure does.
104
+ `DB_CLIENT`, `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER` and `DB_PASSWORD`
105
+ (each of these wins over the same part of the URL), as the
106
+ [database layer](database-layer.md) guide says. Set
107
+ `DB_CLIENT` (`pg` or `mysql2`) when the app's own server code picks a
108
+ default for it. `/api/health` answers 200 only while the database answers,
109
+ so a host's check of a new build needs a database too.
110
+ - `APP_ENV` says where the app runs: `production`, or `staging` for a copy
111
+ that must not act for real, such as a build-check machine, which leaves the
112
+ `STAGING_*` addresses unset so everything is logged
113
+ ([Environments](environments.md)). The host sets it: the
114
+ package never guesses it, and a server without one refuses to start. The
115
+ programs default `NODE_ENV` to `production`, the build the package holds.
116
+ - Behind a load balancer or proxy, `TRUSTED_PROXIES` names its addresses, as
117
+ the [authentication](/guide/app-setup/authentication) guide says, and
118
+ `APP_PUBLIC_URL` is the address people use.
119
+
120
+ Several instances of one app behind a load balancer need the same settings
121
+ on every instance and nothing kept on one server's disk: files in S3,
122
+ sessions in the database, the same secrets and setup code, and Redis for live
123
+ updates, as [Run on more than one server](/guide/app-setup/more-than-one-server)
124
+ says.
125
+
126
+ ## Migrations
127
+
128
+ Run them in the service: `<name> --migrate`. A host that runs no release step
129
+ needs nothing else, and a database that is not up yet only delays the start:
130
+ the migration fails, the service exits, and the host's restart tries again.
131
+
132
+ When several instances start at once, each runs `db:migrate` and Knex's own
133
+ lock lets one migrate. Knex takes that lock in the transaction its migrations
134
+ run in (every JSKIT migration runs in one), so:
135
+
136
+ - on PostgreSQL the others wait for that transaction, then find nothing left
137
+ to migrate and start. A migrator that dies has its transaction rolled back,
138
+ its lock with it, and the next start migrates;
139
+ - on MySQL and MariaDB a table change commits at once, so the others fail
140
+ (`Migration table is already locked`) and start again once their service
141
+ restarts them, and a migrator that dies part way leaves the lock set until
142
+ `knex migrate:unlock` frees it;
143
+ - on a database that has never been migrated, instances that start at the
144
+ same moment can both try to create Knex's own tables: one fails, and its
145
+ restart finds them there.
146
+
147
+ So every host that starts several instances must restart a failed one, and
148
+ migrations must be written to run next to the release before them while a
149
+ rollout replaces instances (add first, remove in a later release).
105
150
 
106
151
  A host that runs apps as Nix packages typically runs the app `shop` as:
107
152
 
108
153
  - a step run as root at each start, before the service:
109
154
  `bin/shop-prepare --settings <the host's settings file> --env /run/shop/env --user shop`;
110
- - one service, run as the user `shop`:
111
- `bin/shop --env /run/shop/env --migrate`, on port 3000, healthy when
112
- `/api/health` answers 200;
155
+ - one service, run as the user `shop` and restarted when it fails:
156
+ `bin/shop --env /run/shop/env --migrate`, on the port its `PORT` setting
157
+ names, healthy when `/api/health` answers 200;
113
158
  - a check after it starts: `bin/shop-check --env /run/shop/env`.
@@ -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.331`
18
+ - Owner: `@jskit-ai/agent-docs@0.1.333`
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.331`
29
+ - Owner: `@jskit-ai/agent-docs@0.1.333`
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.69`
40
+ - Owner: `@jskit-ai/assistant-runtime@0.2.71`
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`
@@ -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.41`
51
+ - Owner: `@jskit-ai/oidc-issuer-core@0.1.43`
52
52
  - Read: [PATTERN.md](patterns/auth/accounts-hub/PATTERN.md)
53
53
  - Examples: [example/](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.43`
62
+ - Owner: `@jskit-ai/auth-web@0.2.45`
63
63
  - Read: [PATTERN.md](patterns/auth/auth-surface/PATTERN.md)
64
64
  - Examples: [example/](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.47`
73
+ - Owner: `@jskit-ai/auth-provider-oidc-core@0.2.49`
74
74
  - Read: [PATTERN.md](patterns/auth/oidc-sign-in/PATTERN.md)
75
75
  - Examples: [example/](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.32`
84
+ - Owner: `@jskit-ai/auth-provider-supabase-core@0.2.34`
85
85
  - Read: [PATTERN.md](patterns/auth/supabase-auth/PATTERN.md)
86
86
  - Examples: [example/](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.40`
95
+ - Owner: `@jskit-ai/connectors-catalog@0.2.41`
96
96
  - Read: [PATTERN.md](patterns/connectors/ai-connections/PATTERN.md)
97
97
  - Examples: [example/](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.40`
106
+ - Owner: `@jskit-ai/connectors-catalog@0.2.41`
107
107
  - Read: [PATTERN.md](patterns/connectors/api-key-connection/PATTERN.md)
108
108
  - Examples: [example/](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.40`
117
+ - Owner: `@jskit-ai/connectors-catalog@0.2.41`
118
118
  - Read: [PATTERN.md](patterns/connectors/assistant-mcp/PATTERN.md)
119
119
  - Examples: [example/](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.40`
128
+ - Owner: `@jskit-ai/connectors-catalog@0.2.41`
129
129
  - Read: [PATTERN.md](patterns/connectors/assistant-mcp-oauth/PATTERN.md)
130
130
  - Examples: [example/](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.40`
139
+ - Owner: `@jskit-ai/connectors-catalog@0.2.41`
140
140
  - Read: [PATTERN.md](patterns/connectors/aws-storage-queries/PATTERN.md)
141
141
  - Examples: [example/](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.39`
150
+ - Owner: `@jskit-ai/connector-google-calendar@0.2.40`
151
151
  - Read: [PATTERN.md](patterns/connectors/calendar-cli/PATTERN.md)
152
152
  - Examples: [example/](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.40`
161
+ - Owner: `@jskit-ai/connectors-catalog@0.2.41`
162
162
  - Read: [PATTERN.md](patterns/connectors/event-delivery/PATTERN.md)
163
163
  - Examples: [example/](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.40`
172
+ - Owner: `@jskit-ai/connectors-catalog@0.2.41`
173
173
  - Read: [PATTERN.md](patterns/connectors/firebase-messaging/PATTERN.md)
174
174
  - Examples: [example/](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.40`
183
+ - Owner: `@jskit-ai/connectors-catalog@0.2.41`
184
184
  - Read: [PATTERN.md](patterns/connectors/google-ads-search/PATTERN.md)
185
185
  - Examples: [example/](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.40`
194
+ - Owner: `@jskit-ai/connectors-catalog@0.2.41`
195
195
  - Read: [PATTERN.md](patterns/connectors/oauth-connection/PATTERN.md)
196
196
  - Examples: [example/](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.40`
205
+ - Owner: `@jskit-ai/connectors-catalog@0.2.41`
206
206
  - Read: [PATTERN.md](patterns/connectors/paddle-catalogue/PATTERN.md)
207
207
  - Examples: [example/](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.40`
216
+ - Owner: `@jskit-ai/connectors-catalog@0.2.41`
217
217
  - Read: [PATTERN.md](patterns/connectors/public-image/PATTERN.md)
218
218
  - Examples: [example/](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.40`
227
+ - Owner: `@jskit-ai/connectors-catalog@0.2.41`
228
228
  - Read: [PATTERN.md](patterns/connectors/redshift-queries/PATTERN.md)
229
229
  - Examples: [example/](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.40`
238
+ - Owner: `@jskit-ai/connectors-catalog@0.2.41`
239
239
  - Read: [PATTERN.md](patterns/connectors/source-scanning/PATTERN.md)
240
240
  - Examples: [example/](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.278`
249
+ - Owner: `@jskit-ai/console-web@0.1.280`
250
250
  - Read: [PATTERN.md](patterns/console/console-surface/PATTERN.md)
251
251
  - Examples: [example/](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.219`
260
+ - Owner: `@jskit-ai/resource-crud-core@0.1.220`
261
261
  - Read: [PATTERN.md](patterns/crud/crud-contract/PATTERN.md)
262
262
  - Examples: [example/](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.40`
271
+ - Owner: `@jskit-ai/crud-core@0.2.41`
272
272
  - Read: [PATTERN.md](patterns/crud/crud-feature-package/PATTERN.md)
273
273
  - Examples: [example/](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.44`
282
+ - Owner: `@jskit-ai/http-web@0.2.46`
283
283
  - Read: [PATTERN.md](patterns/crud/crud-screen-set/PATTERN.md)
284
284
  - Examples: [example/](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.273`
293
+ - Owner: `@jskit-ai/database-runtime-mysql@0.1.274`
294
294
  - Read: [PATTERN.md](patterns/database/mysql-application/PATTERN.md)
295
295
  - Examples: [example/](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.272`
304
+ - Owner: `@jskit-ai/database-runtime-postgres@0.1.273`
305
305
  - Read: [PATTERN.md](patterns/database/postgres-application/PATTERN.md)
306
306
  - Examples: [example/](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.217`
315
+ - Owner: `@jskit-ai/resource-core@0.1.218`
316
316
  - Read: [PATTERN.md](patterns/database/table-resource/PATTERN.md)
317
317
  - Examples: [example/](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.37`
326
+ - Owner: `@jskit-ai/mobile-capacitor@0.2.39`
327
327
  - Read: [PATTERN.md](patterns/mobile/android-application/PATTERN.md)
328
328
  - Examples: [example/](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.40`
337
+ - Owner: `@jskit-ai/realtime@0.2.42`
338
338
  - Read: [PATTERN.md](patterns/realtime/realtime-application/PATTERN.md)
339
339
  - Examples: [example/](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.55`
348
+ - Owner: `@jskit-ai/rewarded-web@0.2.57`
349
349
  - Read: [PATTERN.md](patterns/rewards/google-rewarded/PATTERN.md)
350
350
  - Examples: [example/](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.331`
359
+ - Owner: `@jskit-ai/agent-docs@0.1.333`
360
360
  - Read: [PATTERN.md](patterns/server/feature-package/PATTERN.md)
361
361
  - Examples: [example/](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.37`
370
+ - Owner: `@jskit-ai/shell-web@0.2.39`
371
371
  - Read: [PATTERN.md](patterns/shell/application-shell/PATTERN.md)
372
372
  - Examples: [example/](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.37`
381
+ - Owner: `@jskit-ai/shell-web@0.2.39`
382
382
  - Read: [PATTERN.md](patterns/ui/page-and-placement/PATTERN.md)
383
383
  - Examples: [example/](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.61`
392
+ - Owner: `@jskit-ai/users-web@0.2.63`
393
393
  - Read: [PATTERN.md](patterns/users/account-settings/PATTERN.md)
394
394
  - Examples: [example/](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.48`
403
+ - Owner: `@jskit-ai/users-core@0.2.50`
404
404
  - Read: [PATTERN.md](patterns/users/user-administration-server/PATTERN.md)
405
405
  - Examples: [example/](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.48`
414
+ - Owner: `@jskit-ai/workspaces-core@0.2.50`
415
415
  - Read: [PATTERN.md](patterns/workspaces/workspace-server/PATTERN.md)
416
416
  - Examples: [example/](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.61`
425
+ - Owner: `@jskit-ai/workspaces-web@0.2.63`
426
426
  - Read: [PATTERN.md](patterns/workspaces/workspace-surfaces/PATTERN.md)
427
427
  - Examples: [example/](patterns/workspaces/workspace-surfaces/example/)
428
428
  - Requires: `@jskit-ai/shell-web`, `@jskit-ai/workspaces-core`, `@jskit-ai/workspaces-web`
@@ -0,0 +1,8 @@
1
+ # Where this app runs: development, test, staging or production (the JSKIT Environments guide).
2
+ # `npm run develop`, `npm run dev` and `jskit test` set it themselves; `npm start` reads it here or from the host.
3
+ # Staging and production also need NODE_ENV=production.
4
+ APP_ENV=development
5
+
6
+ # Staging only: the one address every email goes to, and the one number every SMS goes to. Unset, each is logged.
7
+ # STAGING_EMAIL_TO=
8
+ # STAGING_SMS_TO=
@@ -26,11 +26,13 @@ factory or client provider), read the client features guide at
26
26
  Simple, direct code comes first: never add a layer, wrapper, registry or tiny
27
27
  module only to satisfy a rule. `npm run lint` checks its rules too.
28
28
 
29
- Before writing code that sends email, SMS, push notifications or payments, or
30
- calls another system, read the side effects guide at
31
- `https://mobily-enterprises.github.io/jskit-ai/guide/framework/side-effects`.
32
- Unless `SIDE_EFFECTS` is exactly `live`, the app is a test copy: it simulates
33
- them and logs them instead.
29
+ Before writing code that sends email, SMS, push notifications or payments,
30
+ calls another system, or depends on where the app runs, read the environments
31
+ guide at
32
+ `https://mobily-enterprises.github.io/jskit-ai/guide/framework/environments`.
33
+ `APP_ENV` (development, test, staging or production) decides all of it: only
34
+ production sends for real, staging sends email and SMS only to its test
35
+ addresses, and `NODE_ENV` only picks optimised builds.
34
36
 
35
37
  Before implementation, read the narrow relevant source pattern completely. If
36
38
  its owner package is installed, prefer that version-matched package-owned copy.
@@ -27,6 +27,8 @@ function waitForChild(child) {
27
27
  });
28
28
  }
29
29
 
30
+ // The development launcher runs the app in development, whatever .env or the shell says (the Environments guide).
31
+ process.env.APP_ENV = "development";
30
32
  const previewHost = String(process.env.HOST || "").trim() || "0.0.0.0";
31
33
  const previewPort = requiredPort(process.env.PORT || String(DEFAULT_PORT));
32
34
  let apiServer = null;
@@ -16,9 +16,9 @@
16
16
  "server:home": "SERVER_SURFACE=home node ./bin/server.js",
17
17
  "start": "node ./bin/server.js",
18
18
  "develop": "node ./bin/develop.js",
19
- "dev": "vite",
20
- "dev:all": "vite",
21
- "dev:home": "VITE_SURFACE=home vite",
19
+ "dev": "APP_ENV=development vite",
20
+ "dev:all": "APP_ENV=development vite",
21
+ "dev:home": "APP_ENV=development VITE_SURFACE=home vite",
22
22
  "build": "vite build",
23
23
  "build:all": "vite build",
24
24
  "build:home": "VITE_SURFACE=home vite build",
@@ -34,8 +34,8 @@
34
34
  "dependencies": {
35
35
  "@local/main": "0.1.0",
36
36
  "@fastify/static": "^10.1.3",
37
- "@jskit-ai/kernel": "0.2.26",
38
- "@jskit-ai/material-web": "0.1.8",
37
+ "@jskit-ai/kernel": "0.2.27",
38
+ "@jskit-ai/material-web": "0.1.9",
39
39
  "@tanstack/vue-query": "^5.101.0",
40
40
  "fastify": "^5.12.7",
41
41
  "pino": "^10.3.1",
@@ -44,13 +44,13 @@
44
44
  "vue": "^3.5.44",
45
45
  "vue-router": "^5.3.1",
46
46
  "vuetify": "^4.3.0",
47
- "@jskit-ai/http-runtime": "0.2.26",
47
+ "@jskit-ai/http-runtime": "0.2.27",
48
48
  "@fastify/fast-json-stringify-compiler": "^5.1.0",
49
49
  "@vue/devtools-api": "^8.2.1"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@jskit-ai/config-eslint": "0.1.252",
53
- "@jskit-ai/jskit-catalog": "0.2.83",
53
+ "@jskit-ai/jskit-catalog": "0.2.85",
54
54
  "@playwright/test": "1.61.1",
55
55
  "@vitejs/plugin-vue": "^6.0.7",
56
56
  "eslint": "^10.8.0",
@@ -0,0 +1,8 @@
1
+ # Where this app runs: development, test, staging or production (the JSKIT Environments guide).
2
+ # `npm run develop`, `npm run dev` and `jskit test` set it themselves; `npm start` reads it here or from the host.
3
+ # Staging and production also need NODE_ENV=production.
4
+ APP_ENV=development
5
+
6
+ # Staging only: the one address every email goes to, and the one number every SMS goes to. Unset, each is logged.
7
+ # STAGING_EMAIL_TO=
8
+ # STAGING_SMS_TO=
@@ -26,11 +26,13 @@ factory or client provider), read the client features guide at
26
26
  Simple, direct code comes first: never add a layer, wrapper, registry or tiny
27
27
  module only to satisfy a rule. `npm run lint` checks its rules too.
28
28
 
29
- Before writing code that sends email, SMS, push notifications or payments, or
30
- calls another system, read the side effects guide at
31
- `https://mobily-enterprises.github.io/jskit-ai/guide/framework/side-effects`.
32
- Unless `SIDE_EFFECTS` is exactly `live`, the app is a test copy: it simulates
33
- them and logs them instead.
29
+ Before writing code that sends email, SMS, push notifications or payments,
30
+ calls another system, or depends on where the app runs, read the environments
31
+ guide at
32
+ `https://mobily-enterprises.github.io/jskit-ai/guide/framework/environments`.
33
+ `APP_ENV` (development, test, staging or production) decides all of it: only
34
+ production sends for real, staging sends email and SMS only to its test
35
+ addresses, and `NODE_ENV` only picks optimised builds.
34
36
 
35
37
  Before implementation, read the narrow relevant source pattern completely. If
36
38
  its owner package is installed, prefer that version-matched package-owned copy.