@dougongjs/core 0.0.2 → 0.1.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.
- package/README.md +97 -10
- package/dist/change-set.d.ts +27 -27
- package/dist/change-set.d.ts.map +1 -1
- package/dist/configuration.d.ts +4 -0
- package/dist/configuration.d.ts.map +1 -0
- package/dist/contract-registry.d.ts +1 -1
- package/dist/contract-registry.d.ts.map +1 -1
- package/dist/contracts.d.ts +6 -5
- package/dist/contracts.d.ts.map +1 -1
- package/dist/{extension-store.d.ts → contribution-store.d.ts} +14 -15
- package/dist/contribution-store.d.ts.map +1 -0
- package/dist/diagnostics.d.ts +13 -12
- package/dist/diagnostics.d.ts.map +1 -1
- package/dist/engine.d.ts +32 -0
- package/dist/engine.d.ts.map +1 -0
- package/dist/errors.d.ts +6 -9
- package/dist/errors.d.ts.map +1 -1
- package/dist/event-hub.d.ts +6 -2
- package/dist/event-hub.d.ts.map +1 -1
- package/dist/group-coordinator.d.ts +27 -26
- package/dist/group-coordinator.d.ts.map +1 -1
- package/dist/group-lifecycle.d.ts +2 -2
- package/dist/group-lifecycle.d.ts.map +1 -1
- package/dist/group.d.ts +2 -2
- package/dist/group.d.ts.map +1 -1
- package/dist/host-api.d.ts +72 -0
- package/dist/host-api.d.ts.map +1 -0
- package/dist/host.d.ts +6 -0
- package/dist/host.d.ts.map +1 -0
- package/dist/index.d.ts +8 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1412 -1166
- package/dist/installation-graph.d.ts +17 -0
- package/dist/installation-graph.d.ts.map +1 -0
- package/dist/installation-registry.d.ts +49 -0
- package/dist/installation-registry.d.ts.map +1 -0
- package/dist/installation.d.ts +46 -0
- package/dist/installation.d.ts.map +1 -0
- package/dist/lifecycle-status.d.ts +2 -0
- package/dist/lifecycle-status.d.ts.map +1 -0
- package/dist/lifetime-diagnostics.d.ts +2 -2
- package/dist/lifetime-diagnostics.d.ts.map +1 -1
- package/dist/lifetime.d.ts +17 -16
- package/dist/lifetime.d.ts.map +1 -1
- package/dist/plugin.d.ts +11 -7
- package/dist/plugin.d.ts.map +1 -1
- package/dist/readonly-map.d.ts.map +1 -1
- package/dist/record.d.ts +8 -0
- package/dist/record.d.ts.map +1 -0
- package/dist/resource.d.ts +7 -3
- package/dist/resource.d.ts.map +1 -1
- package/dist/runtime.d.ts +33 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/snapshot-view.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/application-api.d.ts +0 -51
- package/dist/application-api.d.ts.map +0 -1
- package/dist/application-runtime.d.ts +0 -36
- package/dist/application-runtime.d.ts.map +0 -1
- package/dist/application.d.ts +0 -6
- package/dist/application.d.ts.map +0 -1
- package/dist/extension-store.d.ts.map +0 -1
- package/dist/plugin-graph.d.ts +0 -17
- package/dist/plugin-graph.d.ts.map +0 -1
- package/dist/plugin-installation.d.ts +0 -44
- package/dist/plugin-installation.d.ts.map +0 -1
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { Lifetime } from './lifetime';
|
|
2
|
-
import { PluginDefinition, Provisions, Requirements } from './plugin';
|
|
3
|
-
import { GroupNode } from './group';
|
|
4
|
-
export type InstallationStatus = "pending" | "active" | "stopping" | "failed" | "removed";
|
|
5
|
-
export type AnyPlugin = PluginDefinition<unknown, Requirements, Provisions, unknown>;
|
|
6
|
-
export interface InstallationSpec {
|
|
7
|
-
readonly plugin: AnyPlugin;
|
|
8
|
-
readonly config: unknown;
|
|
9
|
-
}
|
|
10
|
-
export interface PluginRuntime {
|
|
11
|
-
readonly plugin: AnyPlugin;
|
|
12
|
-
readonly config: unknown;
|
|
13
|
-
readonly lifetime: Lifetime;
|
|
14
|
-
}
|
|
15
|
-
export declare function createInstallationSpec(plugin: AnyPlugin, config: unknown): InstallationSpec;
|
|
16
|
-
/**
|
|
17
|
-
* A plugin installation is a stable identity whose declaration and runtime may
|
|
18
|
-
* change. State transitions and ready waiters live here so orchestration code
|
|
19
|
-
* cannot create a status that disagrees with the owned runtime.
|
|
20
|
-
*/
|
|
21
|
-
export declare class PluginInstallation {
|
|
22
|
-
#private;
|
|
23
|
-
readonly id: string;
|
|
24
|
-
readonly index: number;
|
|
25
|
-
readonly groupId: string;
|
|
26
|
-
constructor(id: string, index: number, group: GroupNode, spec: InstallationSpec);
|
|
27
|
-
attach(notifyChanged: () => void): void;
|
|
28
|
-
get status(): "failed" | "active" | "removed" | "pending" | "stopping";
|
|
29
|
-
get runtime(): PluginRuntime | undefined;
|
|
30
|
-
get error(): Error | undefined;
|
|
31
|
-
get group(): GroupNode;
|
|
32
|
-
get spec(): InstallationSpec;
|
|
33
|
-
reconfigure(spec: InstallationSpec): void;
|
|
34
|
-
ready(): Promise<void>;
|
|
35
|
-
trackReadiness(operation: Promise<void>): void;
|
|
36
|
-
activate(runtime: PluginRuntime): void;
|
|
37
|
-
settleReady(): void;
|
|
38
|
-
beginStopping(): boolean;
|
|
39
|
-
deactivate(): void;
|
|
40
|
-
fail(error: unknown): void;
|
|
41
|
-
discard(error: unknown): void;
|
|
42
|
-
remove(): void;
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=plugin-installation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-installation.d.ts","sourceRoot":"","sources":["../src/plugin-installation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE1F,MAAM,MAAM,SAAS,GAAG,gBAAgB,CAAC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;AAEr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