@devframes/hub 0.8.2 → 0.9.0-beta.10
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/client/index.d.mts +221 -27
- package/dist/client/index.mjs +213 -41
- package/dist/constants.d.mts +19 -2
- package/dist/constants.mjs +21 -3
- package/dist/{context-BSgzLnsu.d.mts → context-D5TJIHwp.d.mts} +50 -19
- package/dist/context-DzqMQ2mI.mjs +1182 -0
- package/dist/define-Ceekw2EO.mjs +11 -0
- package/dist/dist-R0T2g9Vw.mjs +221 -0
- package/dist/index-coDmWngQ.d.mts +5 -0
- package/dist/index.d.mts +4 -13
- package/dist/index.mjs +2 -3
- package/dist/node/index.d.mts +3 -33
- package/dist/node/index.mjs +5 -1176
- package/dist/node/initiate.d.mts +274 -0
- package/dist/node/initiate.mjs +267 -0
- package/dist/{settings-Byh48aCd.d.mts → settings-DfrRa9Wf.d.mts} +32 -55
- package/dist/types/index.d.mts +4 -4
- package/package.json +9 -6
- package/dist/define-Pbx8dsKz.mjs +0 -21
- package/dist/index-IzywMKfP.d.mts +0 -5
package/dist/types/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { C as
|
|
3
|
-
import {
|
|
4
|
-
export { ClientScriptEntry, type ConnectionMeta, type CreateHubContextOptions, type DevframeCapabilities, DevframeChildProcessExecuteOptions, DevframeChildProcessOutput, DevframeChildProcessResult, DevframeChildProcessTerminalSession, DevframeClientCommand, DevframeCommandAgentOptions, DevframeCommandBase, DevframeCommandEntry, DevframeCommandHandle, DevframeCommandKeybinding, DevframeCommandShortcutOverrides, DevframeCommandsHost, DevframeCommandsHostEvents, type
|
|
1
|
+
import { C as DevframeMessageHandle, D as DevframeMessagesHost, E as DevframeMessagesClient, O as DevframeMessagesLevelShortcuts, S as DevframeMessageFilePosition, T as DevframeMessageShortcutInput, _ as DevframeMessageCommandAction, a as DevframeChildProcessExecuteOptions, b as DevframeMessageEntryFrom, c as DevframeChildProcessTerminalSession, d as DevframeTerminalSession, f as DevframeTerminalSessionBase, g as DevframeMessageActivateAction, h as DevframeMessageAction, k as DevframeMessagesListDelta, l as DevframePtyExecuteOptions, m as DevframeTerminalsHost, n as DevframeHubContext, o as DevframeChildProcessOutput, p as DevframeTerminalStatus, s as DevframeChildProcessResult, t as CreateHubContextOptions, u as DevframePtyTerminalSession, v as DevframeMessageElementPosition, w as DevframeMessageLevel, x as DevframeMessageEntryInput, y as DevframeMessageEntry } from "../context-D5TJIHwp.mjs";
|
|
2
|
+
import { A as DevframeViewLauncher, C as DevframeDocksActiveState, D as DevframeViewCustomRender, E as DevframeViewBuiltin, F as RemoteDockOptions, M as FrameSubTabsConfig, N as NavTarget, O as DevframeViewGroup, P as RemoteConnectionInfo, S as DevframeDockUserEntry, T as DevframeViewAction, _ as DevframeDockEntry, a as DevframeCommandEntry, b as DevframeDockEntryIcon, c as DevframeCommandShortcutOverrides, d as DevframeServerCommandEntry, f as DevframeServerCommandInput, g as DevframeDockEntriesGrouped, h as DevframeDockBadgeVariant, i as DevframeCommandBase, j as DevframeViewLauncherStatus, k as DevframeViewIframe, l as DevframeCommandsHost, m as DevframeDockActivation, n as DevframeClientCommand, o as DevframeCommandHandle, p as ClientScriptEntry, r as DevframeCommandAgentOptions, s as DevframeCommandKeybinding, t as DevframeDocksUserSettings, u as DevframeCommandsHostEvents, v as DevframeDockEntryBase, w as DevframeDocksHost, x as DevframeDockEntryRegistry, y as DevframeDockEntryCategory } from "../settings-DfrRa9Wf.mjs";
|
|
3
|
+
import { S as RpcStreamingHost, _ as RpcFunctionsHost, a as DevframeHost, b as RpcStreamingChannel, c as DevframeRpcServerFunctions, d as EventEmitter, f as EventUnsubscribe, g as RpcDefinitionsToFunctions, h as RpcDefinitionsFilter, i as DevframeDiagnosticsLogger, l as DevframeRpcSharedStates, m as RpcBroadcastOptions, n as DevframeCapabilities, o as DevframeNodeRpcSession, p as EventsMap, r as DevframeDiagnosticsHost, s as DevframeRpcClientFunctions, t as ConnectionMeta, u as DevframeViewHost, v as RpcSharedStateGetOptions, x as RpcStreamingChannelOptions, y as RpcSharedStateHost } from "../index-coDmWngQ.mjs";
|
|
4
|
+
export { ClientScriptEntry, type ConnectionMeta, type CreateHubContextOptions, type DevframeCapabilities, DevframeChildProcessExecuteOptions, DevframeChildProcessOutput, DevframeChildProcessResult, DevframeChildProcessTerminalSession, DevframeClientCommand, DevframeCommandAgentOptions, DevframeCommandBase, DevframeCommandEntry, DevframeCommandHandle, DevframeCommandKeybinding, DevframeCommandShortcutOverrides, DevframeCommandsHost, DevframeCommandsHostEvents, type DevframeDiagnosticsHost, type DevframeDiagnosticsLogger, DevframeDockActivation, DevframeDockBadgeVariant, DevframeDockEntriesGrouped, DevframeDockEntry, DevframeDockEntryBase, DevframeDockEntryCategory, DevframeDockEntryIcon, DevframeDockEntryRegistry, DevframeDockUserEntry, DevframeDocksActiveState, DevframeDocksHost, DevframeDocksUserSettings, type DevframeHost, type DevframeHubContext, DevframeMessageAction, DevframeMessageActivateAction, DevframeMessageCommandAction, DevframeMessageElementPosition, DevframeMessageEntry, DevframeMessageEntryFrom, DevframeMessageEntryInput, DevframeMessageFilePosition, DevframeMessageHandle, DevframeMessageLevel, DevframeMessageShortcutInput, DevframeMessagesClient, DevframeMessagesHost, DevframeMessagesLevelShortcuts, DevframeMessagesListDelta, type DevframeNodeRpcSession, DevframePtyExecuteOptions, DevframePtyTerminalSession, type DevframeRpcClientFunctions, type DevframeRpcServerFunctions, type DevframeRpcSharedStates, DevframeServerCommandEntry, DevframeServerCommandInput, DevframeTerminalSession, DevframeTerminalSessionBase, DevframeTerminalStatus, DevframeTerminalsHost, DevframeViewAction, DevframeViewBuiltin, DevframeViewCustomRender, DevframeViewGroup, type DevframeViewHost, DevframeViewIframe, DevframeViewLauncher, DevframeViewLauncherStatus, type EventEmitter, type EventUnsubscribe, type EventsMap, FrameSubTabsConfig, NavTarget, RemoteConnectionInfo, RemoteDockOptions, type RpcBroadcastOptions, type RpcDefinitionsFilter, type RpcDefinitionsToFunctions, type RpcFunctionsHost, type RpcSharedStateGetOptions, type RpcSharedStateHost, type RpcStreamingChannel, type RpcStreamingChannelOptions, type RpcStreamingHost };
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devframes/hub",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"description": "
|
|
4
|
+
"version": "0.9.0-beta.10",
|
|
5
|
+
"description": "Hub layer that orchestrates devframe docks, terminals, messages, and commands on any host.",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"homepage": "https://github.com/devframes/devframe#readme",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
".": "./dist/index.mjs",
|
|
25
25
|
"./client": "./dist/client/index.mjs",
|
|
26
26
|
"./constants": "./dist/constants.mjs",
|
|
27
|
+
"./initiate": "./dist/node/initiate.mjs",
|
|
27
28
|
"./node": "./dist/node/index.mjs",
|
|
28
29
|
"./types": "./dist/types/index.mjs",
|
|
29
30
|
"./package.json": "./package.json"
|
|
@@ -33,23 +34,25 @@
|
|
|
33
34
|
"dist"
|
|
34
35
|
],
|
|
35
36
|
"peerDependencies": {
|
|
36
|
-
"devframe": "0.
|
|
37
|
+
"devframe": "0.9.0-beta.10"
|
|
37
38
|
},
|
|
38
39
|
"dependencies": {
|
|
39
40
|
"@standard-schema/spec": "^1.1.0",
|
|
40
41
|
"destr": "^2.0.5",
|
|
41
|
-
"
|
|
42
|
+
"h3": "^2.0.1-rc.26",
|
|
42
43
|
"pathe": "^2.0.3",
|
|
43
44
|
"perfect-debounce": "^2.1.0",
|
|
44
45
|
"tinyexec": "^1.3.0",
|
|
46
|
+
"ufo": "^1.6.4",
|
|
45
47
|
"zigpty": "^0.2.1"
|
|
46
48
|
},
|
|
47
49
|
"devDependencies": {
|
|
48
|
-
"@types/node": "^26.
|
|
50
|
+
"@types/node": "^26.2.0",
|
|
51
|
+
"get-port-please": "^3.2.0",
|
|
49
52
|
"mlly": "^1.8.2",
|
|
50
53
|
"tsdown": "^0.22.14",
|
|
51
54
|
"valibot": "^1.4.2",
|
|
52
|
-
"devframe": "0.
|
|
55
|
+
"devframe": "0.9.0-beta.10"
|
|
53
56
|
},
|
|
54
57
|
"scripts": {
|
|
55
58
|
"build": "tsdown",
|
package/dist/define-Pbx8dsKz.mjs
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { createDefineWrapperWithContext } from "devframe/rpc";
|
|
2
|
-
//#region src/define.ts
|
|
3
|
-
const defineHubRpcFunction = createDefineWrapperWithContext();
|
|
4
|
-
function defineCommand(command) {
|
|
5
|
-
return command;
|
|
6
|
-
}
|
|
7
|
-
function defineDockEntry(entry) {
|
|
8
|
-
return entry;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated json-render moved out of the hub into the opt-in
|
|
12
|
-
* `@devframes/json-render` integration in 0.7. This identity helper is kept
|
|
13
|
-
* so existing imports keep compiling — pass your spec directly to
|
|
14
|
-
* `createJsonRenderView` (from `@devframes/json-render/node`) instead.
|
|
15
|
-
* Removed in 0.8.
|
|
16
|
-
*/
|
|
17
|
-
function defineJsonRenderSpec(spec) {
|
|
18
|
-
return spec;
|
|
19
|
-
}
|
|
20
|
-
//#endregion
|
|
21
|
-
export { defineJsonRenderSpec as i, defineDockEntry as n, defineHubRpcFunction as r, defineCommand as t };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import "./settings-Byh48aCd.mjs";
|
|
2
|
-
import "./context-BSgzLnsu.mjs";
|
|
3
|
-
import { RpcDefinitionsFilter, RpcDefinitionsToFunctions } from "devframe/rpc";
|
|
4
|
-
import { ConnectionMeta as ConnectionMeta$1, DevframeCapabilities, DevframeDiagnosticsDefinition, DevframeDiagnosticsHost, DevframeDiagnosticsLogger, DevframeHost as DevframeHost$1, DevframeNodeRpcSession, DevframeRpcClientFunctions, DevframeRpcServerFunctions, DevframeRpcSharedStates, DevframeViewHost, EntriesToObject, EventEmitter as EventEmitter$1, EventUnsubscribe, EventsMap, PartialWithoutId, RpcBroadcastOptions, RpcFunctionsHost, RpcSharedStateGetOptions, RpcSharedStateHost, RpcStreamingChannel, RpcStreamingChannelOptions, RpcStreamingHost, Thenable } from "devframe/types";
|
|
5
|
-
export { RpcStreamingChannel as C, Thenable as E, RpcSharedStateHost as S, RpcStreamingHost as T, RpcBroadcastOptions as _, DevframeDiagnosticsLogger as a, RpcFunctionsHost as b, DevframeRpcClientFunctions as c, DevframeViewHost as d, EntriesToObject as f, PartialWithoutId as g, EventsMap as h, DevframeDiagnosticsHost as i, DevframeRpcServerFunctions as l, EventUnsubscribe as m, DevframeCapabilities as n, DevframeHost$1 as o, EventEmitter$1 as p, DevframeDiagnosticsDefinition as r, DevframeNodeRpcSession as s, ConnectionMeta$1 as t, DevframeRpcSharedStates as u, RpcDefinitionsFilter as v, RpcStreamingChannelOptions as w, RpcSharedStateGetOptions as x, RpcDefinitionsToFunctions as y };
|