@dougongjs/core 0.0.3 → 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.
Files changed (66) hide show
  1. package/README.md +18 -18
  2. package/dist/change-set.d.ts +27 -27
  3. package/dist/change-set.d.ts.map +1 -1
  4. package/dist/configuration.d.ts +4 -0
  5. package/dist/configuration.d.ts.map +1 -0
  6. package/dist/contract-registry.d.ts +1 -1
  7. package/dist/contract-registry.d.ts.map +1 -1
  8. package/dist/contracts.d.ts +6 -5
  9. package/dist/contracts.d.ts.map +1 -1
  10. package/dist/{extension-store.d.ts → contribution-store.d.ts} +14 -15
  11. package/dist/contribution-store.d.ts.map +1 -0
  12. package/dist/diagnostics.d.ts +13 -12
  13. package/dist/diagnostics.d.ts.map +1 -1
  14. package/dist/engine.d.ts +32 -0
  15. package/dist/engine.d.ts.map +1 -0
  16. package/dist/errors.d.ts +6 -9
  17. package/dist/errors.d.ts.map +1 -1
  18. package/dist/event-hub.d.ts +6 -2
  19. package/dist/event-hub.d.ts.map +1 -1
  20. package/dist/group-coordinator.d.ts +27 -26
  21. package/dist/group-coordinator.d.ts.map +1 -1
  22. package/dist/group-lifecycle.d.ts +2 -2
  23. package/dist/group-lifecycle.d.ts.map +1 -1
  24. package/dist/group.d.ts +2 -2
  25. package/dist/group.d.ts.map +1 -1
  26. package/dist/host-api.d.ts +72 -0
  27. package/dist/host-api.d.ts.map +1 -0
  28. package/dist/host.d.ts +6 -0
  29. package/dist/host.d.ts.map +1 -0
  30. package/dist/index.d.ts +8 -7
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +1412 -1166
  33. package/dist/installation-graph.d.ts +17 -0
  34. package/dist/installation-graph.d.ts.map +1 -0
  35. package/dist/installation-registry.d.ts +49 -0
  36. package/dist/installation-registry.d.ts.map +1 -0
  37. package/dist/installation.d.ts +46 -0
  38. package/dist/installation.d.ts.map +1 -0
  39. package/dist/lifecycle-status.d.ts +2 -0
  40. package/dist/lifecycle-status.d.ts.map +1 -0
  41. package/dist/lifetime-diagnostics.d.ts +2 -2
  42. package/dist/lifetime-diagnostics.d.ts.map +1 -1
  43. package/dist/lifetime.d.ts +17 -16
  44. package/dist/lifetime.d.ts.map +1 -1
  45. package/dist/plugin.d.ts +11 -7
  46. package/dist/plugin.d.ts.map +1 -1
  47. package/dist/readonly-map.d.ts.map +1 -1
  48. package/dist/record.d.ts +8 -0
  49. package/dist/record.d.ts.map +1 -0
  50. package/dist/resource.d.ts +7 -3
  51. package/dist/resource.d.ts.map +1 -1
  52. package/dist/runtime.d.ts +33 -0
  53. package/dist/runtime.d.ts.map +1 -0
  54. package/dist/snapshot-view.d.ts.map +1 -1
  55. package/package.json +1 -1
  56. package/dist/application-api.d.ts +0 -51
  57. package/dist/application-api.d.ts.map +0 -1
  58. package/dist/application-runtime.d.ts +0 -36
  59. package/dist/application-runtime.d.ts.map +0 -1
  60. package/dist/application.d.ts +0 -6
  61. package/dist/application.d.ts.map +0 -1
  62. package/dist/extension-store.d.ts.map +0 -1
  63. package/dist/plugin-graph.d.ts +0 -17
  64. package/dist/plugin-graph.d.ts.map +0 -1
  65. package/dist/plugin-installation.d.ts +0 -44
  66. 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;AAErF,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,O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