@happyvertical/smrt-users 0.55.11 → 0.55.13

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.
package/AGENTS.md CHANGED
@@ -55,8 +55,11 @@ are not prerequisites for unrelated user-package work.
55
55
  - Generated REST/MCP operations on identity/RBAC models are list/get only.
56
56
  Route authentication does not authorize authority mutations, and these models
57
57
  are not tenant-scoped. Use permission-gated services or explicitly checked
58
- consumer handlers. CLI remains a local-operator surface. Preserve the
59
- registry assertions in `security-audit-1400.test.ts`.
58
+ consumer handlers. Generated CLI is list/get or closed (`cli: false` for
59
+ credential/grant models) because agents shell out to it; a `cli` without
60
+ `include` is full CRUD (#3742). Their catalog slugs stay full via
61
+ `USERS_AUTHORITY_CATALOG_MODELS`. Preserve the registry assertions in
62
+ `security-audit-1400.test.ts` and `issue-3742-cli-surface-lockdown.test.ts`.
60
63
  - Resource guards take the resource tenant, not the session tenant. Omit a
61
64
  session membership when targeting a different tenant; mismatches fail closed.
62
65
  `loadSessionContext().tenantAuthorization` must be checked by required-tenant
package/README.md CHANGED
@@ -362,6 +362,12 @@ await createSessionCookie(event, userId, tenantId, { db }); // login
362
362
  await destroySessionCookie(event, { db }); // logout
363
363
  ```
364
364
 
365
+ The handler only handles its own session/context initialization failures:
366
+ without `postgresRls` the request continues once with empty locals; with
367
+ `postgresRls` it returns 500. Errors thrown downstream of `resolve()` —
368
+ including SvelteKit `redirect()` from a later handle — propagate unchanged and
369
+ the downstream chain runs exactly once.
370
+
365
371
  ### OIDC login with Kanidm or Dex
366
372
 
367
373
  Kanidm and Dex both work through the generic s-m-r-t OIDC flow. Configure one or