Owns the slot; serves it at /api/cli/commands. The contributions are read off the slot at boot; each call attributes them to the packages of the plugin host as it is then.
API
@Module({
contributes: {
"HttpModule.routes": [
{
id: "PluginCliCommandsProvider.routes",
prefix: "/api/cli/commands",
auth: "user",
order: 66,
},
],
},
})
export class PluginCliCommandsProvider {
@Use() private readonly hmr!: Hmr;
@Use() private readonly access!: Access;
@Use() private readonly sessions!: SessionIndex;
@Use() private readonly users!: Users;
@Use() private readonly drivers!: SessionDrivers;
@Use() private readonly projectConfig!: ProjectConfigStore;
@Use() private readonly db!: Db;
@Provide() pluginCliCommands!: PluginCliCommands;
@Bind("PluginCliCommandsProvider.routes") routes!: Hono<AppEnv>;
setup({ contributions }: ClassCtx);
}Dependencies & Wiring
Extracted from class decorators@Userequires (7)
hmr: Hmr · access: Access · sessions: SessionIndex · users: Users · drivers: SessionDrivers · projectConfig: ProjectConfigStore · db: Db@Bindbinds (1)
routes → PluginCliCommandsProvider.routes: Hono<AppEnv>Contributes
{
"HttpModule.routes": [
{
"id": "PluginCliCommandsProvider.routes",
"prefix": "/api/cli/commands",
"auth": "user",
"order": 66
}
]
}Target slots: HttpModule.routes
Children (0)
No child modules or components declared in @Module.
Exports (0)
None (module-private).