@happyvertical/smrt-users 0.57.14 → 0.57.16
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/README.md +27 -0
- package/dist/chunks/{TerminalAuthService-DlNv0fkn.js → TerminalAuthService-BSHq7edu.js} +20 -8
- package/dist/chunks/{TerminalAuthService-DlNv0fkn.js.map → TerminalAuthService-BSHq7edu.js.map} +1 -1
- package/dist/index.js +3 -3
- package/dist/manifest.json +1 -1
- package/dist/smrt-knowledge.json +4 -4
- package/dist/sveltekit/resource-list-handler.d.ts.map +1 -1
- package/dist/sveltekit.js +53 -19
- package/dist/sveltekit.js.map +1 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -1686,3 +1686,30 @@ settings. Instance-only storage fails closed on an invalidated connection; it
|
|
|
1686
1686
|
never silently drops PRAGMAs or temporary state. PostgreSQL does not require
|
|
1687
1687
|
this option. The [transaction notes](agents/oauth-authorization.md#recoverable-local-sqlite-connections)
|
|
1688
1688
|
show the factory contract.
|
|
1689
|
+
|
|
1690
|
+
### HTTP CLI collection action discovery
|
|
1691
|
+
|
|
1692
|
+
`createResourceListHandler` can discover custom actions on registered typed
|
|
1693
|
+
collections when `cli.include` names the methods and the API exposes them.
|
|
1694
|
+
Generated SvelteKit startup supplies the action host's discovery metadata,
|
|
1695
|
+
including collection ancestry; an undecorated domain collection parent retains
|
|
1696
|
+
its inherited behavior without extra annotations. Collection defaults,
|
|
1697
|
+
wildcard-only includes, and `mirror: 'api'` alone stay hidden; collection CRUD is never advertised. Static and instance collection
|
|
1698
|
+
methods use collection-scoped URLs. Explicit `@smrt({ collection })` chooses
|
|
1699
|
+
the route namespace independently of the backing model's storage.
|
|
1700
|
+
|
|
1701
|
+
When a collection inherits its item's namespace and both expose commands,
|
|
1702
|
+
discovery composes disjoint commands under the model's resource identity.
|
|
1703
|
+
The generated startup binds the exact live host constructor; composition requires
|
|
1704
|
+
that host's registered item model and the same canonical collection receiver.
|
|
1705
|
+
Each command retains its originating class's policy context and HTTP route.
|
|
1706
|
+
Denied commands are omitted independently. Explicit duplicate namespaces,
|
|
1707
|
+
unrelated resources, multiple hosts and overlapping command names/routes still
|
|
1708
|
+
fail closed as configuration collisions.
|
|
1709
|
+
|
|
1710
|
+
The existing `commandPolicy` filters these commands with the same session and
|
|
1711
|
+
class metadata as model resources. Discovery does not authorize execution or
|
|
1712
|
+
rows. Generated collection action writes still require the **item model's**
|
|
1713
|
+
collection permission (for example `items.submit`, even if the route is
|
|
1714
|
+
`/api/operations/submit`), and domain actions retain their tenant checks. See
|
|
1715
|
+
[collection action resources](../core/agents/generators.md#explicit-collection-action-resources).
|