devframe 0.9.0-beta.1 → 0.9.0-beta.10

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 (104) hide show
  1. package/dist/{_shared-DmpWW-HH.d.mts → _shared-BPmX9fqK.d.mts} +2 -4
  2. package/dist/{_shared-CttmCMBi.mjs → _shared-CbZ_yhbz.mjs} +2 -4
  3. package/dist/adapters/build.d.mts +10 -12
  4. package/dist/adapters/build.mjs +26 -30
  5. package/dist/adapters/cac.d.mts +1 -1
  6. package/dist/adapters/cac.mjs +6 -7
  7. package/dist/adapters/dev.d.mts +22 -8
  8. package/dist/adapters/dev.mjs +2 -2
  9. package/dist/adapters/embedded.d.mts +1 -1
  10. package/dist/adapters/initiate.d.mts +5 -4
  11. package/dist/adapters/initiate.mjs +1 -1
  12. package/dist/adapters/mcp.d.mts +1 -8
  13. package/dist/adapters/mcp.mjs +1 -1
  14. package/dist/{agent-tool-name-C3b5vEwJ.mjs → agent-tool-name-EgfoFO8C.mjs} +0 -3
  15. package/dist/cli/main.d.mts +0 -2
  16. package/dist/cli/main.mjs +4 -8
  17. package/dist/client/index.d.mts +5 -5
  18. package/dist/client/index.mjs +24 -1179
  19. package/dist/constants.d.mts +10 -2
  20. package/dist/constants.mjs +10 -2
  21. package/dist/{context-CSCwoABx.d.mts → context-B3YUu_95.d.mts} +19 -1
  22. package/dist/{context-Du11TLcO.mjs → context-CEe4PBz1.mjs} +23 -305
  23. package/dist/{context-C33rR7n0.mjs → context-xdynGSLP.mjs} +10 -1
  24. package/dist/{dev-BEveeA5H.mjs → dev--rAPzbvO.mjs} +16 -10
  25. package/dist/{devframe-Bdd9YXTy.d.mts → devframe-DJMg0WLe.d.mts} +97 -113
  26. package/dist/{diagnostics-hwjXp_UV.mjs → diagnostics-CD8nlgll.mjs} +1 -3
  27. package/dist/{diagnostics-DLYH5oD3.mjs → diagnostics-DOQPnQmX.mjs} +35 -5
  28. package/dist/{dist-D8jAMwxU.mjs → dist-eNI9qM_I.mjs} +1 -0
  29. package/dist/{host-agent-CpbAoqBx.mjs → host-agent-xLCSe65D.mjs} +41 -7
  30. package/dist/{host-h3-CzCZwtuV.mjs → host-h3-Crkzm42q.mjs} +2 -2
  31. package/dist/{http-DLr_cJZ7.mjs → http-DYpK0cUi.mjs} +5 -12
  32. package/dist/{index-CZRd2K1C.d.mts → index-CB-fSUyn.d.mts} +2 -2
  33. package/dist/{index-DSCq4M4q.d.mts → index-tdrk1bzV.d.mts} +1 -1
  34. package/dist/index.d.mts +7 -5
  35. package/dist/{instance-registry-BQqGoDO9.mjs → instance-registry-WvQkt42E.mjs} +1 -7
  36. package/dist/{instance-shell-KRdee1QF.mjs → instance-shell-CMFyszWJ.mjs} +9 -8
  37. package/dist/{instance-shell-DBTXTSjN.d.mts → instance-shell-CljiKq1c.d.mts} +3 -12
  38. package/dist/internal/index.d.mts +265 -18
  39. package/dist/internal/index.mjs +9 -7
  40. package/dist/node/auth.d.mts +2 -2
  41. package/dist/node/auth.mjs +1 -1
  42. package/dist/node/hub-internals.d.mts +2 -2
  43. package/dist/node/hub-internals.mjs +2 -2
  44. package/dist/node/index.d.mts +3 -3
  45. package/dist/node/index.mjs +2 -2
  46. package/dist/nostics-CzECRXpE.mjs +59 -0
  47. package/dist/nostics-SPGDgHEP.d.mts +33 -0
  48. package/dist/recipes/common-rpc-functions.d.mts +3 -3
  49. package/dist/recipes/interactive-auth.d.mts +2 -2
  50. package/dist/recipes/interactive-auth.mjs +3 -3
  51. package/dist/remote-assets-Bg4gCUZ_.d.mts +123 -0
  52. package/dist/remote-assets-nTTxY2MU.mjs +636 -0
  53. package/dist/rpc/dump.d.mts +1 -1
  54. package/dist/rpc/dump.mjs +1 -1
  55. package/dist/rpc/index.d.mts +2 -2
  56. package/dist/rpc/index.mjs +3 -3
  57. package/dist/rpc/transports/sse-client.d.mts +1 -1
  58. package/dist/rpc/transports/sse-client.mjs +1 -1
  59. package/dist/rpc/transports/sse-server.d.mts +2 -2
  60. package/dist/rpc/transports/sse-server.mjs +2 -2
  61. package/dist/rpc/transports/ws-bun.d.mts +2 -2
  62. package/dist/rpc/transports/ws-bun.mjs +1 -1
  63. package/dist/rpc/transports/ws-client.d.mts +1 -1
  64. package/dist/rpc/transports/ws-client.mjs +1 -1
  65. package/dist/rpc/transports/ws-server.d.mts +1 -1
  66. package/dist/rpc/transports/ws-server.mjs +1 -1
  67. package/dist/{rpc-core-CGctXToO.d.mts → rpc-core-Cc4lucI0.d.mts} +3 -3
  68. package/dist/{rpc-core-CqcJkAu9.mjs → rpc-core-DMTe-hLo.mjs} +1 -1
  69. package/dist/{serialization-BHY8M5NQ.mjs → serialization-BGzEwAdr.mjs} +1 -1
  70. package/dist/{sse-client-BsIK3hMD.d.mts → sse-client-CFBOIaUi.d.mts} +1 -1
  71. package/dist/state-Cc1IeSmQ.mjs +1291 -0
  72. package/dist/{static-CvjkO8QE.mjs → static-BPZ1_OPA.mjs} +2 -2
  73. package/dist/storage-CYye7P7L.mjs +137 -0
  74. package/dist/types/index.d.mts +6 -4
  75. package/dist/{types-CnJSgRVa.d.mts → types-Djq7CBXh.d.mts} +0 -7
  76. package/dist/utils/agent-tool-name.d.mts +0 -3
  77. package/dist/utils/agent-tool-name.mjs +0 -3
  78. package/dist/utils/events.d.mts +1 -1
  79. package/dist/utils/get-port.d.mts +17 -0
  80. package/dist/utils/get-port.mjs +2 -0
  81. package/dist/utils/nostics.d.mts +2 -0
  82. package/dist/utils/nostics.mjs +2 -0
  83. package/dist/utils/open.d.mts +2 -10
  84. package/dist/utils/open.mjs +56 -1
  85. package/dist/utils/remote-assets.d.mts +15 -0
  86. package/dist/utils/remote-assets.mjs +2 -0
  87. package/dist/utils/serve-static.d.mts +13 -5
  88. package/dist/utils/serve-static.mjs +119 -9
  89. package/dist/utils/shared-state.d.mts +1 -1
  90. package/dist/utils/streaming-channel.d.mts +1 -1
  91. package/dist/{validation-BiuDXTKW.mjs → validation-CpXFB6Dz.mjs} +1 -1
  92. package/dist/{wire-codec-9VhIKnyp.mjs → wire-codec-0K-o5MYW.mjs} +1 -3
  93. package/dist/{ws-client-CdNuATYa.d.mts → ws-client-DhjNyQo3.d.mts} +1 -1
  94. package/dist/{ws-server-Bk1hOG3X.mjs → ws-server-BdSLrhxE.mjs} +1 -1
  95. package/dist/{ws-server-Ces08fjP.d.mts → ws-server-D1d3QM9f.d.mts} +1 -1
  96. package/package.json +4 -4
  97. package/skills/devframe/SKILL.md +10 -11
  98. package/dist/diagnostics-reporter-CsIG85Q5.mjs +0 -38
  99. package/dist/helpers/vite.d.mts +0 -104
  100. package/dist/helpers/vite.mjs +0 -93
  101. package/dist/open-Dz4V4irZ.mjs +0 -547
  102. package/dist/state-BeUHDDjk.mjs +0 -108
  103. package/dist/storage-BcmVEJRc.mjs +0 -1122
  104. package/skills/devframe/templates/spa-devframe.ts +0 -38
@@ -1,5 +1,5 @@
1
- import { G as DevframeNodeRpcSession, gt as SharedState, x as DevframeNodeContext } from "./devframe-Bdd9YXTy.mjs";
2
- import { n as InternalAnonymousAuthStorage } from "./context-CSCwoABx.mjs";
1
+ import { R as DevframeNodeRpcSession, g as DevframeNodeContext, lt as SharedState } from "./devframe-DJMg0WLe.mjs";
2
+ import { n as InternalAnonymousAuthStorage } from "./context-B3YUu_95.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`
@@ -1,4 +1,4 @@
1
- import { C as RpcFunctionType, S as RpcFunctionSetupResult, T as RpcReturnSchema, _ as RpcFunctionDefinition, i as RpcArgsSchema, v as RpcFunctionDefinitionAny, w as RpcFunctionsCollector } from "./types-CnJSgRVa.mjs";
1
+ import { C as RpcFunctionType, S as RpcFunctionSetupResult, T as RpcReturnSchema, _ as RpcFunctionDefinition, i as RpcArgsSchema, v as RpcFunctionDefinitionAny, w as RpcFunctionsCollector } from "./types-Djq7CBXh.mjs";
2
2
  //#region src/rpc/cache.d.ts
3
3
  interface RpcCacheOptions {
4
4
  functions: string[];
package/dist/index.d.mts CHANGED
@@ -1,7 +1,9 @@
1
- import { $ as DevframeRpcClientFunctions, A as DevframeSettingsRegistry, At as DevframeAgentHost, B as DevframeStorageScope, C as DevframeServiceOf, Ct as AgentResource, D as DevframeScopedNodeRpc, Dt as AgentToolInput, E as DevframeScopedNodeContext, Et as AgentTool, F as ScopedServerFunctions, G as DevframeNodeRpcSession, H as DevframeDiagnosticsDefinition, I as ScopedSharedStates, J as RpcSharedStateGetOptions, K as RpcBroadcastOptions, L as SettingsForNamespace, M as ScopedBroadcastOptions, Mt as EventEmitter, N as ScopedClientFunctions, Nt as EventUnsubscribe, O as DevframeScopedStreamingHost, Ot as AgentToolProvider, P as ScopedRpcFn, Pt as EventsMap, Q as RpcStreamingHost, R as DevframeViewHost, S as DevframeServiceId, St as AgentManifest, T as DevframeServicesRegistry, Tt as AgentResourceInput, U as DevframeDiagnosticsHost, V as DevframeDefineDiagnosticsOptions, W as DevframeDiagnosticsLogger, X as RpcStreamingChannel, Y as RpcSharedStateHost, Z as RpcStreamingChannelOptions, _ as ConnectionMeta, a as DevframeDockDefaults, b as DevframeCapabilities, c as DevframeSetupInfo, d as DevframeWsOptions, et as DevframeRpcServerFunctions, f as McpRouteOptions, g as Thenable, h as PartialWithoutId, i as DevframeDeploymentKind, j as DevframeSettingsStore, jt as DevframeAgentHostEvents, k as DevframeSettings, kt as AgentToolProviderHandle, l as DevframeSpaOptions, m as EntriesToObject, n as DevframeCliOptions, o as DevframeDuplicationStrategy, q as RpcFunctionsHost, r as DevframeDefinition, s as DevframeRuntime, t as DevframeBrowserContext, tt as DevframeRpcSharedStates, u as DevframeSseOptions, v as ConnectionMetaSse, w as DevframeServicesHost, wt as AgentResourceContent, x as DevframeNodeContext, xt as AgentHandle, y as ConnectionMetaWebsocket, z as DevframeHost } from "./devframe-Bdd9YXTy.mjs";
2
- import "./index-DSCq4M4q.mjs";
3
- import { C as RpcFunctionType, T as RpcReturnSchema, _ as RpcFunctionDefinition, g as RpcFunctionAgentOptions, i as RpcArgsSchema } from "./types-CnJSgRVa.mjs";
4
- import { d as DevframeRpcConnection, f as DevframeRpcConnectionRequest, p as DevframeRpcTransportKind, u as DevframeNodeRpcSessionMeta } from "./ws-server-Ces08fjP.mjs";
1
+ import { A as ScopedServerFunctions, B as RpcFunctionsHost, C as DevframeScopedStreamingHost, Ct as DevframeAgentHost, D as ScopedBroadcastOptions, Dt as EventsMap, E as DevframeSettingsStore, Et as EventUnsubscribe, F as DevframeStorageScope, G as RpcStreamingHost, H as RpcSharedStateHost, I as DevframeDiagnosticsHost, J as DevframeRpcSharedStates, K as DevframeRpcClientFunctions, L as DevframeDiagnosticsLogger, M as SettingsForNamespace, N as DevframeViewHost, O as ScopedClientFunctions, P as DevframeHost, R as DevframeNodeRpcSession, S as DevframeScopedNodeRpc, St as AgentToolProviderHandle, T as DevframeSettingsRegistry, Tt as EventEmitter, U as RpcStreamingChannel, V as RpcSharedStateGetOptions, W as RpcStreamingChannelOptions, _ as DevframeServiceId, _t as AgentResourceContent, a as DevframeDuplicationStrategy, b as DevframeServicesRegistry, bt as AgentToolInput, c as DevframeWsOptions, d as ConnectionMeta, f as ConnectionMetaSse, g as DevframeNodeContext, gt as AgentResource, h as DevframeConnectionConfigsRegistry, ht as AgentManifest, i as DevframeDockDefaults, j as ScopedSharedStates, k as ScopedRpcFn, l as McpRouteOptions, m as DevframeCapabilities, mt as AgentHandle, n as DevframeDefinition, o as DevframeSetupInfo, p as ConnectionMetaWebsocket, q as DevframeRpcServerFunctions, r as DevframeDeploymentKind, s as DevframeSseOptions, t as DevframeCliOptions, v as DevframeServiceOf, vt as AgentResourceInput, w as DevframeSettings, wt as DevframeAgentHostEvents, x as DevframeScopedNodeContext, xt as AgentToolProvider, y as DevframeServicesHost, yt as AgentTool, z as RpcBroadcastOptions } from "./devframe-DJMg0WLe.mjs";
2
+ import "./index-tdrk1bzV.mjs";
3
+ import { C as RpcFunctionType, T as RpcReturnSchema, _ as RpcFunctionDefinition, g as RpcFunctionAgentOptions, i as RpcArgsSchema } from "./types-Djq7CBXh.mjs";
4
+ import { d as DevframeRpcConnection, f as DevframeRpcConnectionRequest, p as DevframeRpcTransportKind, u as DevframeNodeRpcSessionMeta } from "./ws-server-D1d3QM9f.mjs";
5
+ import { i as DevframeDefineDiagnosticsOptions } from "./nostics-SPGDgHEP.mjs";
6
+ import { a as RemoteAssetsStore, i as RemoteAssetsProviderCustom, n as RemoteAssetsErrorMessage, o as StaticAssetsSource, r as RemoteAssetsProvider, t as RemoteAssets } from "./remote-assets-Bg4gCUZ_.mjs";
5
7
  //#region src/define.d.ts
6
8
  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>;
7
9
  /**
@@ -10,4 +12,4 @@ declare const defineRpcFunction: <NAME extends string, TYPE extends RpcFunctionT
10
12
  */
11
13
  declare function defineDevframe(d: DevframeDefinition): DevframeDefinition;
12
14
  //#endregion
13
- 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 DevframeAgentHost, type DevframeAgentHostEvents, type DevframeBrowserContext, type DevframeCapabilities, type DevframeCliOptions, type DevframeDefineDiagnosticsOptions, type DevframeDefinition, type DevframeDeploymentKind, type DevframeDiagnosticsDefinition, type DevframeDiagnosticsHost, type DevframeDiagnosticsLogger, type DevframeDockDefaults, type DevframeDuplicationStrategy, type DevframeHost, type DevframeNodeContext, type DevframeNodeRpcSession, type DevframeNodeRpcSessionMeta, type DevframeRpcClientFunctions, type DevframeRpcConnection, type DevframeRpcConnectionRequest, type DevframeRpcServerFunctions, type DevframeRpcSharedStates, type DevframeRpcTransportKind, type DevframeRuntime, type DevframeScopedNodeContext, type DevframeScopedNodeRpc, type DevframeScopedStreamingHost, type DevframeServiceId, type DevframeServiceOf, type DevframeServicesHost, type DevframeServicesRegistry, type DevframeSettings, type DevframeSettingsRegistry, type DevframeSettingsStore, type DevframeSetupInfo, type DevframeSpaOptions, type DevframeSseOptions, type DevframeStorageScope, type DevframeViewHost, type DevframeWsOptions, type EntriesToObject, type EventEmitter, type EventUnsubscribe, type EventsMap, type McpRouteOptions, type PartialWithoutId, 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 Thenable, defineDevframe, defineRpcFunction };
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 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 DevframeRpcServerFunctions, type DevframeRpcSharedStates, type DevframeRpcTransportKind, type DevframeScopedNodeContext, type DevframeScopedNodeRpc, type DevframeScopedStreamingHost, type DevframeServiceId, type DevframeServiceOf, type DevframeServicesHost, type DevframeServicesRegistry, type DevframeSettings, type DevframeSettingsRegistry, type DevframeSettingsStore, type DevframeSetupInfo, type DevframeSseOptions, type DevframeStorageScope, type DevframeViewHost, type DevframeWsOptions, type EventEmitter, type EventUnsubscribe, type EventsMap, type McpRouteOptions, 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, defineDevframe, defineRpcFunction };
@@ -1,5 +1,5 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-JspESFgx.mjs";
2
- import { t as diagnostics } from "./diagnostics-DLYH5oD3.mjs";
2
+ import { t as diagnostics } from "./diagnostics-DOQPnQmX.mjs";
3
3
  import { mkdirSync, readFileSync, readdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
4
4
  import { join } from "pathe";
5
5
  import process from "node:process";
@@ -42,8 +42,6 @@ function isRegistryDisabled() {
42
42
  * crash are pruned by readers whose liveness probe fails. Registration never
43
43
  * throws — a write failure degrades to a coded warning (`DF0045`), since a
44
44
  * dev server must not die over discovery metadata.
45
- *
46
- * @experimental
47
45
  */
48
46
  function registerDevframeInstance(record, options = {}) {
49
47
  const dir = resolveInstancesDir(options.instancesDir);
@@ -78,8 +76,6 @@ function registerDevframeInstance(record, options = {}) {
78
76
  /**
79
77
  * Read every record in the registry directory, dropping unparseable files.
80
78
  * Liveness is the caller's concern — see {@link probeDevframeInstance}.
81
- *
82
- * @experimental
83
79
  */
84
80
  function readDevframeInstances(options = {}) {
85
81
  const dir = resolveInstancesDir(options.instancesDir);
@@ -155,8 +151,6 @@ async function probeDevframeInstance(record, options = {}) {
155
151
  * records left behind by killed processes shadow the server currently bound
156
152
  * there: per `(port, basePath)` only the newest record survives, older
157
153
  * ghosts are pruned with the dead.
158
- *
159
- * @experimental
160
154
  */
161
155
  async function listLiveDevframeInstances(options = {}) {
162
156
  const dir = resolveInstancesDir(options.instancesDir);
@@ -1,6 +1,6 @@
1
1
  import "./constants.mjs";
2
- import { t as diagnostics } from "./diagnostics-DLYH5oD3.mjs";
3
- import { t as getInternalContext } from "./context-C33rR7n0.mjs";
2
+ import { t as diagnostics } from "./diagnostics-DOQPnQmX.mjs";
3
+ import { t as getInternalContext } from "./context-xdynGSLP.mjs";
4
4
  import { createInteractiveAuth } from "./recipes/interactive-auth.mjs";
5
5
  import { createServer } from "node:http";
6
6
  import process from "node:process";
@@ -83,7 +83,7 @@ async function bindHttpAndWs(options) {
83
83
  const origin = normalizeHttpServerUrl(bindHost, resolvedPort);
84
84
  const internal = getInternalContext(context);
85
85
  const wsUrl = `ws://${formatHostForUrl(bindHost)}:${resolvedPort}${options.path ?? ""}`;
86
- if (websocket) internal.wsEndpoint = { url: wsUrl };
86
+ if (websocket) internal.setWsEndpoint({ url: wsUrl });
87
87
  function connectionMeta() {
88
88
  const jsonSerializableMethods = [];
89
89
  for (const def of rpcHost.definitions.values()) if (def.jsonSerializable === true) jsonSerializableMethods.push(def.name);
@@ -103,7 +103,7 @@ async function bindHttpAndWs(options) {
103
103
  async close() {
104
104
  await closeWs();
105
105
  if (ownsHttpServer) await new Promise((r) => httpServer.close(() => r()));
106
- if (websocket && getInternalContext(context).wsEndpoint?.url === wsUrl) getInternalContext(context).wsEndpoint = void 0;
106
+ if (websocket && getInternalContext(context).wsEndpoint?.url === wsUrl) getInternalContext(context).setWsEndpoint(void 0);
107
107
  }
108
108
  };
109
109
  }
@@ -197,7 +197,7 @@ function createInstanceShell(options) {
197
197
  const origin = currentOrigin();
198
198
  if (!cfg || registerPromise || !origin || !meta) return;
199
199
  const resolvedMeta = meta;
200
- registerPromise = import("./instance-registry-BQqGoDO9.mjs").then((n) => n.t).then(({ registerDevframeInstance }) => {
200
+ registerPromise = import("./instance-registry-WvQkt42E.mjs").then((n) => n.t).then(({ registerDevframeInstance }) => {
201
201
  let port = 0;
202
202
  try {
203
203
  const url = new URL(origin);
@@ -257,7 +257,7 @@ function createInstanceShell(options) {
257
257
  let resolvedAuth = false;
258
258
  let corePromise;
259
259
  function ensureCore() {
260
- corePromise ??= import("./rpc-core-CqcJkAu9.mjs").then((n) => n.n).then(({ createContextRpcServer }) => createContextRpcServer({
260
+ corePromise ??= import("./rpc-core-DMTe-hLo.mjs").then((n) => n.n).then(({ createContextRpcServer }) => createContextRpcServer({
261
261
  context: ctx,
262
262
  auth: resolvedAuth,
263
263
  onPeerConnect: options.onPeerConnect,
@@ -298,7 +298,7 @@ function createInstanceShell(options) {
298
298
  allowedOrigins: options.allowedOrigins
299
299
  });
300
300
  if (ws.port != null) return await start(ws.port);
301
- const { getPort } = await import("./dist-D8jAMwxU.mjs").then((n) => n.t);
301
+ const { getPort } = await import("./dist-eNI9qM_I.mjs").then((n) => n.t);
302
302
  let lastError;
303
303
  for (let attempt = 0; attempt < 3; attempt++) {
304
304
  const port = attempt === 0 && options.resolveSidecarPort ? await options.resolveSidecarPort(sidecarHost) : await getPort({
@@ -347,6 +347,7 @@ function createInstanceShell(options) {
347
347
  ...sseEnabled ? { sse: { path: advertisedSsePath } } : {},
348
348
  ...result.mcp ? { mcp: result.mcp } : {}
349
349
  };
350
+ if (Object.keys(ctx.staticConfig).length > 0) meta.configs = ctx.staticConfig;
350
351
  await options.mount?.(ctx, meta, api);
351
352
  maybePrintBanner();
352
353
  maybeRegister();
@@ -434,7 +435,7 @@ function createInstanceShell(options) {
434
435
  const address = server.address();
435
436
  if (typeof address !== "object" || !address) return;
436
437
  const host = options.host ?? (address.address === "::" || address.address === "0.0.0.0" ? "localhost" : address.address);
437
- getInternalContext(ctx).wsEndpoint = { url: `ws://${formatHostForUrl(host)}:${address.port}${routePath}` };
438
+ getInternalContext(ctx).setWsEndpoint({ url: `ws://${formatHostForUrl(host)}:${address.port}${routePath}` });
438
439
  };
439
440
  if (server.listening) record();
440
441
  else server.once("listening", record);
@@ -1,6 +1,6 @@
1
- import { $ as DevframeRpcClientFunctions, G as DevframeNodeRpcSession, _ as ConnectionMeta, d as DevframeWsOptions, et as DevframeRpcServerFunctions, p as DevframeAuthHandler, u as DevframeSseOptions, x as DevframeNodeContext } from "./devframe-Bdd9YXTy.mjs";
2
- import { d as DevframeRpcConnection, n as WsOriginRegistry, u as DevframeNodeRpcSessionMeta } from "./ws-server-Ces08fjP.mjs";
3
- import "./index-CZRd2K1C.mjs";
1
+ import { K as DevframeRpcClientFunctions, R as DevframeNodeRpcSession, c as DevframeWsOptions, d as ConnectionMeta, g as DevframeNodeContext, q as DevframeRpcServerFunctions, s as DevframeSseOptions, u as DevframeAuthHandler } from "./devframe-DJMg0WLe.mjs";
2
+ import { d as DevframeRpcConnection, n as WsOriginRegistry, u as DevframeNodeRpcSessionMeta } from "./ws-server-D1d3QM9f.mjs";
3
+ import "./index-CB-fSUyn.mjs";
4
4
  import { BirpcGroup } from "birpc";
5
5
  import { NodeAdapter } from "crossws/adapters/node";
6
6
  import { Buffer } from "node:buffer";
@@ -11,9 +11,6 @@ import { H3 } from "h3";
11
11
  /**
12
12
  * One running devframe instance, as recorded in the instance registry.
13
13
  * Records are self-describing JSON — additive fields are safe.
14
- *
15
- * @experimental The agent-native surface is experimental and may change
16
- * without a major version bump until it stabilizes.
17
14
  */
18
15
  interface DevframeInstanceRecord {
19
16
  /** Process id of the dev server. */
@@ -42,8 +39,6 @@ interface DevframeInstanceRecord {
42
39
  }
43
40
  /**
44
41
  * Handle returned by {@link registerDevframeInstance}.
45
- *
46
- * @experimental
47
42
  */
48
43
  interface DevframeInstanceRegistration {
49
44
  /** The registry file backing this registration. */
@@ -65,8 +60,6 @@ interface DevframeInstanceRegistration {
65
60
  * crash are pruned by readers whose liveness probe fails. Registration never
66
61
  * throws — a write failure degrades to a coded warning (`DF0045`), since a
67
62
  * dev server must not die over discovery metadata.
68
- *
69
- * @experimental
70
63
  */
71
64
  declare function registerDevframeInstance(record: DevframeInstanceRecord, options?: {
72
65
  instancesDir?: string;
@@ -81,8 +74,6 @@ declare function registerDevframeInstance(record: DevframeInstanceRecord, option
81
74
  * records left behind by killed processes shadow the server currently bound
82
75
  * there: per `(port, basePath)` only the newest record survives, older
83
76
  * ghosts are pruned with the dead.
84
- *
85
- * @experimental
86
77
  */
87
78
  declare function listLiveDevframeInstances(options?: {
88
79
  instancesDir?: string;
@@ -1,7 +1,9 @@
1
- import { At as DevframeAgentHost$1, Ct as AgentResource, Dt as AgentToolInput, Et as AgentTool, Mt as EventEmitter, Ot as AgentToolProvider, St as AgentManifest, Tt as AgentResourceInput, jt as DevframeAgentHostEvents, kt as AgentToolProviderHandle, wt as AgentResourceContent, x as DevframeNodeContext, xt as AgentHandle, z as DevframeHost } from "../devframe-Bdd9YXTy.mjs";
2
- import { v as RpcFunctionDefinitionAny } from "../types-CnJSgRVa.mjs";
3
- import { a as InstanceShellInit, c as StartedServer, d as samePath, f as DevframeInstanceRecord, h as registerDevframeInstance, 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-DBTXTSjN.mjs";
4
- import { n as CreateContextRpcServerOptions, r as createContextRpcServer, t as ContextRpcServer } from "../rpc-core-CGctXToO.mjs";
1
+ import { Ct as DevframeAgentHost$1, P as DevframeHost, St as AgentToolProviderHandle, Tt as EventEmitter, _t as AgentResourceContent, bt as AgentToolInput, g as DevframeNodeContext, gt as AgentResource, ht as AgentManifest, mt as AgentHandle, vt as AgentResourceInput, wt as DevframeAgentHostEvents, xt as AgentToolProvider, yt as AgentTool } from "../devframe-DJMg0WLe.mjs";
2
+ import { v as RpcFunctionDefinitionAny } from "../types-Djq7CBXh.mjs";
3
+ import { a as RemoteAssetsStore } from "../remote-assets-Bg4gCUZ_.mjs";
4
+ import { a as InstanceShellInit, c as StartedServer, d as samePath, f as DevframeInstanceRecord, h as registerDevframeInstance, 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-CljiKq1c.mjs";
5
+ import { n as normalizeBasePath, r as resolveBasePath } from "../_shared-BPmX9fqK.mjs";
6
+ import { n as CreateContextRpcServerOptions, r as createContextRpcServer, t as ContextRpcServer } from "../rpc-core-Cc4lucI0.mjs";
5
7
  //#region src/node/agent-args.d.ts
6
8
  /**
7
9
  * How {@link coerceAgentPositionalArgs} treats an args object that carries
@@ -27,19 +29,267 @@ type AgentArgsFallback = 'wrap' | 'drop';
27
29
  * - without schemas, `arg0`/`arg1`/… keys are collected when present
28
30
  * - an empty object becomes a zero-argument call
29
31
  * - anything else follows the {@link AgentArgsFallback}
30
- *
31
- * @experimental
32
32
  */
33
33
  declare function coerceAgentPositionalArgs(args: unknown, schemas: readonly unknown[] | undefined, fallback?: AgentArgsFallback): unknown[];
34
34
  //#endregion
35
+ //#region src/node/diagnostics.d.ts
36
+ declare const diagnostics: import("nostics").Diagnostics<{
37
+ readonly DF0006: {
38
+ readonly why: (p: {
39
+ name: string;
40
+ }) => string;
41
+ };
42
+ readonly DF0007: {
43
+ readonly why: "AsyncLocalStorage is not set, it likely to be an internal bug of the Devframe foundation";
44
+ };
45
+ readonly DF0008: {
46
+ readonly why: (p: {
47
+ distDir: string;
48
+ }) => string;
49
+ };
50
+ readonly DF0012: {
51
+ readonly why: (p: {
52
+ filepath: string;
53
+ }) => string;
54
+ };
55
+ readonly DF0013: {
56
+ readonly why: (p: {
57
+ key: string;
58
+ }) => string;
59
+ };
60
+ readonly DF0014: {
61
+ readonly why: (p: {
62
+ name: string;
63
+ }) => string;
64
+ readonly fix: "Provide a short description (~1–3 sentences) explaining what the tool does and when agents should invoke it.";
65
+ };
66
+ readonly DF0015: {
67
+ readonly why: (p: {
68
+ id: string;
69
+ }) => string;
70
+ readonly fix: "Tool ids must be unique across RPC functions with an `agent` field and tools registered via `ctx.agent.registerTool()`.";
71
+ };
72
+ readonly DF0016: {
73
+ readonly why: (p: {
74
+ id: string;
75
+ }) => string;
76
+ };
77
+ readonly DF0017: {
78
+ readonly why: (p: {
79
+ transport: string;
80
+ reason: string;
81
+ }) => string;
82
+ };
83
+ readonly DF0029: {
84
+ readonly why: (p: {
85
+ channel: string;
86
+ id: string;
87
+ dropped: number;
88
+ }) => string;
89
+ readonly fix: "The consumer is too slow for the producer. Raise `highWaterMark` on the subscription, slow the producer, or batch chunks.";
90
+ };
91
+ readonly DF0030: {
92
+ readonly why: (p: {
93
+ channel: string;
94
+ id: string;
95
+ }) => string;
96
+ readonly fix: "Ensure the server-side producer is running before clients subscribe, or check for typos in the stream id.";
97
+ };
98
+ readonly DF0031: {
99
+ readonly why: (p: {
100
+ channel: string;
101
+ id: string;
102
+ }) => string;
103
+ readonly fix: "Track the producer lifecycle — guard writes with the `stream.signal.aborted` flag.";
104
+ };
105
+ readonly DF0032: {
106
+ readonly why: (p: {
107
+ channel: string;
108
+ }) => string;
109
+ readonly fix: "Each channel name must be unique within a context. Pick a different name or reuse the existing channel handle.";
110
+ };
111
+ readonly DF0033: {
112
+ readonly why: (p: {
113
+ id: string;
114
+ reason: string;
115
+ }) => string;
116
+ readonly fix: "Verify the bridge port is free and the devframe setup function does not throw. Pin a port via `cli.port` / `cli.portRange` on the definition, or via `port` on `devframeViteBridge` (`@devframes/vite`).";
117
+ };
118
+ readonly DF0034: {
119
+ readonly why: (p: {
120
+ namespace: string;
121
+ name: string;
122
+ }) => string;
123
+ readonly fix: "A scoped context auto-namespaces ids. Pass a bare name without a \":\" separator (e.g. `register({ name: \"get-cwd\" })`), or use the unscoped `ctx.base.rpc.register` for a fully-qualified name.";
124
+ };
125
+ readonly DF0035: {
126
+ readonly why: (p: {
127
+ filepath: string;
128
+ }) => string;
129
+ readonly fix: "Check that the storage directory is writable and has free space.";
130
+ };
131
+ readonly DF0036: {
132
+ readonly why: (p: {
133
+ name: string;
134
+ }) => string;
135
+ readonly fix: "Complete the auth handshake (or connect with a static/pre-shared token) before calling a trusted method. Untrusted callers may only call `anonymous:`-prefixed methods — see `isAnonymousRpcMethod`.";
136
+ };
137
+ readonly DF0037: {
138
+ readonly why: (p: {
139
+ id: string;
140
+ }) => string;
141
+ readonly fix: "Service ids are unique per context. Revoke the existing provider first (the `provide()` call returns a revoke function), or namespace the id with your plugin id to avoid collisions.";
142
+ };
143
+ readonly DF0042: {
144
+ readonly why: (p: {
145
+ id: string;
146
+ }) => string;
147
+ readonly fix: "Pass `{ force: true }` to `createBuild()` if the degraded export is still useful to you, or drop `capabilities.build: false` on the definition.";
148
+ };
149
+ readonly DF0045: {
150
+ readonly why: (p: {
151
+ file: string;
152
+ reason: string;
153
+ }) => string;
154
+ readonly fix: "Discovery tooling (`devframe connect`) will not see this instance. Check that the registry directory is writable, point `DEVFRAME_INSTANCES_DIR` at a writable directory, or set `DEVFRAME_DISABLE_INSTANCE_REGISTRY=1` to opt out of registration.";
155
+ };
156
+ readonly DF0046: {
157
+ readonly why: (p: {
158
+ reason: string;
159
+ }) => string;
160
+ readonly fix: "Install it next to devframe (e.g. `npm install @modelcontextprotocol/server`) and run `devframe connect` again.";
161
+ };
162
+ readonly DF0047: {
163
+ readonly why: (p: {
164
+ name: string;
165
+ id: string;
166
+ existing: string;
167
+ }) => string;
168
+ readonly fix: "Wire names derive from tool ids (characters outside [a-zA-Z0-9_-] become \"_\"). Rename one of the two ids so they sanitize to distinct names.";
169
+ };
170
+ readonly DF0048: {
171
+ readonly why: (p: {
172
+ key: string;
173
+ }) => string;
174
+ readonly fix: "Call the devframe_state_read tool without arguments to list the available keys, then retry with one of them.";
175
+ };
176
+ readonly DF0049: {
177
+ readonly why: "The devframe_connect_call-tool tool requires { port: number, tool: string }.";
178
+ readonly fix: "Call devframe_connect_list-instances to get the port and tool names, then retry.";
179
+ };
180
+ readonly DF0050: {
181
+ readonly why: (p: {
182
+ port: number;
183
+ }) => string;
184
+ readonly fix: "Call devframe_connect_list-instances for the current instance list — the instance may have stopped or changed port.";
185
+ };
186
+ readonly DF0051: {
187
+ readonly why: (p: {
188
+ port: number;
189
+ }) => string;
190
+ readonly fix: "Restart the instance with the --mcp flag (or set `cli.mcp: true` on its definition) to expose its tools, then list instances again.";
191
+ };
192
+ readonly DF0052: {
193
+ readonly why: (p: {
194
+ host: string;
195
+ port: number;
196
+ reason: string;
197
+ }) => string;
198
+ readonly fix: "The port is likely already taken by another process (often a previous devframe instance). Free it, or pick another via `--port`, `cli.port` / `cli.portRange` on the definition, or `port` on `devframeViteBridge` (`@devframes/vite`). The original node error is available as `error.cause`.";
199
+ };
200
+ readonly DF0054: {
201
+ readonly why: (p: {
202
+ id: string;
203
+ }) => string;
204
+ readonly fix: "Await `instance.ready` (or any request through `instance.handler`) before reading `connectionMeta()` — the WebSocket binding it describes is only known once initialization completes.";
205
+ };
206
+ readonly DF0055: {
207
+ readonly why: (p: {
208
+ tier: string;
209
+ }) => string;
210
+ readonly fix: "Drop `handleUpgrade`/`attach` and let the configured transport serve the socket, or remove `server` / `ws.port` / `ws.sidecar` from the options so the instance leaves the binding to you.";
211
+ };
212
+ readonly DF0056: {
213
+ readonly why: (p: {
214
+ url: string;
215
+ }) => string;
216
+ readonly fix: "The server behind `ws.url` owns the transport (and its auth). Drop `ws.url` to have the instance serve the socket, or pair it with `server` / `ws.port` / `ws.sidecar` for the tunnel pattern, where a local binding is advertised through the relay.";
217
+ };
218
+ readonly DF0057: {
219
+ readonly why: () => string;
220
+ readonly fix: "Clients connect over the SSE endpoint instead — no upgrade wiring is needed. Remove `ws: false` if the instance should serve a WebSocket after all.";
221
+ };
222
+ readonly DF0058: {
223
+ readonly why: (p: {
224
+ id: string;
225
+ }) => string;
226
+ readonly fix: "Pass `{ force: true }` to `createDevServer()` to run it anyway, or drop `capabilities.dev: false` on the definition.";
227
+ };
228
+ readonly DF0059: {
229
+ readonly why: (p: {
230
+ package: string;
231
+ version: string;
232
+ provider: string;
233
+ reason: string;
234
+ }) => string;
235
+ readonly fix: "Requests fall back to probing the provider per file. Check network access to the provider, or install the assets package locally so no listing is needed.";
236
+ };
237
+ readonly DF0060: {
238
+ readonly why: (p: {
239
+ url: string;
240
+ package: string;
241
+ reason: string;
242
+ }) => string;
243
+ readonly fix: "Install the assets package locally (`npm install <package>`) to serve it with zero network, or check network access to the configured provider.";
244
+ };
245
+ readonly DF0061: {
246
+ readonly why: (p: {
247
+ package: string;
248
+ required: string;
249
+ installed: string;
250
+ }) => string;
251
+ readonly fix: "Align the installed assets package with the version its node package declares — they are published in lockstep.";
252
+ };
253
+ readonly DF0062: {
254
+ readonly why: (p: {
255
+ package: string;
256
+ required: string;
257
+ installed: string;
258
+ }) => string;
259
+ readonly fix: "Install the exact declared version to serve byte-identical assets.";
260
+ };
261
+ readonly DF0063: {
262
+ readonly why: (p: {
263
+ filepath: string;
264
+ reason: string;
265
+ }) => string;
266
+ readonly fix: "The response was still served; only caching failed. Check that the cache directory is writable and has free space.";
267
+ };
268
+ readonly DF0064: {
269
+ readonly why: (p: {
270
+ package: string;
271
+ version: string;
272
+ reason: string;
273
+ }) => string;
274
+ readonly fix: "Static builds need every asset file up front. Install the assets package locally, or ensure the provider (and its file-listing API) is reachable during the build.";
275
+ };
276
+ readonly DF0065: {
277
+ readonly why: (p: {
278
+ field: "package" | "version";
279
+ value: string;
280
+ }) => string;
281
+ readonly fix: "A remote-assets `package` must be a valid npm package name and `version` an exact semver version (e.g. `1.2.3`) — they are interpolated into CDN URLs and the cache path.";
282
+ };
283
+ }, readonly [(d: import("nostics").Diagnostic, { method }?: {
284
+ method?: "log" | "warn" | "error";
285
+ }) => void]>;
286
+ //#endregion
35
287
  //#region src/node/host-agent.d.ts
36
288
  /**
37
289
  * Framework-neutral host aggregating the agent-exposed surface of a
38
290
  * devframe. Auto-discovers RPC functions with an `agent` field from
39
291
  * `ctx.rpc.definitions`, and accepts plugin-registered tools /
40
292
  * resources via `registerTool` / `registerResource`.
41
- *
42
- * @experimental
43
293
  */
44
294
  declare class DevframeAgentHost implements DevframeAgentHost$1 {
45
295
  readonly context: DevframeNodeContext;
@@ -71,8 +321,6 @@ declare class DevframeAgentHost implements DevframeAgentHost$1 {
71
321
  //#endregion
72
322
  //#region src/node/host-h3.d.ts
73
323
  interface CreateH3DevframeHostOptions {
74
- /** The h3 app instance — registered once the CLI adapter lands. */
75
- app?: unknown;
76
324
  /**
77
325
  * Host the standalone server listens on, e.g. `http://localhost:9999`.
78
326
  * Consumed by `resolveOrigin` for dock entries that need an absolute URL.
@@ -81,11 +329,13 @@ interface CreateH3DevframeHostOptions {
81
329
  */
82
330
  origin: string | (() => string);
83
331
  /**
84
- * Register a static-file handler at `base` serving files from `distDir`.
85
- * Wired into the h3 app once the CLI adapter lands (commit 5). For now
86
- * the CLI isn't running, so the default is a no-op.
332
+ * Register a static-file handler at `base` serving files from `source` —
333
+ * a local directory or a resolved remote-assets back-proxy store (both
334
+ * accepted by `devframe/utils/serve-static`). `mountStatic` forwards to
335
+ * it; when omitted the host serves no SPA (bridge mode, where the SPA is
336
+ * hosted elsewhere).
87
337
  */
88
- mount?: (base: string, distDir: string) => void | Promise<void>;
338
+ mount?: (base: string, source: string | RemoteAssetsStore) => void | Promise<void>;
89
339
  /**
90
340
  * Namespace for storage paths returned by `getStorageDir`. Workspace
91
341
  * state (committable) lives under `${workspaceRoot}/.devframe/`, project
@@ -114,7 +364,6 @@ declare function normalizeHttpServerUrl(host: string, port: number | string): st
114
364
  * The per-connection `serialize`/`deserialize` pair for a live RPC wire.
115
365
  *
116
366
  * @internal
117
- * implementations; not part of the stable public API.
118
367
  */
119
368
  interface RpcWireCodec {
120
369
  serialize: (msg: any) => string;
@@ -130,7 +379,6 @@ interface RpcWireCodec {
130
379
  * don't collide across connections.
131
380
  *
132
381
  * @internal
133
- * implementations; not part of the stable public API.
134
382
  */
135
383
  declare function createRpcWireCodec(definitions?: ReadonlyMap<string, Pick<RpcFunctionDefinitionAny, 'jsonSerializable'>>): RpcWireCodec;
136
384
  /**
@@ -140,11 +388,10 @@ declare function createRpcWireCodec(definitions?: ReadonlyMap<string, Pick<RpcFu
140
388
  * handed to birpc proper.
141
389
  *
142
390
  * @internal
143
- * implementations; not part of the stable public API.
144
391
  */
145
392
  declare function peekRpcWireFrame(raw: string): {
146
393
  t?: string;
147
394
  i?: string;
148
395
  };
149
396
  //#endregion
150
- export { type AgentArgsFallback, type ContextRpcServer, type CreateContextRpcServerOptions, CreateH3DevframeHostOptions, type CreateInstanceShellOptions, DevframeAgentHost, type DevframeInstanceRecord, type DevframeInstanceRegistration, type InstanceRegisterConfig, type InstanceShell, type InstanceShellApi, type InstanceShellInit, type InstanceShellInternals, type InstanceWsTier, type RpcWireCodec, type StartedServer, coerceAgentPositionalArgs, createContextRpcServer, createH3DevframeHost, createInstanceShell, createRpcWireCodec, listLiveDevframeInstances, normalizeHttpServerUrl, peekRpcWireFrame, registerDevframeInstance, resolveInstanceRegister, samePath };
397
+ export { type AgentArgsFallback, type ContextRpcServer, type CreateContextRpcServerOptions, CreateH3DevframeHostOptions, type CreateInstanceShellOptions, DevframeAgentHost, type DevframeInstanceRecord, type DevframeInstanceRegistration, type InstanceRegisterConfig, type InstanceShell, type InstanceShellApi, type InstanceShellInit, type InstanceShellInternals, type InstanceWsTier, type RpcWireCodec, type StartedServer, coerceAgentPositionalArgs, createContextRpcServer, createH3DevframeHost, createInstanceShell, createRpcWireCodec, diagnostics, listLiveDevframeInstances, normalizeBasePath, normalizeHttpServerUrl, peekRpcWireFrame, registerDevframeInstance, resolveBasePath, resolveInstanceRegister, samePath };
@@ -1,7 +1,9 @@
1
- import { n as peekRpcWireFrame, t as createRpcWireCodec } from "../wire-codec-9VhIKnyp.mjs";
2
- import { n as coerceAgentPositionalArgs, t as DevframeAgentHost } from "../host-agent-CpbAoqBx.mjs";
3
- import { t as createH3DevframeHost } from "../host-h3-CzCZwtuV.mjs";
4
- import { i as registerDevframeInstance, n as listLiveDevframeInstances } from "../instance-registry-BQqGoDO9.mjs";
5
- import { i as normalizeHttpServerUrl, n as resolveInstanceRegister, r as samePath, t as createInstanceShell } from "../instance-shell-KRdee1QF.mjs";
6
- import { t as createContextRpcServer } from "../rpc-core-CqcJkAu9.mjs";
7
- export { DevframeAgentHost, coerceAgentPositionalArgs, createContextRpcServer, createH3DevframeHost, createInstanceShell, createRpcWireCodec, listLiveDevframeInstances, normalizeHttpServerUrl, peekRpcWireFrame, registerDevframeInstance, resolveInstanceRegister, samePath };
1
+ import { n as peekRpcWireFrame, t as createRpcWireCodec } from "../wire-codec-0K-o5MYW.mjs";
2
+ import { t as diagnostics } from "../diagnostics-DOQPnQmX.mjs";
3
+ import { n as coerceAgentPositionalArgs, t as DevframeAgentHost } from "../host-agent-xLCSe65D.mjs";
4
+ import { n as resolveBasePath, t as normalizeBasePath } from "../_shared-CbZ_yhbz.mjs";
5
+ import { t as createH3DevframeHost } from "../host-h3-Crkzm42q.mjs";
6
+ import { i as registerDevframeInstance, n as listLiveDevframeInstances } from "../instance-registry-WvQkt42E.mjs";
7
+ import { i as normalizeHttpServerUrl, n as resolveInstanceRegister, r as samePath, t as createInstanceShell } from "../instance-shell-CMFyszWJ.mjs";
8
+ import { t as createContextRpcServer } from "../rpc-core-DMTe-hLo.mjs";
9
+ export { DevframeAgentHost, coerceAgentPositionalArgs, createContextRpcServer, createH3DevframeHost, createInstanceShell, createRpcWireCodec, diagnostics, listLiveDevframeInstances, normalizeBasePath, normalizeHttpServerUrl, peekRpcWireFrame, registerDevframeInstance, resolveBasePath, resolveInstanceRegister, samePath };
@@ -1,3 +1,3 @@
1
- import { p as DevframeAuthHandler } from "../devframe-Bdd9YXTy.mjs";
2
- import { a as verifyAuthToken, i as refreshTempAuthCode, n as exchangeTempAuthCode, o as revokeActiveConnectionsForToken, r as getTempAuthCode, s as revokeAuthToken, t as buildOtpAuthUrl } from "../index-CZRd2K1C.mjs";
1
+ import { u as DevframeAuthHandler } from "../devframe-DJMg0WLe.mjs";
2
+ import { a as verifyAuthToken, i as refreshTempAuthCode, n as exchangeTempAuthCode, o as revokeActiveConnectionsForToken, r as getTempAuthCode, s as revokeAuthToken, t as buildOtpAuthUrl } from "../index-CB-fSUyn.mjs";
3
3
  export { DevframeAuthHandler, buildOtpAuthUrl, exchangeTempAuthCode, getTempAuthCode, refreshTempAuthCode, revokeActiveConnectionsForToken, revokeAuthToken, verifyAuthToken };
@@ -1,3 +1,3 @@
1
1
  import { n as revokeAuthToken, t as revokeActiveConnectionsForToken } from "../revoke-DZbJ7Cl0.mjs";
2
- import { a as verifyAuthToken, i as refreshTempAuthCode, n as exchangeTempAuthCode, r as getTempAuthCode, t as buildOtpAuthUrl } from "../state-BeUHDDjk.mjs";
2
+ import { a as verifyAuthToken, i as refreshTempAuthCode, n as exchangeTempAuthCode, r as getTempAuthCode, t as buildOtpAuthUrl } from "../state-Cc1IeSmQ.mjs";
3
3
  export { buildOtpAuthUrl, exchangeTempAuthCode, getTempAuthCode, 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-CSCwoABx.mjs";
2
- import { n as normalizeBasePath, r as resolveBasePath } from "../_shared-DmpWW-HH.mjs";
1
+ import { a as internalContextMap, i as getInternalContext, n as InternalAnonymousAuthStorage, r as RemoteTokenRecord, t as DevframeInternalContext } from "../context-B3YUu_95.mjs";
2
+ import { n as normalizeBasePath, r as resolveBasePath } from "../_shared-BPmX9fqK.mjs";
3
3
  export { type DevframeInternalContext, type InternalAnonymousAuthStorage, type RemoteTokenRecord, getInternalContext, internalContextMap, normalizeBasePath, resolveBasePath };
@@ -1,3 +1,3 @@
1
- import { n as resolveBasePath, t as normalizeBasePath } from "../_shared-CttmCMBi.mjs";
2
- import { n as internalContextMap, t as getInternalContext } from "../context-C33rR7n0.mjs";
1
+ import { n as resolveBasePath, t as normalizeBasePath } from "../_shared-CbZ_yhbz.mjs";
2
+ import { n as internalContextMap, t as getInternalContext } from "../context-xdynGSLP.mjs";
3
3
  export { getInternalContext, internalContextMap, normalizeBasePath, resolveBasePath };
@@ -1,6 +1,6 @@
1
- import { gt as SharedState, q as RpcFunctionsHost, x as DevframeNodeContext, z as DevframeHost } from "../devframe-Bdd9YXTy.mjs";
2
- import "../index-DSCq4M4q.mjs";
3
- import { v as RpcFunctionDefinitionAny } from "../types-CnJSgRVa.mjs";
1
+ import { B as RpcFunctionsHost, P as DevframeHost, g as DevframeNodeContext, lt as SharedState } from "../devframe-DJMg0WLe.mjs";
2
+ import "../index-tdrk1bzV.mjs";
3
+ import { v as RpcFunctionDefinitionAny } from "../types-Djq7CBXh.mjs";
4
4
  import { BirpcGroup } from "birpc";
5
5
  //#region src/node/context.d.ts
6
6
  interface CreateHostContextOptions {
@@ -1,3 +1,3 @@
1
- import { t as createStorage } from "../storage-BcmVEJRc.mjs";
2
- import { t as createHostContext } from "../context-Du11TLcO.mjs";
1
+ import { t as createHostContext } from "../context-CEe4PBz1.mjs";
2
+ import { t as createStorage } from "../storage-CYye7P7L.mjs";
3
3
  export { createHostContext, createStorage };