webloom-framework 0.1.0 → 0.2.0

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.
@@ -2,10 +2,8 @@
2
2
  type LifecycleScopeKind = string;
3
3
  /** 作用域状态;stopping 表示已撤权但异步收尾还未结束。 */
4
4
  type LifecycleScopeState = "active" | "stopping" | "stopped";
5
- /** 插件默认存活范围;名称由宿主定义,单次请求可由宿主派生。 */
6
- type PluginLifetime = string;
7
- /** 插件运行代码所在环境;名称由宿主定义。 */
8
- type PluginExecution = string;
5
+ /** 浏览器中由 WebLoom 管理的真实 JavaScript 运行空间。 */
6
+ type RuntimeKind = "window-main" | "shared-worker";
9
7
  /** 权限动作名称;权限集合和最终 I/O allowlist 由宿主定义。 */
10
8
  type PluginPermission = string;
11
9
  /** 一个运行作用域的身份绑定;敏感句柄必须带上这些字段。 */
@@ -174,8 +172,8 @@ interface RemoteServiceReference {
174
172
  capabilityId: string;
175
173
  /** 提供该服务的运行实例;实例重建后必须变化。 */
176
174
  providerInstanceId: string;
177
- /** 提供者所在执行环境。 */
178
- execution: PluginExecution;
175
+ /** 提供者所在真实 Runtime。 */
176
+ runtime: RuntimeKind;
179
177
  /** 服务契约版本;第一阶段要求精确匹配。 */
180
178
  contractVersion: string;
181
179
  /** 提供环境的启动身份;重启后变化。 */
@@ -188,6 +186,8 @@ interface RemoteServiceReference {
188
186
  attributes: Readonly<Record<string, unknown>>;
189
187
  /** 当前服务目录状态。 */
190
188
  status: "starting" | "ready" | "unavailable" | "failed";
189
+ /** 该引用所属的物理端口连接;本地服务可省略。 */
190
+ connectionId?: string;
191
191
  /** 当前权威目录流修订号。 */
192
192
  snapshotRevision: number;
193
193
  /** 可选的外部授权标识;引用不是授权本身,Provider 仍需查权威状态。 */
@@ -256,8 +256,8 @@ interface RemoteServiceLookup {
256
256
  capabilityId: string;
257
257
  /** 要求的精确契约版本。 */
258
258
  contractVersion: string;
259
- /** 可选的预期提供环境。 */
260
- execution?: PluginExecution;
259
+ /** 可选的预期提供 Runtime。 */
260
+ runtime?: RuntimeKind;
261
261
  /** 可选的预期作用域。 */
262
262
  scopeId?: string;
263
263
  }
@@ -769,60 +769,57 @@ interface PluginContext<TConfig extends PluginConfig = PluginConfig, TExtension
769
769
  /** 宿主注入的只读配置;不与启停意图存储混用。 */
770
770
  readonly config?: TConfig;
771
771
  }
772
- /** 产品级依赖描述;简单插件可使用,跨环境单元应使用严格依赖。 */
773
- interface PluginDependency {
772
+ /** v1 运行时依赖;跨 Runtime 绑定必须使用精确契约版本和来源 Runtime。 */
773
+ interface RuntimeDependency {
774
774
  /** 依赖的 capability 标识。 */
775
775
  capability: string;
776
- /** 精确契约版本;跨环境依赖不得省略。 */
776
+ /** 精确契约版本;跨 Runtime 依赖必须显式填写,本地可由 helper 推导。 */
777
777
  contractVersion?: string;
778
- /** 提供者代码所在执行环境;由宿主定义。 */
779
- sourceExecution?: PluginExecution;
780
- /** 提供者允许存在的生命周期;由宿主定义。 */
781
- scope?: PluginLifetime;
778
+ /** 提供者实际运行空间;省略时由当前 Runtime 补齐。 */
779
+ sourceRuntime?: RuntimeKind;
782
780
  /** 可选的人类可读诊断说明。 */
783
781
  reason?: string;
784
782
  /** 缺失时只关闭局部能力,不阻止主体运行。 */
785
783
  optional?: boolean;
786
784
  }
785
+ /** 简单插件的产品级依赖别名。 */
786
+ type PluginDependency = RuntimeDependency;
787
787
  /** 运行单元的严格依赖描述。 */
788
788
  interface RuntimeUnitDependency {
789
789
  /** 依赖的 capability 标识。 */
790
790
  capability: string;
791
791
  /** 精确契约版本;第一阶段只接受完全匹配。 */
792
792
  contractVersion: string;
793
- /** 提供者实际运行环境。 */
794
- sourceExecution: PluginExecution;
795
- /** 提供者允许存在的生命周期。 */
796
- scope: PluginLifetime;
793
+ /** 提供者实际运行空间;跨 Runtime 依赖在 materialize/validate 边界必须补齐。 */
794
+ sourceRuntime: RuntimeKind;
797
795
  /** 可选的人类可读诊断说明。 */
798
796
  reason?: string;
799
797
  /** 缺失时只关闭局部能力;未填写表示硬依赖。 */
800
798
  optional?: boolean;
801
799
  }
800
+ /** 作者入口的未归一化 unit 依赖;进入 Host 前必须补齐版本和来源 Runtime。 */
801
+ type RuntimeUnitDependencyInput = Omit<RuntimeUnitDependency, "contractVersion" | "sourceRuntime"> & {
802
+ contractVersion?: string;
803
+ sourceRuntime?: RuntimeKind;
804
+ };
802
805
  /** 返回稳定的 capability 契约版本。 */
803
806
  declare function runtimeCapabilityContractVersion(capability: string): string;
804
807
  /** 将依赖清单补齐为严格运行单元依赖。 */
805
- declare function defineRuntimeUnitDependencies(dependencies: readonly Pick<PluginDependency, "capability" | "reason" | "optional">[], defaults?: Partial<Pick<RuntimeUnitDependency, "sourceExecution" | "scope">>): RuntimeUnitDependency[];
808
+ declare function defineRuntimeUnitDependencies(dependencies: readonly Pick<PluginDependency, "capability" | "reason" | "optional">[], defaults: {
809
+ sourceRuntime: RuntimeKind;
810
+ }): RuntimeUnitDependency[];
806
811
  /** 为运行单元生成精确的 capability 契约版本表。 */
807
812
  declare function defineRuntimeUnitProvidedContracts(capabilities: readonly string[]): Record<string, string>;
808
813
  /** 插件在产品清单中的启动要求。 */
809
814
  type PluginStartupMode = "required" | "optional";
810
- /** 插件展示元数据;kind、group execution 都由宿主或产品定义。 */
815
+ /** 插件装配元数据;v1 不解释产品分类字段。 */
811
816
  interface PluginMeta {
812
- /** 产品自定义分类,不由 WebLoom 解释。 */
813
- kind?: string;
814
817
  /** 首次装配时默认是否启用。 */
815
818
  defaultEnabled: boolean;
816
819
  /** 是否允许产品控制面禁用。 */
817
820
  canDisable: boolean;
818
821
  /** 是否属于启动必需插件。 */
819
822
  startup?: PluginStartupMode;
820
- /** 产品自定义展示分组。 */
821
- displayGroup?: string;
822
- /** 默认运行生命周期;未填写时使用宿主默认值。 */
823
- lifetime?: PluginLifetime;
824
- /** 默认执行环境;不从 UI 或实现类型推断。 */
825
- execution?: PluginExecution;
826
823
  }
827
824
  /** 插件 setup 返回的清理函数。 */
828
825
  type PluginTeardown = () => void | Promise<void>;
@@ -837,10 +834,8 @@ interface RuntimeUnitImplementationRegistry<TConfig extends PluginConfig = Plugi
837
834
  interface RuntimeUnitDescriptor<TContribution = PluginContribution, TConfig extends PluginConfig = PluginConfig> {
838
835
  /** 稳定运行单元标识。 */
839
836
  id: string;
840
- /** 运行代码所在环境。 */
841
- execution: PluginExecution;
842
- /** 依附的作用域寿命。 */
843
- lifetime: PluginLifetime;
837
+ /** 运行代码所在真实 Runtime。 */
838
+ runtime: RuntimeKind;
844
839
  /** 本单元所需的精确 capability 契约。 */
845
840
  dependencies?: RuntimeUnitDependency[];
846
841
  /** 本单元提供的 capability。 */
@@ -854,6 +849,11 @@ interface RuntimeUnitDescriptor<TContribution = PluginContribution, TConfig exte
854
849
  /** 单元专属只读配置声明或装配默认值。 */
855
850
  config?: TConfig;
856
851
  }
852
+ /** 作者入口的未归一化运行单元;runtime 可由 createWindowApp/startSharedWorkerApp 注入。 */
853
+ type RuntimeUnitDescriptorInput<TContribution = PluginContribution, TConfig extends PluginConfig = PluginConfig> = Omit<RuntimeUnitDescriptor<TContribution, TConfig>, "runtime" | "dependencies"> & {
854
+ runtime?: RuntimeKind;
855
+ dependencies?: readonly RuntimeUnitDependencyInput[];
856
+ };
857
857
  /** 插件清单;插件作者导出的唯一静态描述。 */
858
858
  interface PluginManifest<TContribution = PluginContribution, TConfig extends PluginConfig = PluginConfig, TExtension extends PluginContextExtension = PluginContextExtension> {
859
859
  /** 全局稳定产品标识。 */
@@ -877,6 +877,10 @@ interface PluginManifest<TContribution = PluginContribution, TConfig extends Plu
877
877
  /** 简单插件的只读配置。 */
878
878
  config?: TConfig;
879
879
  }
880
+ /** 作者入口的未归一化静态清单;进入 Host 前必须 materialize 成 PluginManifest。 */
881
+ type PluginManifestInput<TContribution = PluginContribution, TConfig extends PluginConfig = PluginConfig, TExtension extends PluginContextExtension = PluginContextExtension> = Omit<PluginManifest<TContribution, TConfig, TExtension>, "units"> & {
882
+ units?: readonly RuntimeUnitDescriptorInput<TContribution, TConfig>[];
883
+ };
880
884
  /** 插件运行状态类别;registered 不代表已经运行。 */
881
885
  type PluginStateKind = "registered" | "starting" | "stopping" | "enabled" | "disabled" | "blocked" | "error-disabled" | "cleanup-pending" | "unknown";
882
886
  /** 对外稳定的产品运行语义。 */
@@ -912,8 +916,8 @@ interface PluginUnitState {
912
916
  pluginId: string;
913
917
  /** 稳定运行单元标识。 */
914
918
  unitId: string;
915
- /** 运行环境。 */
916
- execution: PluginExecution;
919
+ /** 真实运行空间。 */
920
+ runtime: RuntimeKind;
917
921
  /** 当前运行实例。 */
918
922
  instanceId?: string;
919
923
  /** 当前意图修订。 */
@@ -961,8 +965,8 @@ interface PluginUnitGraph {
961
965
  pluginId: string;
962
966
  /** 稳定运行单元标识。 */
963
967
  unitId: string;
964
- /** 运行环境。 */
965
- execution: PluginExecution;
968
+ /** 真实运行空间。 */
969
+ runtime: RuntimeKind;
966
970
  /** capability 依赖。 */
967
971
  dependencies: string[];
968
972
  /** 精确依赖描述。 */
@@ -993,6 +997,8 @@ interface StartupCapabilityErrorDetails {
993
997
  interface StartupPluginErrorDetails {
994
998
  /** 产品标识。 */
995
999
  pluginId: string;
1000
+ /** 失败的运行单元。 */
1001
+ unitId?: string;
996
1002
  /** 能力列表。 */
997
1003
  capabilities: string[];
998
1004
  /** 当前状态。 */
@@ -1115,37 +1121,6 @@ interface PluginConfigStore {
1115
1121
  }
1116
1122
  /** 创建内存配置端口;产品可通过 configStore 注入持久化实现。 */
1117
1123
  declare function createInMemoryPluginConfigStore(initial?: Readonly<Record<string, boolean>>, readOnly?: boolean): PluginConfigStore;
1118
- /** ScopeResolver 的输入;宿主可以基于当前状态决定 Scope 是否存在。 */
1119
- interface ScopeResolverInput {
1120
- /** 产品标识。 */
1121
- pluginId: string;
1122
- /** 稳定运行单元标识。 */
1123
- unitId: string;
1124
- /** 当前单元声明的生命周期标签。 */
1125
- lifetime: PluginLifetime;
1126
- /** 完整静态清单。 */
1127
- manifest: PluginManifest;
1128
- }
1129
- /** 一个运行单元当前是否可以挂载。 */
1130
- interface ScopeResolution {
1131
- /** 是否允许创建实例 Scope。 */
1132
- available: boolean;
1133
- /** 不可用时的稳定诊断原因。 */
1134
- reason?: string;
1135
- /** 父 Scope;未提供时使用 Host 根 Scope。 */
1136
- parent?: LifecycleScope;
1137
- /** Scope 身份的只读扩展属性。 */
1138
- attributes?: Readonly<Record<string, unknown>>;
1139
- /** 宿主用于检测身份变化的稳定键。 */
1140
- key?: string;
1141
- }
1142
- /** Scope 状态变化订阅端口。 */
1143
- interface ScopeResolver {
1144
- /** 解析当前单元是否具备可用父 Scope。 */
1145
- resolve(input: ScopeResolverInput): ScopeResolution;
1146
- /** 状态变化后通知 Host 重新协调;可选。 */
1147
- subscribe?(listener: () => void): () => void;
1148
- }
1149
1124
  /** 权限策略输入;申请、批准和会话约束必须分开计算。 */
1150
1125
  interface PermissionPolicyInput {
1151
1126
  /** 产品标识。 */
@@ -1208,24 +1183,38 @@ interface ContributionAdapter {
1208
1183
  /** 注册一份泛型贡献。 */
1209
1184
  register(input: ContributionAdapterInput): void | ContributionHandle | (() => void | Promise<void>) | Promise<void | ContributionHandle | (() => void | Promise<void>)>;
1210
1185
  }
1186
+ /** 运行单元可用性检查;返回稳定原因表示当前实例不能装配。 */
1187
+ interface RuntimeUnitAvailabilityInput {
1188
+ /** 产品标识。 */
1189
+ pluginId: string;
1190
+ /** 运行单元标识。 */
1191
+ unitId: string;
1192
+ /** 真实 Runtime。 */
1193
+ runtime: RuntimeKind;
1194
+ }
1195
+ /** 新运行单元 Scope 的身份属性输入。 */
1196
+ interface RuntimeUnitAttributesInput extends RuntimeUnitAvailabilityInput {
1197
+ /** 静态产品清单。 */
1198
+ manifest: PluginManifest;
1199
+ }
1200
+ /** 为运行单元选择父 Scope;未提供时运行单元直接挂在 Host 根 Scope。 */
1201
+ type RuntimeUnitParentScopeInput = RuntimeUnitAttributesInput;
1211
1202
  /** 通用运行单元快照;用于展示远端单元未知/恢复状态。 */
1212
1203
  interface RuntimeUnitSnapshot {
1213
1204
  /** 产品标识。 */
1214
1205
  pluginId: string;
1215
1206
  /** 单元标识。 */
1216
1207
  unitId: string;
1217
- /** 执行环境。 */
1218
- execution: string;
1208
+ /** 真实 Runtime。 */
1209
+ runtime: RuntimeKind;
1219
1210
  /** 远端实例标识。 */
1220
1211
  instanceId?: string;
1221
1212
  /** 远端当前状态。 */
1222
1213
  state: PluginStateKind;
1223
1214
  }
1224
1215
  interface CreatePluginHostOptions {
1225
- /** 当前 Host 所在执行环境;用于选择运行单元。 */
1226
- execution?: string;
1227
- /** 默认插件生命周期。 */
1228
- defaultLifetime?: string;
1216
+ /** 当前 Host 所在真实 Runtime。 */
1217
+ runtime?: RuntimeKind;
1229
1218
  /** 根 Scope 的宿主只读属性。 */
1230
1219
  rootAttributes?: Readonly<Record<string, unknown>>;
1231
1220
  /** 预注入的内建 capability;不归属于任何插件实例。 */
@@ -1240,8 +1229,6 @@ interface CreatePluginHostOptions {
1240
1229
  contextExtension?: (input: ContextExtensionInput) => Readonly<Record<string, unknown>>;
1241
1230
  /** 校验产品清单中的宿主扩展字段。 */
1242
1231
  manifestValidator?: (manifest: PluginManifest) => void;
1243
- /** 解析当前生命周期是否存在以及其父 Scope。 */
1244
- scopeResolver?: ScopeResolver;
1245
1232
  /** 计算权限批准与会话交集。 */
1246
1233
  permissionPolicy?: (input: PermissionPolicyInput) => PermissionPolicyResult;
1247
1234
  /** 启停意图持久化端口。 */
@@ -1254,12 +1241,22 @@ interface CreatePluginHostOptions {
1254
1241
  serviceBridgeForPlugin?: (pluginId: string, instanceId: string) => RemoteServiceBridge | undefined;
1255
1242
  /** 当前执行环境的运行单元实现注册表。 */
1256
1243
  runtimeUnitImplementationRegistry?: RuntimeUnitImplementationRegistry;
1244
+ /** 当前身份/授权不允许装配时返回稳定的 blockedBy 原因。 */
1245
+ runtimeUnitAvailability?: (input: RuntimeUnitAvailabilityInput) => string | undefined;
1246
+ /** 为每次新建运行单元 Scope 生成当前绑定的只读属性。 */
1247
+ runtimeUnitAttributes?: (input: RuntimeUnitAttributesInput) => Readonly<Record<string, unknown>> | undefined;
1248
+ /** 为每次新建运行单元 Scope 选择生命周期父级;返回 undefined 使用 Host 根 Scope。 */
1249
+ runtimeUnitParentScope?: (input: RuntimeUnitParentScopeInput) => LifecycleScope | undefined;
1257
1250
  /** 贡献适配器集合。 */
1258
1251
  contributionAdapters?: readonly ContributionAdapter[];
1259
1252
  /** 允许每一项清理等待的时间。 */
1260
1253
  lifecycleCleanupTimeoutMs?: number;
1261
1254
  /** 读取远端单元真实状态。 */
1262
1255
  runtimeSnapshots?: () => readonly RuntimeUnitSnapshot[];
1256
+ /** 读取其它真实 Runtime 当前已接受的服务目录。 */
1257
+ remoteServiceReferences?: () => readonly RemoteServiceReference[];
1258
+ /** 允许来源 Runtime 不同且尚未出现在本地 manifest 集合中的依赖。 */
1259
+ externalRuntimeDependencies?: boolean;
1263
1260
  }
1264
1261
  declare class StartupCapabilityError extends Error {
1265
1262
  readonly details: StartupCapabilityErrorDetails[];
@@ -1327,6 +1324,8 @@ interface PluginHost {
1327
1324
  ok: false;
1328
1325
  reason: string;
1329
1326
  }>;
1327
+ /** 暂停当前实例但保留启用意图;供宿主身份世代切换时撤权重建。 */
1328
+ suspend(pluginId: string, reason?: string): Promise<void>;
1330
1329
  /** 从 Host 删除一个插件。 */
1331
1330
  unregister(pluginId: string): Promise<void>;
1332
1331
  /** 停止所有实例并释放根 Scope。 */
@@ -1337,4 +1336,4 @@ interface PluginHost {
1337
1336
  }): void;
1338
1337
  }
1339
1338
 
1340
- export { type PluginContribution as $, type LifecycleScopeState as A, type Message as B, type CreateUpgradeGateOptions as C, type DispatchOptions as D, type EventHandler as E, type MessageBusSnapshot as F, type MessageHandler as G, type HandlerOptions as H, type MessageMode as I, PermissionDeniedError as J, type PermissionLeaseBinding as K, type LifecycleScope as L, type MessageBus as M, type PermissionLeaseBindingExpectation as N, type OwnedResourceDefinition as O, type PluginExecution as P, PermissionLeaseRevokedError as Q, type RemoteServiceHandshake as R, type ScopedTaskScheduler as S, type PermissionPolicyInput as T, type UpgradeGate as U, type PermissionPolicyResult as V, type PluginAttributes as W, type PluginConfig as X, type PluginConfigStore as Y, type PluginContext as Z, type PluginContextExtension as _, type PluginManifest as a, createInMemoryPluginConfigStore as a$, type PluginHost as a0, type PluginIntentCommand as a1, type PluginIntentCommandResult as a2, type PluginIntentController as a3, type PluginIntentCoordinator as a4, type PluginIntentSnapshot as a5, type PluginIntentSubmissionResult as a6, type PluginLifecycleState as a7, type PluginLifetime as a8, type PluginMeta as a9, type ResourceRegistry as aA, type ResourceSnapshot as aB, type ResourceStatus as aC, type ResourceStoreApi as aD, type RuntimeUnitDependency as aE, type RuntimeUnitDescriptor as aF, type RuntimeUnitImplementationRegistry as aG, type RuntimeUnitSnapshot as aH, SCOPED_TASK_SCHEDULER_CAPABILITY as aI, type ScopeResolution as aJ, type ScopeResolver as aK, type ScopeResolverInput as aL, type ScopedTaskDefinition as aM, type ScopedTaskSnapshot as aN, StartupCapabilityError as aO, type StartupCapabilityErrorDetails as aP, StartupPluginError as aQ, type StartupPluginErrorDetails as aR, type UpgradeDrainResult as aS, UpgradeGateRejectedError as aT, type UpgradeGateState as aU, type UpgradeHandshake as aV, type UpgradeHandshakeResult as aW, type UpgradeIoLease as aX, type UpgradeMode as aY, type UpgradeSession as aZ, createCapabilityRegistry as a_, type PluginSetup as aa, type PluginStartupMode as ab, type PluginState as ac, type PluginStateKind as ad, type PluginTeardown as ae, type PluginUnitGraph as af, type PluginUnitState as ag, type PublishOptions as ah, RESOURCE_OWNER as ai, RESOURCE_REGISTRY_CAPABILITY as aj, RUNTIME_MESSAGE_BUS as ak, type RemoteServiceBridge as al, type RemoteServiceBridgeState as am, type RemoteServiceCallContext as an, type RemoteServiceLookup as ao, type RemoteServiceMessageKind as ap, type RemoteServicePortControlMessage as aq, type RemoteServiceProxy as ar, type RemoteServiceReference as as, type RemoteServiceSnapshotResult as at, type RemoteServiceTransport as au, RemoteServiceUnavailableError as av, type RequestOptions as aw, type ResourceContext as ax, type ResourceDefinition as ay, type ResourceKey as az, type PluginGraph as b, createPluginHost as b0, createRemoteServiceMessageCodec as b1, createResourceStore as b2, defineRuntimeUnitDependencies as b3, defineRuntimeUnitProvidedContracts as b4, lifecycleErrorText as b5, runtimeCapabilityContractVersion as b6, type PluginDependency as c, type PluginReverseDep as d, type LifecycleScopeIdentity as e, type PluginPermission as f, type PermissionLease as g, type RemoteServiceSnapshot as h, type RemoteServiceMessageCodec as i, type CapabilityRegistry as j, type ContextExtensionInput as k, type ContributionAdapter as l, type ContributionAdapterInput as m, type ContributionHandle as n, type CreatePluginHostOptions as o, type HostListener as p, LIFECYCLE_ERROR_TEXT as q, type LifecycleCleanup as r, type LifecycleCleanupIssue as s, type LifecycleCleanupPhase as t, type LifecycleDisposeOptions as u, type LifecycleDisposeResult as v, type LifecycleResourceHandle as w, type LifecycleResourceSnapshot as x, type LifecycleScopeKind as y, LifecycleScopeRevokedError as z };
1339
+ export { type MessageHandler as $, type ContextExtensionInput as A, type ContributionAdapter as B, type CreatePluginHostOptions as C, type ContributionAdapterInput as D, type ContributionHandle as E, type DispatchOptions as F, type EventHandler as G, type HandlerOptions as H, type HostListener as I, LIFECYCLE_ERROR_TEXT as J, type LifecycleCleanup as K, type LifecycleDisposeResult as L, type MessageBus as M, type LifecycleCleanupIssue as N, type LifecycleCleanupPhase as O, type PluginManifest as P, type LifecycleDisposeOptions as Q, type RuntimeKind as R, type ScopedTaskScheduler as S, type LifecycleResourceHandle as T, type UpgradeGate as U, type LifecycleResourceSnapshot as V, type LifecycleScopeKind as W, LifecycleScopeRevokedError as X, type LifecycleScopeState as Y, type Message as Z, type MessageBusSnapshot as _, type PluginGraph as a, type UpgradeMode as a$, type MessageMode as a0, type OwnedResourceDefinition as a1, PermissionDeniedError as a2, type PermissionLeaseBinding as a3, type PermissionLeaseBindingExpectation as a4, PermissionLeaseRevokedError as a5, type PermissionPolicyInput as a6, type PermissionPolicyResult as a7, type PluginAttributes as a8, type PluginConfigStore as a9, type ResourceDefinition as aA, type ResourceKey as aB, type ResourceRegistry as aC, type ResourceSnapshot as aD, type ResourceStatus as aE, type ResourceStoreApi as aF, type RuntimeUnitAttributesInput as aG, type RuntimeUnitAvailabilityInput as aH, type RuntimeUnitDependency as aI, type RuntimeUnitDependencyInput as aJ, type RuntimeUnitDescriptor as aK, type RuntimeUnitImplementationRegistry as aL, type RuntimeUnitParentScopeInput as aM, type RuntimeUnitSnapshot as aN, SCOPED_TASK_SCHEDULER_CAPABILITY as aO, type ScopedTaskDefinition as aP, type ScopedTaskSnapshot as aQ, StartupCapabilityError as aR, type StartupCapabilityErrorDetails as aS, StartupPluginError as aT, type StartupPluginErrorDetails as aU, type UpgradeDrainResult as aV, UpgradeGateRejectedError as aW, type UpgradeGateState as aX, type UpgradeHandshake as aY, type UpgradeHandshakeResult as aZ, type UpgradeIoLease as a_, type PluginContext as aa, type PluginIntentCommand as ab, type PluginIntentCommandResult as ac, type PluginIntentController as ad, type PluginIntentCoordinator as ae, type PluginIntentSnapshot as af, type PluginIntentSubmissionResult as ag, type PluginLifecycleState as ah, type PluginStartupMode as ai, type PluginState as aj, type PluginTeardown as ak, type PluginUnitGraph as al, type PublishOptions as am, RESOURCE_OWNER as an, RESOURCE_REGISTRY_CAPABILITY as ao, RUNTIME_MESSAGE_BUS as ap, type RemoteServiceBridgeState as aq, type RemoteServiceCallContext as ar, type RemoteServiceLookup as as, type RemoteServiceMessageKind as at, type RemoteServicePortControlMessage as au, type RemoteServiceSnapshotResult as av, type RemoteServiceTransport as aw, RemoteServiceUnavailableError as ax, type RequestOptions as ay, type ResourceContext as az, type PluginDependency as b, type UpgradeSession as b0, createCapabilityRegistry as b1, createInMemoryPluginConfigStore as b2, createPluginHost as b3, createRemoteServiceMessageCodec as b4, createResourceStore as b5, defineRuntimeUnitDependencies as b6, defineRuntimeUnitProvidedContracts as b7, lifecycleErrorText as b8, runtimeCapabilityContractVersion as b9, type PluginReverseDep as c, type PluginContribution as d, type PluginConfig as e, type PluginContextExtension as f, type PluginManifestInput as g, type RuntimeUnitDescriptorInput as h, type PluginSetup as i, type RuntimeDependency as j, type PluginPermission as k, type PluginMeta as l, type PluginStateKind as m, type RemoteServiceReference as n, type RemoteServiceMessageCodec as o, type PluginUnitState as p, type RemoteServiceBridge as q, type RemoteServiceProxy as r, type PluginHost as s, type LifecycleScope as t, type LifecycleScopeIdentity as u, type PermissionLease as v, type CreateUpgradeGateOptions as w, type RemoteServiceHandshake as x, type RemoteServiceSnapshot as y, type CapabilityRegistry as z };