Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 8
feat(plugin-dev): auto-load plugin-setup as step 3c in DevPlugin#1002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
438f66d509f8712acba183bfda2cFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -339,7 +339,7 @@ export interface DevPluginOptions { | ||||||||||||||||||||||||||||||||
| * Override which services to enable. By default all core services are enabled. | ||||||||||||||||||||||||||||||||
| * Set a service name to `false` to skip it. | ||||||||||||||||||||||||||||||||
| * | ||||||||||||||||||||||||||||||||
| * Available services: 'objectql', 'driver', 'auth', 'server', 'rest', | ||||||||||||||||||||||||||||||||
| * Available services: 'objectql', 'driver', 'auth', 'setup', 'server', 'rest', | ||||||||||||||||||||||||||||||||
| * 'dispatcher', 'security', plus any of the 17 CoreServiceName values | ||||||||||||||||||||||||||||||||
| * (e.g. 'cache', 'queue', 'job', 'ui', 'automation', 'workflow', …). | ||||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||||
| @@ -405,6 +405,7 @@ export interface DevPluginOptions { | ||||||||||||||||||||||||||||||||
| * | ObjectQL | `@objectstack/objectql` | Data engine (query, CRUD, hooks) | | ||||||||||||||||||||||||||||||||
| * | Driver | `@objectstack/driver-memory` | In-memory database (no DB install) | | ||||||||||||||||||||||||||||||||
| * | Auth | `@objectstack/plugin-auth` | Authentication with dev credentials | | ||||||||||||||||||||||||||||||||
| * | Setup | `@objectstack/plugin-setup` | Platform Setup App (admin UI navigation) | | ||||||||||||||||||||||||||||||||
| * | Security | `@objectstack/plugin-security` | RBAC, RLS, field-level masking | | ||||||||||||||||||||||||||||||||
| * | HTTP Server | `@objectstack/plugin-hono-server` | HTTP server on configured port | | ||||||||||||||||||||||||||||||||
| * | REST API | `@objectstack/rest` | Auto-generated CRUD + metadata endpoints | | ||||||||||||||||||||||||||||||||
| @@ -530,6 +531,18 @@ export class DevPlugin implements Plugin { | ||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||
| // 3c. Setup Plugin — platform Setup App with area-based navigation | ||||||||||||||||||||||||||||||||
| if (enabled('setup')) { | ||||||||||||||||||||||||||||||||
| try { | ||||||||||||||||||||||||||||||||
| const { SetupPlugin } = await import('@objectstack/plugin-setup') as any; | ||||||||||||||||||||||||||||||||
| const setupPlugin = new SetupPlugin(); | ||||||||||||||||||||||||||||||||
| this.childPlugins.push(setupPlugin); | ||||||||||||||||||||||||||||||||
| ctx.logger.info(' ✔ Setup plugin enabled (platform Setup App)'); | ||||||||||||||||||||||||||||||||
| } catch { | ||||||||||||||||||||||||||||||||
| ctx.logger.debug(' ℹ @objectstack/plugin-setup not installed — skipping Setup App'); | ||||||||||||||||||||||||||||||||
CopilotAI | ||||||||||||||||||||||||||||||||
| ctx.logger.debug(' ℹ @objectstack/plugin-setup not installed — skipping Setup App'); | |
| ctx.logger.debug(' ℹ @objectstack/plugin-setup not installed — skipping Setup App'); | |
| // Provide a minimal in-memory setupNav service so tests and dev environments | |
| // can still rely on its presence when setup is enabled, even if the plugin | |
| // package is not installed. | |
| if(typeofctx.registerService==='function'){ | |
| constsetupNavService={ | |
| // Returns an empty navigation tree by default; real navigation is provided | |
| // by @objectstack/plugin-setup when available. | |
| asyncgetNavTree(){ | |
| return[]; | |
| }, | |
| }; | |
| ctx.registerService('setupNav',setupNavServiceasany); | |
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
CopilotAIMar 31, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The JSDoc "Core services (real implementations)" table lists
AuthbeforeSetup, but ininit()the Setup plugin is loaded before Auth (step 3c before step 4). Please reorder the rows (or clarify ordering) so the documentation matches the actual plugin initialization order.