devframe 1.2.5 → 1.2.6
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-B6K2DKhb.mjs} +2 -1
- package/dist/{_shared-NSl4p_om.d.mts → _shared-BvDsc83f.d.mts} +4 -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 +2 -2
- package/dist/adapters/dev.d.mts +3 -3
- 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 +2 -2
- package/dist/{agentic-D61fXLzA.d.mts → agentic-JXlb0uiD.d.mts} +1 -1
- package/dist/cli/main.mjs +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/{context-CNq7GLeT.mjs → context-B-2gsJ6Z.mjs} +1 -1
- package/dist/{context-BKw9KkCR.mjs → context-CeD8-IZA.mjs} +4 -4
- package/dist/{context-Bgvuxv1C.d.mts → context-O8NJzl93.d.mts} +1 -1
- package/dist/{context-DhycZ2lx.d.mts → context-dOWXVHc6.d.mts} +32 -1
- package/dist/{dev-BViAfnlw.mjs → dev-pIWWAGYd.mjs} +6 -5
- package/dist/{diagnostics-Cx4_VjlG.mjs → diagnostics-Dngy7cNp.mjs} +4 -0
- package/dist/{host-agent-CJu735ch.mjs → host-agent-DB1yECaG.mjs} +1 -1
- package/dist/in-page-channel/index.d.mts +1 -1
- package/dist/{index-DFPsvDGu.d.mts → index-DVGcpYm7.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-B--XFmLS.mjs} +1 -1
- package/dist/{instance-shell-fl3ir6RC.d.mts → instance-shell-DrvOWxqh.d.mts} +2 -2
- package/dist/{instance-shell-DmyVIJzj.mjs → instance-shell-DyVmJA6B.mjs} +6 -6
- package/dist/{interactive-auth-FFOGnYIC.mjs → interactive-auth-CCZdQDy_.mjs} +1 -1
- package/dist/internal/index.d.mts +14 -6
- package/dist/internal/index.mjs +8 -7
- package/dist/mcp-content-9_Pdtziq.d.mts +25 -0
- package/dist/mcp-content-DN3O212x.mjs +40 -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-DoZ1AMpq.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-D6NWQW-B.d.mts} +2 -2
- package/dist/{rpc-core-CXgALhUi.mjs → rpc-core-Dl50hXG3.mjs} +1 -1
- package/dist/{storage-DPoitS2X.mjs → storage-BQy9865B.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/streaming-channel.d.mts +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./constants.mjs";
|
|
2
|
-
import { t as diagnostics } from "./diagnostics-
|
|
2
|
+
import { t as diagnostics } from "./diagnostics-Dngy7cNp.mjs";
|
|
3
3
|
import { n as getPort } from "./dist-CZXfGEkd.mjs";
|
|
4
4
|
import { n as isRuntimeModuleResolvable, t as importRuntimeModule } from "./import-runtime-module-BzlEQ9PI.mjs";
|
|
5
5
|
//#region src/utils/url.ts
|
|
@@ -144,6 +144,7 @@ function resolveMcpConfig(mcp) {
|
|
|
144
144
|
...mcp.path !== void 0 ? { path: mcp.path } : {},
|
|
145
145
|
...mcp.allowedOrigins !== void 0 ? { allowedOrigins: mcp.allowedOrigins } : {},
|
|
146
146
|
...mcp.exposeSharedState !== void 0 ? { exposeSharedState: mcp.exposeSharedState } : {},
|
|
147
|
+
...mcp.instructions !== void 0 ? { instructions: mcp.instructions } : {},
|
|
147
148
|
authorization
|
|
148
149
|
};
|
|
149
150
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as AgenticMcpModule } from "./agentic-
|
|
1
|
+
import { $ as McpSetting, Gt as DevframeAgentHost, H as DevframeDeploymentKind, V as DevframeDefinition, Z as McpAuthorization, t as ConnectionMeta } from "./context-dOWXVHc6.mjs";
|
|
2
|
+
import { t as AgenticMcpModule } from "./agentic-JXlb0uiD.mjs";
|
|
3
3
|
//#region src/adapters/_shared.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Resolve the mount base path for a devframe's SPA. Hosted adapters
|
|
@@ -37,6 +37,8 @@ interface ResolvedMcpConfig {
|
|
|
37
37
|
allowedOrigins?: readonly string[] | false;
|
|
38
38
|
/** Shared-state exposure from the route options; omitted means every key. */
|
|
39
39
|
exposeSharedState?: boolean | ((key: string) => boolean);
|
|
40
|
+
/** Handshake `instructions` from the route options; omitted means none. */
|
|
41
|
+
instructions?: string;
|
|
40
42
|
/** The resolved identity policy: a bearer token, callback, or `false`. */
|
|
41
43
|
authorization: McpAuthorization;
|
|
42
44
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { V as DevframeDefinition, o as DevframeNodeContext, q as DevframeSnapshotRpcEntry } from "../context-dOWXVHc6.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,9 +1,9 @@
|
|
|
1
1
|
import { s as colors } from "../nostics-D0PvLZsn.mjs";
|
|
2
2
|
import { DEVFRAME_CONNECTION_META_FILENAME, DEVFRAME_RPC_DUMP_MANIFEST_FILENAME } from "../constants.mjs";
|
|
3
3
|
import { n as collectStaticRpcDump, t as writeStaticRpcDump } from "../write-DK7rBUN3.mjs";
|
|
4
|
-
import { t as diagnostics } from "../diagnostics-
|
|
5
|
-
import { t as createHostContext } from "../context-
|
|
6
|
-
import { t as resolveStaticAssetsSource } from "../remote-assets-
|
|
4
|
+
import { t as diagnostics } from "../diagnostics-Dngy7cNp.mjs";
|
|
5
|
+
import { t as createHostContext } from "../context-CeD8-IZA.mjs";
|
|
6
|
+
import { t as resolveStaticAssetsSource } from "../remote-assets-DoZ1AMpq.mjs";
|
|
7
7
|
import { t as createH3DevframeHost } from "../host-h3-BROI6SQ4.mjs";
|
|
8
8
|
import fs from "node:fs/promises";
|
|
9
9
|
import { resolve } from "pathe";
|
package/dist/adapters/cac.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as McpSetting, Ft as parseCliFlags, Mt as CliFlagsSchema, Nt as InferCliFlags, Pt as defineCliFlags, V as DevframeDefinition } from "../context-dOWXVHc6.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
|
-
import { i as resolveDevServerPort, s as importAgenticMcp } from "../_shared-
|
|
2
|
+
import { i as resolveDevServerPort, s as importAgenticMcp } from "../_shared-B6K2DKhb.mjs";
|
|
3
3
|
import { createBuild } from "./build.mjs";
|
|
4
|
-
import { t as createDevServer } from "../dev-
|
|
4
|
+
import { t as createDevServer } from "../dev-pIWWAGYd.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 {
|
|
1
|
+
import { $ as McpSetting, V as DevframeDefinition, X as DevframeWsOptions, Y as DevframeSseOptions, jt as DevframeAuthHandler, s as DevframeNodeRpcSession } from "../context-dOWXVHc6.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
4
|
import { n as WsOriginRegistry } from "../ws-server-y2R76aSW.mjs";
|
|
5
|
-
import { c as StartedServer } from "../instance-shell-
|
|
6
|
-
import { c as resolveMcpConnectionMeta, o as resolveDevServerPort, t as ResolveDevServerPortOptions } from "../_shared-
|
|
5
|
+
import { c as StartedServer } from "../instance-shell-DrvOWxqh.mjs";
|
|
6
|
+
import { c as resolveMcpConnectionMeta, o as resolveDevServerPort, t as ResolveDevServerPortOptions } from "../_shared-BvDsc83f.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
|
-
import { i as resolveDevServerPort, o as resolveMcpConnectionMeta } from "../_shared-
|
|
2
|
-
import { t as createDevServer } from "../dev-
|
|
1
|
+
import { i as resolveDevServerPort, o as resolveMcpConnectionMeta } from "../_shared-B6K2DKhb.mjs";
|
|
2
|
+
import { t as createDevServer } from "../dev-pIWWAGYd.mjs";
|
|
3
3
|
export { createDevServer, resolveDevServerPort, resolveMcpConnectionMeta };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { V as DevframeDefinition, o as DevframeNodeContext } from "../context-dOWXVHc6.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 {
|
|
1
|
+
import { $ as McpSetting, Ot as DevframeStorageScope, V as DevframeDefinition, X as DevframeWsOptions, Y as DevframeSseOptions, jt as DevframeAuthHandler, o as DevframeNodeContext, s as DevframeNodeRpcSession, t as ConnectionMeta } from "../context-dOWXVHc6.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
4
|
import { n as WsOriginRegistry } from "../ws-server-y2R76aSW.mjs";
|
|
5
|
-
import { c as StartedServer, f as DevframeInstanceRecord } from "../instance-shell-
|
|
5
|
+
import { c as StartedServer, f as DevframeInstanceRecord } from "../instance-shell-DrvOWxqh.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-pIWWAGYd.mjs";
|
|
2
2
|
export { getInstanceInternals, initDevframe };
|
package/dist/adapters/mcp.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as CreateMcpServerOptions, I as McpConnectionInfo,
|
|
2
|
-
import { n as MountMcpHttpOptions, r as MountedMcpHttp } from "../agentic-
|
|
1
|
+
import { F as CreateMcpServerOptions, I as McpConnectionInfo, P as CreateMcpFetchHandlerOptions, R as McpFetchHandler, z as McpServerHandle } from "../context-dOWXVHc6.mjs";
|
|
2
|
+
import { n as MountMcpHttpOptions, r as MountedMcpHttp } from "../agentic-JXlb0uiD.mjs";
|
|
3
3
|
import { createMcpFetchHandler, createMcpServer, mountMcpHttp } from "@devframes/agentic/mcp";
|
|
4
4
|
export { type CreateMcpFetchHandlerOptions, type CreateMcpServerOptions, type McpConnectionInfo, type McpFetchHandler, type McpServerHandle, type MountMcpHttpOptions, type MountedMcpHttp, createMcpFetchHandler, createMcpServer, mountMcpHttp };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as CreateMcpServerOptions, P as CreateMcpFetchHandlerOptions, R as McpFetchHandler, V as DevframeDefinition, o as DevframeNodeContext, z as McpServerHandle } from "./context-dOWXVHc6.mjs";
|
|
2
2
|
import { H3 } from "h3";
|
|
3
3
|
//#region src/node/agentic.d.ts
|
|
4
4
|
/**
|
package/dist/cli/main.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as diagnostics } from "../diagnostics-
|
|
1
|
+
import { t as diagnostics } from "../diagnostics-Dngy7cNp.mjs";
|
|
2
2
|
import { t as importRuntimeModule } from "../import-runtime-module-BzlEQ9PI.mjs";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
import { cac } from "cac";
|
package/dist/client/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as BirpcReturn, r as BirpcOptions } from "../index-Bia1vKjL.mjs";
|
|
2
2
|
import { f as RpcCacheManager, p as RpcCacheOptions } from "../index-DuEm0sDH.mjs";
|
|
3
3
|
import { h as RpcFunctionDefinition, w as RpcFunctionsCollector } from "../types-BmDbfHCx.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { St as SettingsForNamespace, Tt as DevframeRpcServerFunctions, b as StreamSink, bt as ScopedServerFunctions, d as RpcSharedStateHost, it as DevframeServiceMeta, k as SharedState, mt as DevframeSettings, ot as DevframeServiceScopeOf, qt as EventEmitter, t as ConnectionMeta, u as RpcSharedStateGetOptions, ut as DevframeServicesState, wt as DevframeRpcClientFunctions, xt as ScopedSharedStates, y as StreamReader, yt as ScopedRpcFn } from "../context-dOWXVHc6.mjs";
|
|
5
5
|
import { t as SseRpcChannelOptions } from "../sse-client-DNdscfu_.mjs";
|
|
6
6
|
import { t as WsRpcChannelOptions } from "../ws-client-6Mrz6eC4.mjs";
|
|
7
7
|
//#region src/client/connection.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as randomToken } from "./crypto-token-TVbGGFuj.mjs";
|
|
2
|
-
import { t as createStorage } from "./storage-
|
|
2
|
+
import { t as createStorage } from "./storage-BQy9865B.mjs";
|
|
3
3
|
import { n as revokeAuthToken, t as revokeActiveConnectionsForToken } from "./revoke-CeQUo6KI.mjs";
|
|
4
4
|
import { join } from "pathe";
|
|
5
5
|
//#region src/node/hub-internals/context.ts
|
|
@@ -4,10 +4,10 @@ import { RpcFunctionsCollectorBase } from "./rpc/index.mjs";
|
|
|
4
4
|
import { defineRpcFunction } from "./index.mjs";
|
|
5
5
|
import { t as DEVFRAME_EVENTS } from "./events-0wDwalmL.mjs";
|
|
6
6
|
import { DEVFRAME_SERVICES_STATE_KEY } from "./constants.mjs";
|
|
7
|
-
import { t as diagnostics$1 } from "./diagnostics-
|
|
8
|
-
import { r as createEventEmitter, t as DevframeAgentHost } from "./host-agent-
|
|
9
|
-
import { n as createDebug, t as resolveStaticAssetsSource } from "./remote-assets-
|
|
10
|
-
import { t as createStorage } from "./storage-
|
|
7
|
+
import { t as diagnostics$1 } from "./diagnostics-Dngy7cNp.mjs";
|
|
8
|
+
import { r as createEventEmitter, t as DevframeAgentHost } from "./host-agent-DB1yECaG.mjs";
|
|
9
|
+
import { n as createDebug, t as resolveStaticAssetsSource } from "./remote-assets-DoZ1AMpq.mjs";
|
|
10
|
+
import { t as createStorage } from "./storage-BQy9865B.mjs";
|
|
11
11
|
import { a as satisfiesVersionRange, n as expandResolveFrom, r as importServicePackage, t as deepMergeOptionSets } from "./services-install-D5YUwFXW.mjs";
|
|
12
12
|
import { isAbsolute, join, relative } from "pathe";
|
|
13
13
|
import { createSharedState } from "devframe/utils/shared-state";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as SharedState, o as DevframeNodeContext } from "./context-
|
|
1
|
+
import { k as SharedState, o as DevframeNodeContext } from "./context-dOWXVHc6.mjs";
|
|
2
2
|
//#region src/node/hub-internals/context.d.ts
|
|
3
3
|
interface InternalAnonymousAuthStorage {
|
|
4
4
|
trusted: Record<string, {
|
|
@@ -1289,6 +1289,13 @@ interface McpRouteOptions {
|
|
|
1289
1289
|
* The states themselves stay available to the UI over RPC.
|
|
1290
1290
|
*/
|
|
1291
1291
|
exposeSharedState?: boolean | ((key: string) => boolean);
|
|
1292
|
+
/**
|
|
1293
|
+
* Usage guidance for the route, sent as `instructions` in the MCP
|
|
1294
|
+
* `initialize` (and `server/discover`) result. An MCP client can add it to
|
|
1295
|
+
* the coding agent's context, for example to say which tool to call first.
|
|
1296
|
+
* Omitted or empty sends no instructions.
|
|
1297
|
+
*/
|
|
1298
|
+
instructions?: string;
|
|
1292
1299
|
}
|
|
1293
1300
|
interface DevframeCliOptions {
|
|
1294
1301
|
/** Binary name; default: the devframe's `id`. */
|
|
@@ -1616,6 +1623,11 @@ interface CreateMcpServerOptions {
|
|
|
1616
1623
|
* - `(key) => boolean`: filter
|
|
1617
1624
|
*/
|
|
1618
1625
|
exposeSharedState?: boolean | ((key: string) => boolean);
|
|
1626
|
+
/**
|
|
1627
|
+
* Usage guidance sent as `instructions` in the MCP `initialize` (and
|
|
1628
|
+
* `server/discover`) result. Omitted or empty sends no instructions.
|
|
1629
|
+
*/
|
|
1630
|
+
instructions?: string;
|
|
1619
1631
|
/** Override the name reported in the MCP handshake. */
|
|
1620
1632
|
serverName?: string;
|
|
1621
1633
|
/** Override the version reported in the MCP handshake. Defaults to `definition.version ?? '0.0.0'`. */
|
|
@@ -1625,6 +1637,23 @@ interface CreateMcpServerOptions {
|
|
|
1625
1637
|
transport: 'stdio';
|
|
1626
1638
|
}) => void;
|
|
1627
1639
|
}
|
|
1640
|
+
/**
|
|
1641
|
+
* One MCP content block in a tool result. Attach blocks to a tool's return
|
|
1642
|
+
* value with `withMcpContent` (from `devframe`) to send them in place of the
|
|
1643
|
+
* default JSON text block. `data` is base64.
|
|
1644
|
+
*/
|
|
1645
|
+
type McpContentBlock = {
|
|
1646
|
+
type: 'text';
|
|
1647
|
+
text: string;
|
|
1648
|
+
} | {
|
|
1649
|
+
type: 'image';
|
|
1650
|
+
data: string;
|
|
1651
|
+
mimeType: string;
|
|
1652
|
+
} | {
|
|
1653
|
+
type: 'audio';
|
|
1654
|
+
data: string;
|
|
1655
|
+
mimeType: string;
|
|
1656
|
+
};
|
|
1628
1657
|
interface McpServerHandle {
|
|
1629
1658
|
stop: () => Promise<void>;
|
|
1630
1659
|
}
|
|
@@ -1635,6 +1664,8 @@ interface CreateMcpFetchHandlerOptions {
|
|
|
1635
1664
|
serverVersion: string;
|
|
1636
1665
|
/** Expose shared-state keys as MCP resources; see {@link CreateMcpServerOptions.exposeSharedState}. */
|
|
1637
1666
|
exposeSharedState: boolean | ((key: string) => boolean);
|
|
1667
|
+
/** Usage guidance for the handshake; see {@link CreateMcpServerOptions.instructions}. */
|
|
1668
|
+
instructions?: string;
|
|
1638
1669
|
/**
|
|
1639
1670
|
* Optional identity check, layered on top of the origin gate and checked
|
|
1640
1671
|
* **after** it: a bearer token string (matched in constant time against
|
|
@@ -2280,4 +2311,4 @@ interface ConnectionMeta {
|
|
|
2280
2311
|
*/
|
|
2281
2312
|
interface DevframeConnectionConfigsRegistry {}
|
|
2282
2313
|
//#endregion
|
|
2283
|
-
export {
|
|
2314
|
+
export { McpSetting as $, SharedStateEvents as A, DevframeDiagnosticsLogger as At, DevframeCliOptions as B, AgentResourceInput as Bt, createStreamSink as C, DevframeViewHost as Ct, ImmutableObject as D, DevframeHost as Dt, ImmutableMap as E, DevframeRpcSharedStates as Et, CreateMcpServerOptions as F, parseCliFlags as Ft, DevframeRpcOptions as G, DevframeAgentHost as Gt, DevframeDeploymentKind as H, AgentToolInput as Ht, McpConnectionInfo as I, AgentHandle as It, DevframeSnapshotRpcInputs as J, EventUnsubscribe as Jt, DevframeSetupInfo as K, DevframeAgentHostEvents as Kt, McpContentBlock as L, AgentManifest as Lt, SharedStatePatch as M, CliFlagsSchema as Mt, createSharedState as N, InferCliFlags as Nt, ImmutableSet as O, DevframeStorageScope as Ot, CreateMcpFetchHandlerOptions as P, defineCliFlags as Pt, McpRouteOptions as Q, McpFetchHandler as R, AgentResource as Rt, createStreamReader as S, SettingsForNamespace as St, ImmutableArray as T, DevframeRpcServerFunctions as Tt, DevframeDockDefaults as U, AgentToolProvider as Ut, DevframeDefinition as V, AgentTool as Vt, DevframeDuplicationStrategy as W, AgentToolProviderHandle as Wt, DevframeWsOptions as X, DevframeSseOptions as Y, EventsMap as Yt, McpAuthorization as Z, CreateStreamSinkOptions as _, ScopedBroadcastOptions as _t, DevframeConnectionConfigsRegistry as a, DevframeServiceOf as at, StreamSink as b, ScopedServerFunctions as bt, RpcBroadcastOptions as c, DevframeServicesRegistry as ct, RpcSharedStateHost as d, DevframeScopedNodeContext as dt, DevframeServiceDefinition as et, RpcStreamingChannel as f, DevframeScopedNodeRpc as ft, CreateStreamReaderOptions as g, DevframeSettingsStore as gt, BufferedChunk as h, DevframeSettingsRegistry as ht, DevframeCapabilities as i, DevframeServiceMeta as it, SharedStateOptions as j, DevframeAuthHandler as jt, SharedState as k, DevframeDiagnosticsHost as kt, RpcFunctionsHost as l, DevframeServicesScopeRegistry as lt, RpcStreamingHost as m, DevframeSettings as mt, ConnectionMetaSse as n, DevframeServiceId as nt, DevframeNodeContext as o, DevframeServiceScopeOf as ot, RpcStreamingChannelOptions as p, DevframeScopedStreamingHost as pt, DevframeSnapshotRpcEntry as q, EventEmitter as qt, ConnectionMetaWebsocket as r, DevframeServiceInput as rt, DevframeNodeRpcSession as s, DevframeServicesHost as st, ConnectionMeta as t, DevframeServiceDescriptor as tt, RpcSharedStateGetOptions as u, DevframeServicesState as ut, StreamErrorPayload as v, ScopedClientFunctions as vt, Immutable as w, DevframeRpcClientFunctions as wt, StreamSinkEvents as x, ScopedSharedStates as xt, StreamReader as y, ScopedRpcFn as yt, McpServerHandle as z, AgentResourceContent as zt };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DEVFRAME_CONNECTION_META_FILENAME } from "./constants.mjs";
|
|
2
|
-
import { t as diagnostics } from "./diagnostics-
|
|
3
|
-
import { t as createHostContext } from "./context-
|
|
4
|
-
import { t as resolveStaticAssetsSource } from "./remote-assets-
|
|
5
|
-
import { a as resolveMcpConfig, c as joinURL, d as withoutLeadingSlash, i as resolveDevServerPort, l as withBase, n as normalizeBasePath, r as resolveBasePath, s as importAgenticMcp, t as loadAutoMcpAdapter } from "./_shared-
|
|
2
|
+
import { t as diagnostics } from "./diagnostics-Dngy7cNp.mjs";
|
|
3
|
+
import { t as createHostContext } from "./context-CeD8-IZA.mjs";
|
|
4
|
+
import { t as resolveStaticAssetsSource } from "./remote-assets-DoZ1AMpq.mjs";
|
|
5
|
+
import { a as resolveMcpConfig, c as joinURL, d as withoutLeadingSlash, i as resolveDevServerPort, l as withBase, n as normalizeBasePath, r as resolveBasePath, s as importAgenticMcp, t as loadAutoMcpAdapter } from "./_shared-B6K2DKhb.mjs";
|
|
6
6
|
import { t as createH3DevframeHost } from "./host-h3-BROI6SQ4.mjs";
|
|
7
|
-
import { i as normalizeHttpServerUrl, n as resolveInstanceRegister, t as createInstanceShell } from "./instance-shell-
|
|
7
|
+
import { i as normalizeHttpServerUrl, n as resolveInstanceRegister, t as createInstanceShell } from "./instance-shell-DyVmJA6B.mjs";
|
|
8
8
|
import { open } from "./utils/open.mjs";
|
|
9
9
|
import { mountStaticHandler } from "./utils/serve-static.mjs";
|
|
10
10
|
import { resolve } from "pathe";
|
|
@@ -140,6 +140,7 @@ async function mountMcpRoute(app, context, def, base, setting) {
|
|
|
140
140
|
serverName: `${def.id} (devframe)`,
|
|
141
141
|
serverVersion: def.version ?? "0.0.0",
|
|
142
142
|
exposeSharedState: config.exposeSharedState ?? true,
|
|
143
|
+
instructions: config.instructions,
|
|
143
144
|
authorization: config.authorization,
|
|
144
145
|
allowedOrigins: config.allowedOrigins
|
|
145
146
|
});
|
|
@@ -182,6 +182,10 @@ const diagnostics = defineDiagnostics({
|
|
|
182
182
|
DF0079: {
|
|
183
183
|
why: (p) => `The \`mcp\` option is enabled, but the optional peer "@devframes/agentic" could not be loaded: ${p.reason}`,
|
|
184
184
|
fix: "Install `@devframes/agentic` next to devframe (the MCP adapter and the MCP SDK live there), or remove the explicit `mcp` setting."
|
|
185
|
+
},
|
|
186
|
+
DF0081: {
|
|
187
|
+
why: (p) => `Tool "${p.name}" returned invalid MCP content blocks: ${p.reason}`,
|
|
188
|
+
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`."
|
|
185
189
|
}
|
|
186
190
|
}
|
|
187
191
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { D as InferArgsType, E as Thenable, O as InferReturnType, T as RpcReturnSchema, m as RpcFunctionAgentOptions, n as RpcArgsSchema } from "../types-BmDbfHCx.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { k as SharedState, qt as EventEmitter } from "../context-dOWXVHc6.mjs";
|
|
3
3
|
//#region src/in-page-channel/types.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* The shared contract of one in-page channel, declared once (usually in a
|
|
@@ -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-dOWXVHc6.mjs";
|
|
2
|
+
import { n as InternalAnonymousAuthStorage } from "./context-O8NJzl93.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,8 +1,9 @@
|
|
|
1
1
|
import { C as RpcFunctionType, T as RpcReturnSchema, h as RpcFunctionDefinition, m as RpcFunctionAgentOptions, n as RpcArgsSchema } from "./types-BmDbfHCx.mjs";
|
|
2
|
-
import { $ as
|
|
2
|
+
import { $ as McpSetting, At as DevframeDiagnosticsLogger, B as DevframeCliOptions, Bt as AgentResourceInput, Ct as DevframeViewHost, Dt as DevframeHost, Et as DevframeRpcSharedStates, F as CreateMcpServerOptions, G as DevframeRpcOptions, Gt as DevframeAgentHost, H as DevframeDeploymentKind, Ht as AgentToolInput, I as McpConnectionInfo, It as AgentHandle, J as DevframeSnapshotRpcInputs, Jt as EventUnsubscribe, K as DevframeSetupInfo, Kt as DevframeAgentHostEvents, L as McpContentBlock, Lt as AgentManifest, Ot as DevframeStorageScope, P as CreateMcpFetchHandlerOptions, Q as McpRouteOptions, R as McpFetchHandler, Rt as AgentResource, St as SettingsForNamespace, Tt as DevframeRpcServerFunctions, U as DevframeDockDefaults, Ut as AgentToolProvider, V as DevframeDefinition, Vt as AgentTool, W as DevframeDuplicationStrategy, Wt as AgentToolProviderHandle, X as DevframeWsOptions, Y as DevframeSseOptions, Yt as EventsMap, Z as McpAuthorization, _t as ScopedBroadcastOptions, a as DevframeConnectionConfigsRegistry, at as DevframeServiceOf, bt as ScopedServerFunctions, c as RpcBroadcastOptions, ct as DevframeServicesRegistry, d as RpcSharedStateHost, dt as DevframeScopedNodeContext, et as DevframeServiceDefinition, f as RpcStreamingChannel, ft as DevframeScopedNodeRpc, gt as DevframeSettingsStore, ht as DevframeSettingsRegistry, i as DevframeCapabilities, it as DevframeServiceMeta, kt as DevframeDiagnosticsHost, l as RpcFunctionsHost, lt as DevframeServicesScopeRegistry, m as RpcStreamingHost, mt as DevframeSettings, n as ConnectionMetaSse, nt as DevframeServiceId, o as DevframeNodeContext, ot as DevframeServiceScopeOf, p as RpcStreamingChannelOptions, pt as DevframeScopedStreamingHost, q as DevframeSnapshotRpcEntry, qt as EventEmitter, r as ConnectionMetaWebsocket, rt as DevframeServiceInput, s as DevframeNodeRpcSession, st as DevframeServicesHost, t as ConnectionMeta, tt as DevframeServiceDescriptor, u as RpcSharedStateGetOptions, ut as DevframeServicesState, vt as ScopedClientFunctions, wt as DevframeRpcClientFunctions, xt as ScopedSharedStates, yt as ScopedRpcFn, z as McpServerHandle, zt as AgentResourceContent } from "./context-dOWXVHc6.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
|
+
import { n as withMcpContent } from "./mcp-content-9_Pdtziq.mjs";
|
|
6
7
|
//#region src/define.d.ts
|
|
7
8
|
export declare const defineRpcFunction: <NAME extends string, TYPE extends RpcFunctionType, ARGS extends any[], RETURN = void, const AS extends RpcArgsSchema | undefined = undefined, const RS extends RpcReturnSchema | undefined = undefined>(definition: RpcFunctionDefinition<NAME, TYPE, ARGS, RETURN, AS, RS, DevframeNodeContext>) => RpcFunctionDefinition<NAME, TYPE, ARGS, RETURN, AS, RS, DevframeNodeContext>;
|
|
8
9
|
/**
|
|
@@ -11,4 +12,4 @@ export declare const defineRpcFunction: <NAME extends string, TYPE extends RpcFu
|
|
|
11
12
|
*/
|
|
12
13
|
export declare function defineDevframe(d: DevframeDefinition): DevframeDefinition;
|
|
13
14
|
//#endregion
|
|
14
|
-
export type
|
|
15
|
+
export { type AgentHandle, type AgentManifest, type AgentResource, type AgentResourceContent, type AgentResourceInput, type AgentTool, type AgentToolInput, type AgentToolProvider, type AgentToolProviderHandle, type ConnectionMeta, type ConnectionMetaSse, type ConnectionMetaWebsocket, type CreateMcpFetchHandlerOptions, type CreateMcpServerOptions, type DevframeAgentHost, type DevframeAgentHostEvents, type DevframeCapabilities, type DevframeCliOptions, type DevframeConnectionConfigsRegistry, type DevframeDefineDiagnosticsOptions, type DevframeDefinition, type DevframeDeploymentKind, type DevframeDiagnosticsHost, type DevframeDiagnosticsLogger, type DevframeDockDefaults, type DevframeDuplicationStrategy, type DevframeHost, type DevframeNodeContext, type DevframeNodeRpcSession, type DevframeNodeRpcSessionMeta, type DevframeRpcClientFunctions, type DevframeRpcConnection, type DevframeRpcConnectionRequest, type DevframeRpcOptions, type DevframeRpcServerFunctions, type DevframeRpcSharedStates, type DevframeRpcTransportKind, type DevframeScopedNodeContext, type DevframeScopedNodeRpc, type DevframeScopedStreamingHost, type DevframeServiceDefinition, type DevframeServiceDescriptor, type DevframeServiceId, type DevframeServiceInput, type DevframeServiceMeta, type DevframeServiceOf, type DevframeServiceScopeOf, type DevframeServicesHost, type DevframeServicesRegistry, type DevframeServicesScopeRegistry, type DevframeServicesState, type DevframeSettings, type DevframeSettingsRegistry, type DevframeSettingsStore, type DevframeSetupInfo, type DevframeSnapshotRpcEntry, type DevframeSnapshotRpcInputs, type DevframeSseOptions, type DevframeStorageScope, type DevframeViewHost, type DevframeWsOptions, type DevframeWsPeer, type EventEmitter, type EventUnsubscribe, type EventsMap, type McpAuthorization, type McpConnectionInfo, type McpContentBlock, type McpFetchHandler, type McpRouteOptions, type McpServerHandle, type McpSetting, type RemoteAssets, type RemoteAssetsErrorMessage, type RemoteAssetsProvider, type RemoteAssetsProviderCustom, type RemoteAssetsStore, type RpcBroadcastOptions, type RpcFunctionAgentOptions, type RpcFunctionsHost, type RpcSharedStateGetOptions, type RpcSharedStateHost, type RpcStreamingChannel, type RpcStreamingChannelOptions, type RpcStreamingHost, type ScopedBroadcastOptions, type ScopedClientFunctions, type ScopedRpcFn, type ScopedServerFunctions, type ScopedSharedStates, type SettingsForNamespace, type StaticAssetsSource, withMcpContent };
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as withMcpContent } from "./mcp-content-DN3O212x.mjs";
|
|
1
2
|
import { t as createDefineWrapperWithContext } from "./define-BLWPsH6y.mjs";
|
|
2
3
|
//#region src/define.ts
|
|
3
4
|
const defineRpcFunction = createDefineWrapperWithContext();
|
|
@@ -9,4 +10,4 @@ function defineDevframe(d) {
|
|
|
9
10
|
return d;
|
|
10
11
|
}
|
|
11
12
|
//#endregion
|
|
12
|
-
export { defineDevframe, defineRpcFunction };
|
|
13
|
+
export { defineDevframe, defineRpcFunction, withMcpContent };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-B4iAMlE-.mjs";
|
|
2
|
-
import { t as diagnostics } from "./diagnostics-
|
|
2
|
+
import { t as diagnostics } from "./diagnostics-Dngy7cNp.mjs";
|
|
3
3
|
import { join } from "pathe";
|
|
4
4
|
import { mkdirSync, readFileSync, readdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
5
5
|
import process from "node:process";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as BirpcGroup } from "./index-Bia1vKjL.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Tt as DevframeRpcServerFunctions, X as DevframeWsOptions, Y as DevframeSseOptions, jt as DevframeAuthHandler, o as DevframeNodeContext, s as DevframeNodeRpcSession, t as ConnectionMeta, wt as DevframeRpcClientFunctions } from "./context-dOWXVHc6.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-DVGcpYm7.mjs";
|
|
6
6
|
import { H3 } from "h3";
|
|
7
7
|
import { NodeAdapter } from "crossws/adapters/node";
|
|
8
8
|
import { Buffer } from "node:buffer";
|
|
@@ -1,9 +1,9 @@
|
|
|
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-Dngy7cNp.mjs";
|
|
4
|
+
import { c as joinURL, d as withoutLeadingSlash, f as withoutTrailingSlash, u as withLeadingSlash } from "./_shared-B6K2DKhb.mjs";
|
|
5
|
+
import { t as getInternalContext } from "./context-B-2gsJ6Z.mjs";
|
|
6
|
+
import { n as createInteractiveAuth } from "./interactive-auth-CCZdQDy_.mjs";
|
|
7
7
|
import { createServer } from "node:http";
|
|
8
8
|
import process from "node:process";
|
|
9
9
|
import { isIP } from "node:net";
|
|
@@ -321,7 +321,7 @@ function createInstanceShell(options) {
|
|
|
321
321
|
const origin = currentOrigin();
|
|
322
322
|
if (!cfg || registerPromise || !origin || !meta) return;
|
|
323
323
|
const resolvedMeta = meta;
|
|
324
|
-
registerPromise = import("./instance-registry-
|
|
324
|
+
registerPromise = import("./instance-registry-B--XFmLS.mjs").then((n) => n.t).then(({ registerDevframeInstance }) => {
|
|
325
325
|
let port = 0;
|
|
326
326
|
try {
|
|
327
327
|
const url = new URL(origin);
|
|
@@ -397,7 +397,7 @@ function createInstanceShell(options) {
|
|
|
397
397
|
let resolvedAuth = false;
|
|
398
398
|
let corePromise;
|
|
399
399
|
function ensureCore() {
|
|
400
|
-
corePromise ??= import("./rpc-core-
|
|
400
|
+
corePromise ??= import("./rpc-core-Dl50hXG3.mjs").then((n) => n.n).then(({ createContextRpcServer }) => createContextRpcServer({
|
|
401
401
|
context: ctx,
|
|
402
402
|
auth: resolvedAuth,
|
|
403
403
|
onPeerConnect: options.onPeerConnect,
|
|
@@ -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-B-2gsJ6Z.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 { Bt as
|
|
3
|
+
import { Bt as AgentResourceInput, Dt as DevframeHost, Gt as DevframeAgentHost$1, Ht as AgentToolInput, It as AgentHandle, Kt as DevframeAgentHostEvents, Lt as AgentManifest, Rt as AgentResource, Ut as AgentToolProvider, Vt as AgentTool, Wt as AgentToolProviderHandle, o as DevframeNodeContext, qt as EventEmitter, zt as AgentResourceContent } from "../context-dOWXVHc6.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-DrvOWxqh.mjs";
|
|
6
|
+
import { i as importAgenticMcp, n as MountMcpHttpOptions, r as MountedMcpHttp, t as AgenticMcpModule } from "../agentic-JXlb0uiD.mjs";
|
|
7
|
+
import { a as resolveBasePath, i as normalizeBasePath, n as ResolvedMcpConfig, r as loadAutoMcpAdapter, s as resolveMcpConfig } from "../_shared-BvDsc83f.mjs";
|
|
8
|
+
import { t as getMcpContent } from "../mcp-content-9_Pdtziq.mjs";
|
|
9
|
+
import { n as CreateContextRpcServerOptions, r as createContextRpcServer, t as ContextRpcServer } from "../rpc-core-D6NWQW-B.mjs";
|
|
9
10
|
//#region src/agent/stringify.d.ts
|
|
10
11
|
/**
|
|
11
12
|
* JSON-coercing serializer for MCP text payloads.
|
|
@@ -380,6 +381,13 @@ export declare const diagnostics: import("nostics").Diagnostics<{
|
|
|
380
381
|
}) => string;
|
|
381
382
|
readonly fix: "Install `@devframes/agentic` next to devframe (the MCP adapter and the MCP SDK live there), or remove the explicit `mcp` setting.";
|
|
382
383
|
};
|
|
384
|
+
readonly DF0081: {
|
|
385
|
+
readonly why: (p: {
|
|
386
|
+
name: string;
|
|
387
|
+
reason: string;
|
|
388
|
+
}) => string;
|
|
389
|
+
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`.";
|
|
390
|
+
};
|
|
383
391
|
}, readonly [(d: import("nostics").Diagnostic, { method }?: {
|
|
384
392
|
method?: "log" | "warn" | "error";
|
|
385
393
|
}) => void], never>;
|
|
@@ -510,4 +518,4 @@ export declare function peekRpcWireFrame(raw: string): {
|
|
|
510
518
|
/** Convert tool input for a command, whose arguments must be declared. */
|
|
511
519
|
export declare function toolInputToCommandArgs(input: unknown, argumentCount?: number): unknown[];
|
|
512
520
|
//#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 };
|
|
521
|
+
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, 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 { n as toolInputToCommandArgs, t as DevframeAgentHost } from "../host-agent-
|
|
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-Dngy7cNp.mjs";
|
|
5
|
+
import { n as toolInputToCommandArgs, t as DevframeAgentHost } from "../host-agent-DB1yECaG.mjs";
|
|
6
|
+
import { a as resolveMcpConfig, n as normalizeBasePath, r as resolveBasePath, s as importAgenticMcp, t as loadAutoMcpAdapter } from "../_shared-B6K2DKhb.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-B--XFmLS.mjs";
|
|
10
|
+
import { i as normalizeHttpServerUrl, n as resolveInstanceRegister, r as samePath, t as createInstanceShell } from "../instance-shell-DyVmJA6B.mjs";
|
|
11
|
+
import { t as createContextRpcServer } from "../rpc-core-Dl50hXG3.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, 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,25 @@
|
|
|
1
|
+
import { L as McpContentBlock } from "./context-dOWXVHc6.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 };
|
|
@@ -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 };
|
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 { jt as DevframeAuthHandler } from "../context-dOWXVHc6.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-DVGcpYm7.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-O8NJzl93.mjs";
|
|
2
|
+
import { a as resolveBasePath, i as normalizeBasePath } from "../_shared-BvDsc83f.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-B6K2DKhb.mjs";
|
|
2
|
+
import { n as internalContextMap, t as getInternalContext } from "../context-B-2gsJ6Z.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 { Dt as DevframeHost, k as SharedState, l as RpcFunctionsHost, o as DevframeNodeContext } from "../context-dOWXVHc6.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-CeD8-IZA.mjs";
|
|
2
|
+
import { t as createStorage } from "../storage-BQy9865B.mjs";
|
|
3
3
|
export { createHostContext, createStorage };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../index-
|
|
1
|
+
import { jt as DevframeAuthHandler, o as DevframeNodeContext, s as DevframeNodeRpcSession } from "../context-dOWXVHc6.mjs";
|
|
2
|
+
import "../index-DVGcpYm7.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-CCZdQDy_.mjs";
|
|
2
2
|
export { createAuthBanner, createInteractiveAuth };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as diagnostics } from "./diagnostics-
|
|
1
|
+
import { t as diagnostics } from "./diagnostics-Dngy7cNp.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-D6NWQW-B.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-D6NWQW-B.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 { Tt as DevframeRpcServerFunctions, jt as DevframeAuthHandler, o as DevframeNodeContext, s as DevframeNodeRpcSession, wt as DevframeRpcClientFunctions } from "./context-dOWXVHc6.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-DVGcpYm7.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-Dngy7cNp.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 });
|
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 McpSetting, At as DevframeDiagnosticsLogger, B as DevframeCliOptions, Bt as AgentResourceInput, Ct as DevframeViewHost, Dt as DevframeHost, Et as DevframeRpcSharedStates, F as CreateMcpServerOptions, G as DevframeRpcOptions, Gt as DevframeAgentHost, H as DevframeDeploymentKind, Ht as AgentToolInput, I as McpConnectionInfo, It as AgentHandle, J as DevframeSnapshotRpcInputs, Jt as EventUnsubscribe, K as DevframeSetupInfo, Kt as DevframeAgentHostEvents, L as McpContentBlock, Lt as AgentManifest, Ot as DevframeStorageScope, P as CreateMcpFetchHandlerOptions, Q as McpRouteOptions, R as McpFetchHandler, Rt as AgentResource, St as SettingsForNamespace, Tt as DevframeRpcServerFunctions, U as DevframeDockDefaults, Ut as AgentToolProvider, V as DevframeDefinition, Vt as AgentTool, W as DevframeDuplicationStrategy, Wt as AgentToolProviderHandle, X as DevframeWsOptions, Y as DevframeSseOptions, Yt as EventsMap, Z as McpAuthorization, _t as ScopedBroadcastOptions, a as DevframeConnectionConfigsRegistry, at as DevframeServiceOf, bt as ScopedServerFunctions, c as RpcBroadcastOptions, ct as DevframeServicesRegistry, d as RpcSharedStateHost, dt as DevframeScopedNodeContext, et as DevframeServiceDefinition, f as RpcStreamingChannel, ft as DevframeScopedNodeRpc, gt as DevframeSettingsStore, ht as DevframeSettingsRegistry, i as DevframeCapabilities, it as DevframeServiceMeta, kt as DevframeDiagnosticsHost, l as RpcFunctionsHost, lt as DevframeServicesScopeRegistry, m as RpcStreamingHost, mt as DevframeSettings, n as ConnectionMetaSse, nt as DevframeServiceId, o as DevframeNodeContext, ot as DevframeServiceScopeOf, p as RpcStreamingChannelOptions, pt as DevframeScopedStreamingHost, q as DevframeSnapshotRpcEntry, qt as EventEmitter, r as ConnectionMetaWebsocket, rt as DevframeServiceInput, s as DevframeNodeRpcSession, st as DevframeServicesHost, t as ConnectionMeta, tt as DevframeServiceDescriptor, u as RpcSharedStateGetOptions, ut as DevframeServicesState, vt as ScopedClientFunctions, wt as DevframeRpcClientFunctions, xt as ScopedSharedStates, yt as ScopedRpcFn, z as McpServerHandle, zt as AgentResourceContent } from "../context-dOWXVHc6.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, 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-DoZ1AMpq.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-dOWXVHc6.mjs";
|
|
2
2
|
export { Immutable, ImmutableArray, ImmutableMap, ImmutableObject, ImmutableSet, SharedState, SharedStateEvents, SharedStateOptions, SharedStatePatch, 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-dOWXVHc6.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.2.
|
|
4
|
+
"version": "1.2.6",
|
|
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.2.
|
|
80
|
+
"@devframes/agentic": "1.2.6",
|
|
81
81
|
"cac": "^7.0.0"
|
|
82
82
|
},
|
|
83
83
|
"peerDependenciesMeta": {
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"pathe": "^2.0.3"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
|
-
"@devframes/agentic": "1.2.
|
|
98
|
+
"@devframes/agentic": "1.2.6",
|
|
99
99
|
"@standard-schema/spec": "^1.1.0",
|
|
100
100
|
"birpc": "^4.2.0",
|
|
101
101
|
"cac": "^7.0.0",
|