@devframes/hub 1.3.0 → 1.3.2
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/{assemble-BO0n24su.mjs → assemble-CVoZ6LEx.mjs} +3 -4
- package/dist/client/index.d.mts +4 -28
- package/dist/client/index.mjs +13 -21
- package/dist/{constants-H0A2VIz0.d.mts → constants-CG98ogR0.d.mts} +1 -5
- package/dist/{constants-BSPQmlA1.mjs → constants-D8KyK82x.mjs} +2 -4
- package/dist/constants.d.mts +1 -1
- package/dist/constants.mjs +1 -2
- package/dist/{context-0RunDMBy.mjs → context-Adz-vHIZ.mjs} +12 -21
- package/dist/{context-Iy5i89Aq.d.mts → context-BNYPzaei.d.mts} +1 -9
- package/dist/{define-Ceekw2EO.mjs → define-BkK39e7g.mjs} +1 -2
- package/dist/{dist-BP3CGpgZ.mjs → dist-vdnat_d2.mjs} +1 -2
- package/dist/{index-tijpvneP.d.mts → index-CH-O4VYT.d.mts} +2 -2
- package/dist/index.d.mts +4 -6
- package/dist/index.mjs +2 -2
- package/dist/{locale-CGR6YyCP.d.mts → locale-Dxxgwfwe.d.mts} +1 -3
- package/dist/{locale-BbVtoVI6.mjs → locale-jFGFwoSG.mjs} +1 -2
- package/dist/node/build.d.mts +2 -4
- package/dist/node/build.mjs +4 -5
- package/dist/node/index.d.mts +2 -14
- package/dist/node/index.mjs +2 -3
- package/dist/node/initiate.d.mts +2 -4
- package/dist/node/initiate.mjs +6 -6
- package/dist/{remote-url-UClKLQ5_.mjs → remote-url-DJLboRWN.mjs} +2 -4
- package/dist/{settings-UN5GnTei.d.mts → settings-BrvCIv6b.d.mts} +0 -10
- package/dist/types/index.d.mts +3 -3
- package/package.json +8 -8
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as resolveClientModuleSpecifier } from "./remote-url-
|
|
2
|
-
import { v as prepareDevframe, y as diagnostics } from "./context-
|
|
1
|
+
import { a as resolveClientModuleSpecifier } from "./remote-url-DJLboRWN.mjs";
|
|
2
|
+
import { v as prepareDevframe, y as diagnostics } from "./context-Adz-vHIZ.mjs";
|
|
3
3
|
import { joinURL, withTrailingSlash } from "devframe/utils/url";
|
|
4
4
|
import { DEVFRAME_CONNECTION_META_FILENAME, DEVFRAME_DOCK_IMPORTS_FILENAME, DEVFRAME_MCP_ROUTE, DEVFRAME_WS_ROUTE } from "devframe/constants";
|
|
5
5
|
import { existsSync } from "node:fs";
|
|
6
6
|
import { resolve } from "pathe";
|
|
7
|
-
|
|
7
|
+
// src/node/assemble.ts
|
|
8
8
|
/** Reserved filenames directly under the hub base; a frame id can't shadow them. */
|
|
9
9
|
const RESERVED_HUB_PATHS = [
|
|
10
10
|
DEVFRAME_CONNECTION_META_FILENAME,
|
|
@@ -94,5 +94,4 @@ async function mountDevframes(ctx, devframes, base) {
|
|
|
94
94
|
}
|
|
95
95
|
return setups;
|
|
96
96
|
}
|
|
97
|
-
//#endregion
|
|
98
97
|
export { resolveRendererRegistrations as i, renderClientImportsModule as n, resolveDevframesInput as r, mountDevframes as t };
|
package/dist/client/index.d.mts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "../index-
|
|
1
|
+
import { n as resolveTitle, t as matchLocale } from "../locale-Dxxgwfwe.mjs";
|
|
2
|
+
import { k as DevframeMessagesClient, w as DevframeMessageEntryInput } from "../context-BNYPzaei.mjs";
|
|
3
|
+
import { A as DevframeViewIframe, C as DevframeDockUserEntry, F as RemoteConnectionInfo, P as NavTarget, S as DevframeDockPanelState, _ as DevframeDockEntry, a as DevframeCommandEntry, b as DevframeDockEntryIcon, g as DevframeDockEntriesGrouped, n as DevframeClientCommand, p as ClientScriptEntry, s as DevframeCommandKeybinding, t as DevframeDocksUserSettings } from "../settings-BrvCIv6b.mjs";
|
|
4
|
+
import "../index-CH-O4VYT.mjs";
|
|
5
5
|
import { DevframeClientRpcHost, DevframeConnection, DevframeConnectionStatus, DevframeRpcClient, DevframeRpcClientOptions, DevframeRpcContext, RpcClientEvents, RpcClientEvents as RpcClientEvents$1 } from "devframe/client";
|
|
6
6
|
import { EventEmitter } from "devframe/types";
|
|
7
7
|
import { SharedState } from "devframe/utils/shared-state";
|
|
8
8
|
import { WhenContext } from "devframe/utils/when";
|
|
9
9
|
export * from "devframe/client";
|
|
10
|
-
//#region src/client-modules.d.ts
|
|
11
10
|
/**
|
|
12
11
|
* Resolve a dock client script's `importFrom` to the URL to import. URL
|
|
13
12
|
* specifiers pass through untouched; a **bare** specifier resolves through
|
|
@@ -30,8 +29,6 @@ export declare function resolveClientModuleSpecifier(specifier: string, options?
|
|
|
30
29
|
* {@link resolveClientModuleSpecifier}).
|
|
31
30
|
*/
|
|
32
31
|
export declare function clientScriptFailureHint(importFrom: string, specifier: string): string;
|
|
33
|
-
//#endregion
|
|
34
|
-
//#region src/client/renderers.d.ts
|
|
35
32
|
/**
|
|
36
33
|
* Options handed to a dock renderer when the client host mounts a dock entry.
|
|
37
34
|
*/
|
|
@@ -150,8 +147,6 @@ export interface CreateDockRenderersContextOptions {
|
|
|
150
147
|
* manifest imports, and the typed mount result behave identically everywhere.
|
|
151
148
|
*/
|
|
152
149
|
export declare function createDockRenderersContext(options: CreateDockRenderersContextOptions): DockRenderersContext;
|
|
153
|
-
//#endregion
|
|
154
|
-
//#region src/client/docks.d.ts
|
|
155
150
|
export interface DockPanelStorage {
|
|
156
151
|
mode: 'float' | 'edge';
|
|
157
152
|
width: number;
|
|
@@ -425,8 +420,6 @@ export interface CommandsContext {
|
|
|
425
420
|
*/
|
|
426
421
|
openPalette: (atCommandId?: string) => void;
|
|
427
422
|
}
|
|
428
|
-
//#endregion
|
|
429
|
-
//#region src/client/client-script.d.ts
|
|
430
423
|
/**
|
|
431
424
|
* Context for client scripts running in dock entries
|
|
432
425
|
*/
|
|
@@ -441,8 +434,6 @@ export interface DockClientScriptContext extends DocksContext {
|
|
|
441
434
|
*/
|
|
442
435
|
messages: DevframeMessagesClient;
|
|
443
436
|
}
|
|
444
|
-
//#endregion
|
|
445
|
-
//#region src/client/context.d.ts
|
|
446
437
|
declare const CLIENT_CONTEXT_KEY = "__DEVFRAME_HUB_CLIENT_CONTEXT__";
|
|
447
438
|
/**
|
|
448
439
|
* Get the global Devframe client context, or `undefined` if not yet initialized.
|
|
@@ -454,8 +445,6 @@ export declare function getDevframeClientContext(): DevframeClientContext | unde
|
|
|
454
445
|
* script or a hub UI provider reads it back with {@link getDevframeClientContext}.
|
|
455
446
|
*/
|
|
456
447
|
export declare function setDevframeClientContext(ctx: DevframeClientContext | undefined): void;
|
|
457
|
-
//#endregion
|
|
458
|
-
//#region src/client/dock-resources.d.ts
|
|
459
448
|
/**
|
|
460
449
|
* Resolve a dock iframe URL relative to the Devframe server that provided the
|
|
461
450
|
* dock entry. This keeps root-relative and dot-relative paths on the host
|
|
@@ -464,8 +453,6 @@ export declare function setDevframeClientContext(ctx: DevframeClientContext | un
|
|
|
464
453
|
export declare function resolveDockUrl(url: string, connection: DevframeConnection): string;
|
|
465
454
|
/** Resolve URL-backed dock icons while preserving Iconify names and data URLs. */
|
|
466
455
|
export declare function resolveDockIcon(icon: DevframeDockEntryIcon, connection: DevframeConnection): DevframeDockEntryIcon;
|
|
467
|
-
//#endregion
|
|
468
|
-
//#region src/client/frame-location.d.ts
|
|
469
456
|
/**
|
|
470
457
|
* Live location tracking for an iframe dock.
|
|
471
458
|
*
|
|
@@ -537,8 +524,6 @@ export interface WatchFrameLocationOptions {
|
|
|
537
524
|
* embedded page as it was found.
|
|
538
525
|
*/
|
|
539
526
|
export declare function watchFrameLocation(options: WatchFrameLocationOptions): () => void;
|
|
540
|
-
//#endregion
|
|
541
|
-
//#region src/client/frame-nav.d.ts
|
|
542
527
|
/**
|
|
543
528
|
* Shared-iframe soft navigation: the hub-UI-provider-side half of a host-page↔iframe
|
|
544
529
|
* `postMessage` protocol.
|
|
@@ -658,8 +643,6 @@ export interface FrameNavClient {
|
|
|
658
643
|
* dock it registered and detaches its listener.
|
|
659
644
|
*/
|
|
660
645
|
export declare function attachFrameNavClient(options: FrameNavClientOptions): FrameNavClient;
|
|
661
|
-
//#endregion
|
|
662
|
-
//#region src/client/host.d.ts
|
|
663
646
|
export interface DevframeClientRuntimeOptions {
|
|
664
647
|
/**
|
|
665
648
|
* An already-connected RPC client. When omitted, one is created via
|
|
@@ -739,8 +722,6 @@ export interface DevframeClientRuntime {
|
|
|
739
722
|
* runtime is what gives plugin client scripts a live host context to run in.
|
|
740
723
|
*/
|
|
741
724
|
export declare function createDevframeClientRuntime(options?: DevframeClientRuntimeOptions): Promise<DevframeClientRuntime>;
|
|
742
|
-
//#endregion
|
|
743
|
-
//#region src/client/messages.d.ts
|
|
744
725
|
export interface MessagesClientOptions {
|
|
745
726
|
/**
|
|
746
727
|
* Default fields merged beneath every `add()` input. The client host passes
|
|
@@ -756,12 +737,8 @@ export interface MessagesClientOptions {
|
|
|
756
737
|
* dock client script reports into the very feed the server writes to.
|
|
757
738
|
*/
|
|
758
739
|
export declare function createMessagesClient(rpc: DevframeRpcClient, options?: MessagesClientOptions): DevframeMessagesClient;
|
|
759
|
-
//#endregion
|
|
760
|
-
//#region src/remote-url.d.ts
|
|
761
740
|
/** Remove the remote connection descriptor from a URL before displaying or copying it. */
|
|
762
741
|
export declare function stripRemoteConnectionFromUrl(input: string): string;
|
|
763
|
-
//#endregion
|
|
764
|
-
//#region src/client/remote.d.ts
|
|
765
742
|
export type ConnectRemoteDevframeOptions = Omit<DevframeRpcClientOptions, 'connectionMeta' | 'authToken'>;
|
|
766
743
|
/**
|
|
767
744
|
* Build an external viewer URL from an existing trusted Devframe connection.
|
|
@@ -787,5 +764,4 @@ export declare function parseRemoteConnection(input?: string): RemoteConnectionI
|
|
|
787
764
|
* @throws if no descriptor is present in the URL.
|
|
788
765
|
*/
|
|
789
766
|
export declare function connectRemoteDevframe(options?: ConnectRemoteDevframeOptions): Promise<DevframeRpcClient>;
|
|
790
|
-
//#endregion
|
|
791
767
|
export { CLIENT_CONTEXT_KEY, type DevframeClientRpcHost, type RpcClientEvents, matchLocale, resolveTitle };
|
package/dist/client/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { a as resolveClientModuleSpecifier, n as stripRemoteConnectionFromUrl, r as clientScriptFailureHint, t as buildRemoteConnectionUrl } from "../remote-url-DJLboRWN.mjs";
|
|
2
|
+
import { n as resolveTitle, t as matchLocale } from "../locale-jFGFwoSG.mjs";
|
|
3
|
+
import { i as DOCK_RENDERERS_STATE_KEY, n as DEFAULT_STATE_USER_SETTINGS, o as HUB_EVENTS, t as DEFAULT_CATEGORIES_ORDER } from "../constants-D8KyK82x.mjs";
|
|
4
4
|
import { DEVFRAME_EVENTS, REMOTE_CONNECTION_KEY } from "devframe/constants";
|
|
5
5
|
import { connectDevframe, getDevframeRpcClient, resolveWsUrl } from "devframe/client";
|
|
6
6
|
import { createEventEmitter } from "devframe/utils/events";
|
|
7
7
|
import { destr } from "destr";
|
|
8
8
|
export * from "devframe/client";
|
|
9
|
-
|
|
9
|
+
// src/client/context.ts
|
|
10
10
|
const CLIENT_CONTEXT_KEY = "__DEVFRAME_HUB_CLIENT_CONTEXT__";
|
|
11
11
|
/**
|
|
12
12
|
* Get the global Devframe client context, or `undefined` if not yet initialized.
|
|
@@ -22,8 +22,7 @@ function getDevframeClientContext() {
|
|
|
22
22
|
function setDevframeClientContext(ctx) {
|
|
23
23
|
globalThis[CLIENT_CONTEXT_KEY] = ctx;
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
//#region src/client/dock-resources.ts
|
|
25
|
+
// src/client/dock-resources.ts
|
|
27
26
|
const URL_SCHEME_RE = /^[a-z][a-z\d+.-]*:/i;
|
|
28
27
|
function resolveResourceUrl(value, connection) {
|
|
29
28
|
const url = value.trim();
|
|
@@ -78,8 +77,7 @@ function resolveDockIcon(icon, connection) {
|
|
|
78
77
|
dark: resolveIconUrl(icon.dark, connection)
|
|
79
78
|
};
|
|
80
79
|
}
|
|
81
|
-
|
|
82
|
-
//#region src/client/frame-location.ts
|
|
80
|
+
// src/client/frame-location.ts
|
|
83
81
|
/**
|
|
84
82
|
* Track a frame's location until the returned disposer is called. Disposing
|
|
85
83
|
* detaches every listener and restores any wrapped `history` method, leaving the
|
|
@@ -162,8 +160,7 @@ function watchFrameLocation(options) {
|
|
|
162
160
|
detach = void 0;
|
|
163
161
|
};
|
|
164
162
|
}
|
|
165
|
-
|
|
166
|
-
//#region src/client/frame-nav.ts
|
|
163
|
+
// src/client/frame-nav.ts
|
|
167
164
|
/**
|
|
168
165
|
* Shared-iframe soft navigation: the hub-UI-provider-side half of a host-page↔iframe
|
|
169
166
|
* `postMessage` protocol.
|
|
@@ -365,8 +362,7 @@ function serializeNavQuery(query) {
|
|
|
365
362
|
else for (const v of value) params.append(key, v);
|
|
366
363
|
return params.toString();
|
|
367
364
|
}
|
|
368
|
-
|
|
369
|
-
//#region src/client/messages.ts
|
|
365
|
+
// src/client/messages.ts
|
|
370
366
|
/**
|
|
371
367
|
* Build a browser-side {@link DevframeMessagesClient} that writes into the
|
|
372
368
|
* hub's messages subsystem over the `hub:messages:*` built-in RPCs. The handle
|
|
@@ -469,8 +465,7 @@ function createLocalMessagesClient(options) {
|
|
|
469
465
|
debug: levelShortcut("debug")
|
|
470
466
|
};
|
|
471
467
|
}
|
|
472
|
-
|
|
473
|
-
//#region src/client/renderers.ts
|
|
468
|
+
// src/client/renderers.ts
|
|
474
469
|
/**
|
|
475
470
|
* Build the {@link DockRenderersContext} shared by every hub-aware client.
|
|
476
471
|
* `createDevframeClientRuntime` and hub UI providers that assemble their own context
|
|
@@ -560,8 +555,7 @@ function createDockRenderersContext(options) {
|
|
|
560
555
|
}
|
|
561
556
|
};
|
|
562
557
|
}
|
|
563
|
-
|
|
564
|
-
//#region src/client/host.ts
|
|
558
|
+
// src/client/host.ts
|
|
565
559
|
const DOCKS_STATE_KEY = HUB_EVENTS.sharedState.docks;
|
|
566
560
|
const COMMANDS_STATE_KEY = HUB_EVENTS.sharedState.commands;
|
|
567
561
|
const USER_SETTINGS_STATE_KEY = HUB_EVENTS.sharedState.userSettings;
|
|
@@ -985,7 +979,7 @@ async function createDevframeClientRuntime(options = {}) {
|
|
|
985
979
|
/* turbopackIgnore: true */
|
|
986
980
|
specifier
|
|
987
981
|
))[script.importName ?? "default"];
|
|
988
|
-
if (typeof fn !== "function") throw new
|
|
982
|
+
if (typeof fn !== "function") throw new TypeError(`[@devframes/hub] "${specifier}" exports no callable "${script.importName ?? "default"}"`);
|
|
989
983
|
const current = entryToStateMap.get(entryId);
|
|
990
984
|
if (!current || disposed) return;
|
|
991
985
|
/** Reject instead of caching skipped setup so re-authentication can retry it. */
|
|
@@ -1081,8 +1075,7 @@ function groupByCategory(entries, categoryOrder) {
|
|
|
1081
1075
|
}
|
|
1082
1076
|
return [...groups.entries()].sort(([a], [b]) => (categoryOrder[a] ?? 0) - (categoryOrder[b] ?? 0));
|
|
1083
1077
|
}
|
|
1084
|
-
|
|
1085
|
-
//#region src/client/remote.ts
|
|
1078
|
+
// src/client/remote.ts
|
|
1086
1079
|
function base64UrlDecode(value) {
|
|
1087
1080
|
const padLen = (4 - value.length % 4) % 4;
|
|
1088
1081
|
const padded = value.replace(/-/g, "+").replace(/_/g, "/") + "=".repeat(padLen);
|
|
@@ -1185,7 +1178,7 @@ function validateConnectionDescriptor(payload) {
|
|
|
1185
1178
|
if (info.v !== 1) throw new Error(`[@devframes/hub] Unsupported remote connection descriptor version: ${String(info.v)}`);
|
|
1186
1179
|
if (info.backend !== "websocket" || typeof info.websocket !== "string" || !info.websocket) throw new Error("[@devframes/hub] Remote connection descriptor must carry a websocket URL.");
|
|
1187
1180
|
if (typeof info.authToken !== "string" || !info.authToken) throw new Error("[@devframes/hub] Remote connection descriptor must carry an auth token.");
|
|
1188
|
-
if (typeof info.origin !== "string") throw new
|
|
1181
|
+
if (typeof info.origin !== "string") throw new TypeError("[@devframes/hub] Remote connection descriptor must carry an origin.");
|
|
1189
1182
|
return info;
|
|
1190
1183
|
}
|
|
1191
1184
|
/**
|
|
@@ -1206,5 +1199,4 @@ async function connectRemoteDevframe(options = {}) {
|
|
|
1206
1199
|
authToken: info.authToken
|
|
1207
1200
|
});
|
|
1208
1201
|
}
|
|
1209
|
-
//#endregion
|
|
1210
1202
|
export { CLIENT_CONTEXT_KEY, FRAME_NAV_CHANNEL, FRAME_NAV_VERSION, attachFrameNavClient, buildRemoteDevframeUrl, clientScriptFailureHint, connectRemoteDevframe, createDevframeClientRuntime, createDockRenderersContext, createMessagesClient, getDevframeClientContext, matchLocale, parseRemoteConnection, resolveClientModuleSpecifier, resolveDockIcon, resolveDockUrl, resolveTitle, setDevframeClientContext, stripRemoteConnectionFromUrl, watchFrameLocation };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { t as DevframeDocksUserSettings } from "./settings-
|
|
2
|
-
//#region src/events.d.ts
|
|
1
|
+
import { t as DevframeDocksUserSettings } from "./settings-BrvCIv6b.mjs";
|
|
3
2
|
/**
|
|
4
3
|
* Centralized registry of every event, broadcast, RPC method, shared-state
|
|
5
4
|
* key, and channel name the hub uses: the single source of truth that keeps
|
|
@@ -82,8 +81,6 @@ declare const HUB_EVENTS: {
|
|
|
82
81
|
readonly docksActivate: "devframe:docks:activate";
|
|
83
82
|
};
|
|
84
83
|
};
|
|
85
|
-
//#endregion
|
|
86
|
-
//#region src/constants.d.ts
|
|
87
84
|
/** Default mount base for a hub instance: one namespace, one catch-all. */
|
|
88
85
|
declare const DEVFRAMES_HUB_BASE = "/__devframes/";
|
|
89
86
|
/**
|
|
@@ -113,5 +110,4 @@ declare const DEFAULT_CATEGORIES_ORDER: Record<string, number>;
|
|
|
113
110
|
*/
|
|
114
111
|
declare const DOCK_RENDERERS_STATE_KEY: string;
|
|
115
112
|
declare const DEFAULT_STATE_USER_SETTINGS: () => DevframeDocksUserSettings;
|
|
116
|
-
//#endregion
|
|
117
113
|
export { normalizeHubBase as a, DOCK_RENDERERS_STATE_KEY as i, DEFAULT_STATE_USER_SETTINGS as n, HUB_EVENTS as o, DEVFRAMES_HUB_BASE as r, DEFAULT_CATEGORIES_ORDER as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cleanDoubleSlashes, withLeadingSlash, withTrailingSlash } from "devframe/utils/url";
|
|
2
|
-
|
|
2
|
+
// src/events.ts
|
|
3
3
|
/**
|
|
4
4
|
* Centralized registry of every event, broadcast, RPC method, shared-state
|
|
5
5
|
* key, and channel name the hub uses: the single source of truth that keeps
|
|
@@ -74,8 +74,7 @@ const HUB_EVENTS = {
|
|
|
74
74
|
*/
|
|
75
75
|
broadcastChannel: { docksActivate: "devframe:docks:activate" }
|
|
76
76
|
};
|
|
77
|
-
|
|
78
|
-
//#region src/constants.ts
|
|
77
|
+
// src/constants.ts
|
|
79
78
|
/** Default mount base for a hub instance: one namespace, one catch-all. */
|
|
80
79
|
const DEVFRAMES_HUB_BASE = "/__devframes/";
|
|
81
80
|
/**
|
|
@@ -124,5 +123,4 @@ const DEFAULT_STATE_USER_SETTINGS = () => ({
|
|
|
124
123
|
docksCustomOrder: {},
|
|
125
124
|
commandShortcuts: {}
|
|
126
125
|
});
|
|
127
|
-
//#endregion
|
|
128
126
|
export { normalizeHubBase as a, DOCK_RENDERERS_STATE_KEY as i, DEFAULT_STATE_USER_SETTINGS as n, HUB_EVENTS as o, DEVFRAMES_HUB_BASE as r, DEFAULT_CATEGORIES_ORDER as t };
|
package/dist/constants.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as normalizeHubBase, i as DOCK_RENDERERS_STATE_KEY, n as DEFAULT_STATE_USER_SETTINGS, o as HUB_EVENTS, r as DEVFRAMES_HUB_BASE, t as DEFAULT_CATEGORIES_ORDER } from "./constants-
|
|
1
|
+
import { a as normalizeHubBase, i as DOCK_RENDERERS_STATE_KEY, n as DEFAULT_STATE_USER_SETTINGS, o as HUB_EVENTS, r as DEVFRAMES_HUB_BASE, t as DEFAULT_CATEGORIES_ORDER } from "./constants-CG98ogR0.mjs";
|
|
2
2
|
export * from "devframe/constants";
|
|
3
3
|
export { DEFAULT_CATEGORIES_ORDER, DEFAULT_STATE_USER_SETTINGS, DEVFRAMES_HUB_BASE, DOCK_RENDERERS_STATE_KEY, HUB_EVENTS, normalizeHubBase };
|
package/dist/constants.mjs
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export { t as DEFAULT_CATEGORIES_ORDER, n as DEFAULT_STATE_USER_SETTINGS, r as DEVFRAMES_HUB_BASE, i as DOCK_RENDERERS_STATE_KEY, o as HUB_EVENTS, a as normalizeHubBase } from "./constants-D8KyK82x.mjs";
|
|
2
2
|
export * from "devframe/constants";
|
|
3
|
-
export { DEFAULT_CATEGORIES_ORDER, DEFAULT_STATE_USER_SETTINGS, DEVFRAMES_HUB_BASE, DOCK_RENDERERS_STATE_KEY, HUB_EVENTS, normalizeHubBase };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { n as DEFAULT_STATE_USER_SETTINGS, o as HUB_EVENTS } from "./constants-D8KyK82x.mjs";
|
|
2
|
+
import { i as isBareModuleSpecifier, t as buildRemoteConnectionUrl } from "./remote-url-DJLboRWN.mjs";
|
|
3
|
+
import { r as defineHubRpcFunction } from "./define-BkK39e7g.mjs";
|
|
4
4
|
import { joinURL, withTrailingSlash } from "devframe/utils/url";
|
|
5
5
|
import { createEventEmitter } from "devframe/utils/events";
|
|
6
6
|
import { existsSync } from "node:fs";
|
|
@@ -13,7 +13,7 @@ import { createHostContext, createStorage } from "devframe/node";
|
|
|
13
13
|
import { debounce } from "devframe/utils/debounce";
|
|
14
14
|
import { nanoid } from "devframe/utils/nanoid";
|
|
15
15
|
import { extname, resolve as resolve$1 } from "node:path";
|
|
16
|
-
|
|
16
|
+
// src/node/diagnostics.ts
|
|
17
17
|
/**
|
|
18
18
|
* Hub-side diagnostics for docks, terminals, messages, and commands.
|
|
19
19
|
* Shares the `DF` prefix with devframe core; the hub reserves the
|
|
@@ -128,8 +128,7 @@ const diagnostics = defineDiagnostics({
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
});
|
|
131
|
-
|
|
132
|
-
//#region src/node/install-devframe.ts
|
|
131
|
+
// src/node/install-devframe.ts
|
|
133
132
|
/**
|
|
134
133
|
* Find the next free dock id derived from `baseId`. Returns `baseId`
|
|
135
134
|
* when it is unused, otherwise appends `-2`, `-3`, … until a free slot
|
|
@@ -238,8 +237,7 @@ async function installDevframe(ctx, d, options = {}) {
|
|
|
238
237
|
await ctx.services.ready();
|
|
239
238
|
await run();
|
|
240
239
|
}
|
|
241
|
-
|
|
242
|
-
//#region src/node/host-commands.ts
|
|
240
|
+
// src/node/host-commands.ts
|
|
243
241
|
function findChildCommand(command, id) {
|
|
244
242
|
for (const child of command.children ?? []) {
|
|
245
243
|
if (child.id === id) return child;
|
|
@@ -376,8 +374,7 @@ var DevframeCommandsHost = class {
|
|
|
376
374
|
return tools;
|
|
377
375
|
}
|
|
378
376
|
};
|
|
379
|
-
|
|
380
|
-
//#region src/node/host-docks.ts
|
|
377
|
+
// src/node/host-docks.ts
|
|
381
378
|
function normaliseRemoteOptions(remote) {
|
|
382
379
|
const opts = remote === true ? {} : remote;
|
|
383
380
|
return {
|
|
@@ -496,8 +493,7 @@ var DevframeDocksHost = class {
|
|
|
496
493
|
});
|
|
497
494
|
}
|
|
498
495
|
};
|
|
499
|
-
|
|
500
|
-
//#region src/node/host-messages.ts
|
|
496
|
+
// src/node/host-messages.ts
|
|
501
497
|
const MAX_ENTRIES = 1e3;
|
|
502
498
|
const MAX_REMOVALS = 1e3;
|
|
503
499
|
var DevframeMessagesHost = class {
|
|
@@ -671,8 +667,7 @@ var DevframeMessagesHost = class {
|
|
|
671
667
|
};
|
|
672
668
|
}
|
|
673
669
|
};
|
|
674
|
-
|
|
675
|
-
//#region src/node/pty-command.ts
|
|
670
|
+
// src/node/pty-command.ts
|
|
676
671
|
const DEFAULT_PATHEXT = ".COM;.EXE;.BAT;.CMD";
|
|
677
672
|
const CMD_META_CHARS = /[()[\]%!^"`<>&|;, *?]/g;
|
|
678
673
|
function resolvePtyCommand(command, args, { cwd, env, platform = process.platform }) {
|
|
@@ -731,8 +726,7 @@ function escapeCmd(arg, doubleEscape) {
|
|
|
731
726
|
const escaped = arg.replace(CMD_META_CHARS, "^$&");
|
|
732
727
|
return doubleEscape ? escaped.replace(CMD_META_CHARS, "^$&") : escaped;
|
|
733
728
|
}
|
|
734
|
-
|
|
735
|
-
//#region src/node/host-terminals.ts
|
|
729
|
+
// src/node/host-terminals.ts
|
|
736
730
|
/**
|
|
737
731
|
* Channel name used for terminal stream output. Stable, well-known so
|
|
738
732
|
* hub-aware clients can subscribe by name.
|
|
@@ -1167,8 +1161,7 @@ var DevframeTerminalsHost = class {
|
|
|
1167
1161
|
return session;
|
|
1168
1162
|
}
|
|
1169
1163
|
};
|
|
1170
|
-
|
|
1171
|
-
//#region src/node/rpc-builtins.ts
|
|
1164
|
+
// src/node/rpc-builtins.ts
|
|
1172
1165
|
/**
|
|
1173
1166
|
* Resolve an interactive (PTY) terminal session by id, or throw. Sessions
|
|
1174
1167
|
* spawned via `startChildProcess` are output-only and are rejected here.
|
|
@@ -1351,8 +1344,7 @@ const builtinHubRpcDeclarations = [
|
|
|
1351
1344
|
hubTerminalsRestart,
|
|
1352
1345
|
hubTerminalsRemove
|
|
1353
1346
|
];
|
|
1354
|
-
|
|
1355
|
-
//#region src/node/context.ts
|
|
1347
|
+
// src/node/context.ts
|
|
1356
1348
|
/**
|
|
1357
1349
|
* Create a hub-level node context: wraps devframe's `createHostContext`,
|
|
1358
1350
|
* attaches the hub hosts (`docks`, `terminals`, `messages`, `commands`),
|
|
@@ -1421,5 +1413,4 @@ async function createHubContext(options) {
|
|
|
1421
1413
|
commandsSharedState.mutate(() => commands.list());
|
|
1422
1414
|
return context;
|
|
1423
1415
|
}
|
|
1424
|
-
//#endregion
|
|
1425
1416
|
export { DevframeCommandsHost as _, hubMessagesAdd as a, hubMessagesUpdate as c, hubTerminalsRestart as d, hubTerminalsTerminate as f, DevframeDocksHost as g, DevframeMessagesHost as h, hubDocksActivate as i, hubTerminalsRemove as l, DevframeTerminalsHost as m, builtinHubRpcDeclarations as n, hubMessagesClear as o, hubTerminalsWrite as p, hubCommandsExecute as r, hubMessagesRemove as s, createHubContext as t, hubTerminalsResize as u, prepareDevframe as v, diagnostics as y };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { A as DevframeViewIframe, T as DevframeDocksHost, b as DevframeDockEntryIcon, l as DevframeCommandsHost, m as DevframeDockActivation } from "./settings-
|
|
1
|
+
import { A as DevframeViewIframe, T as DevframeDocksHost, b as DevframeDockEntryIcon, l as DevframeCommandsHost, m as DevframeDockActivation } from "./settings-BrvCIv6b.mjs";
|
|
2
2
|
import { CreateHostContextOptions } from "devframe/node";
|
|
3
3
|
import { DevframeDefinition, DevframeHost, DevframeNodeContext, EventEmitter } from "devframe/types";
|
|
4
4
|
import { ChildProcess } from "node:child_process";
|
|
5
|
-
//#region src/types/messages.d.ts
|
|
6
5
|
type DevframeMessageLevel = 'info' | 'warn' | 'error' | 'success' | 'debug';
|
|
7
6
|
type DevframeMessageEntryFrom = 'server' | 'browser';
|
|
8
7
|
interface DevframeMessageElementPosition {
|
|
@@ -240,8 +239,6 @@ interface DevframeMessagesHost extends DevframeMessagesLevelShortcuts {
|
|
|
240
239
|
*/
|
|
241
240
|
listSince: (since?: number | null) => DevframeMessagesListDelta;
|
|
242
241
|
}
|
|
243
|
-
//#endregion
|
|
244
|
-
//#region src/types/terminals.d.ts
|
|
245
242
|
interface DevframeTerminalsHost {
|
|
246
243
|
readonly sessions: Map<string, DevframeTerminalSession>;
|
|
247
244
|
readonly events: EventEmitter<{
|
|
@@ -387,8 +384,6 @@ interface DevframePtyTerminalSession extends DevframeTerminalSession {
|
|
|
387
384
|
/** Throws `DF8206` once the session's output stream has closed (after a natural exit or `terminate()`); drop it with `ctx.terminals.remove(session)` and start a fresh session instead. */
|
|
388
385
|
restart: () => Promise<void>;
|
|
389
386
|
}
|
|
390
|
-
//#endregion
|
|
391
|
-
//#region src/node/install-devframe.d.ts
|
|
392
387
|
interface InstallDevframeOptions {
|
|
393
388
|
/**
|
|
394
389
|
* Mount path override. Defaults to `d.basePath` or `/__${d.id}/`.
|
|
@@ -404,8 +399,6 @@ interface InstallDevframeOptions {
|
|
|
404
399
|
*/
|
|
405
400
|
dock?: Partial<Omit<DevframeViewIframe, 'id' | 'type' | 'url'>>;
|
|
406
401
|
}
|
|
407
|
-
//#endregion
|
|
408
|
-
//#region src/node/context.d.ts
|
|
409
402
|
declare module 'devframe/types' {
|
|
410
403
|
interface DevframeRpcClientFunctions {
|
|
411
404
|
/**
|
|
@@ -538,5 +531,4 @@ interface CreateHubContextOptions extends CreateHostContextOptions {}
|
|
|
538
531
|
* synchronization that powers a hub-aware client UI.
|
|
539
532
|
*/
|
|
540
533
|
declare function createHubContext(options: CreateHubContextOptions): Promise<DevframeHubContext>;
|
|
541
|
-
//#endregion
|
|
542
534
|
export { DevframeMessagesHost as A, DevframeMessageEntryFrom as C, DevframeMessageLevel as D, DevframeMessageHandle as E, DevframeMessagesListDelta as M, DevframeMessageShortcutInput as O, DevframeMessageEntry as S, DevframeMessageFilePosition as T, DevframeTerminalsHost as _, InstallDevframeOptions as a, DevframeMessageCommandAction as b, DevframeChildProcessResult as c, DevframePtyOutput as d, DevframePtyResult as f, DevframeTerminalStatus as g, DevframeTerminalSessionBase as h, createHubContext as i, DevframeMessagesLevelShortcuts as j, DevframeMessagesClient as k, DevframeChildProcessTerminalSession as l, DevframeTerminalSession as m, DevframeHubContext as n, DevframeChildProcessExecuteOptions as o, DevframePtyTerminalSession as p, HubMountedFrame as r, DevframeChildProcessOutput as s, CreateHubContextOptions as t, DevframePtyExecuteOptions as u, DevframeMessageAction as v, DevframeMessageEntryInput as w, DevframeMessageElementPosition as x, DevframeMessageActivateAction as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createDefineWrapperWithContext } from "devframe/rpc";
|
|
2
|
-
|
|
2
|
+
// src/define.ts
|
|
3
3
|
const defineHubRpcFunction = createDefineWrapperWithContext();
|
|
4
4
|
function defineCommand(command) {
|
|
5
5
|
return command;
|
|
@@ -7,5 +7,4 @@ function defineCommand(command) {
|
|
|
7
7
|
function defineDockEntry(entry) {
|
|
8
8
|
return entry;
|
|
9
9
|
}
|
|
10
|
-
//#endregion
|
|
11
10
|
export { defineDockEntry as n, defineHubRpcFunction as r, defineCommand as t };
|
|
@@ -2,7 +2,7 @@ import "node:fs/promises";
|
|
|
2
2
|
import "node:path";
|
|
3
3
|
import { createServer } from "node:net";
|
|
4
4
|
import { networkInterfaces } from "node:os";
|
|
5
|
-
|
|
5
|
+
// ../../node_modules/.pnpm/get-port-please@3.2.0/node_modules/get-port-please/dist/index.mjs
|
|
6
6
|
const unsafePorts = /* @__PURE__ */ new Set([
|
|
7
7
|
1,
|
|
8
8
|
7,
|
|
@@ -217,5 +217,4 @@ async function checkPort(port, host = process.env.HOST, verbose) {
|
|
|
217
217
|
}
|
|
218
218
|
return port;
|
|
219
219
|
}
|
|
220
|
-
//#endregion
|
|
221
220
|
export { getPort };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
1
|
+
import "./context-BNYPzaei.mjs";
|
|
2
|
+
import "./settings-BrvCIv6b.mjs";
|
|
3
3
|
import { RpcDefinitionsFilter, RpcDefinitionsToFunctions } from "devframe/rpc";
|
|
4
4
|
import { ConnectionMeta as ConnectionMeta$1, DevframeCapabilities, DevframeDiagnosticsHost, DevframeDiagnosticsLogger, DevframeHost as DevframeHost$1, DevframeNodeRpcSession, DevframeRpcClientFunctions, DevframeRpcServerFunctions, DevframeRpcSharedStates, DevframeViewHost, EventEmitter as EventEmitter$1, EventUnsubscribe, EventsMap, RpcBroadcastOptions, RpcFunctionsHost, RpcSharedStateGetOptions, RpcSharedStateHost, RpcStreamingChannel, RpcStreamingChannelOptions, RpcStreamingHost } from "devframe/types";
|
|
5
5
|
export { RpcStreamingHost as S, RpcFunctionsHost as _, DevframeHost$1 as a, RpcStreamingChannel as b, DevframeRpcServerFunctions as c, EventEmitter$1 as d, EventUnsubscribe as f, RpcDefinitionsToFunctions as g, RpcDefinitionsFilter as h, DevframeDiagnosticsLogger as i, DevframeRpcSharedStates as l, RpcBroadcastOptions as m, DevframeCapabilities as n, DevframeNodeRpcSession as o, EventsMap as p, DevframeDiagnosticsHost as r, DevframeRpcClientFunctions as s, ConnectionMeta$1 as t, DevframeViewHost as u, RpcSharedStateGetOptions as v, RpcStreamingChannelOptions as x, RpcSharedStateHost as y };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { n as
|
|
3
|
-
import {
|
|
4
|
-
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-
|
|
1
|
+
import { A as DevframeMessagesHost, C as DevframeMessageEntryFrom, D as DevframeMessageLevel, E as DevframeMessageHandle, M as DevframeMessagesListDelta, O as DevframeMessageShortcutInput, S as DevframeMessageEntry, T as DevframeMessageFilePosition, _ as DevframeTerminalsHost, b as DevframeMessageCommandAction, c as DevframeChildProcessResult, d as DevframePtyOutput, f as DevframePtyResult, g as DevframeTerminalStatus, h as DevframeTerminalSessionBase, j as DevframeMessagesLevelShortcuts, k as DevframeMessagesClient, l as DevframeChildProcessTerminalSession, m as DevframeTerminalSession, n as DevframeHubContext, o as DevframeChildProcessExecuteOptions, p as DevframePtyTerminalSession, s as DevframeChildProcessOutput, t as CreateHubContextOptions, u as DevframePtyExecuteOptions, v as DevframeMessageAction, w as DevframeMessageEntryInput, x as DevframeMessageElementPosition, y as DevframeMessageActivateAction } from "./context-BNYPzaei.mjs";
|
|
2
|
+
import { A as DevframeViewIframe, C as DevframeDockUserEntry, D as DevframeViewBuiltin, E as DevframeViewAction, F as RemoteConnectionInfo, I as RemoteDockOptions, L as DevframeTitleLocales, M as DevframeViewLauncherStatus, N as FrameSubTabsConfig, O as DevframeViewCustomRender, P as NavTarget, R as DevframeTitled, S as DevframeDockPanelState, T as DevframeDocksHost, _ 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 DevframeViewLauncher, k as DevframeViewGroup, 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 DevframeDocksActiveState, x as DevframeDockEntryRegistry, y as DevframeDockEntryCategory } from "./settings-BrvCIv6b.mjs";
|
|
3
|
+
import { n as resolveTitle, t as matchLocale } from "./locale-Dxxgwfwe.mjs";
|
|
4
|
+
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-CH-O4VYT.mjs";
|
|
5
5
|
import { WhenContext, WhenExpression } from "devframe/utils/when";
|
|
6
|
-
//#region src/define.d.ts
|
|
7
6
|
export 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>;
|
|
8
7
|
export declare function defineCommand<const W extends string = ''>(command: Omit<DevframeServerCommandInput, 'when'> & {
|
|
9
8
|
when?: WhenExpression<WhenContext, W>;
|
|
@@ -12,5 +11,4 @@ export declare function defineDockEntry<const T extends DevframeDockUserEntry, c
|
|
|
12
11
|
when?: WhenExpression<WhenContext, W>;
|
|
13
12
|
visibility?: WhenExpression<WhenContext, V>;
|
|
14
13
|
}): T;
|
|
15
|
-
//#endregion
|
|
16
14
|
export { type ClientScriptEntry, type ConnectionMeta, type CreateHubContextOptions, type DevframeCapabilities, type DevframeChildProcessExecuteOptions, type DevframeChildProcessOutput, type DevframeChildProcessResult, type DevframeChildProcessTerminalSession, type DevframeClientCommand, type DevframeCommandAgentOptions, type DevframeCommandBase, type DevframeCommandEntry, type DevframeCommandHandle, type DevframeCommandKeybinding, type DevframeCommandShortcutOverrides, type DevframeCommandsHost, type DevframeCommandsHostEvents, type DevframeDiagnosticsHost, type DevframeDiagnosticsLogger, type DevframeDockActivation, type DevframeDockBadgeVariant, type DevframeDockEntriesGrouped, type DevframeDockEntry, type DevframeDockEntryBase, type DevframeDockEntryCategory, type DevframeDockEntryIcon, type DevframeDockEntryRegistry, type DevframeDockPanelState, type DevframeDockUserEntry, type DevframeDocksActiveState, type DevframeDocksHost, type DevframeDocksUserSettings, type DevframeHost, type DevframeHubContext, type DevframeMessageAction, type DevframeMessageActivateAction, type DevframeMessageCommandAction, type DevframeMessageElementPosition, type DevframeMessageEntry, type DevframeMessageEntryFrom, type DevframeMessageEntryInput, type DevframeMessageFilePosition, type DevframeMessageHandle, type DevframeMessageLevel, type DevframeMessageShortcutInput, type DevframeMessagesClient, type DevframeMessagesHost, type DevframeMessagesLevelShortcuts, type DevframeMessagesListDelta, type DevframeNodeRpcSession, type DevframePtyExecuteOptions, type DevframePtyOutput, type DevframePtyResult, type DevframePtyTerminalSession, type DevframeRpcClientFunctions, type DevframeRpcServerFunctions, type DevframeRpcSharedStates, type DevframeServerCommandEntry, type DevframeServerCommandInput, type DevframeTerminalSession, type DevframeTerminalSessionBase, type DevframeTerminalStatus, type DevframeTerminalsHost, type DevframeTitleLocales, type DevframeTitled, type DevframeViewAction, type DevframeViewBuiltin, type DevframeViewCustomRender, type DevframeViewGroup, type DevframeViewHost, type DevframeViewIframe, type DevframeViewLauncher, type DevframeViewLauncherStatus, type EventEmitter, type EventUnsubscribe, type EventsMap, type FrameSubTabsConfig, type NavTarget, type RemoteConnectionInfo, type RemoteDockOptions, type RpcBroadcastOptions, type RpcDefinitionsFilter, type RpcDefinitionsToFunctions, type RpcFunctionsHost, type RpcSharedStateGetOptions, type RpcSharedStateHost, type RpcStreamingChannel, type RpcStreamingChannelOptions, type RpcStreamingHost, matchLocale, resolveTitle };
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as defineDockEntry, r as defineHubRpcFunction, t as defineCommand } from "./define-
|
|
2
|
-
import { n as resolveTitle, t as matchLocale } from "./locale-
|
|
1
|
+
import { n as defineDockEntry, r as defineHubRpcFunction, t as defineCommand } from "./define-BkK39e7g.mjs";
|
|
2
|
+
import { n as resolveTitle, t as matchLocale } from "./locale-jFGFwoSG.mjs";
|
|
3
3
|
export { defineCommand, defineDockEntry, defineHubRpcFunction, matchLocale, resolveTitle };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { R as DevframeTitled } from "./settings-
|
|
2
|
-
//#region src/locale.d.ts
|
|
1
|
+
import { R as DevframeTitled } from "./settings-BrvCIv6b.mjs";
|
|
3
2
|
/**
|
|
4
3
|
* Pick the tag in `available` closest to `tag`: exact match first, then
|
|
5
4
|
* the Traditional Chinese family (`zh-Hant`, `zh-HK`, `zh-MO` → `zh-TW`),
|
|
@@ -8,5 +7,4 @@ import { R as DevframeTitled } from "./settings-UN5GnTei.mjs";
|
|
|
8
7
|
declare function matchLocale(tag: string | undefined, available: Iterable<string>): string | undefined;
|
|
9
8
|
/** The `title` of a dock entry, command or launcher in `locale`, else its default `title`. */
|
|
10
9
|
declare function resolveTitle(titled: DevframeTitled, locale: string | undefined): string;
|
|
11
|
-
//#endregion
|
|
12
10
|
export { resolveTitle as n, matchLocale as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/locale.ts
|
|
2
2
|
/**
|
|
3
3
|
* Pick the tag in `available` closest to `tag`: exact match first, then
|
|
4
4
|
* the Traditional Chinese family (`zh-Hant`, `zh-HK`, `zh-MO` → `zh-TW`),
|
|
@@ -24,5 +24,4 @@ function resolveTitle(titled, locale) {
|
|
|
24
24
|
const matched = matchLocale(locale, Object.keys(locales));
|
|
25
25
|
return matched ? locales[matched] : titled.title;
|
|
26
26
|
}
|
|
27
|
-
//#endregion
|
|
28
27
|
export { resolveTitle as n, matchLocale as t };
|
package/dist/node/build.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { n as DevframeHubContext, t as CreateHubContextOptions } from "../context-
|
|
1
|
+
import { n as DevframeHubContext, t as CreateHubContextOptions } from "../context-BNYPzaei.mjs";
|
|
2
2
|
import { DevframeHubUi, DevframesInput, DockRendererRegistration } from "./initiate.mjs";
|
|
3
3
|
import { DevframeServiceInput, DevframeStorageScope } from "devframe/types";
|
|
4
|
-
//#region src/node/build.d.ts
|
|
5
4
|
export interface BuildHubOptions {
|
|
6
5
|
/**
|
|
7
6
|
* Output directory the hub subtree is written into. It corresponds to the
|
|
@@ -91,5 +90,4 @@ export interface BuildHubOptions {
|
|
|
91
90
|
* Reads work from the baked dump; live writes (messages, terminals, commands
|
|
92
91
|
* execution) have no server and degrade to no-ops in the clients.
|
|
93
92
|
*/
|
|
94
|
-
export declare function buildHub(options: BuildHubOptions): Promise<void>;
|
|
95
|
-
//#endregion
|
|
93
|
+
export declare function buildHub(options: BuildHubOptions): Promise<void>;
|
package/dist/node/build.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as normalizeHubBase, i as DOCK_RENDERERS_STATE_KEY } from "../constants-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { a as normalizeHubBase, i as DOCK_RENDERERS_STATE_KEY } from "../constants-D8KyK82x.mjs";
|
|
2
|
+
import { i as resolveRendererRegistrations, n as renderClientImportsModule, r as resolveDevframesInput, t as mountDevframes } from "../assemble-CVoZ6LEx.mjs";
|
|
3
|
+
import { t as createHubContext, y as diagnostics } from "../context-Adz-vHIZ.mjs";
|
|
4
4
|
import { joinURL } from "devframe/utils/url";
|
|
5
5
|
import { DEVFRAME_CONNECTION_META_FILENAME, DEVFRAME_DOCK_IMPORTS_FILENAME } from "devframe/constants";
|
|
6
6
|
import { existsSync } from "node:fs";
|
|
@@ -11,7 +11,7 @@ import { collectStaticRpcDump, writeStaticRpcDump } from "devframe/rpc/dump";
|
|
|
11
11
|
import { colors } from "devframe/utils/colors";
|
|
12
12
|
import { resolveStaticAssetsSource } from "devframe/utils/remote-assets";
|
|
13
13
|
import { dirname, resolve } from "pathe";
|
|
14
|
-
|
|
14
|
+
// src/node/build.ts
|
|
15
15
|
/**
|
|
16
16
|
* Produce a self-contained static deploy of a whole hub, the multi-devframe
|
|
17
17
|
* counterpart of devframe's `createBuild`:
|
|
@@ -203,5 +203,4 @@ async function writeConnectionMetas(ctx, base, outDir, resolveOutPath) {
|
|
|
203
203
|
await fs.writeFile(target, JSON.stringify(frameMeta, null, 2), "utf-8");
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
//#endregion
|
|
207
206
|
export { buildHub };
|
package/dist/node/index.d.mts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { A as DevframeMessagesHost$1, E as DevframeMessageHandle, M as DevframeMessagesListDelta, O as DevframeMessageShortcutInput, S as DevframeMessageEntry, _ as DevframeTerminalsHost$1, a as InstallDevframeOptions, h as DevframeTerminalSessionBase, i as createHubContext, l as DevframeChildProcessTerminalSession, m as DevframeTerminalSession, n as DevframeHubContext, o as DevframeChildProcessExecuteOptions, p as DevframePtyTerminalSession, r as HubMountedFrame, t as CreateHubContextOptions, u as DevframePtyExecuteOptions, w as DevframeMessageEntryInput } from "../context-BNYPzaei.mjs";
|
|
2
|
+
import { C as DevframeDockUserEntry, T as DevframeDocksHost$1, _ as DevframeDockEntry, d as DevframeServerCommandEntry, f as DevframeServerCommandInput, l as DevframeCommandsHost$1, o as DevframeCommandHandle, p as ClientScriptEntry, t as DevframeDocksUserSettings } from "../settings-BrvCIv6b.mjs";
|
|
3
3
|
import { RpcFunctionDefinitionAny } from "devframe/rpc";
|
|
4
4
|
import { SharedState } from "devframe/utils/shared-state";
|
|
5
|
-
//#region src/node/host-commands.d.ts
|
|
6
5
|
export declare class DevframeCommandsHost implements DevframeCommandsHost$1 {
|
|
7
6
|
readonly context: DevframeHubContext;
|
|
8
7
|
readonly commands: DevframeCommandsHost$1['commands'];
|
|
@@ -32,8 +31,6 @@ export declare class DevframeCommandsHost implements DevframeCommandsHost$1 {
|
|
|
32
31
|
*/
|
|
33
32
|
private collectAgentTools;
|
|
34
33
|
}
|
|
35
|
-
//#endregion
|
|
36
|
-
//#region src/node/host-docks.d.ts
|
|
37
34
|
export declare class DevframeDocksHost implements DevframeDocksHost$1 {
|
|
38
35
|
readonly context: DevframeHubContext;
|
|
39
36
|
readonly views: DevframeDocksHost$1['views'];
|
|
@@ -62,8 +59,6 @@ export declare class DevframeDocksHost implements DevframeDocksHost$1 {
|
|
|
62
59
|
private validateGroupMembership;
|
|
63
60
|
private prepareRemoteRegistration;
|
|
64
61
|
}
|
|
65
|
-
//#endregion
|
|
66
|
-
//#region src/node/host-messages.d.ts
|
|
67
62
|
export declare class DevframeMessagesHost implements DevframeMessagesHost$1 {
|
|
68
63
|
readonly context: DevframeHubContext;
|
|
69
64
|
readonly entries: DevframeMessagesHost$1['entries'];
|
|
@@ -98,8 +93,6 @@ export declare class DevframeMessagesHost implements DevframeMessagesHost$1 {
|
|
|
98
93
|
listSince(since?: number | null): DevframeMessagesListDelta;
|
|
99
94
|
private _createHandle;
|
|
100
95
|
}
|
|
101
|
-
//#endregion
|
|
102
|
-
//#region src/node/host-terminals.d.ts
|
|
103
96
|
type PartialWithoutId<T extends {
|
|
104
97
|
id: string;
|
|
105
98
|
}> = Partial<T> & {
|
|
@@ -134,8 +127,6 @@ export declare class DevframeTerminalsHost implements DevframeTerminalsHost$1 {
|
|
|
134
127
|
startChildProcess(executeOptions: DevframeChildProcessExecuteOptions, terminal: Omit<DevframeTerminalSessionBase, 'status'>): Promise<DevframeChildProcessTerminalSession>;
|
|
135
128
|
startPtySession(executeOptions: DevframePtyExecuteOptions, terminal: Omit<DevframeTerminalSessionBase, 'status'>): Promise<DevframePtyTerminalSession>;
|
|
136
129
|
}
|
|
137
|
-
//#endregion
|
|
138
|
-
//#region src/node/rpc-builtins.d.ts
|
|
139
130
|
/**
|
|
140
131
|
* `hub:commands:execute`: Invoke a registered server command by id. The
|
|
141
132
|
* arguments after `id` are forwarded to the command's `handler(...)`.
|
|
@@ -211,8 +202,6 @@ export declare const hubDocksActivate: import("devframe/rpc").RpcFunctionDefinit
|
|
|
211
202
|
* list is prepended automatically.
|
|
212
203
|
*/
|
|
213
204
|
export declare const builtinHubRpcDeclarations: readonly RpcFunctionDefinitionAny[];
|
|
214
|
-
//#endregion
|
|
215
|
-
//#region src/node/utils.d.ts
|
|
216
205
|
/**
|
|
217
206
|
* Create a quick `ClientScriptEntry` from an inline function or
|
|
218
207
|
* stringified code. Useful for prototyping `action` / `renderer`
|
|
@@ -221,5 +210,4 @@ export declare const builtinHubRpcDeclarations: readonly RpcFunctionDefinitionAn
|
|
|
221
210
|
* @experimental Prefer a proper importable module for production use.
|
|
222
211
|
*/
|
|
223
212
|
export declare function createSimpleClientScript(fn: string | ((ctx: any) => void)): ClientScriptEntry;
|
|
224
|
-
//#endregion
|
|
225
213
|
export { CreateHubContextOptions, DevframeHubContext, HubMountedFrame, type InstallDevframeOptions, createHubContext };
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as DevframeCommandsHost, a as hubMessagesAdd, c as hubMessagesUpdate, d as hubTerminalsRestart, f as hubTerminalsTerminate, g as DevframeDocksHost, h as DevframeMessagesHost, i as hubDocksActivate, l as hubTerminalsRemove, m as DevframeTerminalsHost, n as builtinHubRpcDeclarations, o as hubMessagesClear, p as hubTerminalsWrite, r as hubCommandsExecute, s as hubMessagesRemove, t as createHubContext, u as hubTerminalsResize } from "../context-
|
|
1
|
+
import { _ as DevframeCommandsHost, a as hubMessagesAdd, c as hubMessagesUpdate, d as hubTerminalsRestart, f as hubTerminalsTerminate, g as DevframeDocksHost, h as DevframeMessagesHost, i as hubDocksActivate, l as hubTerminalsRemove, m as DevframeTerminalsHost, n as builtinHubRpcDeclarations, o as hubMessagesClear, p as hubTerminalsWrite, r as hubCommandsExecute, s as hubMessagesRemove, t as createHubContext, u as hubTerminalsResize } from "../context-Adz-vHIZ.mjs";
|
|
2
2
|
import { Buffer } from "node:buffer";
|
|
3
|
-
|
|
3
|
+
// src/node/utils.ts
|
|
4
4
|
function toDataURL(code) {
|
|
5
5
|
return `data:text/javascript;base64,${Buffer.from(code).toString("base64")}`;
|
|
6
6
|
}
|
|
@@ -17,5 +17,4 @@ function createSimpleClientScript(fn) {
|
|
|
17
17
|
importName: "default"
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
//#endregion
|
|
21
20
|
export { DevframeCommandsHost, DevframeDocksHost, DevframeMessagesHost, DevframeTerminalsHost, builtinHubRpcDeclarations, createHubContext, createSimpleClientScript, hubCommandsExecute, hubDocksActivate, hubMessagesAdd, hubMessagesClear, hubMessagesRemove, hubMessagesUpdate, hubTerminalsRemove, hubTerminalsResize, hubTerminalsRestart, hubTerminalsTerminate, hubTerminalsWrite };
|
package/dist/node/initiate.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as InstallDevframeOptions, n as DevframeHubContext, t as CreateHubContextOptions } from "../context-
|
|
2
|
-
import { r as DEVFRAMES_HUB_BASE } from "../constants-
|
|
1
|
+
import { a as InstallDevframeOptions, n as DevframeHubContext, t as CreateHubContextOptions } from "../context-BNYPzaei.mjs";
|
|
2
|
+
import { r as DEVFRAMES_HUB_BASE } from "../constants-CG98ogR0.mjs";
|
|
3
3
|
import { DevframeInstanceRecord } from "devframe/internal";
|
|
4
4
|
import { Buffer } from "node:buffer";
|
|
5
5
|
import { AuthBannerFunction } from "devframe/recipes/interactive-auth";
|
|
@@ -8,7 +8,6 @@ import { DevframeAuthHandler } from "devframe/node/auth";
|
|
|
8
8
|
import { WsOriginRegistry } from "devframe/rpc/transports/ws-server";
|
|
9
9
|
import { IncomingMessage, Server, ServerResponse } from "node:http";
|
|
10
10
|
import { Duplex } from "node:stream";
|
|
11
|
-
//#region src/node/initiate.d.ts
|
|
12
11
|
/** A `devframes` entry with per-mount dock customization. */
|
|
13
12
|
export interface HubDevframeEntry {
|
|
14
13
|
devframe: DevframeDefinition;
|
|
@@ -309,5 +308,4 @@ export interface HubInstance {
|
|
|
309
308
|
* through {@link HubInstance.attach}.
|
|
310
309
|
*/
|
|
311
310
|
export declare function initHub(options: InitHubOptions): HubInstance;
|
|
312
|
-
//#endregion
|
|
313
311
|
export { DEVFRAMES_HUB_BASE };
|
package/dist/node/initiate.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as normalizeHubBase, i as DOCK_RENDERERS_STATE_KEY, r as DEVFRAMES_HUB_BASE } from "../constants-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { a as normalizeHubBase, i as DOCK_RENDERERS_STATE_KEY, r as DEVFRAMES_HUB_BASE } from "../constants-D8KyK82x.mjs";
|
|
2
|
+
import { i as resolveRendererRegistrations, n as renderClientImportsModule, r as resolveDevframesInput, t as mountDevframes } from "../assemble-CVoZ6LEx.mjs";
|
|
3
|
+
import { t as createHubContext, y as diagnostics } from "../context-Adz-vHIZ.mjs";
|
|
4
4
|
import { joinURL, withoutLeadingSlash } from "devframe/utils/url";
|
|
5
5
|
import { DEVFRAME_CONNECTION_META_FILENAME, DEVFRAME_DOCK_IMPORTS_FILENAME, DEVFRAME_MCP_ROUTE } from "devframe/constants";
|
|
6
6
|
import { readFile } from "node:fs/promises";
|
|
@@ -10,7 +10,7 @@ import { resolve } from "pathe";
|
|
|
10
10
|
import { createInteractiveAuth } from "devframe/recipes/interactive-auth";
|
|
11
11
|
import { mountStaticHandler } from "devframe/utils/serve-static";
|
|
12
12
|
import { H3 } from "h3";
|
|
13
|
-
|
|
13
|
+
// src/node/initiate.ts
|
|
14
14
|
/** Content-type for a UI asset key, inferred from its file extension. */
|
|
15
15
|
function assetContentType(key) {
|
|
16
16
|
if (key.endsWith(".json")) return "application/json; charset=utf-8";
|
|
@@ -107,7 +107,7 @@ function initHub(options) {
|
|
|
107
107
|
*/
|
|
108
108
|
absoluteWsPath: true,
|
|
109
109
|
resolveSidecarPort: async (sidecarHost) => {
|
|
110
|
-
const { getPort } = await import("../dist-
|
|
110
|
+
const { getPort } = await import("../dist-vdnat_d2.mjs");
|
|
111
111
|
return getPort({
|
|
112
112
|
port: 9777,
|
|
113
113
|
portRange: [9777, 9877],
|
|
@@ -153,6 +153,7 @@ function initHub(options) {
|
|
|
153
153
|
instructions: mcpConfig.instructions,
|
|
154
154
|
resourceTemplates: mcpConfig.resourceTemplates,
|
|
155
155
|
onResourcesChanged: mcpConfig.onResourcesChanged,
|
|
156
|
+
prompts: mcpConfig.prompts,
|
|
156
157
|
authorization: mcpConfig.authorization,
|
|
157
158
|
allowedOrigins: mcpConfig.allowedOrigins
|
|
158
159
|
});
|
|
@@ -225,5 +226,4 @@ function initHub(options) {
|
|
|
225
226
|
close: shell.close
|
|
226
227
|
};
|
|
227
228
|
}
|
|
228
|
-
//#endregion
|
|
229
229
|
export { DEVFRAMES_HUB_BASE, initHub };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { REMOTE_CONNECTION_KEY } from "devframe/constants";
|
|
2
|
-
|
|
2
|
+
// src/client-modules.ts
|
|
3
3
|
const URL_SCHEME_RE = /^[a-z][a-z\d+.-]*:/i;
|
|
4
4
|
/**
|
|
5
5
|
* Whether a client-script `importFrom` is a **bare module specifier**: an
|
|
@@ -43,8 +43,7 @@ function clientScriptFailureHint(importFrom, specifier) {
|
|
|
43
43
|
if (specifier === importFrom) return ". The specifier is a bare npm specifier and this host advertises no client-module resolution (`ConnectionMeta.configs.dock.clientModuleResolution`). Serve the script as a self-contained bundle by URL, pass `resolveClientModule` to this client host, or run under a host that resolves bare specifiers (e.g. Vite: `/@id/{specifier}`).";
|
|
44
44
|
return `. The host resolved the bare specifier "${importFrom}" to this URL but could not serve the module. Check the package is installed and resolvable from the host project's root (and built, if its exports point at build output).`;
|
|
45
45
|
}
|
|
46
|
-
|
|
47
|
-
//#region src/remote-url.ts
|
|
46
|
+
// src/remote-url.ts
|
|
48
47
|
function base64UrlEncode(value) {
|
|
49
48
|
const bytes = new TextEncoder().encode(value);
|
|
50
49
|
let binary = "";
|
|
@@ -110,5 +109,4 @@ function stripRemoteConnectionFromUrl(input) {
|
|
|
110
109
|
if (!hashChanged && !queryChanged) return input;
|
|
111
110
|
return hash ? `${beforeHash}#${hash}` : beforeHash;
|
|
112
111
|
}
|
|
113
|
-
//#endregion
|
|
114
112
|
export { resolveClientModuleSpecifier as a, isBareModuleSpecifier as i, stripRemoteConnectionFromUrl as n, clientScriptFailureHint as r, buildRemoteConnectionUrl as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ConnectionMeta, EventEmitter } from "devframe/types";
|
|
2
|
-
//#region src/types/locale.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Translations of a `title`, keyed by BCP 47 tag (`'zh-CN'`, `'ja'`). The
|
|
5
4
|
* plain `title` stays the default and is what a reader shows when no tag
|
|
@@ -12,8 +11,6 @@ interface DevframeTitled {
|
|
|
12
11
|
title: string;
|
|
13
12
|
titleLocales?: DevframeTitleLocales;
|
|
14
13
|
}
|
|
15
|
-
//#endregion
|
|
16
|
-
//#region ../../node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.ts
|
|
17
14
|
/** The Standard Typed interface. This is a base type extended by other specs. */
|
|
18
15
|
interface StandardTypedV1<Input = unknown, Output = Input> {
|
|
19
16
|
/** The Standard properties. */
|
|
@@ -89,8 +86,6 @@ declare namespace StandardSchemaV1 {
|
|
|
89
86
|
/** Infers the output type of a Standard. */
|
|
90
87
|
type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
|
|
91
88
|
}
|
|
92
|
-
//#endregion
|
|
93
|
-
//#region src/types/docks.d.ts
|
|
94
89
|
interface DevframeDocksHost {
|
|
95
90
|
readonly views: Map<string, DevframeDockUserEntry>;
|
|
96
91
|
readonly events: EventEmitter<{
|
|
@@ -589,8 +584,6 @@ interface DevframeDockEntryRegistry {
|
|
|
589
584
|
type DevframeDockUserEntry = DevframeDockEntryRegistry[keyof DevframeDockEntryRegistry];
|
|
590
585
|
type DevframeDockEntry = DevframeDockUserEntry;
|
|
591
586
|
type DevframeDockEntriesGrouped = [category: string, entries: DevframeDockEntry[]][];
|
|
592
|
-
//#endregion
|
|
593
|
-
//#region src/types/commands.d.ts
|
|
594
587
|
interface DevframeCommandKeybinding {
|
|
595
588
|
/**
|
|
596
589
|
* Keyboard shortcut string.
|
|
@@ -755,8 +748,6 @@ interface DevframeCommandShortcutOverrides {
|
|
|
755
748
|
*/
|
|
756
749
|
[commandId: string]: DevframeCommandKeybinding[];
|
|
757
750
|
}
|
|
758
|
-
//#endregion
|
|
759
|
-
//#region src/types/settings.d.ts
|
|
760
751
|
/**
|
|
761
752
|
* Persisted per-user dock + command settings, synced over the
|
|
762
753
|
* `devframe:user-settings` shared state. The generic base carries the hub's
|
|
@@ -787,5 +778,4 @@ interface DevframeDocksUserSettings {
|
|
|
787
778
|
/** Per-command keybinding overrides (empty array = shortcut disabled). */
|
|
788
779
|
commandShortcuts: DevframeCommandShortcutOverrides;
|
|
789
780
|
}
|
|
790
|
-
//#endregion
|
|
791
781
|
export { DevframeViewIframe as A, DevframeDockUserEntry as C, DevframeViewBuiltin as D, DevframeViewAction as E, RemoteConnectionInfo as F, RemoteDockOptions as I, DevframeTitleLocales as L, DevframeViewLauncherStatus as M, FrameSubTabsConfig as N, DevframeViewCustomRender as O, NavTarget as P, DevframeTitled as R, DevframeDockPanelState as S, DevframeDocksHost as T, DevframeDockEntry as _, DevframeCommandEntry as a, DevframeDockEntryIcon as b, DevframeCommandShortcutOverrides as c, DevframeServerCommandEntry as d, DevframeServerCommandInput as f, DevframeDockEntriesGrouped as g, DevframeDockBadgeVariant as h, DevframeCommandBase as i, DevframeViewLauncher as j, DevframeViewGroup as k, DevframeCommandsHost as l, DevframeDockActivation as m, DevframeClientCommand as n, DevframeCommandHandle as o, ClientScriptEntry as p, DevframeCommandAgentOptions as r, DevframeCommandKeybinding as s, DevframeDocksUserSettings as t, DevframeCommandsHostEvents as u, DevframeDockEntryBase as v, DevframeDocksActiveState as w, DevframeDockEntryRegistry as x, DevframeDockEntryCategory as y };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as DevframeViewIframe, C as DevframeDockUserEntry, D as DevframeViewBuiltin, E as DevframeViewAction, F as RemoteConnectionInfo, I as RemoteDockOptions, L as DevframeTitleLocales, M as DevframeViewLauncherStatus, N as FrameSubTabsConfig, O as DevframeViewCustomRender, P as NavTarget, R as DevframeTitled, S as DevframeDockPanelState, T as DevframeDocksHost, _ 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 DevframeViewLauncher, k as DevframeViewGroup, 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 DevframeDocksActiveState, x as DevframeDockEntryRegistry, y as DevframeDockEntryCategory } from "../settings-
|
|
2
|
-
import { A as DevframeMessagesHost, C as DevframeMessageEntryFrom, D as DevframeMessageLevel, E as DevframeMessageHandle, M as DevframeMessagesListDelta, O as DevframeMessageShortcutInput, S as DevframeMessageEntry, T as DevframeMessageFilePosition, _ as DevframeTerminalsHost, b as DevframeMessageCommandAction, c as DevframeChildProcessResult, d as DevframePtyOutput, f as DevframePtyResult, g as DevframeTerminalStatus, h as DevframeTerminalSessionBase, j as DevframeMessagesLevelShortcuts, k as DevframeMessagesClient, l as DevframeChildProcessTerminalSession, m as DevframeTerminalSession, n as DevframeHubContext, o as DevframeChildProcessExecuteOptions, p as DevframePtyTerminalSession, s as DevframeChildProcessOutput, t as CreateHubContextOptions, u as DevframePtyExecuteOptions, v as DevframeMessageAction, w as DevframeMessageEntryInput, x as DevframeMessageElementPosition, y as DevframeMessageActivateAction } from "../context-
|
|
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-
|
|
1
|
+
import { A as DevframeViewIframe, C as DevframeDockUserEntry, D as DevframeViewBuiltin, E as DevframeViewAction, F as RemoteConnectionInfo, I as RemoteDockOptions, L as DevframeTitleLocales, M as DevframeViewLauncherStatus, N as FrameSubTabsConfig, O as DevframeViewCustomRender, P as NavTarget, R as DevframeTitled, S as DevframeDockPanelState, T as DevframeDocksHost, _ 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 DevframeViewLauncher, k as DevframeViewGroup, 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 DevframeDocksActiveState, x as DevframeDockEntryRegistry, y as DevframeDockEntryCategory } from "../settings-BrvCIv6b.mjs";
|
|
2
|
+
import { A as DevframeMessagesHost, C as DevframeMessageEntryFrom, D as DevframeMessageLevel, E as DevframeMessageHandle, M as DevframeMessagesListDelta, O as DevframeMessageShortcutInput, S as DevframeMessageEntry, T as DevframeMessageFilePosition, _ as DevframeTerminalsHost, b as DevframeMessageCommandAction, c as DevframeChildProcessResult, d as DevframePtyOutput, f as DevframePtyResult, g as DevframeTerminalStatus, h as DevframeTerminalSessionBase, j as DevframeMessagesLevelShortcuts, k as DevframeMessagesClient, l as DevframeChildProcessTerminalSession, m as DevframeTerminalSession, n as DevframeHubContext, o as DevframeChildProcessExecuteOptions, p as DevframePtyTerminalSession, s as DevframeChildProcessOutput, t as CreateHubContextOptions, u as DevframePtyExecuteOptions, v as DevframeMessageAction, w as DevframeMessageEntryInput, x as DevframeMessageElementPosition, y as DevframeMessageActivateAction } from "../context-BNYPzaei.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-CH-O4VYT.mjs";
|
|
4
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, DevframeDockPanelState, 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, DevframePtyOutput, DevframePtyResult, DevframePtyTerminalSession, type DevframeRpcClientFunctions, type DevframeRpcServerFunctions, type DevframeRpcSharedStates, DevframeServerCommandEntry, DevframeServerCommandInput, DevframeTerminalSession, DevframeTerminalSessionBase, DevframeTerminalStatus, DevframeTerminalsHost, DevframeTitleLocales, DevframeTitled, 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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devframes/hub",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.2",
|
|
5
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",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"dist"
|
|
36
36
|
],
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@devframes/agentic": "1.3.
|
|
39
|
-
"devframe": "1.3.
|
|
38
|
+
"@devframes/agentic": "1.3.2",
|
|
39
|
+
"devframe": "1.3.2"
|
|
40
40
|
},
|
|
41
41
|
"peerDependenciesMeta": {
|
|
42
42
|
"@devframes/agentic": {
|
|
@@ -45,18 +45,18 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"destr": "^2.0.5",
|
|
48
|
-
"h3": "^2.0.
|
|
48
|
+
"h3": "^2.0.8",
|
|
49
49
|
"pathe": "^2.0.3",
|
|
50
50
|
"tinyexec": "^1.3.1",
|
|
51
51
|
"zigpty": "^0.2.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@devframes/agentic": "1.3.
|
|
54
|
+
"@devframes/agentic": "1.3.2",
|
|
55
55
|
"@standard-schema/spec": "^1.1.0",
|
|
56
|
-
"@types/node": "^26.6.
|
|
57
|
-
"devframe": "1.3.
|
|
56
|
+
"@types/node": "^26.6.6",
|
|
57
|
+
"devframe": "1.3.2",
|
|
58
58
|
"get-port-please": "^3.2.0",
|
|
59
|
-
"tsdown": "0.23.
|
|
59
|
+
"tsdown": "^0.23.4",
|
|
60
60
|
"valibot": "^1.5.0"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|