@devframes/hub 0.5.3 → 0.6.0-beta.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.
@@ -0,0 +1,348 @@
1
+ import { ConnectionMeta, EventEmitter } from "devframe/types";
2
+
3
+ //#region src/types/json-render.d.ts
4
+ interface JsonRenderElement {
5
+ type: string;
6
+ props?: Record<string, unknown>;
7
+ children?: string[];
8
+ /** json-render event bindings (e.g. `{ press: { action: "my:action" } }`) */
9
+ on?: Record<string, unknown>;
10
+ /** json-render visibility condition */
11
+ visible?: unknown;
12
+ /** json-render repeat binding */
13
+ repeat?: unknown;
14
+ /** Allow additional json-render element fields */
15
+ [key: string]: unknown;
16
+ }
17
+ interface JsonRenderSpec {
18
+ root: string;
19
+ elements: Record<string, JsonRenderElement>;
20
+ /** Initial client-side state model for $state/$bindState expressions */
21
+ state?: Record<string, unknown>;
22
+ }
23
+ interface JsonRenderer {
24
+ /** Replace the entire spec */
25
+ updateSpec: (spec: JsonRenderSpec) => void | Promise<void>;
26
+ /** Update json-render state values (shallow merge into spec.state) */
27
+ updateState: (state: Record<string, unknown>) => void | Promise<void>;
28
+ /** Internal: shared state key used by the client to subscribe */
29
+ readonly _stateKey: string;
30
+ }
31
+ //#endregion
32
+ //#region src/types/docks.d.ts
33
+ interface DevframeDocksHost {
34
+ readonly views: Map<string, DevframeDockUserEntry>;
35
+ readonly events: EventEmitter<{
36
+ 'dock:entry:updated': (entry: DevframeDockUserEntry) => void;
37
+ }>;
38
+ register: <T extends DevframeDockUserEntry>(entry: T, force?: boolean) => {
39
+ update: (patch: Partial<T>) => void;
40
+ };
41
+ update: (entry: DevframeDockUserEntry) => void;
42
+ values: (options?: {
43
+ includeBuiltin?: boolean;
44
+ }) => DevframeDockEntry[];
45
+ }
46
+ type DevframeDockEntryCategory = 'app' | 'framework' | 'web' | 'advanced' | 'default' | '~builtin' | (string & {});
47
+ type DevframeDockEntryIcon = string | {
48
+ light: string;
49
+ dark: string;
50
+ };
51
+ interface DevframeDockEntryBase {
52
+ id: string;
53
+ title: string;
54
+ icon: DevframeDockEntryIcon;
55
+ /**
56
+ * The default order of the entry in the dock.
57
+ * The higher the number the earlier it appears.
58
+ * @default 0
59
+ */
60
+ defaultOrder?: number;
61
+ /**
62
+ * The category of the entry
63
+ * @default 'default'
64
+ */
65
+ category?: DevframeDockEntryCategory;
66
+ /**
67
+ * Conditional visibility expression.
68
+ * When set, the dock entry is only visible when the expression evaluates to true.
69
+ * Uses the same syntax as command `when` clauses.
70
+ *
71
+ * Set to `'false'` to unconditionally hide the entry.
72
+ *
73
+ * @example 'clientType == embedded'
74
+ * @see {@link import('devframe/utils/when').evaluateWhen}
75
+ */
76
+ when?: string;
77
+ /**
78
+ * Badge text to display on the dock icon (e.g., unread count)
79
+ */
80
+ badge?: string;
81
+ /**
82
+ * Id of the group this entry belongs to. When set, hosts collapse this entry
83
+ * under the matching group's button instead of showing it directly on the
84
+ * dock bar.
85
+ *
86
+ * This is a flat pointer — membership, not containment. The entry stays an
87
+ * independently-registered, top-level entry; only its rendering is grouped
88
+ * downstream. If the referenced group is never registered, the entry renders
89
+ * as a normal top-level entry (orphan tolerance).
90
+ *
91
+ * @see {@link DevframeViewGroup}
92
+ */
93
+ groupId?: string;
94
+ }
95
+ interface ClientScriptEntry {
96
+ /**
97
+ * The filepath or module name to import from
98
+ */
99
+ importFrom: string;
100
+ /**
101
+ * The name to import the module as
102
+ *
103
+ * @default 'default'
104
+ */
105
+ importName?: string;
106
+ }
107
+ interface DevframeViewIframe extends DevframeDockEntryBase {
108
+ type: 'iframe';
109
+ url: string;
110
+ /**
111
+ * The id of the iframe, if multiple tabs is assigned with the same id, the iframe will be shared.
112
+ *
113
+ * When not provided, it would be treated as a unique frame.
114
+ */
115
+ frameId?: string;
116
+ /**
117
+ * Optional client script to import into the iframe
118
+ */
119
+ clientScript?: ClientScriptEntry;
120
+ /**
121
+ * Enable remote-UI mode: the hub injects a connection descriptor
122
+ * (WS URL + pre-approved auth token) into the iframe URL so a hosted
123
+ * page can connect back via `connectRemoteDevframe()` from
124
+ * `@devframes/hub/client` — without needing to ship a dist with the
125
+ * plugin.
126
+ *
127
+ * Requires dev mode (no effect in build mode — no WS server exists).
128
+ * When enabled, the dock is automatically hidden in build mode unless
129
+ * the author provides an explicit `when` clause.
130
+ */
131
+ remote?: boolean | RemoteDockOptions;
132
+ }
133
+ interface RemoteDockOptions {
134
+ /**
135
+ * How to pass the connection descriptor to the hosted page.
136
+ *
137
+ * - `'fragment'` (default): appended as a URL fragment.
138
+ * Not sent in HTTP requests or Referer headers — safest for auth tokens.
139
+ * - `'query'`: appended as a URL query parameter. Use when your hosting
140
+ * platform rewrites fragments or your SPA router repurposes the fragment
141
+ * for navigation. The token will appear in server access logs and
142
+ * outbound Referer headers.
143
+ *
144
+ * @default 'fragment'
145
+ */
146
+ transport?: 'fragment' | 'query';
147
+ /**
148
+ * Reject WS handshakes whose `Origin` header doesn't match the dock URL
149
+ * origin. Turn off when the same hosted app is served from multiple
150
+ * origins (e.g. preview deploys).
151
+ *
152
+ * @default true
153
+ */
154
+ originLock?: boolean;
155
+ }
156
+ interface RemoteConnectionInfo extends ConnectionMeta {
157
+ backend: 'websocket';
158
+ websocket: string;
159
+ v: 1;
160
+ authToken: string;
161
+ origin: string;
162
+ }
163
+ type DevframeViewLauncherStatus = 'idle' | 'loading' | 'success' | 'error';
164
+ interface DevframeViewLauncher extends DevframeDockEntryBase {
165
+ type: 'launcher';
166
+ launcher: {
167
+ icon?: DevframeDockEntryIcon;
168
+ title: string;
169
+ status?: DevframeViewLauncherStatus;
170
+ error?: string;
171
+ description?: string;
172
+ buttonStart?: string;
173
+ buttonLoading?: string;
174
+ onLaunch: () => Promise<void>;
175
+ };
176
+ }
177
+ interface DevframeViewAction extends DevframeDockEntryBase {
178
+ type: 'action';
179
+ action: ClientScriptEntry;
180
+ }
181
+ interface DevframeViewCustomRender extends DevframeDockEntryBase {
182
+ type: 'custom-render';
183
+ renderer: ClientScriptEntry;
184
+ }
185
+ interface DevframeViewBuiltin extends DevframeDockEntryBase {
186
+ type: '~builtin';
187
+ id: '~terminals' | '~messages' | '~client-auth-notice' | '~settings' | '~popup';
188
+ }
189
+ interface DevframeViewJsonRender extends DevframeDockEntryBase {
190
+ type: 'json-render';
191
+ /** JsonRenderer handle created by ctx.createJsonRenderer() */
192
+ ui: JsonRenderer;
193
+ }
194
+ /**
195
+ * A dock group: a single dock-bar button that collapses every entry whose
196
+ * {@link DevframeDockEntryBase.groupId} matches this group's `id`.
197
+ *
198
+ * A group carries its own `title`/`icon`/`category`/`defaultOrder`/`when`
199
+ * (inherited from {@link DevframeDockEntryBase}) and has no view payload of its
200
+ * own — hosts render its members in a popover / sub-navigation. It flows
201
+ * through the same `register`/`update`/`values` machinery as every other entry,
202
+ * keyed by `id`.
203
+ *
204
+ * Grouping is one level deep: a group entry must not itself set `groupId`.
205
+ */
206
+ interface DevframeViewGroup extends DevframeDockEntryBase {
207
+ type: 'group';
208
+ /**
209
+ * Member id auto-opened when the group button is activated. When unset,
210
+ * activating the group only reveals its members (popover-only); no view
211
+ * opens until a member is chosen.
212
+ */
213
+ defaultChildId?: string;
214
+ }
215
+ type DevframeDockUserEntry = DevframeViewIframe | DevframeViewAction | DevframeViewCustomRender | DevframeViewLauncher | DevframeViewJsonRender | DevframeViewGroup;
216
+ type DevframeDockEntry = DevframeDockUserEntry | DevframeViewBuiltin;
217
+ type DevframeDockEntriesGrouped = [category: string, entries: DevframeDockEntry[]][];
218
+ //#endregion
219
+ //#region src/types/commands.d.ts
220
+ interface DevframeCommandKeybinding {
221
+ /**
222
+ * Keyboard shortcut string.
223
+ * Use "Mod" for platform-aware modifier (Cmd on macOS, Ctrl elsewhere).
224
+ * Examples: "Mod+K", "Mod+Shift+P", "Alt+N"
225
+ */
226
+ key: string;
227
+ }
228
+ interface DevframeCommandBase {
229
+ /**
230
+ * Unique namespaced ID, e.g. "vite:open-in-editor"
231
+ */
232
+ id: string;
233
+ title: string;
234
+ description?: string;
235
+ /**
236
+ * Icon for the command. Either an Iconify icon string (e.g. "ph:pencil-duotone")
237
+ * or a theme-specific pair `{ light, dark }` — the same shape as dock icons.
238
+ */
239
+ icon?: DevframeDockEntryIcon;
240
+ category?: string;
241
+ /**
242
+ * Whether to show in command palette. Default: true
243
+ *
244
+ * - `true` — show the command and flatten its children into search results
245
+ * - `false` — hide the command entirely from the palette
246
+ * - `'without-children'` — show the command but don't flatten children into top-level search (children are still accessible via drill-down)
247
+ */
248
+ showInPalette?: boolean | 'without-children';
249
+ /**
250
+ * Optional context expression for conditional visibility.
251
+ * When set, the command is only shown in the palette and only executable
252
+ * when the expression evaluates to true.
253
+ */
254
+ when?: string;
255
+ /**
256
+ * Default keyboard shortcut(s) for this command
257
+ */
258
+ keybindings?: DevframeCommandKeybinding[];
259
+ }
260
+ /**
261
+ * Server command input — what plugins pass to `ctx.commands.register()`.
262
+ */
263
+ interface DevframeServerCommandInput extends DevframeCommandBase {
264
+ /**
265
+ * Handler for this command. Optional if the command only serves as a group for children.
266
+ */
267
+ handler?: (...args: any[]) => any | Promise<any>;
268
+ /**
269
+ * Static sub-commands. Two levels max (parent → children).
270
+ * Each child must have a globally unique `id`.
271
+ */
272
+ children?: DevframeServerCommandInput[];
273
+ }
274
+ /**
275
+ * Serializable server command entry — sent over RPC (no handler).
276
+ */
277
+ interface DevframeServerCommandEntry extends DevframeCommandBase {
278
+ source: 'server';
279
+ children?: DevframeServerCommandEntry[];
280
+ }
281
+ /**
282
+ * Client command — registered in the webcomponent context.
283
+ */
284
+ interface DevframeClientCommand extends DevframeCommandBase {
285
+ source: 'client';
286
+ /**
287
+ * Action for this command. Optional if the command only serves as a group for children.
288
+ * Return sub-commands for dynamic nested palette menus (runtime submenus).
289
+ */
290
+ action?: (...args: any[]) => void | DevframeClientCommand[] | Promise<void | DevframeClientCommand[]>;
291
+ /**
292
+ * Static sub-commands. Two levels max (parent → children).
293
+ */
294
+ children?: DevframeClientCommand[];
295
+ }
296
+ /**
297
+ * Union of command entries visible in the palette.
298
+ */
299
+ type DevframeCommandEntry = DevframeServerCommandEntry | DevframeClientCommand;
300
+ interface DevframeCommandHandle {
301
+ readonly id: string;
302
+ update: (patch: Partial<Omit<DevframeServerCommandInput, 'id'>>) => void;
303
+ unregister: () => void;
304
+ }
305
+ interface DevframeCommandsHostEvents {
306
+ 'command:registered': (command: DevframeServerCommandEntry) => void;
307
+ 'command:unregistered': (id: string) => void;
308
+ }
309
+ interface DevframeCommandsHost {
310
+ readonly commands: Map<string, DevframeServerCommandInput>;
311
+ readonly events: EventEmitter<DevframeCommandsHostEvents>;
312
+ /**
313
+ * Register a command (with optional children).
314
+ */
315
+ register: (command: DevframeServerCommandInput) => DevframeCommandHandle;
316
+ /**
317
+ * Unregister a command by ID (removes parent and all children).
318
+ */
319
+ unregister: (id: string) => boolean;
320
+ /**
321
+ * Execute a command by ID. Searches top-level and children.
322
+ * Throws if not found or if command has no handler.
323
+ */
324
+ execute: (id: string, ...args: any[]) => Promise<unknown>;
325
+ /**
326
+ * Returns serializable list (no handlers), preserving tree structure.
327
+ */
328
+ list: () => DevframeServerCommandEntry[];
329
+ }
330
+ interface DevframeCommandShortcutOverrides {
331
+ /**
332
+ * Command ID → keybinding overrides. Empty array = shortcut disabled.
333
+ */
334
+ [commandId: string]: DevframeCommandKeybinding[];
335
+ }
336
+ //#endregion
337
+ //#region src/types/settings.d.ts
338
+ interface DevframeDocksUserSettings {
339
+ docksHidden: string[];
340
+ docksCategoriesHidden: string[];
341
+ docksPinned: string[];
342
+ docksCustomOrder: Record<string, number>;
343
+ showIframeAddressBar: boolean;
344
+ closeOnOutsideClick: boolean;
345
+ commandShortcuts: DevframeCommandShortcutOverrides;
346
+ }
347
+ //#endregion
348
+ export { JsonRenderElement as A, DevframeViewGroup as C, DevframeViewLauncherStatus as D, DevframeViewLauncher as E, JsonRenderer as M, RemoteConnectionInfo as O, DevframeViewCustomRender as S, DevframeViewJsonRender as T, DevframeDockEntryIcon as _, DevframeCommandHandle as a, DevframeViewAction as b, DevframeCommandsHost as c, DevframeServerCommandInput as d, ClientScriptEntry as f, DevframeDockEntryCategory as g, DevframeDockEntryBase as h, DevframeCommandEntry as i, JsonRenderSpec as j, RemoteDockOptions as k, DevframeCommandsHostEvents as l, DevframeDockEntry as m, DevframeClientCommand as n, DevframeCommandKeybinding as o, DevframeDockEntriesGrouped as p, DevframeCommandBase as r, DevframeCommandShortcutOverrides as s, DevframeDocksUserSettings as t, DevframeServerCommandEntry as u, DevframeDockUserEntry as v, DevframeViewIframe as w, DevframeViewBuiltin as x, DevframeDocksHost as y };
@@ -1,4 +1,4 @@
1
- import { A as JsonRenderer, C as DevframeViewJsonRender, D as RemoteDockOptions, E as RemoteConnectionInfo, F as DevframeMessageFilePosition, I as DevframeMessageHandle, L as DevframeMessageLevel, M as DevframeMessageEntry, N as DevframeMessageEntryFrom, O as JsonRenderElement, P as DevframeMessageEntryInput, R as DevframeMessagesClient, S as DevframeViewIframe, T as DevframeViewLauncherStatus, _ as DevframeDocksHost, a as DevframeChildProcessTerminalSession, b as DevframeViewCustomRender, c as DevframeTerminalStatus, d as DevframeDockEntriesGrouped, f as DevframeDockEntry, g as DevframeDockUserEntry, h as DevframeDockEntryIcon, i as DevframeChildProcessExecuteOptions, j as DevframeMessageElementPosition, k as JsonRenderSpec, l as DevframeTerminalsHost, m as DevframeDockEntryCategory, n as DevframeHubContext, o as DevframeTerminalSession, p as DevframeDockEntryBase, s as DevframeTerminalSessionBase, t as CreateHubContextOptions, u as ClientScriptEntry, v as DevframeViewAction, w as DevframeViewLauncher, x as DevframeViewGroup, y as DevframeViewBuiltin, z as DevframeMessagesHost } from "../context-Dox-G9vt.mjs";
2
- import { a as DevframeCommandHandle, c as DevframeCommandsHost, d as DevframeServerCommandInput, i as DevframeCommandEntry, l as DevframeCommandsHostEvents, n as DevframeClientCommand, o as DevframeCommandKeybinding, r as DevframeCommandBase, s as DevframeCommandShortcutOverrides, t as DevframeDocksUserSettings, u as DevframeServerCommandEntry } from "../settings-Bp5Ax6Os.mjs";
3
- import { C as RpcStreamingChannel, E as Thenable, S as RpcSharedStateHost, T as RpcStreamingHost, _ as RpcBroadcastOptions, a as DevframeDiagnosticsLogger, b as RpcFunctionsHost, c as DevframeRpcClientFunctions, d as DevframeViewHost, f as EntriesToObject, g as PartialWithoutId, h as EventsMap, i as DevframeDiagnosticsHost, l as DevframeRpcServerFunctions, m as EventUnsubscribe, n as DevframeCapabilities, o as DevframeHost, p as EventEmitter, r as DevframeDiagnosticsDefinition, s as DevframeNodeRpcSession, t as ConnectionMeta, u as DevframeRpcSharedStates, v as RpcDefinitionsFilter, w as RpcStreamingChannelOptions, x as RpcSharedStateGetOptions, y as RpcDefinitionsToFunctions } from "../index-BWTfvdqa.mjs";
4
- export { ClientScriptEntry, ConnectionMeta, CreateHubContextOptions, DevframeCapabilities, DevframeChildProcessExecuteOptions, DevframeChildProcessTerminalSession, DevframeClientCommand, DevframeCommandBase, DevframeCommandEntry, DevframeCommandHandle, DevframeCommandKeybinding, DevframeCommandShortcutOverrides, DevframeCommandsHost, DevframeCommandsHostEvents, DevframeDiagnosticsDefinition, DevframeDiagnosticsHost, DevframeDiagnosticsLogger, DevframeDockEntriesGrouped, DevframeDockEntry, DevframeDockEntryBase, DevframeDockEntryCategory, DevframeDockEntryIcon, DevframeDockUserEntry, DevframeDocksHost, DevframeDocksUserSettings, DevframeHost, DevframeHubContext, DevframeMessageElementPosition, DevframeMessageEntry, DevframeMessageEntryFrom, DevframeMessageEntryInput, DevframeMessageFilePosition, DevframeMessageHandle, DevframeMessageLevel, DevframeMessagesClient, DevframeMessagesHost, DevframeNodeRpcSession, DevframeRpcClientFunctions, DevframeRpcServerFunctions, DevframeRpcSharedStates, DevframeServerCommandEntry, DevframeServerCommandInput, DevframeTerminalSession, DevframeTerminalSessionBase, DevframeTerminalStatus, DevframeTerminalsHost, DevframeViewAction, DevframeViewBuiltin, DevframeViewCustomRender, DevframeViewGroup, DevframeViewHost, DevframeViewIframe, DevframeViewJsonRender, DevframeViewLauncher, DevframeViewLauncherStatus, EntriesToObject, EventEmitter, EventUnsubscribe, EventsMap, JsonRenderElement, JsonRenderSpec, JsonRenderer, PartialWithoutId, RemoteConnectionInfo, RemoteDockOptions, RpcBroadcastOptions, RpcDefinitionsFilter, RpcDefinitionsToFunctions, RpcFunctionsHost, RpcSharedStateGetOptions, RpcSharedStateHost, RpcStreamingChannel, RpcStreamingChannelOptions, RpcStreamingHost, Thenable };
1
+ import { C as DevframeMessagesListDelta, S as DevframeMessagesLevelShortcuts, _ as DevframeMessageHandle, a as DevframeChildProcessTerminalSession, b as DevframeMessagesClient, c as DevframeTerminalSession, d as DevframeTerminalsHost, f as DevframeMessageElementPosition, g as DevframeMessageFilePosition, h as DevframeMessageEntryInput, i as DevframeChildProcessExecuteOptions, l as DevframeTerminalSessionBase, m as DevframeMessageEntryFrom, n as DevframeHubContext, o as DevframePtyExecuteOptions, p as DevframeMessageEntry, s as DevframePtyTerminalSession, t as CreateHubContextOptions, u as DevframeTerminalStatus, v as DevframeMessageLevel, x as DevframeMessagesHost, y as DevframeMessageShortcutInput } from "../context-DVh4gk8f.mjs";
2
+ import { A as JsonRenderElement, C as DevframeViewGroup, D as DevframeViewLauncherStatus, E as DevframeViewLauncher, M as JsonRenderer, O as RemoteConnectionInfo, S as DevframeViewCustomRender, T as DevframeViewJsonRender, _ as DevframeDockEntryIcon, a as DevframeCommandHandle, b as DevframeViewAction, c as DevframeCommandsHost, d as DevframeServerCommandInput, f as ClientScriptEntry, g as DevframeDockEntryCategory, h as DevframeDockEntryBase, i as DevframeCommandEntry, j as JsonRenderSpec, k as RemoteDockOptions, l as DevframeCommandsHostEvents, m as DevframeDockEntry, n as DevframeClientCommand, o as DevframeCommandKeybinding, p as DevframeDockEntriesGrouped, r as DevframeCommandBase, s as DevframeCommandShortcutOverrides, t as DevframeDocksUserSettings, u as DevframeServerCommandEntry, v as DevframeDockUserEntry, w as DevframeViewIframe, x as DevframeViewBuiltin, y as DevframeDocksHost } from "../settings-B9YjSEcl.mjs";
3
+ import { C as RpcStreamingChannel, E as Thenable, S as RpcSharedStateHost, T as RpcStreamingHost, _ as RpcBroadcastOptions, a as DevframeDiagnosticsLogger, b as RpcFunctionsHost, c as DevframeRpcClientFunctions, d as DevframeViewHost, f as EntriesToObject, g as PartialWithoutId, h as EventsMap, i as DevframeDiagnosticsHost, l as DevframeRpcServerFunctions, m as EventUnsubscribe, n as DevframeCapabilities, o as DevframeHost, p as EventEmitter, r as DevframeDiagnosticsDefinition, s as DevframeNodeRpcSession, t as ConnectionMeta, u as DevframeRpcSharedStates, v as RpcDefinitionsFilter, w as RpcStreamingChannelOptions, x as RpcSharedStateGetOptions, y as RpcDefinitionsToFunctions } from "../index-Dic9q4eN.mjs";
4
+ export { ClientScriptEntry, ConnectionMeta, CreateHubContextOptions, DevframeCapabilities, DevframeChildProcessExecuteOptions, DevframeChildProcessTerminalSession, DevframeClientCommand, DevframeCommandBase, DevframeCommandEntry, DevframeCommandHandle, DevframeCommandKeybinding, DevframeCommandShortcutOverrides, DevframeCommandsHost, DevframeCommandsHostEvents, DevframeDiagnosticsDefinition, DevframeDiagnosticsHost, DevframeDiagnosticsLogger, DevframeDockEntriesGrouped, DevframeDockEntry, DevframeDockEntryBase, DevframeDockEntryCategory, DevframeDockEntryIcon, DevframeDockUserEntry, DevframeDocksHost, DevframeDocksUserSettings, DevframeHost, DevframeHubContext, DevframeMessageElementPosition, DevframeMessageEntry, DevframeMessageEntryFrom, DevframeMessageEntryInput, DevframeMessageFilePosition, DevframeMessageHandle, DevframeMessageLevel, DevframeMessageShortcutInput, DevframeMessagesClient, DevframeMessagesHost, DevframeMessagesLevelShortcuts, DevframeMessagesListDelta, DevframeNodeRpcSession, DevframePtyExecuteOptions, DevframePtyTerminalSession, DevframeRpcClientFunctions, DevframeRpcServerFunctions, DevframeRpcSharedStates, DevframeServerCommandEntry, DevframeServerCommandInput, DevframeTerminalSession, DevframeTerminalSessionBase, DevframeTerminalStatus, DevframeTerminalsHost, DevframeViewAction, DevframeViewBuiltin, DevframeViewCustomRender, DevframeViewGroup, DevframeViewHost, DevframeViewIframe, DevframeViewJsonRender, DevframeViewLauncher, DevframeViewLauncherStatus, EntriesToObject, EventEmitter, EventUnsubscribe, EventsMap, JsonRenderElement, JsonRenderSpec, JsonRenderer, PartialWithoutId, RemoteConnectionInfo, RemoteDockOptions, RpcBroadcastOptions, RpcDefinitionsFilter, RpcDefinitionsToFunctions, RpcFunctionsHost, RpcSharedStateGetOptions, RpcSharedStateHost, RpcStreamingChannel, RpcStreamingChannelOptions, RpcStreamingHost, Thenable };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@devframes/hub",
3
3
  "type": "module",
4
- "version": "0.5.3",
4
+ "version": "0.6.0-beta.1",
5
5
  "description": "Framework-neutral hub layer for devframe — docks, terminals, messages, commands.",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -33,22 +33,26 @@
33
33
  "dist"
34
34
  ],
35
35
  "peerDependencies": {
36
- "devframe": "0.5.3"
36
+ "devframe": "0.6.0-beta.1"
37
37
  },
38
38
  "dependencies": {
39
39
  "birpc": "^4.0.0",
40
- "nostics": "^0.2.0",
40
+ "destr": "^2.0.5",
41
+ "nostics": "^1.1.4",
41
42
  "pathe": "^2.0.3",
42
43
  "perfect-debounce": "^2.1.0",
43
- "tinyexec": "^1.2.2"
44
+ "tinyexec": "^1.2.2",
45
+ "zigpty": "^0.2.1"
44
46
  },
45
47
  "devDependencies": {
48
+ "@types/node": "^25.9.1",
46
49
  "mlly": "^1.8.2",
47
50
  "tsdown": "^0.22.0",
48
- "devframe": "0.5.3"
51
+ "devframe": "0.6.0-beta.1"
49
52
  },
50
53
  "scripts": {
51
54
  "build": "tsdown",
52
- "watch": "tsdown --watch"
55
+ "watch": "tsdown --watch",
56
+ "typecheck": "tsc --noEmit"
53
57
  }
54
58
  }