devframe 1.3.2 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{_shared-CnKu5myY.d.mts → _shared-BxeuukaL.d.mts} +2 -2
- package/dist/{_shared-BGb9aDxr.mjs → _shared-CtXCQFTV.mjs} +1 -1
- package/dist/adapters/build.d.mts +1 -1
- package/dist/adapters/cac.d.mts +1 -1
- package/dist/adapters/cac.mjs +2 -2
- package/dist/adapters/dev.d.mts +4 -4
- package/dist/adapters/dev.mjs +2 -2
- package/dist/adapters/embedded.d.mts +1 -1
- package/dist/adapters/initiate.d.mts +4 -4
- package/dist/adapters/initiate.mjs +1 -1
- package/dist/adapters/mcp.d.mts +2 -2
- package/dist/{agentic-CCstJ5yv.d.mts → agentic-DVgUzwhV.d.mts} +1 -1
- package/dist/client/index.d.mts +5 -5
- package/dist/client/index.mjs +1 -1
- package/dist/{context-CsdPs3po.d.mts → context-B-AARy_U.d.mts} +1 -1
- package/dist/{dev-DaHYh5YK.mjs → dev-DF1pEq0n.mjs} +2 -2
- package/dist/{dist-DJydMELP.mjs → dist-CZ-TySHD.mjs} +1 -2
- package/dist/in-page-channel/index.d.mts +3 -2
- package/dist/in-page-channel/index.mjs +1 -1
- package/dist/{context-WxTq6kqb.d.mts → index-BhUqJUHG.d.mts} +1404 -1404
- package/dist/index.d.mts +5 -4
- package/dist/{instance-registry-CmZfF5u3.mjs → instance-registry-DwmnWyCK.mjs} +1 -1
- package/dist/{instance-shell-Dk2SejFT.mjs → instance-shell-C0yMifrP.mjs} +5 -5
- package/dist/{instance-shell-Bujp0BhE.d.mts → instance-shell-DTk514M9.d.mts} +4 -4
- package/dist/{interactive-auth-BURwIAvE.mjs → interactive-auth-CZ3CPfEs.mjs} +1 -1
- package/dist/internal/index.d.mts +7 -7
- package/dist/internal/index.mjs +4 -4
- package/dist/{mcp-content-CQQBt2An.d.mts → mcp-content-0a0mpCL5.d.mts} +1 -1
- package/dist/node/auth.d.mts +84 -3
- package/dist/node/auth.mjs +1 -1
- package/dist/node/hub-internals.d.mts +11 -2
- package/dist/node/hub-internals.mjs +1 -1
- package/dist/node/index.d.mts +4 -2
- package/dist/recipes/interactive-auth.d.mts +2 -2
- package/dist/recipes/interactive-auth.mjs +1 -1
- package/dist/{rolldown-runtime-DYf_mQCB.mjs → rolldown-runtime-BVN1G_yT.mjs} +4 -4
- package/dist/rpc/dump.d.mts +1 -1
- package/dist/rpc/index.d.mts +121 -3
- package/dist/rpc/transports/sse-client.d.mts +34 -2
- package/dist/rpc/transports/sse-server.d.mts +2 -2
- package/dist/rpc/transports/ws-bun.d.mts +2 -2
- package/dist/rpc/transports/ws-client.d.mts +27 -2
- package/dist/rpc/transports/ws-deno.d.mts +2 -2
- package/dist/rpc/transports/ws-server.d.mts +150 -3
- package/dist/{rpc-core-CDUizUQB.mjs → rpc-core-BmDHiDR6.mjs} +1 -1
- package/dist/{rpc-core-CFwyV10r.d.mts → rpc-core-CblgPYJ_.d.mts} +3 -3
- package/dist/{shared-state-COV7NCbd.mjs → shared-state-DiAsLHP8.mjs} +3 -2
- package/dist/{state-B_yjfeqo.mjs → state-TdDWqiG-.mjs} +2 -1
- package/dist/types/index.d.mts +3 -3
- package/dist/{types-844OBepb.d.mts → types-KZOyhez5.d.mts} +1 -0
- package/dist/utils/debounce.d.mts +6 -0
- package/dist/utils/events.d.mts +1 -1
- package/dist/utils/get-port.mjs +1 -1
- package/dist/utils/launch-editor.mjs +1 -1
- package/dist/utils/nostics.d.mts +40 -2
- package/dist/utils/origin.d.mts +55 -2
- package/dist/utils/serve-static.d.mts +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 +6 -6
- package/dist/index-D0qrBkhO.d.mts +0 -121
- package/dist/index-HMJPlexc.d.mts +0 -84
- package/dist/nostics-Dgwh7ytT.d.mts +0 -40
- package/dist/origin-D5i7K_Zb.d.mts +0 -56
- package/dist/sse-client-B2PrSz-H.d.mts +0 -35
- package/dist/ws-client-lqOeANcn.d.mts +0 -28
- package/dist/ws-server-CYHkeyA-.d.mts +0 -150
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as AgenticMcpModule } from "./agentic-
|
|
2
|
-
import {
|
|
1
|
+
import { t as AgenticMcpModule } from "./agentic-DVgUzwhV.mjs";
|
|
2
|
+
import { D as McpResourcesChangedHook, P as ConnectionMeta, b as McpPrompt, en as DevframeAgentHost, f as McpAuthorization, m as McpSetting, n as DevframeDefinition, r as DevframeDeploymentKind, w as McpResourceTemplate } from "./index-BhUqJUHG.mjs";
|
|
3
3
|
/**
|
|
4
4
|
* Resolve the mount base path for a devframe's SPA. Hosted adapters
|
|
5
5
|
* (`vite`, `embedded`) default to `/__<id>/` so they don't collide
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as getPort } from "./dist-
|
|
1
|
+
import { n as getPort } from "./dist-CZ-TySHD.mjs";
|
|
2
2
|
import "./constants.mjs";
|
|
3
3
|
import { t as diagnostics } from "./diagnostics-DC1-WcvN.mjs";
|
|
4
4
|
import { n as isRuntimeModuleResolvable, t as importRuntimeModule } from "./import-runtime-module-DsdqJ1gK.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as DevframeSnapshotRpcEntry, n as DevframeDefinition, z as DevframeNodeContext } from "../index-BhUqJUHG.mjs";
|
|
2
2
|
import { o as StaticAssetsSource } from "../remote-assets-5AQMHZnV.mjs";
|
|
3
3
|
export interface CreateBuildOptions {
|
|
4
4
|
/** Output directory. Defaults to `dist-static`. */
|
package/dist/adapters/cac.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as CliFlagsSchema, M as defineCliFlags, N as parseCliFlags, j as InferCliFlags, m as McpSetting, n as DevframeDefinition } from "../index-BhUqJUHG.mjs";
|
|
2
2
|
import { CAC } from "cac";
|
|
3
3
|
import { H3 } from "h3";
|
|
4
4
|
export interface CreateCacOptions {
|
package/dist/adapters/cac.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as colors } from "../nostics-InlX4tmd.mjs";
|
|
2
|
-
import { s as importAgenticMcp } from "../_shared-
|
|
2
|
+
import { s as importAgenticMcp } from "../_shared-CtXCQFTV.mjs";
|
|
3
3
|
import { createBuild } from "./build.mjs";
|
|
4
|
-
import { t as createDevServer } from "../dev-
|
|
4
|
+
import { t as createDevServer } from "../dev-DF1pEq0n.mjs";
|
|
5
5
|
import process from "node:process";
|
|
6
6
|
import cac$1 from "cac";
|
|
7
7
|
// src/adapters/flags.ts
|
package/dist/adapters/dev.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WsOriginRegistry } from "../rpc/transports/ws-server.mjs";
|
|
2
2
|
import { n as DevframeRpcConnection, t as DevframeNodeRpcSessionMeta } from "../session-Y9R6tqg4.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { c as StartedServer } from "../instance-shell-
|
|
3
|
+
import { B as DevframeNodeRpcSession, d as DevframeWsOptions, k as DevframeAuthHandler, m as McpSetting, n as DevframeDefinition, u as DevframeSseOptions } from "../index-BhUqJUHG.mjs";
|
|
4
|
+
import { c as StartedServer } from "../instance-shell-DTk514M9.mjs";
|
|
5
5
|
import { o as StaticAssetsSource } from "../remote-assets-5AQMHZnV.mjs";
|
|
6
|
-
import { c as resolveMcpConnectionMeta, o as resolveDevServerPort, t as ResolveDevServerPortOptions } from "../_shared-
|
|
6
|
+
import { c as resolveMcpConnectionMeta, o as resolveDevServerPort, t as ResolveDevServerPortOptions } from "../_shared-BxeuukaL.mjs";
|
|
7
7
|
import { H3 } from "h3";
|
|
8
8
|
export interface CreateDevServerOptions {
|
|
9
9
|
/** Bind host. Default: `def.cli?.host ?? 'localhost'`. */
|
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-CtXCQFTV.mjs";
|
|
2
|
+
import { t as createDevServer } from "../dev-DF1pEq0n.mjs";
|
|
3
3
|
export { createDevServer, resolveDevServerPort, resolveMcpConnectionMeta };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as DevframeDefinition, z as DevframeNodeContext } from "../index-BhUqJUHG.mjs";
|
|
2
2
|
export interface CreateEmbeddedOptions {
|
|
3
3
|
/** Target context the devframe is registered into. Required. */
|
|
4
4
|
ctx: DevframeNodeContext;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WsOriginRegistry } from "../rpc/transports/ws-server.mjs";
|
|
2
2
|
import { n as DevframeRpcConnection, t as DevframeNodeRpcSessionMeta } from "../session-Y9R6tqg4.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { c as StartedServer, f as DevframeInstanceRecord } from "../instance-shell-
|
|
3
|
+
import { B as DevframeNodeRpcSession, P as ConnectionMeta, St as DevframeStorageScope, d as DevframeWsOptions, k as DevframeAuthHandler, m as McpSetting, n as DevframeDefinition, u as DevframeSseOptions, z as DevframeNodeContext } from "../index-BhUqJUHG.mjs";
|
|
4
|
+
import { c as StartedServer, f as DevframeInstanceRecord } from "../instance-shell-DTk514M9.mjs";
|
|
5
5
|
import { o as StaticAssetsSource } from "../remote-assets-5AQMHZnV.mjs";
|
|
6
|
-
import { H3 } from "h3";
|
|
7
6
|
import { Buffer } from "node:buffer";
|
|
8
7
|
import { IncomingMessage, Server, ServerResponse } from "node:http";
|
|
9
8
|
import { Duplex } from "node:stream";
|
|
9
|
+
import { H3 } from "h3";
|
|
10
10
|
export interface InitDevframeOptions {
|
|
11
11
|
/**
|
|
12
12
|
* Mount base the handler answers under (e.g. `/__my-tool/`), required so
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as getInstanceInternals, r as initDevframe } from "../dev-
|
|
1
|
+
export { n as getInstanceInternals, r as initDevframe } from "../dev-DF1pEq0n.mjs";
|
package/dist/adapters/mcp.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as MountMcpHttpOptions, r as MountedMcpHttp } from "../agentic-
|
|
2
|
-
import {
|
|
1
|
+
import { n as MountMcpHttpOptions, r as MountedMcpHttp } from "../agentic-DVgUzwhV.mjs";
|
|
2
|
+
import { C as McpPromptResult, D as McpResourcesChangedHook, E as McpResourceTemplateEntry, O as McpServerHandle, S as McpPromptMessage, T as McpResourceTemplateContent, _ as McpConnectionInfo, b as McpPrompt, g as CreateMcpServerOptions, h as CreateMcpFetchHandlerOptions, w as McpResourceTemplate, x as McpPromptArgument, y as McpFetchHandler } from "../index-BhUqJUHG.mjs";
|
|
3
3
|
import { createMcpFetchHandler, createMcpServer, mountMcpHttp } from "@devframes/agentic/mcp";
|
|
4
4
|
export { type CreateMcpFetchHandlerOptions, type CreateMcpServerOptions, type McpConnectionInfo, type McpFetchHandler, type McpPrompt, type McpPromptArgument, type McpPromptMessage, type McpPromptResult, type McpResourceTemplate, type McpResourceTemplateContent, type McpResourceTemplateEntry, type McpResourcesChangedHook, type McpServerHandle, type MountMcpHttpOptions, type MountedMcpHttp, createMcpFetchHandler, createMcpServer, mountMcpHttp };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { O as McpServerHandle, g as CreateMcpServerOptions, h as CreateMcpFetchHandlerOptions, n as DevframeDefinition, y as McpFetchHandler, z as DevframeNodeContext } from "./index-BhUqJUHG.mjs";
|
|
2
2
|
import { H3 } from "h3";
|
|
3
3
|
/**
|
|
4
4
|
* The h3-bound half of the MCP adapter contract (the SDK-neutral half lives
|
package/dist/client/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { i as BirpcReturn, r as BirpcOptions } from "../index-BKu9BxcT.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { h as RpcFunctionDefinition, w as RpcFunctionsCollector } from "../types-KZOyhez5.mjs";
|
|
3
|
+
import { RpcCacheManager, RpcCacheOptions } from "../rpc/index.mjs";
|
|
4
|
+
import { SseRpcChannelOptions } from "../rpc/transports/sse-client.mjs";
|
|
5
|
+
import { WsRpcChannelOptions } from "../rpc/transports/ws-client.mjs";
|
|
6
|
+
import { At as StreamReader, Bt as SharedState, J as DevframeRpcClientFunctions, P as ConnectionMeta, U as RpcSharedStateGetOptions, W as RpcSharedStateHost, Y as DevframeRpcServerFunctions, _t as ScopedServerFunctions, dt as DevframeSettings, gt as ScopedRpcFn, jt as StreamSink, nn as EventEmitter, rt as DevframeServiceScopeOf, st as DevframeServicesState, tt as DevframeServiceMeta, vt as ScopedSharedStates, yt as SettingsForNamespace } from "../index-BhUqJUHG.mjs";
|
|
7
7
|
export interface DevframeConnection {
|
|
8
8
|
/** Server-advertised transport and serialization metadata. */
|
|
9
9
|
connectionMeta: ConnectionMeta;
|
package/dist/client/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { t as hash } from "../hash-DHqpWeMO.mjs";
|
|
|
3
3
|
import { createEventEmitter } from "../utils/events.mjs";
|
|
4
4
|
import { withBase, withProtocol } from "../utils/url.mjs";
|
|
5
5
|
import { nanoid } from "../utils/nanoid.mjs";
|
|
6
|
-
import { t as createSharedState } from "../shared-state-
|
|
6
|
+
import { t as createSharedState } from "../shared-state-DiAsLHP8.mjs";
|
|
7
7
|
import { i as structuredCloneStringify, n as structuredCloneParse, t as structuredCloneDeserialize } from "../structured-clone-D1dOCZvc.mjs";
|
|
8
8
|
import { createStreamReader, createStreamSink } from "../utils/streaming-channel.mjs";
|
|
9
9
|
import { toAgentToolName } from "../utils/agent-tool-name.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { open } from "./utils/open.mjs";
|
|
2
|
-
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 { 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-CtXCQFTV.mjs";
|
|
3
3
|
import { t as diagnostics } from "./diagnostics-DC1-WcvN.mjs";
|
|
4
|
-
import { a as isAddressInUse, i as normalizeHttpServerUrl, n as resolveInstanceRegister, o as listenWithLoopbackTwin, t as createInstanceShell } from "./instance-shell-
|
|
4
|
+
import { a as isAddressInUse, i as normalizeHttpServerUrl, n as resolveInstanceRegister, o as listenWithLoopbackTwin, t as createInstanceShell } from "./instance-shell-C0yMifrP.mjs";
|
|
5
5
|
import { t as resolveStaticAssetsSource } from "./remote-assets-DhonNeo_.mjs";
|
|
6
6
|
import { mountStaticHandler } from "./utils/serve-static.mjs";
|
|
7
7
|
import { DEVFRAME_CONNECTION_META_FILENAME } from "./constants.mjs";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { n as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
import "node:fs/promises";
|
|
1
|
+
import { n as __exportAll } from "./rolldown-runtime-BVN1G_yT.mjs";
|
|
3
2
|
import { createServer } from "node:net";
|
|
4
3
|
import { networkInterfaces } from "node:os";
|
|
5
4
|
// ../../node_modules/.pnpm/get-port-please@3.2.0/node_modules/get-port-please/dist/index.mjs
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { D as InferArgsType, E as Thenable, O as InferReturnType, T as RpcReturnSchema, m as RpcFunctionAgentOptions, n as RpcArgsSchema } from "../types-
|
|
2
|
-
import {
|
|
1
|
+
import { D as InferArgsType, E as Thenable, O as InferReturnType, T as RpcReturnSchema, m as RpcFunctionAgentOptions, n as RpcArgsSchema } from "../types-KZOyhez5.mjs";
|
|
2
|
+
import { Bt as SharedState, nn as EventEmitter } from "../index-BhUqJUHG.mjs";
|
|
3
|
+
import "../index-BKu9BxcT.mjs";
|
|
3
4
|
/**
|
|
4
5
|
* The shared contract of one in-page channel, declared once (usually in a
|
|
5
6
|
* `shared/protocol.ts` both sides import) and passed to both endpoints as a
|
|
@@ -2,7 +2,7 @@ import { a as defineDiagnostics, i as createBirpc, n as argsToJsonSchema, o as D
|
|
|
2
2
|
import { r as registerBrowserAgentTool } from "../browser-agent-DmAotroz.mjs";
|
|
3
3
|
import { nanoid } from "../utils/nanoid.mjs";
|
|
4
4
|
import { createEventEmitter } from "../utils/events.mjs";
|
|
5
|
-
import { t as createSharedState } from "../shared-state-
|
|
5
|
+
import { t as createSharedState } from "../shared-state-DiAsLHP8.mjs";
|
|
6
6
|
// src/in-page-channel/diagnostics.ts
|
|
7
7
|
const diagnostics = /* #__PURE__ */ defineDiagnostics({
|
|
8
8
|
docsBase: "https://devfra.me/errors",
|