@devframes/hub 0.7.3 → 0.7.5
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 +3 -3
- package/dist/client/index.mjs +1 -1
- package/dist/constants.d.mts +1 -1
- package/dist/{context-C36xWGWi.d.mts → context-vip-UA-J.d.mts} +40 -1
- package/dist/{index-DcPSmxA5.d.mts → index-BvRGGB3C.d.mts} +2 -2
- package/dist/index.d.mts +3 -3
- package/dist/node/index.d.mts +2 -2
- package/dist/node/index.mjs +16 -3
- package/dist/{settings-BY2Ec77-.d.mts → settings-qfQQ1nTD.d.mts} +30 -1
- package/dist/types/index.d.mts +3 -3
- package/package.json +4 -4
package/dist/client/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as DevframeMessagesClient, _ as DevframeMessageEntryInput } from "../context-
|
|
2
|
-
import { A as RemoteConnectionInfo, h as DevframeDockEntry, i as DevframeCommandEntry, m as DevframeDockEntriesGrouped, n as DevframeClientCommand, o as DevframeCommandKeybinding, t as DevframeDocksUserSettings, y as DevframeDockUserEntry } from "../settings-
|
|
3
|
-
import "../index-
|
|
1
|
+
import { S as DevframeMessagesClient, _ as DevframeMessageEntryInput } from "../context-vip-UA-J.mjs";
|
|
2
|
+
import { A as RemoteConnectionInfo, h as DevframeDockEntry, i as DevframeCommandEntry, m as DevframeDockEntriesGrouped, n as DevframeClientCommand, o as DevframeCommandKeybinding, t as DevframeDocksUserSettings, y as DevframeDockUserEntry } from "../settings-qfQQ1nTD.mjs";
|
|
3
|
+
import "../index-BvRGGB3C.mjs";
|
|
4
4
|
import { DevframeClientRpcHost, DevframeConnectionStatus, DevframeRpcClient, DevframeRpcClientOptions, DevframeRpcContext, RpcClientEvents, RpcClientEvents as RpcClientEvents$1 } from "devframe/client";
|
|
5
5
|
import { EventEmitter } from "devframe/types";
|
|
6
6
|
import { SharedState } from "devframe/utils/shared-state";
|
package/dist/client/index.mjs
CHANGED
|
@@ -29,7 +29,7 @@ function setDevframeClientContext(ctx) {
|
|
|
29
29
|
* dock client script reports into the very feed the server writes to.
|
|
30
30
|
*/
|
|
31
31
|
function createMessagesClient(rpc, options = {}) {
|
|
32
|
-
const call = rpc
|
|
32
|
+
const { call } = rpc;
|
|
33
33
|
function makeHandle(entry) {
|
|
34
34
|
let current = entry;
|
|
35
35
|
return {
|
package/dist/constants.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as DevframeDocksUserSettings } from "./settings-
|
|
1
|
+
import { t as DevframeDocksUserSettings } from "./settings-qfQQ1nTD.mjs";
|
|
2
2
|
export * from "devframe/constants";
|
|
3
3
|
//#region src/constants.d.ts
|
|
4
4
|
declare const DEFAULT_CATEGORIES_ORDER: Record<string, number>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as JsonRenderSpec, P as JsonRenderer, c as DevframeCommandsHost, p as DevframeDockActivation, v as DevframeDockEntryIcon, x as DevframeDocksHost } from "./settings-
|
|
1
|
+
import { N as JsonRenderSpec, P as JsonRenderer, c as DevframeCommandsHost, p as DevframeDockActivation, v as DevframeDockEntryIcon, x as DevframeDocksHost } from "./settings-qfQQ1nTD.mjs";
|
|
2
2
|
import { CreateHostContextOptions } from "devframe/node";
|
|
3
3
|
import { DevframeHost, DevframeNodeContext, EventEmitter } from "devframe/types";
|
|
4
4
|
import { ChildProcess } from "node:child_process";
|
|
@@ -338,6 +338,45 @@ declare module 'devframe/types' {
|
|
|
338
338
|
*/
|
|
339
339
|
'devframe:messages:updated': () => Promise<void>;
|
|
340
340
|
}
|
|
341
|
+
interface DevframeRpcServerFunctions {
|
|
342
|
+
/**
|
|
343
|
+
* Ask the active viewer to switch its focused dock to `dockId`, optionally
|
|
344
|
+
* carrying `params` for the target dock to interpret (e.g.
|
|
345
|
+
* `{ sessionId }` for the terminals dock). Any connected client may call
|
|
346
|
+
* it — a mounted devframe in its own iframe steers the host shell's dock
|
|
347
|
+
* selection. Handled by {@link import('./rpc-builtins').hubDocksActivate}.
|
|
348
|
+
*/
|
|
349
|
+
'hub:docks:activate': (input: {
|
|
350
|
+
dockId: string;
|
|
351
|
+
params?: Record<string, unknown>;
|
|
352
|
+
}) => Promise<void>;
|
|
353
|
+
/**
|
|
354
|
+
* Invoke a registered server command by id; trailing args are forwarded to
|
|
355
|
+
* the command's handler. Handled by
|
|
356
|
+
* {@link import('./rpc-builtins').hubCommandsExecute}.
|
|
357
|
+
*/
|
|
358
|
+
'hub:commands:execute': (id: string, ...args: any[]) => Promise<unknown>;
|
|
359
|
+
/**
|
|
360
|
+
* Add a message from a browser client into the hub's messages feed
|
|
361
|
+
* (marked `from: 'browser'`); returns the serializable entry. Handled by
|
|
362
|
+
* {@link import('./rpc-builtins').hubMessagesAdd}.
|
|
363
|
+
*/
|
|
364
|
+
'hub:messages:add': (input: DevframeMessageEntryInput) => Promise<DevframeMessageEntry>;
|
|
365
|
+
/** Patch a message by id; resolves the updated entry (or `undefined`). */
|
|
366
|
+
'hub:messages:update': (id: string, patch: Partial<DevframeMessageEntryInput>) => Promise<DevframeMessageEntry | undefined>;
|
|
367
|
+
/** Remove a message by id. */
|
|
368
|
+
'hub:messages:remove': (id: string) => Promise<void>;
|
|
369
|
+
/** Remove every message. */
|
|
370
|
+
'hub:messages:clear': () => Promise<void>;
|
|
371
|
+
/**
|
|
372
|
+
* Send input to an interactive PTY session spawned via
|
|
373
|
+
* `ctx.terminals.startPtySession`. Handled by
|
|
374
|
+
* {@link import('./rpc-builtins').hubTerminalsWrite}.
|
|
375
|
+
*/
|
|
376
|
+
'hub:terminals:write': (id: string, data: string) => Promise<void>;
|
|
377
|
+
/** Resize an interactive PTY session by id. */
|
|
378
|
+
'hub:terminals:resize': (id: string, cols: number, rows: number) => Promise<void>;
|
|
379
|
+
}
|
|
341
380
|
}
|
|
342
381
|
/**
|
|
343
382
|
* Hub-augmented node context — extends devframe's framework-neutral
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./context-
|
|
2
|
-
import "./settings-
|
|
1
|
+
import "./context-vip-UA-J.mjs";
|
|
2
|
+
import "./settings-qfQQ1nTD.mjs";
|
|
3
3
|
import { RpcDefinitionsFilter, RpcDefinitionsToFunctions } from "devframe/rpc";
|
|
4
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
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 };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as DevframeMessagesHost, S as DevframeMessagesClient, T as DevframeMessagesListDelta, _ as DevframeMessageEntryInput, a as DevframeChildProcessOutput, b as DevframeMessageLevel, c as DevframePtyExecuteOptions, d as DevframeTerminalSessionBase, f as DevframeTerminalStatus, g as DevframeMessageEntryFrom, h as DevframeMessageEntry, i as DevframeChildProcessExecuteOptions, l as DevframePtyTerminalSession, m as DevframeMessageElementPosition, n as DevframeHubContext, o as DevframeChildProcessResult, p as DevframeTerminalsHost, s as DevframeChildProcessTerminalSession, t as CreateHubContextOptions, u as DevframeTerminalSession, v as DevframeMessageFilePosition, w as DevframeMessagesLevelShortcuts, x as DevframeMessageShortcutInput, y as DevframeMessageHandle } from "./context-
|
|
2
|
-
import { A as RemoteConnectionInfo, C as DevframeViewBuiltin, D as DevframeViewJsonRender, E as DevframeViewIframe, M as JsonRenderElement, N as JsonRenderSpec, O as DevframeViewLauncher, P as JsonRenderer, S as DevframeViewAction, T as DevframeViewGroup, _ as DevframeDockEntryCategory, a as DevframeCommandHandle, b as DevframeDocksActiveState, c as DevframeCommandsHost, d as DevframeServerCommandInput, f as ClientScriptEntry, g as DevframeDockEntryBase, h as DevframeDockEntry, i as DevframeCommandEntry, j as RemoteDockOptions, k as DevframeViewLauncherStatus, l as DevframeCommandsHostEvents, m as DevframeDockEntriesGrouped, n as DevframeClientCommand, o as DevframeCommandKeybinding, p as DevframeDockActivation, r as DevframeCommandBase, s as DevframeCommandShortcutOverrides, t as DevframeDocksUserSettings, u as DevframeServerCommandEntry, v as DevframeDockEntryIcon, w as DevframeViewCustomRender, x as DevframeDocksHost, y as DevframeDockUserEntry } from "./settings-
|
|
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-
|
|
1
|
+
import { C as DevframeMessagesHost, S as DevframeMessagesClient, T as DevframeMessagesListDelta, _ as DevframeMessageEntryInput, a as DevframeChildProcessOutput, b as DevframeMessageLevel, c as DevframePtyExecuteOptions, d as DevframeTerminalSessionBase, f as DevframeTerminalStatus, g as DevframeMessageEntryFrom, h as DevframeMessageEntry, i as DevframeChildProcessExecuteOptions, l as DevframePtyTerminalSession, m as DevframeMessageElementPosition, n as DevframeHubContext, o as DevframeChildProcessResult, p as DevframeTerminalsHost, s as DevframeChildProcessTerminalSession, t as CreateHubContextOptions, u as DevframeTerminalSession, v as DevframeMessageFilePosition, w as DevframeMessagesLevelShortcuts, x as DevframeMessageShortcutInput, y as DevframeMessageHandle } from "./context-vip-UA-J.mjs";
|
|
2
|
+
import { A as RemoteConnectionInfo, C as DevframeViewBuiltin, D as DevframeViewJsonRender, E as DevframeViewIframe, M as JsonRenderElement, N as JsonRenderSpec, O as DevframeViewLauncher, P as JsonRenderer, S as DevframeViewAction, T as DevframeViewGroup, _ as DevframeDockEntryCategory, a as DevframeCommandHandle, b as DevframeDocksActiveState, c as DevframeCommandsHost, d as DevframeServerCommandInput, f as ClientScriptEntry, g as DevframeDockEntryBase, h as DevframeDockEntry, i as DevframeCommandEntry, j as RemoteDockOptions, k as DevframeViewLauncherStatus, l as DevframeCommandsHostEvents, m as DevframeDockEntriesGrouped, n as DevframeClientCommand, o as DevframeCommandKeybinding, p as DevframeDockActivation, r as DevframeCommandBase, s as DevframeCommandShortcutOverrides, t as DevframeDocksUserSettings, u as DevframeServerCommandEntry, v as DevframeDockEntryIcon, w as DevframeViewCustomRender, x as DevframeDocksHost, y as DevframeDockUserEntry } from "./settings-qfQQ1nTD.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-BvRGGB3C.mjs";
|
|
4
4
|
import { WhenContext, WhenExpression } from "devframe/utils/when";
|
|
5
5
|
//#region src/define.d.ts
|
|
6
6
|
declare const defineHubRpcFunction: <NAME extends string, TYPE extends import("devframe/rpc").RpcFunctionType, ARGS extends any[], RETURN = void, const AS extends import("devframe/rpc").RpcArgsSchema | undefined = undefined, const RS extends import("devframe/rpc").RpcReturnSchema | undefined = undefined>(definition: import("devframe/rpc").RpcFunctionDefinition<NAME, TYPE, ARGS, RETURN, AS, RS, DevframeHubContext>) => import("devframe/rpc").RpcFunctionDefinition<NAME, TYPE, ARGS, RETURN, AS, RS, DevframeHubContext>;
|
package/dist/node/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as DevframeMessagesHost$1, T as DevframeMessagesListDelta, _ as DevframeMessageEntryInput, c as DevframePtyExecuteOptions, d as DevframeTerminalSessionBase, h as DevframeMessageEntry, i as DevframeChildProcessExecuteOptions, l as DevframePtyTerminalSession, n as DevframeHubContext, p as DevframeTerminalsHost$1, r as createHubContext, s as DevframeChildProcessTerminalSession, t as CreateHubContextOptions, u as DevframeTerminalSession, x as DevframeMessageShortcutInput, y as DevframeMessageHandle } from "../context-
|
|
2
|
-
import { E as DevframeViewIframe, a as DevframeCommandHandle, c as DevframeCommandsHost$1, d as DevframeServerCommandInput, f as ClientScriptEntry, h as DevframeDockEntry, t as DevframeDocksUserSettings, u as DevframeServerCommandEntry, x as DevframeDocksHost$1, y as DevframeDockUserEntry } from "../settings-
|
|
1
|
+
import { C as DevframeMessagesHost$1, T as DevframeMessagesListDelta, _ as DevframeMessageEntryInput, c as DevframePtyExecuteOptions, d as DevframeTerminalSessionBase, h as DevframeMessageEntry, i as DevframeChildProcessExecuteOptions, l as DevframePtyTerminalSession, n as DevframeHubContext, p as DevframeTerminalsHost$1, r as createHubContext, s as DevframeChildProcessTerminalSession, t as CreateHubContextOptions, u as DevframeTerminalSession, x as DevframeMessageShortcutInput, y as DevframeMessageHandle } from "../context-vip-UA-J.mjs";
|
|
2
|
+
import { E as DevframeViewIframe, a as DevframeCommandHandle, c as DevframeCommandsHost$1, d as DevframeServerCommandInput, f as ClientScriptEntry, h as DevframeDockEntry, t as DevframeDocksUserSettings, u as DevframeServerCommandEntry, x as DevframeDocksHost$1, y as DevframeDockUserEntry } from "../settings-qfQQ1nTD.mjs";
|
|
3
3
|
import { RpcFunctionDefinitionAny } from "devframe/rpc";
|
|
4
4
|
import { DevframeDefinition } from "devframe/types";
|
|
5
5
|
import { SharedState } from "devframe/utils/shared-state";
|
package/dist/node/index.mjs
CHANGED
|
@@ -225,7 +225,7 @@ var DevframeDocksHost = class {
|
|
|
225
225
|
}
|
|
226
226
|
async init() {
|
|
227
227
|
this.userSettings = await this.context.rpc.sharedState.get("devframe:user-settings", { sharedState: createStorage({
|
|
228
|
-
filepath: join(this.context.host.getStorageDir("
|
|
228
|
+
filepath: join(this.context.host.getStorageDir("project"), "settings.json"),
|
|
229
229
|
initialValue: DEFAULT_STATE_USER_SETTINGS()
|
|
230
230
|
}) });
|
|
231
231
|
}
|
|
@@ -579,6 +579,12 @@ var DevframeTerminalsHost = class {
|
|
|
579
579
|
let currentResult;
|
|
580
580
|
let runId = 0;
|
|
581
581
|
let streamClosed = false;
|
|
582
|
+
let session;
|
|
583
|
+
const markStatus = (next) => {
|
|
584
|
+
if (session.status === next) return;
|
|
585
|
+
session.status = next;
|
|
586
|
+
this.events.emit("terminal:session:updated", session);
|
|
587
|
+
};
|
|
582
588
|
const closeStream = () => {
|
|
583
589
|
if (streamClosed) return;
|
|
584
590
|
streamClosed = true;
|
|
@@ -605,6 +611,7 @@ var DevframeTerminalsHost = class {
|
|
|
605
611
|
});
|
|
606
612
|
function createChildProcess() {
|
|
607
613
|
const currentRun = ++runId;
|
|
614
|
+
let runErrored = false;
|
|
608
615
|
const cp = exec(executeOptions.command, executeOptions.args || [], { nodeOptions: {
|
|
609
616
|
env: {
|
|
610
617
|
COLORS: "true",
|
|
@@ -644,12 +651,16 @@ var DevframeTerminalsHost = class {
|
|
|
644
651
|
});
|
|
645
652
|
cp.process?.once("error", (error) => {
|
|
646
653
|
if (currentRun !== runId) return;
|
|
654
|
+
runErrored = true;
|
|
647
655
|
settle(cp.process?.exitCode ?? void 0);
|
|
648
656
|
errorStream(error);
|
|
657
|
+
markStatus("error");
|
|
649
658
|
});
|
|
650
659
|
cp.process?.once("close", (code) => {
|
|
651
660
|
settle(code ?? void 0);
|
|
652
|
-
if (currentRun
|
|
661
|
+
if (currentRun !== runId) return;
|
|
662
|
+
closeStream();
|
|
663
|
+
if (!runErrored) markStatus(typeof code === "number" && code !== 0 ? "error" : "stopped");
|
|
653
664
|
});
|
|
654
665
|
currentResult = {
|
|
655
666
|
get pid() {
|
|
@@ -671,13 +682,15 @@ var DevframeTerminalsHost = class {
|
|
|
671
682
|
if (streamClosed) return;
|
|
672
683
|
cp?.kill();
|
|
673
684
|
cp = createChildProcess();
|
|
685
|
+
markStatus("running");
|
|
674
686
|
};
|
|
675
687
|
const terminate = async () => {
|
|
676
688
|
cp?.kill();
|
|
677
689
|
cp = void 0;
|
|
678
690
|
closeStream();
|
|
691
|
+
markStatus("stopped");
|
|
679
692
|
};
|
|
680
|
-
|
|
693
|
+
session = {
|
|
681
694
|
...terminal,
|
|
682
695
|
status: "running",
|
|
683
696
|
stream,
|
|
@@ -201,7 +201,36 @@ interface DevframeViewLauncher extends DevframeDockEntryBase {
|
|
|
201
201
|
description?: string;
|
|
202
202
|
buttonStart?: string;
|
|
203
203
|
buttonLoading?: string;
|
|
204
|
-
|
|
204
|
+
/**
|
|
205
|
+
* Bound command id: the launch button, command palette entry, and any
|
|
206
|
+
* keybinding all resolve to this one handler. A viewer running out of
|
|
207
|
+
* process dispatches it over the `hub:commands:execute` RPC — the
|
|
208
|
+
* serializable path {@link onLaunch} can't cross, since a function is
|
|
209
|
+
* dropped when the entry is projected into the `devframe:docks` shared
|
|
210
|
+
* state. Register the command (with its handler) via `ctx.commands`.
|
|
211
|
+
*/
|
|
212
|
+
command?: string;
|
|
213
|
+
/**
|
|
214
|
+
* Id of the terminal session this launcher tracks (e.g. the one returned
|
|
215
|
+
* by `ctx.terminals.startChildProcess`). A viewer surfaces a first-class
|
|
216
|
+
* "view in terminal" action that calls `hub:docks:activate` with the
|
|
217
|
+
* terminals dock id and `{ sessionId: terminalSessionId }`, jumping the
|
|
218
|
+
* user straight to the running process.
|
|
219
|
+
*/
|
|
220
|
+
terminalSessionId?: string;
|
|
221
|
+
/**
|
|
222
|
+
* Latest single line of progress for inline display beneath the launcher
|
|
223
|
+
* (e.g. the tail of the tracked session's output). Author-set: the owner
|
|
224
|
+
* patches it via `docks.update()` as the process reports progress.
|
|
225
|
+
*/
|
|
226
|
+
digest?: string;
|
|
227
|
+
/**
|
|
228
|
+
* In-process launch handler. Optional: a same-process host can invoke it
|
|
229
|
+
* directly, but it does not survive projection into shared state, so an
|
|
230
|
+
* out-of-process viewer relies on {@link command} instead. Provide one or
|
|
231
|
+
* both.
|
|
232
|
+
*/
|
|
233
|
+
onLaunch?: () => Promise<void>;
|
|
205
234
|
};
|
|
206
235
|
}
|
|
207
236
|
interface DevframeViewAction extends DevframeDockEntryBase {
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as DevframeMessagesHost, S as DevframeMessagesClient, T as DevframeMessagesListDelta, _ as DevframeMessageEntryInput, a as DevframeChildProcessOutput, b as DevframeMessageLevel, c as DevframePtyExecuteOptions, d as DevframeTerminalSessionBase, f as DevframeTerminalStatus, g as DevframeMessageEntryFrom, h as DevframeMessageEntry, i as DevframeChildProcessExecuteOptions, l as DevframePtyTerminalSession, m as DevframeMessageElementPosition, n as DevframeHubContext, o as DevframeChildProcessResult, p as DevframeTerminalsHost, s as DevframeChildProcessTerminalSession, t as CreateHubContextOptions, u as DevframeTerminalSession, v as DevframeMessageFilePosition, w as DevframeMessagesLevelShortcuts, x as DevframeMessageShortcutInput, y as DevframeMessageHandle } from "../context-
|
|
2
|
-
import { A as RemoteConnectionInfo, C as DevframeViewBuiltin, D as DevframeViewJsonRender, E as DevframeViewIframe, M as JsonRenderElement, N as JsonRenderSpec, O as DevframeViewLauncher, P as JsonRenderer, S as DevframeViewAction, T as DevframeViewGroup, _ as DevframeDockEntryCategory, a as DevframeCommandHandle, b as DevframeDocksActiveState, c as DevframeCommandsHost, d as DevframeServerCommandInput, f as ClientScriptEntry, g as DevframeDockEntryBase, h as DevframeDockEntry, i as DevframeCommandEntry, j as RemoteDockOptions, k as DevframeViewLauncherStatus, l as DevframeCommandsHostEvents, m as DevframeDockEntriesGrouped, n as DevframeClientCommand, o as DevframeCommandKeybinding, p as DevframeDockActivation, r as DevframeCommandBase, s as DevframeCommandShortcutOverrides, t as DevframeDocksUserSettings, u as DevframeServerCommandEntry, v as DevframeDockEntryIcon, w as DevframeViewCustomRender, x as DevframeDocksHost, y as DevframeDockUserEntry } from "../settings-
|
|
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-
|
|
1
|
+
import { C as DevframeMessagesHost, S as DevframeMessagesClient, T as DevframeMessagesListDelta, _ as DevframeMessageEntryInput, a as DevframeChildProcessOutput, b as DevframeMessageLevel, c as DevframePtyExecuteOptions, d as DevframeTerminalSessionBase, f as DevframeTerminalStatus, g as DevframeMessageEntryFrom, h as DevframeMessageEntry, i as DevframeChildProcessExecuteOptions, l as DevframePtyTerminalSession, m as DevframeMessageElementPosition, n as DevframeHubContext, o as DevframeChildProcessResult, p as DevframeTerminalsHost, s as DevframeChildProcessTerminalSession, t as CreateHubContextOptions, u as DevframeTerminalSession, v as DevframeMessageFilePosition, w as DevframeMessagesLevelShortcuts, x as DevframeMessageShortcutInput, y as DevframeMessageHandle } from "../context-vip-UA-J.mjs";
|
|
2
|
+
import { A as RemoteConnectionInfo, C as DevframeViewBuiltin, D as DevframeViewJsonRender, E as DevframeViewIframe, M as JsonRenderElement, N as JsonRenderSpec, O as DevframeViewLauncher, P as JsonRenderer, S as DevframeViewAction, T as DevframeViewGroup, _ as DevframeDockEntryCategory, a as DevframeCommandHandle, b as DevframeDocksActiveState, c as DevframeCommandsHost, d as DevframeServerCommandInput, f as ClientScriptEntry, g as DevframeDockEntryBase, h as DevframeDockEntry, i as DevframeCommandEntry, j as RemoteDockOptions, k as DevframeViewLauncherStatus, l as DevframeCommandsHostEvents, m as DevframeDockEntriesGrouped, n as DevframeClientCommand, o as DevframeCommandKeybinding, p as DevframeDockActivation, r as DevframeCommandBase, s as DevframeCommandShortcutOverrides, t as DevframeDocksUserSettings, u as DevframeServerCommandEntry, v as DevframeDockEntryIcon, w as DevframeViewCustomRender, x as DevframeDocksHost, y as DevframeDockUserEntry } from "../settings-qfQQ1nTD.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-BvRGGB3C.mjs";
|
|
4
4
|
export { ClientScriptEntry, type ConnectionMeta, type CreateHubContextOptions, type DevframeCapabilities, DevframeChildProcessExecuteOptions, DevframeChildProcessOutput, DevframeChildProcessResult, DevframeChildProcessTerminalSession, DevframeClientCommand, DevframeCommandBase, DevframeCommandEntry, DevframeCommandHandle, DevframeCommandKeybinding, DevframeCommandShortcutOverrides, DevframeCommandsHost, DevframeCommandsHostEvents, type DevframeDiagnosticsDefinition, type DevframeDiagnosticsHost, type DevframeDiagnosticsLogger, DevframeDockActivation, DevframeDockEntriesGrouped, DevframeDockEntry, DevframeDockEntryBase, DevframeDockEntryCategory, DevframeDockEntryIcon, DevframeDockUserEntry, DevframeDocksActiveState, DevframeDocksHost, DevframeDocksUserSettings, type DevframeHost, type DevframeHubContext, 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, DevframeViewJsonRender, DevframeViewLauncher, DevframeViewLauncherStatus, type EntriesToObject, type EventEmitter, type EventUnsubscribe, type EventsMap, JsonRenderElement, JsonRenderSpec, JsonRenderer, type PartialWithoutId, RemoteConnectionInfo, RemoteDockOptions, type RpcBroadcastOptions, type RpcDefinitionsFilter, type RpcDefinitionsToFunctions, type RpcFunctionsHost, type RpcSharedStateGetOptions, type RpcSharedStateHost, type RpcStreamingChannel, type RpcStreamingChannelOptions, type RpcStreamingHost, type Thenable };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devframes/hub",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.5",
|
|
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,7 +33,7 @@
|
|
|
33
33
|
"dist"
|
|
34
34
|
],
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"devframe": "0.7.
|
|
36
|
+
"devframe": "0.7.5"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"birpc": "^4.0.0",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/node": "^26.1.1",
|
|
49
49
|
"mlly": "^1.8.2",
|
|
50
|
-
"tsdown": "^0.22.
|
|
51
|
-
"devframe": "0.7.
|
|
50
|
+
"tsdown": "^0.22.8",
|
|
51
|
+
"devframe": "0.7.5"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "tsdown",
|