@dp-bohrium/widget-cli 0.4.0 → 0.5.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/core.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { c as resolveWidgetProjects, l as compileAuthorManifest, n as scaffoldDshWidget, r as buildWidgetPackage, s as checkWidgetProject, t as auditDshPlugin } from "./dsh-BvnlfCRX.mjs";
1
+ import { c as compileAuthorManifest, n as scaffoldDshWidget, o as checkWidgetProject, r as buildWidgetPackage, s as resolveWidgetProjects, t as auditDshPlugin } from "./dsh-BlpXm2Bv.mjs";
2
2
  //#region src/core.mjs
3
3
  /** Validate a community template before registering it in a custom CLI. */
4
4
  function defineWidgetTemplate(template) {
@@ -1,12 +1,12 @@
1
- export interface WidgetDevelopmentEndpointSetV1 {
1
+ //#region src/development-host.d.mts
2
+ interface WidgetDevelopmentEndpointSetV1 {
2
3
  readonly claim: string;
3
4
  readonly status: string;
4
5
  readonly events: string;
5
6
  readonly control: string;
6
7
  readonly profile: string;
7
8
  }
8
-
9
- export interface WidgetDevelopmentDescriptorV1 {
9
+ interface WidgetDevelopmentDescriptorV1 {
10
10
  readonly protocol: "bohrium.widget-development-host";
11
11
  readonly protocolVersion: 1;
12
12
  readonly sessionId: string;
@@ -15,32 +15,28 @@ export interface WidgetDevelopmentDescriptorV1 {
15
15
  readonly origin: string;
16
16
  readonly endpoints: WidgetDevelopmentEndpointSetV1;
17
17
  }
18
-
19
- export interface WidgetDevelopmentClaimV1 {
18
+ interface WidgetDevelopmentClaimV1 {
20
19
  readonly tokenType: "Bearer";
21
20
  readonly accessToken: string;
22
21
  readonly expiresAt: string;
23
22
  }
24
-
25
- export interface WidgetDevelopmentAssetV1 {
23
+ interface WidgetDevelopmentAssetV1 {
26
24
  readonly path: string;
27
25
  readonly bytes: number;
28
26
  readonly digest: `sha256:${string}`;
29
27
  }
30
-
31
- export interface WidgetDevelopmentPresentationRequestV1 {
28
+ interface WidgetDevelopmentPresentationRequestV1 {
32
29
  readonly requestId: string;
33
30
  readonly key: string;
34
31
  readonly surface: "workspace" | "floating" | "overlay";
35
32
  }
36
-
37
- export interface WidgetDevelopmentPanelProjectionV1 {
33
+ interface WidgetDevelopmentPanelProjectionV1 {
38
34
  readonly key: string;
39
35
  readonly runId: string;
40
36
  readonly widgetId: string;
41
37
  readonly widgetVersionId: string;
42
38
  readonly snapshot: Readonly<{
43
- id: string;
39
+ panelType: string;
44
40
  title?: string;
45
41
  state: "loading" | "partial" | "complete" | "error";
46
42
  data: unknown;
@@ -52,15 +48,13 @@ export interface WidgetDevelopmentPanelProjectionV1 {
52
48
  resizable: boolean;
53
49
  }>;
54
50
  }
55
-
56
- export interface WidgetDevelopmentRuntimeDescriptorV1 {
51
+ interface WidgetDevelopmentRuntimeDescriptorV1 {
57
52
  readonly profileUrl: string;
58
53
  readonly statusUrl: string;
59
54
  readonly panel?: WidgetDevelopmentPanelProjectionV1;
60
55
  readonly presentationRequests?: readonly WidgetDevelopmentPresentationRequestV1[];
61
56
  }
62
-
63
- export interface WidgetDevelopmentStatusV1 {
57
+ interface WidgetDevelopmentStatusV1 {
64
58
  readonly protocolVersion: 1;
65
59
  readonly state: "ready" | "stopping" | "build-failed";
66
60
  readonly sessionId: string;
@@ -75,45 +69,34 @@ export interface WidgetDevelopmentStatusV1 {
75
69
  readonly lastBuild: Readonly<Record<string, unknown>>;
76
70
  readonly lastBuildError: Readonly<Record<string, unknown>> | null;
77
71
  }
78
-
79
- export type WidgetDevelopmentEventTypeV1 =
80
- | "generation-ready"
81
- | "generation-failed"
82
- | "reload-requested"
83
- | "session-stopping"
84
- | "disconnected";
85
-
86
- export interface WidgetDevelopmentEventV1 {
72
+ type WidgetDevelopmentEventTypeV1 = "generation-ready" | "generation-failed" | "reload-requested" | "session-stopping" | "disconnected";
73
+ interface WidgetDevelopmentEventV1 {
87
74
  readonly protocolVersion: 1;
88
75
  readonly eventId: string;
89
76
  readonly type: WidgetDevelopmentEventTypeV1;
90
77
  readonly data: Readonly<Record<string, unknown>>;
91
78
  }
92
-
93
- export interface WidgetDevelopmentControlRequestV1 {
79
+ interface WidgetDevelopmentControlRequestV1 {
94
80
  readonly protocolVersion: 1;
95
81
  readonly action: "reload" | "disconnect";
96
82
  }
97
-
98
- export interface WidgetDevelopmentBridgeRequestV1 {
83
+ interface WidgetDevelopmentBridgeRequestV1 {
99
84
  readonly protocol: "bohrium.widget-development-host";
100
85
  readonly protocolVersion: 1;
101
86
  readonly sessionId: string;
102
87
  readonly descriptorUrl: string;
103
88
  readonly expiresAt: string;
104
89
  }
105
-
106
- export interface WidgetDevelopmentBridgeResponseV1 {
90
+ interface WidgetDevelopmentBridgeResponseV1 {
107
91
  readonly accepted: true;
108
92
  readonly protocolVersion: 1;
109
93
  readonly sessionId: string;
110
94
  }
111
-
112
- export interface WidgetDevelopmentCliEnvelopeV1<
113
- T = Readonly<Record<string, unknown>>,
114
- > {
95
+ interface WidgetDevelopmentCliEnvelopeV1<T = Readonly<Record<string, unknown>>> {
115
96
  readonly protocol: "bohrium.widget-development-cli";
116
97
  readonly version: 1;
117
98
  readonly type: string;
118
99
  readonly data: T;
119
100
  }
101
+ //#endregion
102
+ export { WidgetDevelopmentAssetV1, WidgetDevelopmentBridgeRequestV1, WidgetDevelopmentBridgeResponseV1, WidgetDevelopmentClaimV1, WidgetDevelopmentCliEnvelopeV1, WidgetDevelopmentControlRequestV1, WidgetDevelopmentDescriptorV1, WidgetDevelopmentEndpointSetV1, WidgetDevelopmentEventTypeV1, WidgetDevelopmentEventV1, WidgetDevelopmentPanelProjectionV1, WidgetDevelopmentPresentationRequestV1, WidgetDevelopmentRuntimeDescriptorV1, WidgetDevelopmentStatusV1 };