You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(plugin-dev): register all 17+ kernel services with dev stubs
- Add dev stub registration for all CoreServiceName services not covered
by real plugins (cache, queue, job, file-storage, search, automation,
graphql, analytics, realtime, notification, ai, i18n, ui, workflow)
- Add SecurityPlugin integration (RBAC, RLS, field masking)
- Register security sub-services as dev stubs when plugin unavailable
- Add Proxy-based createDevStub() that accepts any method call
- Add test for stub service registration and callable stubs
- Update tests: 7 tests covering full service coverage
- Add @objectstack/plugin-security as optional peer dependency
- Update README with full service coverage documentation
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copy file name to clipboardExpand all lines: packages/plugins/plugin-dev/README.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,17 @@
1
1
# @objectstack/plugin-dev
2
2
3
-
> Development Mode Plugin for ObjectStack — auto-enables all kernel services for a full-featured API development environment.
3
+
> Development Mode Plugin for ObjectStack — auto-enables **all 17+ kernel services** for a full-featured API development environment.
4
4
5
5
## Overview
6
6
7
-
Instead of manually wiring up ObjectQL, drivers, auth, HTTP server, REST endpoints, dispatcher, and metadata for local development, use `DevPlugin` to get a fully functional stack in one line.
7
+
Instead of manually wiring up ObjectQL, drivers, auth, HTTP server, REST endpoints, dispatcher, security, and metadata for local development, use `DevPlugin` to get a fully functional stack in one line.
8
8
9
9
The dev environment simulates **all kernel services** so you can:
10
10
- CRUD business objects via REST API
11
11
- Read, modify, and save views/apps/dashboards via metadata API (`PUT /api/v1/meta/:type/:name`)
12
12
- Use GraphQL, analytics, storage, and automation endpoints
13
13
- Authenticate with dev credentials (no real auth provider needed)
14
+
- Test UI permissions, workflows, and notifications with dev stubs
14
15
15
16
## Usage
16
17
@@ -61,17 +62,26 @@ plugins: [
61
62
62
63
## What it auto-configures
63
64
65
+
### Real plugin implementations
66
+
64
67
| Service | Package | Description |
65
68
|---------|---------|-------------|
66
69
| ObjectQL |`@objectstack/objectql`| Data engine (query, CRUD, hooks, metadata) |
67
70
| InMemoryDriver |`@objectstack/driver-memory`| In-memory database (no DB install) |
All services are **optional** — if a peer package isn't installed, it is silently skipped.
78
+
### Dev stubs (in-memory / no-op)
79
+
80
+
Any core kernel service not provided by a real plugin is automatically registered as a dev stub. This ensures the **full kernel service map** is populated and features like UI permissions, automation, etc. don't crash:
0 commit comments