devframe 1.3.2 → 1.3.3

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.
Files changed (60) hide show
  1. package/dist/{_shared-CnKu5myY.d.mts → _shared-BxeuukaL.d.mts} +2 -2
  2. package/dist/{_shared-BGb9aDxr.mjs → _shared-CtXCQFTV.mjs} +1 -1
  3. package/dist/adapters/build.d.mts +1 -1
  4. package/dist/adapters/cac.d.mts +1 -1
  5. package/dist/adapters/cac.mjs +2 -2
  6. package/dist/adapters/dev.d.mts +4 -4
  7. package/dist/adapters/dev.mjs +2 -2
  8. package/dist/adapters/embedded.d.mts +1 -1
  9. package/dist/adapters/initiate.d.mts +4 -4
  10. package/dist/adapters/initiate.mjs +1 -1
  11. package/dist/adapters/mcp.d.mts +2 -2
  12. package/dist/{agentic-CCstJ5yv.d.mts → agentic-DVgUzwhV.d.mts} +1 -1
  13. package/dist/client/index.d.mts +5 -5
  14. package/dist/{context-CsdPs3po.d.mts → context-B-AARy_U.d.mts} +1 -1
  15. package/dist/{dev-DaHYh5YK.mjs → dev-Cu_iwSCy.mjs} +2 -2
  16. package/dist/{dist-DJydMELP.mjs → dist-CZ-TySHD.mjs} +1 -2
  17. package/dist/in-page-channel/index.d.mts +3 -2
  18. package/dist/{context-WxTq6kqb.d.mts → index-BhUqJUHG.d.mts} +1404 -1404
  19. package/dist/index.d.mts +5 -4
  20. package/dist/{instance-registry-CmZfF5u3.mjs → instance-registry-DwmnWyCK.mjs} +1 -1
  21. package/dist/{instance-shell-Dk2SejFT.mjs → instance-shell-Coid7CP6.mjs} +4 -4
  22. package/dist/{instance-shell-Bujp0BhE.d.mts → instance-shell-DTk514M9.d.mts} +4 -4
  23. package/dist/internal/index.d.mts +7 -7
  24. package/dist/internal/index.mjs +4 -4
  25. package/dist/{mcp-content-CQQBt2An.d.mts → mcp-content-0a0mpCL5.d.mts} +1 -1
  26. package/dist/node/auth.d.mts +84 -3
  27. package/dist/node/hub-internals.d.mts +11 -2
  28. package/dist/node/hub-internals.mjs +1 -1
  29. package/dist/node/index.d.mts +4 -2
  30. package/dist/recipes/interactive-auth.d.mts +2 -2
  31. package/dist/{rolldown-runtime-DYf_mQCB.mjs → rolldown-runtime-BVN1G_yT.mjs} +4 -4
  32. package/dist/rpc/dump.d.mts +1 -1
  33. package/dist/rpc/index.d.mts +121 -3
  34. package/dist/rpc/transports/sse-client.d.mts +34 -2
  35. package/dist/rpc/transports/sse-server.d.mts +2 -2
  36. package/dist/rpc/transports/ws-bun.d.mts +2 -2
  37. package/dist/rpc/transports/ws-client.d.mts +27 -2
  38. package/dist/rpc/transports/ws-deno.d.mts +2 -2
  39. package/dist/rpc/transports/ws-server.d.mts +150 -3
  40. package/dist/{rpc-core-CDUizUQB.mjs → rpc-core-BmDHiDR6.mjs} +1 -1
  41. package/dist/{rpc-core-CFwyV10r.d.mts → rpc-core-CblgPYJ_.d.mts} +3 -3
  42. package/dist/types/index.d.mts +3 -3
  43. package/dist/{types-844OBepb.d.mts → types-KZOyhez5.d.mts} +1 -0
  44. package/dist/utils/debounce.d.mts +6 -0
  45. package/dist/utils/events.d.mts +1 -1
  46. package/dist/utils/get-port.mjs +1 -1
  47. package/dist/utils/launch-editor.mjs +1 -1
  48. package/dist/utils/nostics.d.mts +40 -2
  49. package/dist/utils/origin.d.mts +55 -2
  50. package/dist/utils/serve-static.d.mts +1 -1
  51. package/dist/utils/shared-state.d.mts +1 -1
  52. package/dist/utils/streaming-channel.d.mts +1 -1
  53. package/package.json +5 -5
  54. package/dist/index-D0qrBkhO.d.mts +0 -121
  55. package/dist/index-HMJPlexc.d.mts +0 -84
  56. package/dist/nostics-Dgwh7ytT.d.mts +0 -40
  57. package/dist/origin-D5i7K_Zb.d.mts +0 -56
  58. package/dist/sse-client-B2PrSz-H.d.mts +0 -35
  59. package/dist/ws-client-lqOeANcn.d.mts +0 -28
  60. package/dist/ws-server-CYHkeyA-.d.mts +0 -150
@@ -1,5 +1,5 @@
1
- import { t as AgenticMcpModule } from "./agentic-CCstJ5yv.mjs";
2
- import { F as DevframeDefinition, Ft as McpResourceTemplate, G as McpAuthorization, I as DevframeDeploymentKind, Rt as McpResourcesChangedHook, en as DevframeAgentHost, jt as McpPrompt, q as McpSetting, t as ConnectionMeta } from "./context-WxTq6kqb.mjs";
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-DJydMELP.mjs";
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 { F as DevframeDefinition, V as DevframeSnapshotRpcEntry, o as DevframeNodeContext } from "../context-WxTq6kqb.mjs";
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`. */
@@ -1,4 +1,4 @@
1
- import { F as DevframeDefinition, Ht as InferCliFlags, Ut as defineCliFlags, Vt as CliFlagsSchema, Wt as parseCliFlags, q as McpSetting } from "../context-WxTq6kqb.mjs";
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 {
@@ -1,7 +1,7 @@
1
1
  import { s as colors } from "../nostics-InlX4tmd.mjs";
2
- import { s as importAgenticMcp } from "../_shared-BGb9aDxr.mjs";
2
+ import { s as importAgenticMcp } from "../_shared-CtXCQFTV.mjs";
3
3
  import { createBuild } from "./build.mjs";
4
- import { t as createDevServer } from "../dev-DaHYh5YK.mjs";
4
+ import { t as createDevServer } from "../dev-Cu_iwSCy.mjs";
5
5
  import process from "node:process";
6
6
  import cac$1 from "cac";
7
7
  // src/adapters/flags.ts
@@ -1,9 +1,9 @@
1
- import { n as WsOriginRegistry } from "../ws-server-CYHkeyA-.mjs";
1
+ import { WsOriginRegistry } from "../rpc/transports/ws-server.mjs";
2
2
  import { n as DevframeRpcConnection, t as DevframeNodeRpcSessionMeta } from "../session-Y9R6tqg4.mjs";
3
- import { Bt as DevframeAuthHandler, F as DevframeDefinition, U as DevframeSseOptions, W as DevframeWsOptions, q as McpSetting, s as DevframeNodeRpcSession } from "../context-WxTq6kqb.mjs";
4
- import { c as StartedServer } from "../instance-shell-Bujp0BhE.mjs";
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-CnKu5myY.mjs";
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'`. */
@@ -1,3 +1,3 @@
1
- import { i as resolveDevServerPort, o as resolveMcpConnectionMeta } from "../_shared-BGb9aDxr.mjs";
2
- import { t as createDevServer } from "../dev-DaHYh5YK.mjs";
1
+ import { i as resolveDevServerPort, o as resolveMcpConnectionMeta } from "../_shared-CtXCQFTV.mjs";
2
+ import { t as createDevServer } from "../dev-Cu_iwSCy.mjs";
3
3
  export { createDevServer, resolveDevServerPort, resolveMcpConnectionMeta };
@@ -1,4 +1,4 @@
1
- import { F as DevframeDefinition, o as DevframeNodeContext } from "../context-WxTq6kqb.mjs";
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 { n as WsOriginRegistry } from "../ws-server-CYHkeyA-.mjs";
1
+ import { WsOriginRegistry } from "../rpc/transports/ws-server.mjs";
2
2
  import { n as DevframeRpcConnection, t as DevframeNodeRpcSessionMeta } from "../session-Y9R6tqg4.mjs";
3
- import { Bt as DevframeAuthHandler, Ct as DevframeStorageScope, F as DevframeDefinition, U as DevframeSseOptions, W as DevframeWsOptions, o as DevframeNodeContext, q as McpSetting, s as DevframeNodeRpcSession, t as ConnectionMeta } from "../context-WxTq6kqb.mjs";
4
- import { c as StartedServer, f as DevframeInstanceRecord } from "../instance-shell-Bujp0BhE.mjs";
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-DaHYh5YK.mjs";
1
+ export { n as getInstanceInternals, r as initDevframe } from "../dev-Cu_iwSCy.mjs";
@@ -1,4 +1,4 @@
1
- import { n as MountMcpHttpOptions, r as MountedMcpHttp } from "../agentic-CCstJ5yv.mjs";
2
- import { At as McpFetchHandler, Dt as CreateMcpServerOptions, Et as CreateMcpFetchHandlerOptions, Ft as McpResourceTemplate, It as McpResourceTemplateContent, Lt as McpResourceTemplateEntry, Mt as McpPromptArgument, Nt as McpPromptMessage, Ot as McpConnectionInfo, Pt as McpPromptResult, Rt as McpResourcesChangedHook, jt as McpPrompt, zt as McpServerHandle } from "../context-WxTq6kqb.mjs";
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 { At as McpFetchHandler, Dt as CreateMcpServerOptions, Et as CreateMcpFetchHandlerOptions, F as DevframeDefinition, o as DevframeNodeContext, zt as McpServerHandle } from "./context-WxTq6kqb.mjs";
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
@@ -1,9 +1,9 @@
1
1
  import { i as BirpcReturn, r as BirpcOptions } from "../index-BKu9BxcT.mjs";
2
- import { f as RpcCacheManager, p as RpcCacheOptions } from "../index-D0qrBkhO.mjs";
3
- import { h as RpcFunctionDefinition, w as RpcFunctionsCollector } from "../types-844OBepb.mjs";
4
- import { t as SseRpcChannelOptions } from "../sse-client-B2PrSz-H.mjs";
5
- import { t as WsRpcChannelOptions } from "../ws-client-lqOeANcn.mjs";
6
- import { Q as DevframeServiceMeta, b as StreamSink, ct as DevframeSettings, d as RpcSharedStateHost, et as DevframeServiceScopeOf, gt as SettingsForNamespace, ht as ScopedSharedStates, it as DevframeServicesState, k as SharedState, mt as ScopedServerFunctions, nn as EventEmitter, pt as ScopedRpcFn, t as ConnectionMeta, u as RpcSharedStateGetOptions, vt as DevframeRpcClientFunctions, y as StreamReader, yt as DevframeRpcServerFunctions } from "../context-WxTq6kqb.mjs";
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;
@@ -1,4 +1,4 @@
1
- import { k as SharedState, o as DevframeNodeContext } from "./context-WxTq6kqb.mjs";
1
+ import { Bt as SharedState, z as DevframeNodeContext } from "./index-BhUqJUHG.mjs";
2
2
  interface InternalAnonymousAuthStorage {
3
3
  trusted: Record<string, {
4
4
  authToken: string;
@@ -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-BGb9aDxr.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-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-Dk2SejFT.mjs";
4
+ import { a as isAddressInUse, i as normalizeHttpServerUrl, n as resolveInstanceRegister, o as listenWithLoopbackTwin, t as createInstanceShell } from "./instance-shell-Coid7CP6.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-DYf_mQCB.mjs";
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-844OBepb.mjs";
2
- import { k as SharedState, nn as EventEmitter } from "../context-WxTq6kqb.mjs";
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