devframe 1.2.5 → 1.3.0
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-DlRoV7v3.mjs → _shared-C06DH07o.mjs} +4 -1
- package/dist/{_shared-NSl4p_om.d.mts → _shared-DbO-OtUC.d.mts} +8 -2
- 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 +4 -7
- package/dist/adapters/dev.d.mts +10 -4
- package/dist/adapters/dev.mjs +2 -2
- package/dist/adapters/embedded.d.mts +1 -1
- package/dist/adapters/initiate.d.mts +2 -2
- package/dist/adapters/initiate.mjs +1 -1
- package/dist/adapters/mcp.d.mts +3 -3
- package/dist/{agentic-D61fXLzA.d.mts → agentic-D6HePbWg.d.mts} +1 -1
- package/dist/{browser-agent-rpc-BXhoSh1z.mjs → browser-agent-rpc-KH4HHvHf.mjs} +24 -2
- package/dist/cli/main.mjs +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/client/index.mjs +2 -2
- package/dist/{host-agent-CJu735ch.mjs → client-agent-DuLhUF6d.mjs} +148 -2
- package/dist/{context-CNq7GLeT.mjs → context-BY72d2gV.mjs} +1 -1
- package/dist/{context-BKw9KkCR.mjs → context-CmSDJAEI.mjs} +6 -46
- package/dist/{context-DhycZ2lx.d.mts → context-Dko5QFWF.d.mts} +216 -93
- package/dist/{context-Bgvuxv1C.d.mts → context-eIUOSrKu.d.mts} +1 -1
- package/dist/{dev-BViAfnlw.mjs → dev-C-wQTIrV.mjs} +43 -23
- package/dist/{diagnostics-Cx4_VjlG.mjs → diagnostics-BJjvKfVK.mjs} +12 -0
- package/dist/in-page-channel/index.d.mts +1 -1
- package/dist/in-page-channel/index.mjs +1 -1
- package/dist/{index-DFPsvDGu.d.mts → index-BMj-o_sP.d.mts} +2 -2
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +2 -1
- package/dist/{instance-registry-DFrZdU4B.mjs → instance-registry-vlz81P9X.mjs} +1 -1
- package/dist/{instance-shell-DmyVIJzj.mjs → instance-shell-CBgy8YzK.mjs} +56 -15
- package/dist/{instance-shell-fl3ir6RC.d.mts → instance-shell-yfm1AYk8.d.mts} +2 -2
- package/dist/{interactive-auth-FFOGnYIC.mjs → interactive-auth-BsqLFXw8.mjs} +1 -1
- package/dist/internal/index.d.mts +40 -6
- package/dist/internal/index.mjs +8 -7
- package/dist/mcp-content-DN3O212x.mjs +40 -0
- package/dist/mcp-content-wcQxvrrW.d.mts +25 -0
- package/dist/node/auth.d.mts +2 -2
- package/dist/node/hub-internals.d.mts +2 -2
- package/dist/node/hub-internals.mjs +2 -2
- package/dist/node/index.d.mts +1 -1
- package/dist/node/index.mjs +2 -2
- package/dist/recipes/interactive-auth.d.mts +2 -2
- package/dist/recipes/interactive-auth.mjs +1 -1
- package/dist/{remote-assets-B9MeWmW6.mjs → remote-assets-DOva7l3s.mjs} +1 -1
- package/dist/rpc/transports/ws-bun.d.mts +1 -1
- package/dist/rpc/transports/ws-deno.d.mts +1 -1
- package/dist/{rpc-core-BcThIWzY.d.mts → rpc-core-BQ1mesqZ.d.mts} +2 -2
- package/dist/{rpc-core-CXgALhUi.mjs → rpc-core-oXIq2hjO.mjs} +1 -1
- package/dist/{shared-state-Cow3u-_m.mjs → shared-state-Cc-Jrhma.mjs} +5 -2
- package/dist/{storage-DPoitS2X.mjs → storage-BzAr-S6I.mjs} +1 -1
- package/dist/types/index.d.mts +2 -2
- 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/shared-state.mjs +1 -1
- package/dist/utils/streaming-channel.d.mts +1 -1
- package/package.json +8 -8
|
@@ -1,14 +1,60 @@
|
|
|
1
1
|
import "./constants.mjs";
|
|
2
2
|
import { r as validateOriginCandidate } from "./origin-DZit9g29.mjs";
|
|
3
|
-
import { t as diagnostics } from "./diagnostics-
|
|
4
|
-
import { c as joinURL, d as withoutLeadingSlash, f as withoutTrailingSlash, u as withLeadingSlash } from "./_shared-
|
|
5
|
-
import { t as getInternalContext } from "./context-
|
|
6
|
-
import { n as createInteractiveAuth } from "./interactive-auth-
|
|
3
|
+
import { t as diagnostics } from "./diagnostics-BJjvKfVK.mjs";
|
|
4
|
+
import { c as joinURL, d as withoutLeadingSlash, f as withoutTrailingSlash, u as withLeadingSlash } from "./_shared-C06DH07o.mjs";
|
|
5
|
+
import { t as getInternalContext } from "./context-BY72d2gV.mjs";
|
|
6
|
+
import { n as createInteractiveAuth } from "./interactive-auth-BsqLFXw8.mjs";
|
|
7
7
|
import { createServer } from "node:http";
|
|
8
8
|
import process from "node:process";
|
|
9
9
|
import { isIP } from "node:net";
|
|
10
10
|
import { Server } from "node:tls";
|
|
11
11
|
import { H3, defineHandler, toNodeHandler } from "h3";
|
|
12
|
+
//#region src/node/listen.ts
|
|
13
|
+
function listen(server, port, host) {
|
|
14
|
+
return new Promise((resolve, reject) => {
|
|
15
|
+
const onError = (error) => reject(error);
|
|
16
|
+
server.once("error", onError);
|
|
17
|
+
server.listen(port, host, () => {
|
|
18
|
+
server.removeListener("error", onError);
|
|
19
|
+
resolve();
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
/** Errors meaning the machine has no such loopback address to bind. */
|
|
24
|
+
const NO_LOOPBACK_ADDRESS = /* @__PURE__ */ new Set(["EADDRNOTAVAIL", "EAFNOSUPPORT"]);
|
|
25
|
+
/** Whether a failed bind means another process holds the port. */
|
|
26
|
+
function isAddressInUse(error) {
|
|
27
|
+
return error?.code === "EADDRINUSE";
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Listen on `host`, and when that is `localhost`, on the other loopback
|
|
31
|
+
* address too. `listen(port, 'localhost')` binds only the first address
|
|
32
|
+
* `localhost` resolves to (`::1` on most current Linux and macOS setups),
|
|
33
|
+
* while a browser dials the page's own hostname, so a page opened on
|
|
34
|
+
* `127.0.0.1` would be refused, or reach another process that holds
|
|
35
|
+
* `127.0.0.1` on the same port. The twin server hands its traffic to
|
|
36
|
+
* `server`. If another process holds the twin address, fail like a taken
|
|
37
|
+
* port (`EADDRINUSE`), so pages on that address never reach a different
|
|
38
|
+
* server. A machine without that address family skips the twin. Resolves to
|
|
39
|
+
* a closer for the twin.
|
|
40
|
+
*/
|
|
41
|
+
async function listenWithLoopbackTwin(server, port, host) {
|
|
42
|
+
await listen(server, port, host);
|
|
43
|
+
const bound = server.address();
|
|
44
|
+
if (host !== "localhost" || !bound || typeof bound === "string") return async () => {};
|
|
45
|
+
const twin = createServer();
|
|
46
|
+
twin.on("request", (req, res) => server.emit("request", req, res));
|
|
47
|
+
twin.on("upgrade", (req, socket, head) => server.emit("upgrade", req, socket, head));
|
|
48
|
+
try {
|
|
49
|
+
await listen(twin, bound.port, bound.family === "IPv6" ? "127.0.0.1" : "::1");
|
|
50
|
+
return () => new Promise((r) => twin.close(() => r()));
|
|
51
|
+
} catch (error) {
|
|
52
|
+
if (NO_LOOPBACK_ADDRESS.has(error.code ?? "")) return async () => {};
|
|
53
|
+
await new Promise((r) => server.close(() => r()));
|
|
54
|
+
throw error;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
12
58
|
//#region src/node/runtime.ts
|
|
13
59
|
/**
|
|
14
60
|
* Detect the current server runtime from its runtime-specific global. The
|
|
@@ -86,15 +132,9 @@ async function bindHttpAndWs(options) {
|
|
|
86
132
|
ws = transport.ws;
|
|
87
133
|
closeWs = transport.close;
|
|
88
134
|
}
|
|
135
|
+
let closeLoopbackTwin = async () => {};
|
|
89
136
|
if (ownsHttpServer) try {
|
|
90
|
-
await
|
|
91
|
-
const onError = (error) => reject(error);
|
|
92
|
-
httpServer.once("error", onError);
|
|
93
|
-
httpServer.listen(port, bindHost, () => {
|
|
94
|
-
httpServer.removeListener("error", onError);
|
|
95
|
-
resolve();
|
|
96
|
-
});
|
|
97
|
-
});
|
|
137
|
+
closeLoopbackTwin = await listenWithLoopbackTwin(httpServer, port, bindHost);
|
|
98
138
|
} catch (error) {
|
|
99
139
|
await closeWs().catch(() => {});
|
|
100
140
|
throw diagnostics.DF0052({
|
|
@@ -128,6 +168,7 @@ async function bindHttpAndWs(options) {
|
|
|
128
168
|
async close() {
|
|
129
169
|
httpServer.off("listening", publishWsEndpoint);
|
|
130
170
|
await closeWs();
|
|
171
|
+
await closeLoopbackTwin();
|
|
131
172
|
if (ownsHttpServer) await new Promise((r) => httpServer.close(() => r()));
|
|
132
173
|
if (wsUrl && getInternalContext(context).wsEndpoint?.url === wsUrl) getInternalContext(context).setWsEndpoint(void 0);
|
|
133
174
|
}
|
|
@@ -321,7 +362,7 @@ function createInstanceShell(options) {
|
|
|
321
362
|
const origin = currentOrigin();
|
|
322
363
|
if (!cfg || registerPromise || !origin || !meta) return;
|
|
323
364
|
const resolvedMeta = meta;
|
|
324
|
-
registerPromise = import("./instance-registry-
|
|
365
|
+
registerPromise = import("./instance-registry-vlz81P9X.mjs").then((n) => n.t).then(({ registerDevframeInstance }) => {
|
|
325
366
|
let port = 0;
|
|
326
367
|
try {
|
|
327
368
|
const url = new URL(origin);
|
|
@@ -397,7 +438,7 @@ function createInstanceShell(options) {
|
|
|
397
438
|
let resolvedAuth = false;
|
|
398
439
|
let corePromise;
|
|
399
440
|
function ensureCore() {
|
|
400
|
-
corePromise ??= import("./rpc-core-
|
|
441
|
+
corePromise ??= import("./rpc-core-oXIq2hjO.mjs").then((n) => n.n).then(({ createContextRpcServer }) => createContextRpcServer({
|
|
401
442
|
context: ctx,
|
|
402
443
|
auth: resolvedAuth,
|
|
403
444
|
onPeerConnect: options.onPeerConnect,
|
|
@@ -659,4 +700,4 @@ function createInstanceShell(options) {
|
|
|
659
700
|
};
|
|
660
701
|
}
|
|
661
702
|
//#endregion
|
|
662
|
-
export { normalizeHttpServerUrl as i, resolveInstanceRegister as n, samePath as r, createInstanceShell as t };
|
|
703
|
+
export { isAddressInUse as a, normalizeHttpServerUrl as i, resolveInstanceRegister as n, listenWithLoopbackTwin as o, samePath as r, createInstanceShell as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as BirpcGroup } from "./index-Bia1vKjL.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { It 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-Dko5QFWF.mjs";
|
|
3
3
|
import { n as DevframeRpcConnection, t as DevframeNodeRpcSessionMeta } from "./session-r6PDixP6.mjs";
|
|
4
4
|
import { n as WsOriginRegistry } from "./ws-server-y2R76aSW.mjs";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-BMj-o_sP.mjs";
|
|
6
6
|
import { H3 } from "h3";
|
|
7
7
|
import { NodeAdapter } from "crossws/adapters/node";
|
|
8
8
|
import { Buffer } from "node:buffer";
|
|
@@ -2,7 +2,7 @@ import { s as colors } from "./nostics-D0PvLZsn.mjs";
|
|
|
2
2
|
import { n as defineRpcFunction } from "./define-BLWPsH6y.mjs";
|
|
3
3
|
import { isAnonymousRpcMethod } from "./constants.mjs";
|
|
4
4
|
import { a as getTempAuthCodeInfo, n as describeUA, o as refreshTempAuthCode, r as exchangeTempAuthCode, s as verifyAuthToken, t as buildOtpAuthUrl } from "./state-W4wI6X5X.mjs";
|
|
5
|
-
import { t as getInternalContext } from "./context-
|
|
5
|
+
import { t as getInternalContext } from "./context-BY72d2gV.mjs";
|
|
6
6
|
//#region src/utils/simple-schema.ts
|
|
7
7
|
function ok(value) {
|
|
8
8
|
return { value };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { t as StandardSchemaV1 } from "../index-CeEtxDmK.mjs";
|
|
2
2
|
import { g as RpcFunctionDefinitionAny } from "../types-BmDbfHCx.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { Gt as AgentResourceInput, Ht as AgentManifest, Jt as AgentToolProvider, Kt as AgentTool, Qt as EventEmitter, St as DevframeHost, Ut as AgentResource, Vt as AgentHandle, Wt as AgentResourceContent, Xt as DevframeAgentHost$1, Yt as AgentToolProviderHandle, Zt as DevframeAgentHostEvents, o as DevframeNodeContext, qt as AgentToolInput, xt as BrowserAgentClientInfo } from "../context-Dko5QFWF.mjs";
|
|
4
4
|
import { a as RemoteAssetsStore } from "../remote-assets-eBvSKZMS.mjs";
|
|
5
|
-
import { a as InstanceShellInit, c as StartedServer, d as samePath, f as DevframeInstanceRecord, g as registerDevframeInstance, h as probeDevframeOrigin, i as InstanceShellApi, l as createInstanceShell, m as listLiveDevframeInstances, n as InstanceRegisterConfig, o as InstanceShellInternals, p as DevframeInstanceRegistration, r as InstanceShell, s as InstanceWsTier, t as CreateInstanceShellOptions, u as resolveInstanceRegister } from "../instance-shell-
|
|
6
|
-
import { i as importAgenticMcp, n as MountMcpHttpOptions, r as MountedMcpHttp, t as AgenticMcpModule } from "../agentic-
|
|
7
|
-
import { a as resolveBasePath, i as normalizeBasePath, n as ResolvedMcpConfig, r as loadAutoMcpAdapter, s as resolveMcpConfig } from "../_shared-
|
|
8
|
-
import {
|
|
5
|
+
import { a as InstanceShellInit, c as StartedServer, d as samePath, f as DevframeInstanceRecord, g as registerDevframeInstance, h as probeDevframeOrigin, i as InstanceShellApi, l as createInstanceShell, m as listLiveDevframeInstances, n as InstanceRegisterConfig, o as InstanceShellInternals, p as DevframeInstanceRegistration, r as InstanceShell, s as InstanceWsTier, t as CreateInstanceShellOptions, u as resolveInstanceRegister } from "../instance-shell-yfm1AYk8.mjs";
|
|
6
|
+
import { i as importAgenticMcp, n as MountMcpHttpOptions, r as MountedMcpHttp, t as AgenticMcpModule } from "../agentic-D6HePbWg.mjs";
|
|
7
|
+
import { a as resolveBasePath, i as normalizeBasePath, n as ResolvedMcpConfig, r as loadAutoMcpAdapter, s as resolveMcpConfig } from "../_shared-DbO-OtUC.mjs";
|
|
8
|
+
import { t as getMcpContent } from "../mcp-content-wcQxvrrW.mjs";
|
|
9
|
+
import { n as CreateContextRpcServerOptions, r as createContextRpcServer, t as ContextRpcServer } from "../rpc-core-BQ1mesqZ.mjs";
|
|
9
10
|
//#region src/agent/stringify.d.ts
|
|
10
11
|
/**
|
|
11
12
|
* JSON-coercing serializer for MCP text payloads.
|
|
@@ -63,6 +64,16 @@ export declare function returnToJsonSchema(schema: StandardSchemaV1 | undefined)
|
|
|
63
64
|
*/
|
|
64
65
|
export declare function argsToJsonSchema(args: readonly StandardSchemaV1[] | undefined): unknown;
|
|
65
66
|
//#endregion
|
|
67
|
+
//#region src/node/client-agent.d.ts
|
|
68
|
+
/** Id of the built-in tool listing connected browser tabs (wire name `devframe_agent_list-clients`). */
|
|
69
|
+
export declare const LIST_CLIENTS_TOOL = "devframe:agent:list-clients";
|
|
70
|
+
/** One connected browser tab as reported by {@link LIST_CLIENTS_TOOL}. */
|
|
71
|
+
interface ConnectedClient extends BrowserAgentClientInfo {
|
|
72
|
+
id: string;
|
|
73
|
+
connectedAt: number;
|
|
74
|
+
tools: string[];
|
|
75
|
+
}
|
|
76
|
+
//#endregion
|
|
66
77
|
//#region src/node/diagnostics.d.ts
|
|
67
78
|
/**
|
|
68
79
|
* DF00xx codes are allocated across packages (e.g. @devframes/json-render
|
|
@@ -380,6 +391,29 @@ export declare const diagnostics: import("nostics").Diagnostics<{
|
|
|
380
391
|
}) => string;
|
|
381
392
|
readonly fix: "Install `@devframes/agentic` next to devframe (the MCP adapter and the MCP SDK live there), or remove the explicit `mcp` setting.";
|
|
382
393
|
};
|
|
394
|
+
readonly DF0081: {
|
|
395
|
+
readonly why: (p: {
|
|
396
|
+
name: string;
|
|
397
|
+
reason: string;
|
|
398
|
+
}) => string;
|
|
399
|
+
readonly fix: "Pass `withMcpContent` a non-empty array of `{ type: 'text', text }`, `{ type: 'image', data, mimeType }` or `{ type: 'audio', data, mimeType }` blocks, with string fields and base64 `data`.";
|
|
400
|
+
};
|
|
401
|
+
readonly DF0082: {
|
|
402
|
+
readonly why: (p: {
|
|
403
|
+
clientId: string;
|
|
404
|
+
tool: string;
|
|
405
|
+
live: string[];
|
|
406
|
+
}) => string;
|
|
407
|
+
readonly fix: "Re-list the connected clients (`devframe:agent:list-clients`) and retry with a live `client_id`, or omit `client_id` to target the most recently focused tab.";
|
|
408
|
+
};
|
|
409
|
+
readonly DF0084: {
|
|
410
|
+
readonly why: (p: {
|
|
411
|
+
name: string;
|
|
412
|
+
uriTemplate: string;
|
|
413
|
+
reason: string;
|
|
414
|
+
}) => string;
|
|
415
|
+
readonly fix: "Use RFC 6570 level 1 only: plain `{name}` expressions made of letters, digits, `_` and `.`, with no operator (`+`, `#`, `/`, `?`, …), modifier (`:n`, `*`) or list of names, and no `{` or `}` outside an expression.";
|
|
416
|
+
};
|
|
383
417
|
}, readonly [(d: import("nostics").Diagnostic, { method }?: {
|
|
384
418
|
method?: "log" | "warn" | "error";
|
|
385
419
|
}) => void], never>;
|
|
@@ -510,4 +544,4 @@ export declare function peekRpcWireFrame(raw: string): {
|
|
|
510
544
|
/** Convert tool input for a command, whose arguments must be declared. */
|
|
511
545
|
export declare function toolInputToCommandArgs(input: unknown, argumentCount?: number): unknown[];
|
|
512
546
|
//#endregion
|
|
513
|
-
export { type AgenticMcpModule, type ContextRpcServer, type CreateContextRpcServerOptions, type CreateInstanceShellOptions, type DevframeInstanceRecord, type DevframeInstanceRegistration, type InstanceRegisterConfig, type InstanceShell, type InstanceShellApi, type InstanceShellInit, type InstanceShellInternals, type InstanceWsTier, type MountMcpHttpOptions, type MountedMcpHttp, type ResolvedMcpConfig, type RpcWireCodec, type StartedServer, createContextRpcServer, createInstanceShell, importAgenticMcp, listLiveDevframeInstances, loadAutoMcpAdapter, normalizeBasePath, probeDevframeOrigin, registerDevframeInstance, resolveBasePath, resolveInstanceRegister, resolveMcpConfig, samePath };
|
|
547
|
+
export { type AgenticMcpModule, type ConnectedClient, type ContextRpcServer, type CreateContextRpcServerOptions, type CreateInstanceShellOptions, type DevframeInstanceRecord, type DevframeInstanceRegistration, type InstanceRegisterConfig, type InstanceShell, type InstanceShellApi, type InstanceShellInit, type InstanceShellInternals, type InstanceWsTier, type MountMcpHttpOptions, type MountedMcpHttp, type ResolvedMcpConfig, type RpcWireCodec, type StartedServer, createContextRpcServer, createInstanceShell, getMcpContent, importAgenticMcp, listLiveDevframeInstances, loadAutoMcpAdapter, normalizeBasePath, probeDevframeOrigin, registerDevframeInstance, resolveBasePath, resolveInstanceRegister, resolveMcpConfig, samePath };
|
package/dist/internal/index.mjs
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { t as getMcpContent } from "../mcp-content-DN3O212x.mjs";
|
|
1
2
|
import { t as Diagnostic } from "../nostics-D0PvLZsn.mjs";
|
|
2
3
|
import { n as peekRpcWireFrame, t as createRpcWireCodec } from "../wire-codec-B1W3zH3L.mjs";
|
|
3
|
-
import { t as diagnostics } from "../diagnostics-
|
|
4
|
-
import {
|
|
5
|
-
import { a as resolveMcpConfig, n as normalizeBasePath, r as resolveBasePath, s as importAgenticMcp, t as loadAutoMcpAdapter } from "../_shared-
|
|
4
|
+
import { t as diagnostics } from "../diagnostics-BJjvKfVK.mjs";
|
|
5
|
+
import { a as toolInputToCommandArgs, i as DevframeAgentHost, t as LIST_CLIENTS_TOOL } from "../client-agent-DuLhUF6d.mjs";
|
|
6
|
+
import { a as resolveMcpConfig, n as normalizeBasePath, r as resolveBasePath, s as importAgenticMcp, t as loadAutoMcpAdapter } from "../_shared-C06DH07o.mjs";
|
|
6
7
|
import { t as importRuntimeModule } from "../import-runtime-module-BzlEQ9PI.mjs";
|
|
7
8
|
import { t as createH3DevframeHost } from "../host-h3-BROI6SQ4.mjs";
|
|
8
|
-
import { i as registerDevframeInstance, n as listLiveDevframeInstances, r as probeDevframeOrigin } from "../instance-registry-
|
|
9
|
-
import { i as normalizeHttpServerUrl, n as resolveInstanceRegister, r as samePath, t as createInstanceShell } from "../instance-shell-
|
|
10
|
-
import { t as createContextRpcServer } from "../rpc-core-
|
|
9
|
+
import { i as registerDevframeInstance, n as listLiveDevframeInstances, r as probeDevframeOrigin } from "../instance-registry-vlz81P9X.mjs";
|
|
10
|
+
import { i as normalizeHttpServerUrl, n as resolveInstanceRegister, r as samePath, t as createInstanceShell } from "../instance-shell-CBgy8YzK.mjs";
|
|
11
|
+
import { t as createContextRpcServer } from "../rpc-core-oXIq2hjO.mjs";
|
|
11
12
|
//#region src/agent/stringify.ts
|
|
12
13
|
/**
|
|
13
14
|
* JSON-coercing serializer for MCP text payloads.
|
|
@@ -156,4 +157,4 @@ function argsToJsonSchema(args) {
|
|
|
156
157
|
};
|
|
157
158
|
}
|
|
158
159
|
//#endregion
|
|
159
|
-
export { DevframeAgentHost, argsToJsonSchema, createContextRpcServer, createH3DevframeHost, createInstanceShell, createRpcWireCodec, diagnostics, formatMcpError, importAgenticMcp, importRuntimeModule, listLiveDevframeInstances, loadAutoMcpAdapter, normalizeBasePath, normalizeHttpServerUrl, peekRpcWireFrame, probeDevframeOrigin, registerDevframeInstance, resolveBasePath, resolveInstanceRegister, resolveMcpConfig, returnToJsonSchema, samePath, stringifyForMcp, toolInputToCommandArgs };
|
|
160
|
+
export { DevframeAgentHost, LIST_CLIENTS_TOOL, argsToJsonSchema, createContextRpcServer, createH3DevframeHost, createInstanceShell, createRpcWireCodec, diagnostics, formatMcpError, getMcpContent, importAgenticMcp, importRuntimeModule, listLiveDevframeInstances, loadAutoMcpAdapter, normalizeBasePath, normalizeHttpServerUrl, peekRpcWireFrame, probeDevframeOrigin, registerDevframeInstance, resolveBasePath, resolveInstanceRegister, resolveMcpConfig, returnToJsonSchema, samePath, stringifyForMcp, toolInputToCommandArgs };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
//#region src/agent/mcp-content.ts
|
|
2
|
+
/**
|
|
3
|
+
* Registry symbol for the content blocks attached by {@link withMcpContent}.
|
|
4
|
+
* `Symbol.for` keeps the key the same across duplicate copies of devframe.
|
|
5
|
+
*/
|
|
6
|
+
const MCP_CONTENT = Symbol.for("devframe:mcp-content");
|
|
7
|
+
/**
|
|
8
|
+
* Attach MCP content blocks to a tool result, for example an image next to
|
|
9
|
+
* its text. The MCP adapter sends these blocks as the `content` of the
|
|
10
|
+
* `tools/call` result, in place of the default single JSON text block.
|
|
11
|
+
*
|
|
12
|
+
* The blocks are stored under a non-enumerable symbol key, so `value` itself
|
|
13
|
+
* does not change: the RPC transport to the SPA, `returns` validation, and the
|
|
14
|
+
* `structuredContent` of a tool with an output schema all see the plain value
|
|
15
|
+
* and never the (often large) block data.
|
|
16
|
+
*
|
|
17
|
+
* `value` must be an object that is not frozen. Returns `value`.
|
|
18
|
+
*/
|
|
19
|
+
function withMcpContent(value, content) {
|
|
20
|
+
Object.defineProperty(value, MCP_CONTENT, {
|
|
21
|
+
value: content,
|
|
22
|
+
enumerable: false,
|
|
23
|
+
configurable: true,
|
|
24
|
+
writable: true
|
|
25
|
+
});
|
|
26
|
+
return value;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Read the blocks attached by {@link withMcpContent}, or `undefined` when the
|
|
30
|
+
* value carries none. The value is not validated here; the MCP adapter checks
|
|
31
|
+
* each block before it sends it.
|
|
32
|
+
*
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
function getMcpContent(value) {
|
|
36
|
+
if (value === null || typeof value !== "object") return void 0;
|
|
37
|
+
return value[MCP_CONTENT];
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
export { withMcpContent as n, getMcpContent as t };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { kt as McpContentBlock } from "./context-Dko5QFWF.mjs";
|
|
2
|
+
//#region src/agent/mcp-content.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Attach MCP content blocks to a tool result, for example an image next to
|
|
5
|
+
* its text. The MCP adapter sends these blocks as the `content` of the
|
|
6
|
+
* `tools/call` result, in place of the default single JSON text block.
|
|
7
|
+
*
|
|
8
|
+
* The blocks are stored under a non-enumerable symbol key, so `value` itself
|
|
9
|
+
* does not change: the RPC transport to the SPA, `returns` validation, and the
|
|
10
|
+
* `structuredContent` of a tool with an output schema all see the plain value
|
|
11
|
+
* and never the (often large) block data.
|
|
12
|
+
*
|
|
13
|
+
* `value` must be an object that is not frozen. Returns `value`.
|
|
14
|
+
*/
|
|
15
|
+
declare function withMcpContent<T extends object>(value: T, content: readonly McpContentBlock[]): T;
|
|
16
|
+
/**
|
|
17
|
+
* Read the blocks attached by {@link withMcpContent}, or `undefined` when the
|
|
18
|
+
* value carries none. The value is not validated here; the MCP adapter checks
|
|
19
|
+
* each block before it sends it.
|
|
20
|
+
*
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
declare function getMcpContent(value: unknown): unknown;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { withMcpContent as n, getMcpContent as t };
|
package/dist/node/auth.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as getTempAuthCodeInfo, c as revokeActiveConnectionsForToken, i as getTempAuthCode, l as revokeAuthToken, n as describeUA, o as refreshTempAuthCode, r as exchangeTempAuthCode, s as verifyAuthToken, t as buildOtpAuthUrl } from "../index-
|
|
1
|
+
import { It as DevframeAuthHandler } from "../context-Dko5QFWF.mjs";
|
|
2
|
+
import { a as getTempAuthCodeInfo, c as revokeActiveConnectionsForToken, i as getTempAuthCode, l as revokeAuthToken, n as describeUA, o as refreshTempAuthCode, r as exchangeTempAuthCode, s as verifyAuthToken, t as buildOtpAuthUrl } from "../index-BMj-o_sP.mjs";
|
|
3
3
|
export { DevframeAuthHandler, buildOtpAuthUrl, describeUA, exchangeTempAuthCode, getTempAuthCode, getTempAuthCodeInfo, refreshTempAuthCode, revokeActiveConnectionsForToken, revokeAuthToken, verifyAuthToken };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as internalContextMap, i as getInternalContext, n as InternalAnonymousAuthStorage, r as RemoteTokenRecord, t as DevframeInternalContext } from "../context-
|
|
2
|
-
import { a as resolveBasePath, i as normalizeBasePath } from "../_shared-
|
|
1
|
+
import { a as internalContextMap, i as getInternalContext, n as InternalAnonymousAuthStorage, r as RemoteTokenRecord, t as DevframeInternalContext } from "../context-eIUOSrKu.mjs";
|
|
2
|
+
import { a as resolveBasePath, i as normalizeBasePath } from "../_shared-DbO-OtUC.mjs";
|
|
3
3
|
export { type DevframeInternalContext, type InternalAnonymousAuthStorage, type RemoteTokenRecord, getInternalContext, internalContextMap, normalizeBasePath, resolveBasePath };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as normalizeBasePath, r as resolveBasePath } from "../_shared-
|
|
2
|
-
import { n as internalContextMap, t as getInternalContext } from "../context-
|
|
1
|
+
import { n as normalizeBasePath, r as resolveBasePath } from "../_shared-C06DH07o.mjs";
|
|
2
|
+
import { n as internalContextMap, t as getInternalContext } from "../context-BY72d2gV.mjs";
|
|
3
3
|
export { getInternalContext, internalContextMap, normalizeBasePath, resolveBasePath };
|
package/dist/node/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as RpcFunctionDefinitionAny } from "../types-BmDbfHCx.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { St as DevframeHost, k as SharedState, l as RpcFunctionsHost, o as DevframeNodeContext } from "../context-Dko5QFWF.mjs";
|
|
3
3
|
//#region src/node/context.d.ts
|
|
4
4
|
export interface CreateHostContextOptions {
|
|
5
5
|
cwd: string;
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as createHostContext } from "../context-
|
|
2
|
-
import { t as createStorage } from "../storage-
|
|
1
|
+
import { t as createHostContext } from "../context-CmSDJAEI.mjs";
|
|
2
|
+
import { t as createStorage } from "../storage-BzAr-S6I.mjs";
|
|
3
3
|
export { createHostContext, createStorage };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../index-
|
|
1
|
+
import { It as DevframeAuthHandler, o as DevframeNodeContext, s as DevframeNodeRpcSession } from "../context-Dko5QFWF.mjs";
|
|
2
|
+
import "../index-BMj-o_sP.mjs";
|
|
3
3
|
import { ColorFn } from "../utils/colors.mjs";
|
|
4
4
|
//#region src/recipes/interactive-auth.d.ts
|
|
5
5
|
export interface CreateInteractiveAuthOptions {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createInteractiveAuth, t as createAuthBanner } from "../interactive-auth-
|
|
1
|
+
import { n as createInteractiveAuth, t as createAuthBanner } from "../interactive-auth-BsqLFXw8.mjs";
|
|
2
2
|
export { createAuthBanner, createInteractiveAuth };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as diagnostics } from "./diagnostics-
|
|
1
|
+
import { t as diagnostics } from "./diagnostics-BJjvKfVK.mjs";
|
|
2
2
|
import { t as lookup } from "./mrmime-40h5OOIp.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { mkdir, readFile, rename, rm, stat, writeFile } from "node:fs/promises";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as WsOriginRegistry } from "../../ws-server-y2R76aSW.mjs";
|
|
2
|
-
import { t as ContextRpcServer } from "../../rpc-core-
|
|
2
|
+
import { t as ContextRpcServer } from "../../rpc-core-BQ1mesqZ.mjs";
|
|
3
3
|
//#region src/rpc/transports/ws-bun.d.ts
|
|
4
4
|
export interface AttachBunWsTransportOptions {
|
|
5
5
|
/** Same contract as `WsRpcTransportOptions.allowedOrigins`. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as WsOriginRegistry } from "../../ws-server-y2R76aSW.mjs";
|
|
2
|
-
import { t as ContextRpcServer } from "../../rpc-core-
|
|
2
|
+
import { t as ContextRpcServer } from "../../rpc-core-BQ1mesqZ.mjs";
|
|
3
3
|
//#region src/rpc/transports/ws-deno.d.ts
|
|
4
4
|
export interface AttachDenoWsTransportOptions {
|
|
5
5
|
/** Same contract as `WsRpcTransportOptions.allowedOrigins`. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as BirpcGroup, o as EventOptions } from "./index-Bia1vKjL.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { It as DevframeAuthHandler, o as DevframeNodeContext, s as DevframeNodeRpcSession, vt as DevframeRpcClientFunctions, yt as DevframeRpcServerFunctions } from "./context-Dko5QFWF.mjs";
|
|
3
3
|
import { n as DevframeRpcConnection, t as DevframeNodeRpcSessionMeta } from "./session-r6PDixP6.mjs";
|
|
4
4
|
import "./ws-server-y2R76aSW.mjs";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-BMj-o_sP.mjs";
|
|
6
6
|
//#region src/node/rpc-core.d.ts
|
|
7
7
|
interface CreateContextRpcServerOptions {
|
|
8
8
|
context: DevframeNodeContext;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-B4iAMlE-.mjs";
|
|
2
2
|
import { n as getRpcResolvedSetupResult, t as getRpcHandler } from "./handler-DmaAfpGq.mjs";
|
|
3
3
|
import { createRpcServer } from "./rpc/server.mjs";
|
|
4
|
-
import { t as diagnostics } from "./diagnostics-
|
|
4
|
+
import { t as diagnostics } from "./diagnostics-BJjvKfVK.mjs";
|
|
5
5
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
6
6
|
//#region src/node/rpc-core.ts
|
|
7
7
|
var rpc_core_exports = /* @__PURE__ */ __exportAll({ createContextRpcServer: () => createContextRpcServer });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createEventEmitter } from "./utils/events.mjs";
|
|
2
2
|
import { nanoid } from "./utils/nanoid.mjs";
|
|
3
|
-
//#region ../../node_modules/.pnpm/immer@11.
|
|
3
|
+
//#region ../../node_modules/.pnpm/immer@11.2.3/node_modules/immer/dist/immer.mjs
|
|
4
4
|
var NOTHING = Symbol.for("immer-nothing");
|
|
5
5
|
var DRAFTABLE = Symbol.for("immer-draftable");
|
|
6
6
|
var DRAFT_STATE = Symbol.for("immer-state");
|
|
@@ -646,7 +646,9 @@ function currentImpl(value) {
|
|
|
646
646
|
copy = shallowCopy(value, state.scope_.immer_.useStrictShallowCopy_);
|
|
647
647
|
strict = state.scope_.immer_.shouldUseStrictIteration();
|
|
648
648
|
} else copy = shallowCopy(value, true);
|
|
649
|
-
|
|
649
|
+
const source = copy;
|
|
650
|
+
if (isSet(copy)) copy = /* @__PURE__ */ new Set();
|
|
651
|
+
each(source, (key, childValue) => {
|
|
650
652
|
set(copy, key, currentImpl(childValue));
|
|
651
653
|
}, strict);
|
|
652
654
|
if (state) state.finalized_ = false;
|
|
@@ -674,6 +676,7 @@ function enablePatches() {
|
|
|
674
676
|
key = Array.from(setParent.drafts_.keys()).indexOf(state.key_);
|
|
675
677
|
} else key = state.key_;
|
|
676
678
|
if (!(isSet2 && parentCopy.size > key || has(parentCopy, key))) return null;
|
|
679
|
+
if (state.parent_.type_ === 1 && state.parent_.allIndicesReassigned_) return null;
|
|
677
680
|
path.push(key);
|
|
678
681
|
}
|
|
679
682
|
if (state.parent_) return getPath(state.parent_, path);
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { m as RpcFunctionAgentOptions } from "../types-BmDbfHCx.mjs";
|
|
2
|
-
import { $ as
|
|
2
|
+
import { $ as DevframeServiceOf, $t as EventUnsubscribe, At as McpFetchHandler, B as DevframeSetupInfo, Ct as DevframeStorageScope, Dt as CreateMcpServerOptions, Et as CreateMcpFetchHandlerOptions, F as DevframeDefinition, Ft as McpServerHandle, G as McpAuthorization, Gt as AgentResourceInput, H as DevframeSnapshotRpcInputs, Ht as AgentManifest, I as DevframeDeploymentKind, J as DevframeServiceDefinition, Jt as AgentToolProvider, K as McpRouteOptions, Kt as AgentTool, L as DevframeDockDefaults, Mt as McpResourceTemplateContent, Nt as McpResourceTemplateEntry, Ot as McpConnectionInfo, P as DevframeCliOptions, Pt as McpResourcesChangedHook, Q as DevframeServiceMeta, Qt as EventEmitter, R as DevframeDuplicationStrategy, St as DevframeHost, Tt as DevframeDiagnosticsLogger, U as DevframeSseOptions, Ut as AgentResource, V as DevframeSnapshotRpcEntry, Vt as AgentHandle, W as DevframeWsOptions, Wt as AgentResourceContent, X as DevframeServiceId, Xt as DevframeAgentHost, Y as DevframeServiceDescriptor, Yt as AgentToolProviderHandle, Z as DevframeServiceInput, Zt as DevframeAgentHostEvents, _t as DevframeViewHost, a as DevframeConnectionConfigsRegistry, at as DevframeScopedNodeContext, bt as DevframeRpcSharedStates, c as RpcBroadcastOptions, ct as DevframeSettings, d as RpcSharedStateHost, dt as ScopedBroadcastOptions, en as EventsMap, et as DevframeServiceScopeOf, f as RpcStreamingChannel, ft as ScopedClientFunctions, gt as SettingsForNamespace, ht as ScopedSharedStates, i as DevframeCapabilities, it as DevframeServicesState, jt as McpResourceTemplate, kt as McpContentBlock, 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, qt as AgentToolInput, 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 DevframeDiagnosticsHost, yt as DevframeRpcServerFunctions, z as DevframeRpcOptions } from "../context-Dko5QFWF.mjs";
|
|
3
3
|
import { a as DevframeWsPeer, i as DevframeRpcTransportKind, n as DevframeRpcConnection, r as DevframeRpcConnectionRequest, t as DevframeNodeRpcSessionMeta } from "../session-r6PDixP6.mjs";
|
|
4
4
|
import { a as RemoteAssetsStore, i as RemoteAssetsProviderCustom, n as RemoteAssetsErrorMessage, o as StaticAssetsSource, r as RemoteAssetsProvider, t as RemoteAssets } from "../remote-assets-eBvSKZMS.mjs";
|
|
5
5
|
import { i as DevframeDefineDiagnosticsOptions } from "../nostics-DWvukRwa.mjs";
|
|
6
|
-
export { AgentHandle, AgentManifest, AgentResource, AgentResourceContent, AgentResourceInput, AgentTool, AgentToolInput, AgentToolProvider, AgentToolProviderHandle, ConnectionMeta, ConnectionMetaSse, ConnectionMetaWebsocket, CreateMcpFetchHandlerOptions, CreateMcpServerOptions, DevframeAgentHost, DevframeAgentHostEvents, DevframeCapabilities, DevframeCliOptions, DevframeConnectionConfigsRegistry, type DevframeDefineDiagnosticsOptions, DevframeDefinition, DevframeDeploymentKind, DevframeDiagnosticsHost, DevframeDiagnosticsLogger, DevframeDockDefaults, DevframeDuplicationStrategy, DevframeHost, DevframeNodeContext, DevframeNodeRpcSession, type DevframeNodeRpcSessionMeta, DevframeRpcClientFunctions, type DevframeRpcConnection, type DevframeRpcConnectionRequest, DevframeRpcOptions, DevframeRpcServerFunctions, DevframeRpcSharedStates, type DevframeRpcTransportKind, DevframeScopedNodeContext, DevframeScopedNodeRpc, DevframeScopedStreamingHost, DevframeServiceDefinition, DevframeServiceDescriptor, DevframeServiceId, DevframeServiceInput, DevframeServiceMeta, DevframeServiceOf, DevframeServiceScopeOf, DevframeServicesHost, DevframeServicesRegistry, DevframeServicesScopeRegistry, DevframeServicesState, DevframeSettings, DevframeSettingsRegistry, DevframeSettingsStore, DevframeSetupInfo, DevframeSnapshotRpcEntry, DevframeSnapshotRpcInputs, DevframeSseOptions, DevframeStorageScope, DevframeViewHost, DevframeWsOptions, type DevframeWsPeer, EventEmitter, EventUnsubscribe, EventsMap, McpAuthorization, McpConnectionInfo, McpFetchHandler, McpRouteOptions, McpServerHandle, McpSetting, RemoteAssets, RemoteAssetsErrorMessage, RemoteAssetsProvider, RemoteAssetsProviderCustom, RemoteAssetsStore, RpcBroadcastOptions, type RpcFunctionAgentOptions, RpcFunctionsHost, RpcSharedStateGetOptions, RpcSharedStateHost, RpcStreamingChannel, RpcStreamingChannelOptions, RpcStreamingHost, ScopedBroadcastOptions, ScopedClientFunctions, ScopedRpcFn, ScopedServerFunctions, ScopedSharedStates, SettingsForNamespace, StaticAssetsSource };
|
|
6
|
+
export { AgentHandle, AgentManifest, AgentResource, AgentResourceContent, AgentResourceInput, AgentTool, AgentToolInput, AgentToolProvider, AgentToolProviderHandle, ConnectionMeta, ConnectionMetaSse, ConnectionMetaWebsocket, CreateMcpFetchHandlerOptions, CreateMcpServerOptions, DevframeAgentHost, DevframeAgentHostEvents, DevframeCapabilities, DevframeCliOptions, DevframeConnectionConfigsRegistry, type DevframeDefineDiagnosticsOptions, DevframeDefinition, DevframeDeploymentKind, DevframeDiagnosticsHost, DevframeDiagnosticsLogger, DevframeDockDefaults, DevframeDuplicationStrategy, DevframeHost, DevframeNodeContext, DevframeNodeRpcSession, type DevframeNodeRpcSessionMeta, DevframeRpcClientFunctions, type DevframeRpcConnection, type DevframeRpcConnectionRequest, DevframeRpcOptions, DevframeRpcServerFunctions, DevframeRpcSharedStates, type DevframeRpcTransportKind, DevframeScopedNodeContext, DevframeScopedNodeRpc, DevframeScopedStreamingHost, DevframeServiceDefinition, DevframeServiceDescriptor, DevframeServiceId, DevframeServiceInput, DevframeServiceMeta, DevframeServiceOf, DevframeServiceScopeOf, DevframeServicesHost, DevframeServicesRegistry, DevframeServicesScopeRegistry, DevframeServicesState, DevframeSettings, DevframeSettingsRegistry, DevframeSettingsStore, DevframeSetupInfo, DevframeSnapshotRpcEntry, DevframeSnapshotRpcInputs, DevframeSseOptions, DevframeStorageScope, DevframeViewHost, DevframeWsOptions, type DevframeWsPeer, EventEmitter, EventUnsubscribe, EventsMap, McpAuthorization, McpConnectionInfo, McpContentBlock, McpFetchHandler, McpResourceTemplate, McpResourceTemplateContent, McpResourceTemplateEntry, McpResourcesChangedHook, McpRouteOptions, McpServerHandle, McpSetting, RemoteAssets, RemoteAssetsErrorMessage, RemoteAssetsProvider, RemoteAssetsProviderCustom, RemoteAssetsStore, RpcBroadcastOptions, type RpcFunctionAgentOptions, RpcFunctionsHost, RpcSharedStateGetOptions, RpcSharedStateHost, RpcStreamingChannel, RpcStreamingChannelOptions, RpcStreamingHost, ScopedBroadcastOptions, ScopedClientFunctions, ScopedRpcFn, ScopedServerFunctions, ScopedSharedStates, SettingsForNamespace, StaticAssetsSource };
|
package/dist/utils/events.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as resolveStaticAssetsSource } from "../remote-assets-
|
|
1
|
+
import { t as resolveStaticAssetsSource } from "../remote-assets-DOva7l3s.mjs";
|
|
2
2
|
export { resolveStaticAssetsSource };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as SharedStateEvents, D as ImmutableObject, E as ImmutableMap, M as SharedStatePatch, N as createSharedState, O as ImmutableSet, T as ImmutableArray, j as SharedStateOptions, k as SharedState, w as Immutable } from "../context-
|
|
1
|
+
import { A as SharedStateEvents, D as ImmutableObject, E as ImmutableMap, M as SharedStatePatch, N as createSharedState, O as ImmutableSet, T as ImmutableArray, j as SharedStateOptions, k as SharedState, w as Immutable } from "../context-Dko5QFWF.mjs";
|
|
2
2
|
export { Immutable, ImmutableArray, ImmutableMap, ImmutableObject, ImmutableSet, SharedState, SharedStateEvents, SharedStateOptions, SharedStatePatch, createSharedState };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createSharedState } from "../shared-state-
|
|
1
|
+
import { t as createSharedState } from "../shared-state-Cc-Jrhma.mjs";
|
|
2
2
|
export { createSharedState };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as createStreamSink, S as createStreamReader, _ as CreateStreamSinkOptions, b as StreamSink, g as CreateStreamReaderOptions, h as BufferedChunk, v as StreamErrorPayload, x as StreamSinkEvents, y as StreamReader } from "../context-
|
|
1
|
+
import { C as createStreamSink, S as createStreamReader, _ as CreateStreamSinkOptions, b as StreamSink, g as CreateStreamReaderOptions, h as BufferedChunk, v as StreamErrorPayload, x as StreamSinkEvents, y as StreamReader } from "../context-Dko5QFWF.mjs";
|
|
2
2
|
export { BufferedChunk, CreateStreamReaderOptions, CreateStreamSinkOptions, StreamErrorPayload, StreamReader, StreamSink, StreamSinkEvents, createStreamReader, createStreamSink };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "devframe",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"description": "Framework for building one portable devtool integration that runs in any viewer.",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"skills"
|
|
78
78
|
],
|
|
79
79
|
"peerDependencies": {
|
|
80
|
-
"@devframes/agentic": "1.
|
|
80
|
+
"@devframes/agentic": "1.3.0",
|
|
81
81
|
"cac": "^7.0.0"
|
|
82
82
|
},
|
|
83
83
|
"peerDependenciesMeta": {
|
|
@@ -89,18 +89,18 @@
|
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"crossws": "^0.4.
|
|
93
|
-
"h3": "^2.0.
|
|
92
|
+
"crossws": "^0.4.15",
|
|
93
|
+
"h3": "^2.0.7",
|
|
94
94
|
"nostics": "^1.3.0",
|
|
95
95
|
"pathe": "^2.0.3"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
|
-
"@devframes/agentic": "1.
|
|
98
|
+
"@devframes/agentic": "1.3.0",
|
|
99
99
|
"@standard-schema/spec": "^1.1.0",
|
|
100
100
|
"birpc": "^4.2.0",
|
|
101
|
-
"cac": "^7.
|
|
101
|
+
"cac": "^7.1.0",
|
|
102
102
|
"get-port-please": "^3.2.0",
|
|
103
|
-
"immer": "^11.
|
|
103
|
+
"immer": "^11.2.3",
|
|
104
104
|
"launch-editor": "^2.14.2",
|
|
105
105
|
"mlly": "^1.8.2",
|
|
106
106
|
"mrmime": "^2.0.1",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"perfect-debounce": "^2.1.0",
|
|
111
111
|
"structured-clone-es": "^2.0.1",
|
|
112
112
|
"tinyglobby": "^0.2.17",
|
|
113
|
-
"tsdown": "
|
|
113
|
+
"tsdown": "0.23.0",
|
|
114
114
|
"typescript": "^6.0.3",
|
|
115
115
|
"ua-parser-modern": "^0.1.1",
|
|
116
116
|
"valibot": "^1.5.0",
|