devframe 0.9.18 → 0.9.19
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/{_shared-CkLpdx6I.d.mts → _shared-BIUet_Jh.d.mts} +1 -1
- package/dist/adapters/build.d.mts +1 -1
- package/dist/adapters/build.mjs +3 -3
- package/dist/adapters/cac.d.mts +1 -1
- package/dist/adapters/cac.mjs +1 -1
- package/dist/adapters/dev.d.mts +4 -4
- package/dist/adapters/dev.mjs +1 -1
- package/dist/adapters/embedded.d.mts +1 -1
- package/dist/adapters/initiate.d.mts +3 -3
- package/dist/adapters/initiate.mjs +1 -1
- package/dist/adapters/mcp.d.mts +1 -1
- package/dist/adapters/mcp.mjs +1 -1
- package/dist/client/index.d.mts +5 -5
- package/dist/client/index.mjs +66 -54
- package/dist/{context-3y_PeZKl.d.mts → context-BA5FPz7K.d.mts} +1 -1
- package/dist/{context-DLzIyQCZ.d.mts → context-BLHBDQcZ.d.mts} +2 -2
- package/dist/{context-Cdj9z9m2.mjs → context-BLXXjoBW.mjs} +3 -3
- package/dist/{dev-DpfkCVqo.mjs → dev-DbWecpjA.mjs} +2 -2
- package/dist/{host-agent-CKqSTEX9.mjs → host-agent-C3MBpNCd.mjs} +30 -31
- package/dist/in-page-channel/index.d.mts +4 -4
- package/dist/in-page-channel/index.mjs +6 -6
- package/dist/{index-pIVt92jP.d.mts → index-CiA6C705.d.mts} +2 -2
- package/dist/{index-Ces7aTOQ.d.mts → index-r6NstVmM.d.mts} +2 -2
- package/dist/index.d.mts +3 -3
- package/dist/{instance-shell-BQXr8n68.d.mts → instance-shell-C6Vg97lg.d.mts} +3 -3
- package/dist/internal/index.d.mts +13 -33
- package/dist/internal/index.mjs +3 -3
- package/dist/node/auth.d.mts +2 -2
- package/dist/node/hub-internals.d.mts +2 -2
- package/dist/node/index.d.mts +3 -3
- package/dist/node/index.mjs +1 -1
- package/dist/recipes/common-rpc-functions.d.mts +5 -62
- package/dist/recipes/interactive-auth.d.mts +2 -2
- package/dist/{remote-assets-DMFzLSoH.mjs → remote-assets-D0StJVLp.mjs} +17 -16
- package/dist/rpc/dump.d.mts +1 -1
- package/dist/rpc/dump.mjs +1 -1
- package/dist/rpc/index.d.mts +3 -3
- package/dist/rpc/index.mjs +8 -11
- package/dist/rpc/transports/sse-client.d.mts +1 -1
- package/dist/rpc/transports/sse-client.mjs +1 -1
- package/dist/rpc/transports/sse-server.d.mts +2 -2
- package/dist/rpc/transports/sse-server.mjs +1 -1
- package/dist/rpc/transports/ws-bun.d.mts +2 -2
- package/dist/rpc/transports/ws-client.d.mts +1 -1
- package/dist/rpc/transports/ws-client.mjs +1 -1
- package/dist/rpc/transports/ws-deno.d.mts +2 -2
- package/dist/rpc/transports/ws-server.d.mts +1 -1
- package/dist/rpc/transports/ws-server.mjs +1 -1
- package/dist/{rpc-core-Clo3kHfo.d.mts → rpc-core-BlL-Ip8n.d.mts} +3 -3
- package/dist/{serialization-DFg5sUt6.mjs → serialization-BhuOoL80.mjs} +2 -2
- package/dist/{sse-client-BQ4jS3eO.d.mts → sse-client-BcbYwXdD.d.mts} +1 -1
- package/dist/types/index.d.mts +2 -2
- package/dist/{types-Dq4i156u.d.mts → types-D2vGd7-2.d.mts} +52 -113
- package/dist/utils/events.d.mts +1 -1
- package/dist/utils/remote-assets.mjs +1 -1
- package/dist/utils/shared-state.d.mts +1 -1
- package/dist/utils/streaming-channel.d.mts +1 -1
- package/dist/{validation-CfV1s0SF.mjs → validation-BzxTTYaV.mjs} +15 -2
- package/dist/{wire-codec-BHGt0sSs.mjs → wire-codec-B1W3zH3L.mjs} +1 -1
- package/dist/{write-D2AJqVT8.mjs → write-DoXJzGUH.mjs} +3 -2
- package/dist/{ws-client-Xpxt0oPA.d.mts → ws-client-CNpP6Ium.d.mts} +1 -1
- package/dist/{ws-server-9ztvkeJ0.d.mts → ws-server-BB8jhxeT.d.mts} +1 -1
- package/package.json +3 -3
- package/skills/devframe/SKILL.md +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as DevframeDefinition, G as McpAuthorization, I as DevframeDeploymentKind, q as McpSetting, t as ConnectionMeta, zt as DevframeAgentHost } from "./context-
|
|
1
|
+
import { F as DevframeDefinition, G as McpAuthorization, I as DevframeDeploymentKind, q as McpSetting, t as ConnectionMeta, zt as DevframeAgentHost } from "./context-BLHBDQcZ.mjs";
|
|
2
2
|
//#region src/adapters/_shared.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Resolve the mount base path for a devframe's SPA. Hosted adapters
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as DevframeDefinition, V as DevframeSnapshotRpcEntry, o as DevframeNodeContext } from "../context-
|
|
1
|
+
import { F as DevframeDefinition, V as DevframeSnapshotRpcEntry, o as DevframeNodeContext } from "../context-BLHBDQcZ.mjs";
|
|
2
2
|
import { o as StaticAssetsSource } from "../remote-assets-eBvSKZMS.mjs";
|
|
3
3
|
//#region src/adapters/build.d.ts
|
|
4
4
|
export interface CreateBuildOptions {
|
package/dist/adapters/build.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { s as colors } from "../nostics-D0PvLZsn.mjs";
|
|
2
2
|
import { t as resolveClientAssets } from "../client-assets-DNdhagGm.mjs";
|
|
3
3
|
import { DEVFRAME_CONNECTION_META_FILENAME, DEVFRAME_RPC_DUMP_MANIFEST_FILENAME } from "../constants.mjs";
|
|
4
|
-
import { n as collectStaticRpcDump, t as writeStaticRpcDump } from "../write-
|
|
4
|
+
import { n as collectStaticRpcDump, t as writeStaticRpcDump } from "../write-DoXJzGUH.mjs";
|
|
5
5
|
import { t as diagnostics } from "../diagnostics-DZA6KQ_Z.mjs";
|
|
6
|
-
import { t as createHostContext } from "../context-
|
|
7
|
-
import { t as resolveStaticAssetsSource } from "../remote-assets-
|
|
6
|
+
import { t as createHostContext } from "../context-BLXXjoBW.mjs";
|
|
7
|
+
import { t as resolveStaticAssetsSource } from "../remote-assets-D0StJVLp.mjs";
|
|
8
8
|
import { t as createH3DevframeHost } from "../host-h3-BROI6SQ4.mjs";
|
|
9
9
|
import fs from "node:fs/promises";
|
|
10
10
|
import { resolve } from "pathe";
|
package/dist/adapters/cac.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dt as InferCliFlags, Et as CliFlagsSchema, F as DevframeDefinition, Ot as defineCliFlags, kt as parseCliFlags, q as McpSetting } from "../context-
|
|
1
|
+
import { Dt as InferCliFlags, Et as CliFlagsSchema, F as DevframeDefinition, Ot as defineCliFlags, kt as parseCliFlags, q as McpSetting } from "../context-BLHBDQcZ.mjs";
|
|
2
2
|
import { CAC } from "cac";
|
|
3
3
|
import { H3 } from "h3";
|
|
4
4
|
//#region src/adapters/cac.d.ts
|
package/dist/adapters/cac.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as colors } from "../nostics-D0PvLZsn.mjs";
|
|
2
2
|
import { i as resolveDevServerPort, s as importRuntimeModule } from "../_shared-U8D-xzrp.mjs";
|
|
3
3
|
import { createBuild } from "./build.mjs";
|
|
4
|
-
import { t as createDevServer } from "../dev-
|
|
4
|
+
import { t as createDevServer } from "../dev-DbWecpjA.mjs";
|
|
5
5
|
import process from "node:process";
|
|
6
6
|
import cac$1 from "cac";
|
|
7
7
|
//#region src/adapters/flags.ts
|
package/dist/adapters/dev.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { F as DevframeDefinition, Tt as DevframeAuthHandler, U as DevframeSseOptions, W as DevframeWsOptions, q as McpSetting, s as DevframeNodeRpcSession } from "../context-
|
|
1
|
+
import { F as DevframeDefinition, Tt as DevframeAuthHandler, U as DevframeSseOptions, W as DevframeWsOptions, q as McpSetting, s as DevframeNodeRpcSession } from "../context-BLHBDQcZ.mjs";
|
|
2
2
|
import { n as DevframeRpcConnection, t as DevframeNodeRpcSessionMeta } from "../session-r6PDixP6.mjs";
|
|
3
3
|
import { o as StaticAssetsSource } from "../remote-assets-eBvSKZMS.mjs";
|
|
4
|
-
import { n as WsOriginRegistry } from "../ws-server-
|
|
5
|
-
import { c as StartedServer } from "../instance-shell-
|
|
6
|
-
import { c as resolveMcpConnectionMeta, o as resolveDevServerPort, t as ResolveDevServerPortOptions } from "../_shared-
|
|
4
|
+
import { n as WsOriginRegistry } from "../ws-server-BB8jhxeT.mjs";
|
|
5
|
+
import { c as StartedServer } from "../instance-shell-C6Vg97lg.mjs";
|
|
6
|
+
import { c as resolveMcpConnectionMeta, o as resolveDevServerPort, t as ResolveDevServerPortOptions } from "../_shared-BIUet_Jh.mjs";
|
|
7
7
|
import { H3 } from "h3";
|
|
8
8
|
//#region src/adapters/dev.d.ts
|
|
9
9
|
export interface CreateDevServerOptions {
|
package/dist/adapters/dev.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { i as resolveDevServerPort, o as resolveMcpConnectionMeta } from "../_shared-U8D-xzrp.mjs";
|
|
2
|
-
import { t as createDevServer } from "../dev-
|
|
2
|
+
import { t as createDevServer } from "../dev-DbWecpjA.mjs";
|
|
3
3
|
export { createDevServer, resolveDevServerPort, resolveMcpConnectionMeta };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as DevframeDefinition, o as DevframeNodeContext } from "../context-
|
|
1
|
+
import { F as DevframeDefinition, o as DevframeNodeContext } from "../context-BLHBDQcZ.mjs";
|
|
2
2
|
//#region src/adapters/embedded.d.ts
|
|
3
3
|
export interface CreateEmbeddedOptions {
|
|
4
4
|
/** Target context the devframe is registered into. Required. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { F as DevframeDefinition, St as DevframeStorageScope, Tt as DevframeAuthHandler, U as DevframeSseOptions, W as DevframeWsOptions, o as DevframeNodeContext, q as McpSetting, s as DevframeNodeRpcSession, t as ConnectionMeta } from "../context-
|
|
1
|
+
import { F as DevframeDefinition, St as DevframeStorageScope, Tt as DevframeAuthHandler, U as DevframeSseOptions, W as DevframeWsOptions, o as DevframeNodeContext, q as McpSetting, s as DevframeNodeRpcSession, t as ConnectionMeta } from "../context-BLHBDQcZ.mjs";
|
|
2
2
|
import { n as DevframeRpcConnection, t as DevframeNodeRpcSessionMeta } from "../session-r6PDixP6.mjs";
|
|
3
3
|
import { o as StaticAssetsSource } from "../remote-assets-eBvSKZMS.mjs";
|
|
4
|
-
import { n as WsOriginRegistry } from "../ws-server-
|
|
5
|
-
import { c as StartedServer, f as DevframeInstanceRecord } from "../instance-shell-
|
|
4
|
+
import { n as WsOriginRegistry } from "../ws-server-BB8jhxeT.mjs";
|
|
5
|
+
import { c as StartedServer, f as DevframeInstanceRecord } from "../instance-shell-C6Vg97lg.mjs";
|
|
6
6
|
import { H3 } from "h3";
|
|
7
7
|
import { Buffer } from "node:buffer";
|
|
8
8
|
import { IncomingMessage, Server, ServerResponse } from "node:http";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as getInstanceInternals, r as initDevframe } from "../dev-
|
|
1
|
+
import { n as getInstanceInternals, r as initDevframe } from "../dev-DbWecpjA.mjs";
|
|
2
2
|
export { getInstanceInternals, initDevframe };
|
package/dist/adapters/mcp.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as DevframeDefinition, G as McpAuthorization, o as DevframeNodeContext } from "../context-
|
|
1
|
+
import { F as DevframeDefinition, G as McpAuthorization, o as DevframeNodeContext } from "../context-BLHBDQcZ.mjs";
|
|
2
2
|
import { H3 } from "h3";
|
|
3
3
|
import "@modelcontextprotocol/server";
|
|
4
4
|
//#region src/adapters/mcp/build-server.d.ts
|
package/dist/adapters/mcp.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { t as DEVFRAME_EVENTS } from "../events-BV4Dj59a.mjs";
|
|
|
3
3
|
import { t as isAllowedOrigin } from "../origin-DZit9g29.mjs";
|
|
4
4
|
import { r as timingSafeEqual } from "../crypto-token-TVbGGFuj.mjs";
|
|
5
5
|
import { t as diagnostics } from "../diagnostics-DZA6KQ_Z.mjs";
|
|
6
|
-
import { t as createHostContext } from "../context-
|
|
6
|
+
import { t as createHostContext } from "../context-BLXXjoBW.mjs";
|
|
7
7
|
import { t as toAgentToolName } from "../agent-tool-name-DGzeuWcO.mjs";
|
|
8
8
|
import { join } from "pathe";
|
|
9
9
|
import process from "node:process";
|
package/dist/client/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { f as RpcCacheManager, p as RpcCacheOptions } from "../index-
|
|
2
|
-
import {
|
|
3
|
-
import { Q as DevframeServiceMeta, Vt as EventEmitter, b as StreamSink, ct as DevframeSettings, d as RpcSharedStateHost, et as DevframeServiceScopeOf, gt as SettingsForNamespace, ht as ScopedSharedStates, it as DevframeServicesState, k as SharedState, mt as ScopedServerFunctions, pt as ScopedRpcFn, t as ConnectionMeta, u as RpcSharedStateGetOptions, vt as DevframeRpcClientFunctions, y as StreamReader, yt as DevframeRpcServerFunctions } from "../context-
|
|
4
|
-
import { t as SseRpcChannelOptions } from "../sse-client-
|
|
5
|
-
import { t as WsRpcChannelOptions } from "../ws-client-
|
|
1
|
+
import { f as RpcCacheManager, p as RpcCacheOptions } from "../index-CiA6C705.mjs";
|
|
2
|
+
import { E as RpcFunctionsCollector, _ as RpcFunctionDefinition } from "../types-D2vGd7-2.mjs";
|
|
3
|
+
import { Q as DevframeServiceMeta, Vt as EventEmitter, b as StreamSink, ct as DevframeSettings, d as RpcSharedStateHost, et as DevframeServiceScopeOf, gt as SettingsForNamespace, ht as ScopedSharedStates, it as DevframeServicesState, k as SharedState, mt as ScopedServerFunctions, pt as ScopedRpcFn, t as ConnectionMeta, u as RpcSharedStateGetOptions, vt as DevframeRpcClientFunctions, y as StreamReader, yt as DevframeRpcServerFunctions } from "../context-BLHBDQcZ.mjs";
|
|
4
|
+
import { t as SseRpcChannelOptions } from "../sse-client-BcbYwXdD.mjs";
|
|
5
|
+
import { t as WsRpcChannelOptions } from "../ws-client-CNpP6Ium.mjs";
|
|
6
6
|
import { BirpcOptions, BirpcReturn } from "birpc";
|
|
7
7
|
//#region src/client/connection.d.ts
|
|
8
8
|
export interface DevframeConnection {
|
package/dist/client/index.mjs
CHANGED
|
@@ -99,8 +99,8 @@ const diagnostics = defineDiagnostics({
|
|
|
99
99
|
docsBase: "https://devfra.me/errors",
|
|
100
100
|
codes: {
|
|
101
101
|
DF0019: {
|
|
102
|
-
why: (p) => `RPC function "${p.name}" has \`agent\` set but \`jsonSerializable\` is
|
|
103
|
-
fix: "
|
|
102
|
+
why: (p) => `RPC function "${p.name}" has \`agent\` set but \`jsonSerializable\` is \`false\`; MCP requires JSON-serializable data.`,
|
|
103
|
+
fix: "Remove `jsonSerializable: false`, or remove `agent` to keep it RPC-only."
|
|
104
104
|
},
|
|
105
105
|
DF0020: {
|
|
106
106
|
why: (p) => `RPC function "${p.name}" declares \`jsonSerializable: true\` but the value at "${p.path}" is a ${p.type}.`,
|
|
@@ -131,6 +131,19 @@ const diagnostics = defineDiagnostics({
|
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
133
|
//#endregion
|
|
134
|
+
//#region src/rpc/agent-json-serialization.ts
|
|
135
|
+
/**
|
|
136
|
+
* Prevents using a coding-agent-exposed RPC function that is explicitly
|
|
137
|
+
* marked as non-serializable, and marks these functions as serializable by
|
|
138
|
+
* default.
|
|
139
|
+
*
|
|
140
|
+
* @internal
|
|
141
|
+
*/
|
|
142
|
+
function ensureAgentJsonSerializable(fnDef) {
|
|
143
|
+
if (fnDef.agent && fnDef.jsonSerializable === false) throw diagnostics.DF0019({ name: fnDef.name });
|
|
144
|
+
if (fnDef.agent && !fnDef.jsonSerializable) fnDef.jsonSerializable = true;
|
|
145
|
+
}
|
|
146
|
+
//#endregion
|
|
134
147
|
//#region src/rpc/validate-io.ts
|
|
135
148
|
/**
|
|
136
149
|
* Run a single [Standard Schema](https://standardschema.dev) validator,
|
|
@@ -270,15 +283,15 @@ var RpcFunctionsCollectorBase = class {
|
|
|
270
283
|
}
|
|
271
284
|
});
|
|
272
285
|
}
|
|
273
|
-
register(
|
|
274
|
-
if (this.definitions.has(
|
|
275
|
-
|
|
276
|
-
this.definitions.set(
|
|
277
|
-
this._onChanged.forEach((cb) => cb(
|
|
286
|
+
register(fnDef, force = false) {
|
|
287
|
+
if (this.definitions.has(fnDef.name) && !force) throw diagnostics.DF0021({ name: fnDef.name });
|
|
288
|
+
ensureAgentJsonSerializable(fnDef);
|
|
289
|
+
this.definitions.set(fnDef.name, fnDef);
|
|
290
|
+
this._onChanged.forEach((cb) => cb(fnDef.name));
|
|
278
291
|
}
|
|
279
292
|
update(fn, force = false) {
|
|
280
293
|
if (!this.definitions.has(fn.name) && !force) throw diagnostics.DF0022({ name: fn.name });
|
|
281
|
-
|
|
294
|
+
ensureAgentJsonSerializable(fn);
|
|
282
295
|
this.definitions.set(fn.name, fn);
|
|
283
296
|
this._onChanged.forEach((cb) => cb(fn.name));
|
|
284
297
|
}
|
|
@@ -310,9 +323,6 @@ var RpcFunctionsCollectorBase = class {
|
|
|
310
323
|
return Array.from(this.definitions.keys());
|
|
311
324
|
}
|
|
312
325
|
};
|
|
313
|
-
function assertAgentJsonSerializable(fn) {
|
|
314
|
-
if (fn.agent && fn.jsonSerializable !== true) throw diagnostics.DF0019({ name: fn.name });
|
|
315
|
-
}
|
|
316
326
|
//#endregion
|
|
317
327
|
//#region src/rpc/serialization.ts
|
|
318
328
|
/**
|
|
@@ -1089,14 +1099,17 @@ function createLiveRpcClientMode(options) {
|
|
|
1089
1099
|
async function ensureTrusted(timeout = 6e4) {
|
|
1090
1100
|
if (isTrusted) trustedPromise.resolve(true);
|
|
1091
1101
|
if (timeout <= 0) return trustedPromise.promise;
|
|
1092
|
-
let
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1102
|
+
let timer;
|
|
1103
|
+
try {
|
|
1104
|
+
await Promise.race([trustedPromise.promise, new Promise((_, reject) => {
|
|
1105
|
+
timer = setTimeout(() => {
|
|
1106
|
+
reject(/* @__PURE__ */ new Error("[devframe] Timeout waiting for rpc to be trusted"));
|
|
1107
|
+
}, timeout);
|
|
1108
|
+
})]);
|
|
1109
|
+
return isTrusted;
|
|
1110
|
+
} finally {
|
|
1111
|
+
clearTimeout(timer);
|
|
1112
|
+
}
|
|
1100
1113
|
}
|
|
1101
1114
|
return {
|
|
1102
1115
|
transport,
|
|
@@ -1709,39 +1722,29 @@ function argsToJsonSchema(args) {
|
|
|
1709
1722
|
};
|
|
1710
1723
|
}
|
|
1711
1724
|
//#endregion
|
|
1712
|
-
//#region src/
|
|
1725
|
+
//#region src/tool-input.ts
|
|
1713
1726
|
/**
|
|
1714
|
-
*
|
|
1715
|
-
* keyed `arg0`/`arg1`/…, matching the schema the adapter advertises) onto
|
|
1716
|
-
* a handler's positional parameters. Shared by the agent host's RPC
|
|
1717
|
-
* bridge and the hub's command-derived tools so the coercion cannot
|
|
1718
|
-
* drift between them.
|
|
1727
|
+
* Convert an object-shaped tool input into positional arguments.
|
|
1719
1728
|
*
|
|
1720
|
-
*
|
|
1721
|
-
*
|
|
1722
|
-
* - with declared schemas, each schema reads its own `argN` key, in order
|
|
1723
|
-
* - without schemas, `arg0`/`arg1`/… keys are collected when present
|
|
1724
|
-
* - an empty object becomes a zero-argument call
|
|
1725
|
-
* - anything else follows the {@link AgentArgsFallback}
|
|
1729
|
+
* Tool schemas expose positional parameters as `arg0`, `arg1`, and so on.
|
|
1730
|
+
* Arrays pass through for callers that already provide positional arguments.
|
|
1726
1731
|
*/
|
|
1727
|
-
function
|
|
1728
|
-
if (Array.isArray(
|
|
1729
|
-
if (
|
|
1730
|
-
if (typeof
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
}
|
|
1744
|
-
return fallback === "drop" ? [] : [args];
|
|
1732
|
+
function collectPositionalArgs(input, argumentCount) {
|
|
1733
|
+
if (Array.isArray(input)) return input;
|
|
1734
|
+
if (input === void 0 || input === null) return [];
|
|
1735
|
+
if (typeof input !== "object") return void 0;
|
|
1736
|
+
const record = input;
|
|
1737
|
+
if (argumentCount != null) return Array.from({ length: argumentCount }, (_, index) => record[`arg${index}`]);
|
|
1738
|
+
if ("arg0" in record) {
|
|
1739
|
+
const positional = [];
|
|
1740
|
+
while (`arg${positional.length}` in record) positional.push(record[`arg${positional.length}`]);
|
|
1741
|
+
return positional;
|
|
1742
|
+
}
|
|
1743
|
+
return Object.keys(record).length === 0 ? [] : void 0;
|
|
1744
|
+
}
|
|
1745
|
+
/** Convert tool input for an RPC, preserving an untyped payload as arg 0. */
|
|
1746
|
+
function toolInputToRpcArgs(input, argumentCount) {
|
|
1747
|
+
return collectPositionalArgs(input, argumentCount) ?? [input];
|
|
1745
1748
|
}
|
|
1746
1749
|
//#endregion
|
|
1747
1750
|
//#region src/client/webmcp.ts
|
|
@@ -1828,7 +1831,7 @@ function resolveSafety(def, agent) {
|
|
|
1828
1831
|
}
|
|
1829
1832
|
async function executeRpcTool(def, context, args) {
|
|
1830
1833
|
try {
|
|
1831
|
-
const positional =
|
|
1834
|
+
const positional = toolInputToRpcArgs(args, def.args?.length);
|
|
1832
1835
|
return { content: [{
|
|
1833
1836
|
type: "text",
|
|
1834
1837
|
text: stringifyResult(await (await getRpcHandler(def, context))(...positional))
|
|
@@ -1952,6 +1955,18 @@ async function getDevframeRpcClient(options = {}) {
|
|
|
1952
1955
|
return bootstrapAuthPromise.then(() => fn(...args));
|
|
1953
1956
|
});
|
|
1954
1957
|
}
|
|
1958
|
+
/** Release authentication and transport resources even if another disposer fails. */
|
|
1959
|
+
function closeRpcClient() {
|
|
1960
|
+
try {
|
|
1961
|
+
disposeWebMcp?.();
|
|
1962
|
+
} finally {
|
|
1963
|
+
try {
|
|
1964
|
+
authChannel?.close();
|
|
1965
|
+
} finally {
|
|
1966
|
+
mode.close?.();
|
|
1967
|
+
}
|
|
1968
|
+
}
|
|
1969
|
+
}
|
|
1955
1970
|
const rpc = {
|
|
1956
1971
|
events,
|
|
1957
1972
|
get isTrusted() {
|
|
@@ -2006,10 +2021,7 @@ async function getDevframeRpcClient(options = {}) {
|
|
|
2006
2021
|
streaming: void 0,
|
|
2007
2022
|
cacheManager,
|
|
2008
2023
|
scope: void 0,
|
|
2009
|
-
close:
|
|
2010
|
-
disposeWebMcp?.();
|
|
2011
|
-
mode.close?.();
|
|
2012
|
-
}
|
|
2024
|
+
close: closeRpcClient
|
|
2013
2025
|
};
|
|
2014
2026
|
rpc.sharedState = createRpcSharedStateClientHost(rpc);
|
|
2015
2027
|
rpc.streaming = createRpcStreamingClientHost(rpc);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as SharedState, o as DevframeNodeContext } from "./context-
|
|
1
|
+
import { k as SharedState, o as DevframeNodeContext } from "./context-BLHBDQcZ.mjs";
|
|
2
2
|
//#region src/node/hub-internals/context.d.ts
|
|
3
3
|
interface InternalAnonymousAuthStorage {
|
|
4
4
|
trusted: Record<string, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as RpcFunctionsCollectorBase } from "./index-
|
|
2
|
-
import { _ as RpcFunctionDefinition, v as RpcFunctionDefinitionAny } from "./types-
|
|
1
|
+
import { d as RpcFunctionsCollectorBase } from "./index-CiA6C705.mjs";
|
|
2
|
+
import { _ as RpcFunctionDefinition, v as RpcFunctionDefinitionAny } from "./types-D2vGd7-2.mjs";
|
|
3
3
|
import { n as DevframeRpcConnection, t as DevframeNodeRpcSessionMeta } from "./session-r6PDixP6.mjs";
|
|
4
4
|
import { a as RemoteAssetsStore, o as StaticAssetsSource } from "./remote-assets-eBvSKZMS.mjs";
|
|
5
5
|
import { m as defineDiagnostics } from "./nostics-0sKe5HIj.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { i as defineDiagnostics } from "./nostics-D0PvLZsn.mjs";
|
|
2
|
-
import { r as diagnostics } from "./serialization-
|
|
2
|
+
import { r as diagnostics } from "./serialization-BhuOoL80.mjs";
|
|
3
3
|
import { RpcFunctionsCollectorBase } from "./rpc/index.mjs";
|
|
4
4
|
import { defineRpcFunction } from "./index.mjs";
|
|
5
5
|
import { t as DEVFRAME_EVENTS } from "./events-BV4Dj59a.mjs";
|
|
6
6
|
import { DEVFRAME_SERVICES_STATE_KEY } from "./constants.mjs";
|
|
7
7
|
import { t as diagnostics$1 } from "./diagnostics-DZA6KQ_Z.mjs";
|
|
8
|
-
import {
|
|
9
|
-
import { n as createDebug, t as resolveStaticAssetsSource } from "./remote-assets-
|
|
8
|
+
import { i as createEventEmitter, t as DevframeAgentHost } from "./host-agent-C3MBpNCd.mjs";
|
|
9
|
+
import { n as createDebug, t as resolveStaticAssetsSource } from "./remote-assets-D0StJVLp.mjs";
|
|
10
10
|
import { i as satisfiesVersionRange, n as expandResolveFrom, r as importServicePackage, t as deepMergeOptionSets } from "./services-install-Ben4yh52.mjs";
|
|
11
11
|
import { t as createStorage } from "./storage-B70AXK64.mjs";
|
|
12
12
|
import { join } from "pathe";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as resolveClientAssets } from "./client-assets-DNdhagGm.mjs";
|
|
2
2
|
import { DEVFRAME_CONNECTION_META_FILENAME } from "./constants.mjs";
|
|
3
3
|
import { t as diagnostics } from "./diagnostics-DZA6KQ_Z.mjs";
|
|
4
|
-
import { t as createHostContext } from "./context-
|
|
5
|
-
import { t as resolveStaticAssetsSource } from "./remote-assets-
|
|
4
|
+
import { t as createHostContext } from "./context-BLXXjoBW.mjs";
|
|
5
|
+
import { t as resolveStaticAssetsSource } from "./remote-assets-D0StJVLp.mjs";
|
|
6
6
|
import { a as resolveMcpConfig, i as resolveDevServerPort, n as normalizeBasePath, r as resolveBasePath, s as importRuntimeModule, t as loadAutoMcpAdapter } from "./_shared-U8D-xzrp.mjs";
|
|
7
7
|
import { t as createH3DevframeHost } from "./host-h3-BROI6SQ4.mjs";
|
|
8
8
|
import { i as normalizeHttpServerUrl, n as resolveInstanceRegister, t as createInstanceShell } from "./instance-shell-370Oee9K.mjs";
|
|
@@ -39,39 +39,38 @@ function createEventEmitter() {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
//#endregion
|
|
42
|
-
//#region src/
|
|
42
|
+
//#region src/tool-input.ts
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
45
|
-
* keyed `arg0`/`arg1`/…, matching the schema the adapter advertises) onto
|
|
46
|
-
* a handler's positional parameters. Shared by the agent host's RPC
|
|
47
|
-
* bridge and the hub's command-derived tools so the coercion cannot
|
|
48
|
-
* drift between them.
|
|
44
|
+
* Convert an object-shaped tool input into positional arguments.
|
|
49
45
|
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* - with declared schemas, each schema reads its own `argN` key, in order
|
|
53
|
-
* - without schemas, `arg0`/`arg1`/… keys are collected when present
|
|
54
|
-
* - an empty object becomes a zero-argument call
|
|
55
|
-
* - anything else follows the {@link AgentArgsFallback}
|
|
46
|
+
* Tool schemas expose positional parameters as `arg0`, `arg1`, and so on.
|
|
47
|
+
* Arrays pass through for callers that already provide positional arguments.
|
|
56
48
|
*/
|
|
57
|
-
function
|
|
58
|
-
if (Array.isArray(
|
|
59
|
-
if (
|
|
60
|
-
if (typeof
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
out.push(obj[`arg${i}`]);
|
|
68
|
-
i++;
|
|
69
|
-
}
|
|
70
|
-
return out;
|
|
71
|
-
}
|
|
72
|
-
if (Object.keys(obj).length === 0) return [];
|
|
49
|
+
function collectPositionalArgs(input, argumentCount) {
|
|
50
|
+
if (Array.isArray(input)) return input;
|
|
51
|
+
if (input === void 0 || input === null) return [];
|
|
52
|
+
if (typeof input !== "object") return void 0;
|
|
53
|
+
const record = input;
|
|
54
|
+
if (argumentCount != null) return Array.from({ length: argumentCount }, (_, index) => record[`arg${index}`]);
|
|
55
|
+
if ("arg0" in record) {
|
|
56
|
+
const positional = [];
|
|
57
|
+
while (`arg${positional.length}` in record) positional.push(record[`arg${positional.length}`]);
|
|
58
|
+
return positional;
|
|
73
59
|
}
|
|
74
|
-
return
|
|
60
|
+
return Object.keys(record).length === 0 ? [] : void 0;
|
|
61
|
+
}
|
|
62
|
+
/** Convert tool input for an RPC, preserving an untyped payload as arg 0. */
|
|
63
|
+
function toolInputToRpcArgs(input, argumentCount) {
|
|
64
|
+
return collectPositionalArgs(input, argumentCount) ?? [input];
|
|
65
|
+
}
|
|
66
|
+
/** Convert tool input for a command, whose arguments must be declared. */
|
|
67
|
+
function toolInputToCommandArgs(input, argumentCount) {
|
|
68
|
+
return collectPositionalArgs(input, argumentCount) ?? [];
|
|
69
|
+
}
|
|
70
|
+
/** @deprecated Use {@link toolInputToRpcArgs} or {@link toolInputToCommandArgs}. */
|
|
71
|
+
function coerceAgentPositionalArgs(input, schemas, fallback = "wrap") {
|
|
72
|
+
const argumentCount = schemas?.length;
|
|
73
|
+
return fallback === "drop" ? toolInputToCommandArgs(input, argumentCount) : toolInputToRpcArgs(input, argumentCount);
|
|
75
74
|
}
|
|
76
75
|
//#endregion
|
|
77
76
|
//#region src/node/host-agent.ts
|
|
@@ -192,7 +191,7 @@ var DevframeAgentHost = class {
|
|
|
192
191
|
if (plain?.handler) return await plain.handler(args);
|
|
193
192
|
const rpcDef = this._findRpcDefinition(id);
|
|
194
193
|
if (rpcDef) {
|
|
195
|
-
const positional =
|
|
194
|
+
const positional = toolInputToRpcArgs(args, rpcDef.args?.length);
|
|
196
195
|
return await this.context.rpc.invokeLocal(id, ...positional);
|
|
197
196
|
}
|
|
198
197
|
const provided = this._collectProviderTools().find((t) => t.tool.id === id);
|
|
@@ -274,4 +273,4 @@ function inferSafety(type) {
|
|
|
274
273
|
return "action";
|
|
275
274
|
}
|
|
276
275
|
//#endregion
|
|
277
|
-
export { coerceAgentPositionalArgs as n,
|
|
276
|
+
export { createEventEmitter as i, coerceAgentPositionalArgs as n, toolInputToCommandArgs as r, DevframeAgentHost as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Vt as EventEmitter, k as SharedState } from "../context-
|
|
1
|
+
import { A as InferReturnType, D as RpcReturnSchema, O as Thenable, i as RpcArgsSchema, k as InferArgsType } from "../types-D2vGd7-2.mjs";
|
|
2
|
+
import { Vt as EventEmitter, k as SharedState } from "../context-BLHBDQcZ.mjs";
|
|
3
3
|
import { BirpcReturn } from "birpc";
|
|
4
4
|
//#region src/in-page-channel/types.d.ts
|
|
5
5
|
/**
|
|
@@ -199,7 +199,7 @@ interface ConnectPanelChannelOptions<Protocol extends InPageChannelProtocol = In
|
|
|
199
199
|
window?: Window | false;
|
|
200
200
|
/**
|
|
201
201
|
* Windows the hello is posted to. Defaults to the panel's ancestor chain
|
|
202
|
-
* plus
|
|
202
|
+
* plus those windows' openers, the places a page script can live. When
|
|
203
203
|
* empty and no `transport` is given, the endpoint stays `connecting` and
|
|
204
204
|
* warns once.
|
|
205
205
|
*/
|
|
@@ -363,7 +363,7 @@ export declare function createPageScriptChannel<P extends InPageChannelProtocol>
|
|
|
363
363
|
* Connect the panel endpoint of an in-page channel.
|
|
364
364
|
*
|
|
365
365
|
* The panel initiates: it posts a versioned hello to every window a
|
|
366
|
-
*
|
|
366
|
+
* page script can live in (its ancestor chain and those windows' openers),
|
|
367
367
|
* retrying with backoff until one answers with a dedicated port, so boot
|
|
368
368
|
* order never matters, and a reload of either side is just a re-handshake
|
|
369
369
|
* (`WindowProxy` references survive navigations). While `connecting`,
|
|
@@ -60,8 +60,8 @@ function resolveAllowedOrigins(allowedOrigins, win) {
|
|
|
60
60
|
return origin && origin !== "null" ? [origin] : ["*"];
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
|
-
* Default handshake targets of a panel: its ancestor chain plus
|
|
64
|
-
* `opener
|
|
63
|
+
* Default handshake targets of a panel: its ancestor chain plus the
|
|
64
|
+
* `opener` of each window, including a popup containing the panel iframe. `WindowProxy`
|
|
65
65
|
* references stay valid across navigations, so hellos posted to these reach
|
|
66
66
|
* a page script even after the host page reloads.
|
|
67
67
|
*/
|
|
@@ -74,9 +74,9 @@ function defaultHandshakeTargets(win) {
|
|
|
74
74
|
current = current.parent;
|
|
75
75
|
}
|
|
76
76
|
} catch {}
|
|
77
|
-
try {
|
|
78
|
-
const opener =
|
|
79
|
-
if (opener && opener !== win) targets.push(opener);
|
|
77
|
+
for (const current of [win, ...targets]) try {
|
|
78
|
+
const opener = current.opener;
|
|
79
|
+
if (opener && opener !== win && !targets.includes(opener)) targets.push(opener);
|
|
80
80
|
} catch {}
|
|
81
81
|
return targets;
|
|
82
82
|
}
|
|
@@ -656,7 +656,7 @@ const DEFAULT_EVENT_BUFFER_LIMIT = 64;
|
|
|
656
656
|
* Connect the panel endpoint of an in-page channel.
|
|
657
657
|
*
|
|
658
658
|
* The panel initiates: it posts a versioned hello to every window a
|
|
659
|
-
*
|
|
659
|
+
* page script can live in (its ancestor chain and those windows' openers),
|
|
660
660
|
* retrying with backoff until one answers with a dedicated port, so boot
|
|
661
661
|
* order never matters, and a reload of either side is just a re-handshake
|
|
662
662
|
* (`WindowProxy` references survive navigations). While `connecting`,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as RpcReturnSchema, E as RpcFunctionsCollector, T as RpcFunctionType, _ as RpcFunctionDefinition, i as RpcArgsSchema, v as RpcFunctionDefinitionAny, w as RpcFunctionSetupResult } from "./types-D2vGd7-2.mjs";
|
|
2
2
|
//#region src/rpc/cache.d.ts
|
|
3
3
|
interface RpcCacheOptions {
|
|
4
4
|
functions: string[];
|
|
@@ -30,7 +30,7 @@ declare class RpcFunctionsCollectorBase<LocalFunctions extends Record<string, an
|
|
|
30
30
|
readonly functions: LocalFunctions;
|
|
31
31
|
private readonly _onChanged;
|
|
32
32
|
constructor(context: SetupContext);
|
|
33
|
-
register(
|
|
33
|
+
register(fnDef: RpcFunctionDefinition<string, any, any, any, any, any, SetupContext>, force?: boolean): void;
|
|
34
34
|
update(fn: RpcFunctionDefinition<string, any, any, any, any, any, SetupContext>, force?: boolean): void;
|
|
35
35
|
onChanged(fn: (id?: string) => void): () => void;
|
|
36
36
|
getHandler<T extends keyof LocalFunctions>(name: T): Promise<LocalFunctions[T]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as SharedState, o as DevframeNodeContext, s as DevframeNodeRpcSession } from "./context-
|
|
2
|
-
import { n as InternalAnonymousAuthStorage } from "./context-
|
|
1
|
+
import { k as SharedState, o as DevframeNodeContext, s as DevframeNodeRpcSession } from "./context-BLHBDQcZ.mjs";
|
|
2
|
+
import { n as InternalAnonymousAuthStorage } from "./context-BA5FPz7K.mjs";
|
|
3
3
|
//#region src/node/auth/revoke.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Flip `isTrusted` to false on any live WS clients connected with `token`
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./index-
|
|
2
|
-
import {
|
|
3
|
-
import { $ as DevframeServiceOf, At as AgentHandle, B as DevframeSetupInfo, Bt as DevframeAgentHostEvents, Ct as DevframeDiagnosticsHost, F as DevframeDefinition, Ft as AgentTool, G as McpAuthorization, H as DevframeSnapshotRpcInputs, Ht as EventUnsubscribe, I as DevframeDeploymentKind, It as AgentToolInput, J as DevframeServiceDefinition, K as McpRouteOptions, L as DevframeDockDefaults, Lt as AgentToolProvider, Mt as AgentResource, Nt as AgentResourceContent, P as DevframeCliOptions, Pt as AgentResourceInput, Q as DevframeServiceMeta, R as DevframeDuplicationStrategy, Rt as AgentToolProviderHandle, St as DevframeStorageScope, U as DevframeSseOptions, Ut as EventsMap, V as DevframeSnapshotRpcEntry, Vt as EventEmitter, W as DevframeWsOptions, X as DevframeServiceId, Y as DevframeServiceDescriptor, Z as DevframeServiceInput, _t as DevframeViewHost, a as DevframeConnectionConfigsRegistry, at as DevframeScopedNodeContext, bt as DevframeRpcSharedStates, c as RpcBroadcastOptions, ct as DevframeSettings, d as RpcSharedStateHost, dt as ScopedBroadcastOptions, et as DevframeServiceScopeOf, f as RpcStreamingChannel, ft as ScopedClientFunctions, gt as SettingsForNamespace, ht as ScopedSharedStates, i as DevframeCapabilities, it as DevframeServicesState, jt as AgentManifest, l as RpcFunctionsHost, lt as DevframeSettingsRegistry, m as RpcStreamingHost, mt as ScopedServerFunctions, n as ConnectionMetaSse, nt as DevframeServicesRegistry, o as DevframeNodeContext, ot as DevframeScopedNodeRpc, p as RpcStreamingChannelOptions, pt as ScopedRpcFn, q as McpSetting, r as ConnectionMetaWebsocket, rt as DevframeServicesScopeRegistry, s as DevframeNodeRpcSession, st as DevframeScopedStreamingHost, t as ConnectionMeta, tt as DevframeServicesHost, u as RpcSharedStateGetOptions, ut as DevframeSettingsStore, vt as DevframeRpcClientFunctions, wt as DevframeDiagnosticsLogger, xt as DevframeHost, yt as DevframeRpcServerFunctions, z as DevframeRpcOptions, zt as DevframeAgentHost } from "./context-
|
|
1
|
+
import "./index-CiA6C705.mjs";
|
|
2
|
+
import { D as RpcReturnSchema, T as RpcFunctionType, _ as RpcFunctionDefinition, g as RpcFunctionAgentOptions, i as RpcArgsSchema } from "./types-D2vGd7-2.mjs";
|
|
3
|
+
import { $ as DevframeServiceOf, At as AgentHandle, B as DevframeSetupInfo, Bt as DevframeAgentHostEvents, Ct as DevframeDiagnosticsHost, F as DevframeDefinition, Ft as AgentTool, G as McpAuthorization, H as DevframeSnapshotRpcInputs, Ht as EventUnsubscribe, I as DevframeDeploymentKind, It as AgentToolInput, J as DevframeServiceDefinition, K as McpRouteOptions, L as DevframeDockDefaults, Lt as AgentToolProvider, Mt as AgentResource, Nt as AgentResourceContent, P as DevframeCliOptions, Pt as AgentResourceInput, Q as DevframeServiceMeta, R as DevframeDuplicationStrategy, Rt as AgentToolProviderHandle, St as DevframeStorageScope, U as DevframeSseOptions, Ut as EventsMap, V as DevframeSnapshotRpcEntry, Vt as EventEmitter, W as DevframeWsOptions, X as DevframeServiceId, Y as DevframeServiceDescriptor, Z as DevframeServiceInput, _t as DevframeViewHost, a as DevframeConnectionConfigsRegistry, at as DevframeScopedNodeContext, bt as DevframeRpcSharedStates, c as RpcBroadcastOptions, ct as DevframeSettings, d as RpcSharedStateHost, dt as ScopedBroadcastOptions, et as DevframeServiceScopeOf, f as RpcStreamingChannel, ft as ScopedClientFunctions, gt as SettingsForNamespace, ht as ScopedSharedStates, i as DevframeCapabilities, it as DevframeServicesState, jt as AgentManifest, l as RpcFunctionsHost, lt as DevframeSettingsRegistry, m as RpcStreamingHost, mt as ScopedServerFunctions, n as ConnectionMetaSse, nt as DevframeServicesRegistry, o as DevframeNodeContext, ot as DevframeScopedNodeRpc, p as RpcStreamingChannelOptions, pt as ScopedRpcFn, q as McpSetting, r as ConnectionMetaWebsocket, rt as DevframeServicesScopeRegistry, s as DevframeNodeRpcSession, st as DevframeScopedStreamingHost, t as ConnectionMeta, tt as DevframeServicesHost, u as RpcSharedStateGetOptions, ut as DevframeSettingsStore, vt as DevframeRpcClientFunctions, wt as DevframeDiagnosticsLogger, xt as DevframeHost, yt as DevframeRpcServerFunctions, z as DevframeRpcOptions, zt as DevframeAgentHost } from "./context-BLHBDQcZ.mjs";
|
|
4
4
|
import { a as DevframeWsPeer, i as DevframeRpcTransportKind, n as DevframeRpcConnection, r as DevframeRpcConnectionRequest, t as DevframeNodeRpcSessionMeta } from "./session-r6PDixP6.mjs";
|
|
5
5
|
import { a as RemoteAssetsStore, i as RemoteAssetsProviderCustom, n as RemoteAssetsErrorMessage, o as StaticAssetsSource, r as RemoteAssetsProvider, t as RemoteAssets } from "./remote-assets-eBvSKZMS.mjs";
|
|
6
6
|
import { i as DevframeDefineDiagnosticsOptions } from "./nostics-0sKe5HIj.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Tt as DevframeAuthHandler, U as DevframeSseOptions, W as DevframeWsOptions, o as DevframeNodeContext, s as DevframeNodeRpcSession, t as ConnectionMeta, vt as DevframeRpcClientFunctions, yt as DevframeRpcServerFunctions } from "./context-
|
|
1
|
+
import { Tt as DevframeAuthHandler, U as DevframeSseOptions, W as DevframeWsOptions, o as DevframeNodeContext, s as DevframeNodeRpcSession, t as ConnectionMeta, vt as DevframeRpcClientFunctions, yt as DevframeRpcServerFunctions } from "./context-BLHBDQcZ.mjs";
|
|
2
2
|
import { n as DevframeRpcConnection, t as DevframeNodeRpcSessionMeta } from "./session-r6PDixP6.mjs";
|
|
3
|
-
import { n as WsOriginRegistry } from "./ws-server-
|
|
4
|
-
import "./index-
|
|
3
|
+
import { n as WsOriginRegistry } from "./ws-server-BB8jhxeT.mjs";
|
|
4
|
+
import "./index-r6NstVmM.mjs";
|
|
5
5
|
import { BirpcGroup } from "birpc";
|
|
6
6
|
import { H3 } from "h3";
|
|
7
7
|
import { NodeAdapter } from "crossws/adapters/node";
|