feat(sdk,plugins): typage et stabilisation runtime UI/layout publique (#128)
This commit is contained in:
@ -3,8 +3,8 @@
|
||||
*
|
||||
* At UI bootstrap, the app calls {@link loadPlugins} once with the catalog
|
||||
* from `PluginGateway.listRuntimeContributions()` (already filtered by the
|
||||
* backend to `enabled && !pendingUninstall`, carnet §1.3) and the stable
|
||||
* gateways the plugin context exposes. For each entry it dynamically imports
|
||||
* backend to `enabled && !pendingUninstall`, carnet §1.3) and the gateway set
|
||||
* used to build the public service facade. For each entry it dynamically imports
|
||||
* the bundle URL, validates the module shape, and calls `activate(ctx)`,
|
||||
* scoping the command/layout registries to exactly the ids declared in that
|
||||
* plugin's manifest (enforced by {@link PluginCommandRegistry}/
|
||||
@ -29,7 +29,7 @@ import { createPluginServices, type PluginServices } from "./services";
|
||||
|
||||
export type { PluginGatewaySet } from "./registry";
|
||||
|
||||
export interface IdeaPluginContext extends PluginGatewaySet {
|
||||
export interface IdeaPluginContext {
|
||||
pluginId: string;
|
||||
pluginDisplayName: string;
|
||||
version: string;
|
||||
@ -251,7 +251,6 @@ async function loadOne(
|
||||
commands: createCommandContext(commands),
|
||||
layouts,
|
||||
menu,
|
||||
...gateways,
|
||||
};
|
||||
if (hasCapability(entry, "tooling")) {
|
||||
ctx.services = createPluginServices(gateways);
|
||||
|
||||
Reference in New Issue
Block a user