@uibot/core 0.0.0-stage → 0.2.1
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.
- package/dist/bootstrap.d.ts +24 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +820 -0
- package/package.json +38 -4
- package/README.md +0 -3
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type CreateUIBotRuntimeOptions, type UIBotRuntime } from "@uibot/application";
|
|
2
|
+
import type { Catalog, UIBotPlugin, PermissionDescriptor, PluginHealthReport, PluginHostLogger } from "@uibot/contracts";
|
|
3
|
+
import { PluginHost } from "@uibot/kernel";
|
|
4
|
+
export interface RegisterUIBotPluginsOptions {
|
|
5
|
+
plugins: UIBotPlugin[];
|
|
6
|
+
engineVersion?: string;
|
|
7
|
+
sdkVersion?: string;
|
|
8
|
+
permissions?: PermissionDescriptor["resource"][];
|
|
9
|
+
logger?: PluginHostLogger;
|
|
10
|
+
}
|
|
11
|
+
export interface RegisteredUIBotPlugins {
|
|
12
|
+
host: PluginHost;
|
|
13
|
+
reports: PluginHealthReport[];
|
|
14
|
+
}
|
|
15
|
+
export interface CreateUIBotCoreRuntimeOptions extends Omit<CreateUIBotRuntimeOptions, "catalog" | "capabilities">, RegisterUIBotPluginsOptions {
|
|
16
|
+
catalog: Catalog;
|
|
17
|
+
}
|
|
18
|
+
export interface UIBotCoreRuntimeBootstrap {
|
|
19
|
+
host: PluginHost;
|
|
20
|
+
runtime: UIBotRuntime;
|
|
21
|
+
reports: PluginHealthReport[];
|
|
22
|
+
}
|
|
23
|
+
export declare function registerUIBotPlugins(options: RegisterUIBotPluginsOptions): Promise<RegisteredUIBotPlugins>;
|
|
24
|
+
export declare function createUIBotCoreRuntime(options: CreateUIBotCoreRuntimeOptions): Promise<UIBotCoreRuntimeBootstrap>;
|
package/dist/index.d.ts
ADDED