devframe 1.3.0 → 1.3.2

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 (153) hide show
  1. package/dist/{_shared-C06DH07o.mjs → _shared-BGb9aDxr.mjs} +7 -9
  2. package/dist/{_shared-DbO-OtUC.d.mts → _shared-CnKu5myY.d.mts} +4 -4
  3. package/dist/adapters/build.d.mts +3 -5
  4. package/dist/adapters/build.mjs +7 -8
  5. package/dist/adapters/cac.d.mts +1 -3
  6. package/dist/adapters/cac.mjs +5 -7
  7. package/dist/adapters/dev.d.mts +6 -8
  8. package/dist/adapters/dev.mjs +2 -2
  9. package/dist/adapters/embedded.d.mts +2 -4
  10. package/dist/adapters/embedded.mjs +1 -2
  11. package/dist/adapters/initiate.d.mts +9 -9
  12. package/dist/adapters/initiate.mjs +1 -2
  13. package/dist/adapters/mcp.d.mts +3 -3
  14. package/dist/adapters/mcp.mjs +1 -2
  15. package/dist/{agentic-D6HePbWg.d.mts → agentic-CCstJ5yv.d.mts} +1 -3
  16. package/dist/{browser-agent-Pu-FLk6I.mjs → browser-agent-DmAotroz.mjs} +1 -2
  17. package/dist/{browser-agent-rpc-KH4HHvHf.mjs → browser-agent-rpc-CS80Sphv.mjs} +3 -5
  18. package/dist/cli/main.d.mts +1 -3
  19. package/dist/cli/main.mjs +3 -4
  20. package/dist/client/index.d.mts +6 -30
  21. package/dist/client/index.mjs +47 -72
  22. package/dist/{client-agent-DuLhUF6d.mjs → client-agent-qNMgDUev.mjs} +7 -12
  23. package/dist/constants.d.mts +1 -5
  24. package/dist/constants.mjs +2 -3
  25. package/dist/{context-BY72d2gV.mjs → context-BTxC4QrJ.mjs} +4 -5
  26. package/dist/{context-CmSDJAEI.mjs → context-C5FcbWQi.mjs} +25 -41
  27. package/dist/{context-eIUOSrKu.d.mts → context-CsdPs3po.d.mts} +1 -3
  28. package/dist/{context-Dko5QFWF.d.mts → context-WxTq6kqb.d.mts} +54 -42
  29. package/dist/{crypto-token-TVbGGFuj.mjs → crypto-token-CUhPE_ei.mjs} +1 -2
  30. package/dist/{define-BLWPsH6y.mjs → define-C8h-fyD3.mjs} +1 -2
  31. package/dist/{dev-C-wQTIrV.mjs → dev-DaHYh5YK.mjs} +10 -11
  32. package/dist/{diagnostics-BJjvKfVK.mjs → diagnostics-DC1-WcvN.mjs} +6 -3
  33. package/dist/{dist-CO98PBnQ.mjs → dist-BWGpvt-z.mjs} +1 -2
  34. package/dist/{dist-CZXfGEkd.mjs → dist-DJydMELP.mjs} +3 -10
  35. package/dist/{events-0wDwalmL.mjs → events-qWCKwD8-.mjs} +1 -2
  36. package/dist/{handler-DmaAfpGq.mjs → handler-DkLlj3-B.mjs} +3 -5
  37. package/dist/{hash-DdPnc4k3.mjs → hash-DHqpWeMO.mjs} +4 -8
  38. package/dist/{host-h3-BROI6SQ4.mjs → host-h3-D1uj5EM8.mjs} +1 -2
  39. package/dist/{import-runtime-module-BzlEQ9PI.mjs → import-runtime-module-DsdqJ1gK.mjs} +2 -3
  40. package/dist/in-page-channel/index.d.mts +2 -12
  41. package/dist/in-page-channel/index.mjs +10 -16
  42. package/dist/{index-CeEtxDmK.d.mts → index-BIRF0E5l.d.mts} +0 -2
  43. package/dist/{index-Bia1vKjL.d.mts → index-BKu9BxcT.d.mts} +0 -2
  44. package/dist/{index-DuEm0sDH.d.mts → index-D0qrBkhO.d.mts} +1 -15
  45. package/dist/{index-BMj-o_sP.d.mts → index-HMJPlexc.d.mts} +2 -6
  46. package/dist/index.d.mts +7 -9
  47. package/dist/index.mjs +3 -4
  48. package/dist/{instance-registry-vlz81P9X.mjs → instance-registry-CmZfF5u3.mjs} +4 -10
  49. package/dist/{instance-shell-yfm1AYk8.d.mts → instance-shell-Bujp0BhE.d.mts} +5 -9
  50. package/dist/{instance-shell-CBgy8YzK.mjs → instance-shell-Dk2SejFT.mjs} +38 -17
  51. package/dist/{interactive-auth-BsqLFXw8.mjs → interactive-auth-BURwIAvE.mjs} +6 -8
  52. package/dist/internal/index.d.mts +15 -29
  53. package/dist/internal/index.mjs +13 -15
  54. package/dist/{mcp-content-wcQxvrrW.d.mts → mcp-content-CQQBt2An.d.mts} +1 -3
  55. package/dist/{mcp-content-DN3O212x.mjs → mcp-content-CqU8yaF7.mjs} +1 -2
  56. package/dist/{mrmime-40h5OOIp.mjs → mrmime-y_XyiVcd.mjs} +1 -2
  57. package/dist/node/auth.d.mts +2 -2
  58. package/dist/node/auth.mjs +2 -2
  59. package/dist/node/hub-internals.d.mts +2 -2
  60. package/dist/node/hub-internals.mjs +2 -2
  61. package/dist/node/index.d.mts +2 -6
  62. package/dist/node/index.mjs +2 -2
  63. package/dist/{nostics-DWvukRwa.d.mts → nostics-Dgwh7ytT.d.mts} +0 -2
  64. package/dist/{nostics-D0PvLZsn.mjs → nostics-InlX4tmd.mjs} +2 -4
  65. package/dist/{origin-DZit9g29.mjs → origin-Ck7mLbKU.mjs} +1 -2
  66. package/dist/{origin-CY6BBHOy.d.mts → origin-D5i7K_Zb.d.mts} +0 -2
  67. package/dist/recipes/interactive-auth.d.mts +3 -5
  68. package/dist/recipes/interactive-auth.mjs +1 -2
  69. package/dist/{remote-assets-eBvSKZMS.d.mts → remote-assets-5AQMHZnV.d.mts} +0 -2
  70. package/dist/{remote-assets-DOva7l3s.mjs → remote-assets-DhonNeo_.mjs} +5 -8
  71. package/dist/{revoke-CeQUo6KI.mjs → revoke-D6KA3vwr.mjs} +2 -3
  72. package/dist/{rolldown-runtime-B4iAMlE-.mjs → rolldown-runtime-DYf_mQCB.mjs} +2 -3
  73. package/dist/rpc/client.d.mts +2 -4
  74. package/dist/rpc/client.mjs +2 -3
  75. package/dist/rpc/dump.d.mts +3 -11
  76. package/dist/rpc/dump.mjs +1 -2
  77. package/dist/rpc/index.d.mts +3 -3
  78. package/dist/rpc/index.mjs +6 -8
  79. package/dist/rpc/server.d.mts +2 -4
  80. package/dist/rpc/server.mjs +2 -3
  81. package/dist/rpc/transports/sse-client.d.mts +1 -1
  82. package/dist/rpc/transports/sse-client.mjs +2 -3
  83. package/dist/rpc/transports/sse-server.d.mts +5 -7
  84. package/dist/rpc/transports/sse-server.mjs +4 -5
  85. package/dist/rpc/transports/ws-bun.d.mts +3 -5
  86. package/dist/rpc/transports/ws-bun.mjs +2 -3
  87. package/dist/rpc/transports/ws-client.d.mts +1 -1
  88. package/dist/rpc/transports/ws-client.mjs +2 -3
  89. package/dist/rpc/transports/ws-deno.d.mts +3 -5
  90. package/dist/rpc/transports/ws-deno.mjs +2 -3
  91. package/dist/rpc/transports/ws-server.d.mts +3 -3
  92. package/dist/rpc/transports/ws-server.mjs +5 -6
  93. package/dist/{rpc-core-oXIq2hjO.mjs → rpc-core-CDUizUQB.mjs} +4 -5
  94. package/dist/{rpc-core-BQ1mesqZ.d.mts → rpc-core-CFwyV10r.d.mts} +5 -7
  95. package/dist/{serialization-BhuOoL80.mjs → serialization-iiTQ7n21.mjs} +3 -5
  96. package/dist/{services-install-D5YUwFXW.mjs → services-install-DCuDzMJ-.mjs} +1 -2
  97. package/dist/{session-DPfj6zQG.mjs → session-BjvoLH3r.mjs} +1 -2
  98. package/dist/{session-r6PDixP6.d.mts → session-Y9R6tqg4.d.mts} +0 -2
  99. package/dist/{shared-state-Cc-Jrhma.mjs → shared-state-COV7NCbd.mjs} +4 -6
  100. package/dist/{sse-client-DNdscfu_.d.mts → sse-client-B2PrSz-H.d.mts} +2 -4
  101. package/dist/{state-W4wI6X5X.mjs → state-B_yjfeqo.mjs} +3 -5
  102. package/dist/{storage-BzAr-S6I.mjs → storage-DpJ52UB_.mjs} +3 -5
  103. package/dist/{structured-clone-CbAV5rFI.mjs → structured-clone-B1N_XQvA.mjs} +2 -4
  104. package/dist/{structured-clone-CgtQ61SA.mjs → structured-clone-D1dOCZvc.mjs} +2 -4
  105. package/dist/{tool-input-CES3Pc4y.mjs → tool-input-CcCgJ8jq.mjs} +6 -12
  106. package/dist/types/index.d.mts +6 -6
  107. package/dist/{types-BmDbfHCx.d.mts → types-844OBepb.d.mts} +1 -5
  108. package/dist/utils/agent-tool-name.d.mts +1 -3
  109. package/dist/utils/agent-tool-name.mjs +1 -2
  110. package/dist/utils/colors.d.mts +1 -3
  111. package/dist/utils/colors.mjs +1 -2
  112. package/dist/utils/crypto-token.d.mts +1 -3
  113. package/dist/utils/crypto-token.mjs +1 -2
  114. package/dist/utils/debounce.d.mts +0 -2
  115. package/dist/utils/debounce.mjs +1 -2
  116. package/dist/utils/events.d.mts +2 -4
  117. package/dist/utils/events.mjs +1 -2
  118. package/dist/utils/get-port.d.mts +0 -2
  119. package/dist/utils/get-port.mjs +1 -2
  120. package/dist/utils/hash.d.mts +1 -3
  121. package/dist/utils/hash.mjs +1 -2
  122. package/dist/utils/launch-editor.d.mts +1 -3
  123. package/dist/utils/launch-editor.mjs +25 -37
  124. package/dist/utils/nanoid.d.mts +1 -3
  125. package/dist/utils/nanoid.mjs +1 -2
  126. package/dist/utils/nostics.d.mts +1 -1
  127. package/dist/utils/nostics.mjs +1 -2
  128. package/dist/utils/open.d.mts +1 -3
  129. package/dist/utils/open.mjs +1 -2
  130. package/dist/utils/origin.d.mts +1 -1
  131. package/dist/utils/origin.mjs +1 -2
  132. package/dist/utils/remote-assets.d.mts +2 -4
  133. package/dist/utils/remote-assets.mjs +1 -2
  134. package/dist/utils/serve-static.d.mts +2 -4
  135. package/dist/utils/serve-static.mjs +3 -4
  136. package/dist/utils/shared-state.d.mts +1 -1
  137. package/dist/utils/shared-state.mjs +1 -2
  138. package/dist/utils/simple-schema.d.mts +1 -3
  139. package/dist/utils/simple-schema.mjs +1 -2
  140. package/dist/utils/streaming-channel.d.mts +1 -1
  141. package/dist/utils/streaming-channel.mjs +1 -2
  142. package/dist/utils/structured-clone.d.mts +1 -3
  143. package/dist/utils/structured-clone.mjs +1 -2
  144. package/dist/utils/url.d.mts +1 -3
  145. package/dist/utils/url.mjs +1 -2
  146. package/dist/utils/when.d.mts +1 -3
  147. package/dist/utils/when.mjs +2 -4
  148. package/dist/{validation-CMfDAti3.mjs → validation-Cjy1P58H.mjs} +7 -13
  149. package/dist/{wire-codec-B1W3zH3L.mjs → wire-codec-BdngvzfH.mjs} +3 -4
  150. package/dist/{write-DK7rBUN3.mjs → write-3miSvPaD.mjs} +10 -16
  151. package/dist/{ws-client-6Mrz6eC4.d.mts → ws-client-lqOeANcn.d.mts} +2 -4
  152. package/dist/{ws-server-y2R76aSW.d.mts → ws-server-CYHkeyA-.d.mts} +3 -5
  153. package/package.json +8 -8
@@ -1,6 +1,5 @@
1
1
  import { AnyDiagnosticReporter, AnyDiagnosticReporter as AnyDiagnosticReporter$1, ConsoleMethod, ConsoleReporterOptions, Diagnostic, Diagnostic as Diagnostic$1, DiagnosticCallParams, DiagnosticDefinition, DiagnosticDefinition as DiagnosticDefinition$1, DiagnosticHandle, DiagnosticInit, DiagnosticReporter, Diagnostics, Diagnostics as Diagnostics$1, createConsoleReporter, defineProdDiagnostics, formatDiagnostic } from "nostics";
2
2
  import { ansiFormatter } from "nostics/formatters/ansi";
3
- //#region src/utils/nostics.d.ts
4
3
  /**
5
4
  * The reporter every {@link defineDiagnostics} call below wires in ahead of
6
5
  * any caller-supplied ones: prints the diagnostic through devframe's own
@@ -38,5 +37,4 @@ declare function defineDiagnostics<const Codes extends Record<string, Diagnostic
38
37
  * dependency.
39
38
  */
40
39
  type DevframeDiagnostics<Codes extends Record<string, DiagnosticDefinition>, Reporters extends readonly AnyDiagnosticReporter[] = []> = Diagnostics<Codes, readonly [typeof devframeReporter, ...Reporters]>;
41
- //#endregion
42
40
  export { formatDiagnostic as _, DevframeDiagnostics as a, DiagnosticDefinition$1 as c, DiagnosticReporter as d, Diagnostics$1 as f, defineProdDiagnostics as g, defineDiagnostics as h, DevframeDefineDiagnosticsOptions as i, DiagnosticHandle as l, createConsoleReporter as m, ConsoleMethod as n, Diagnostic$1 as o, ansiFormatter as p, ConsoleReporterOptions as r, DiagnosticCallParams as s, AnyDiagnosticReporter$1 as t, DiagnosticInit as u };
@@ -1,6 +1,6 @@
1
1
  import { Diagnostic, createConsoleReporter, defineDiagnostics, defineProdDiagnostics, formatDiagnostic } from "nostics";
2
2
  import { ansiFormatter, ansiFormatter as ansiFormatter$1 } from "nostics/formatters/ansi";
3
- //#region src/utils/colors.ts
3
+ // src/utils/colors.ts
4
4
  function makeColor(open, close) {
5
5
  const o = `\x1B[${open}m`;
6
6
  const c = `\x1B[${close}m`;
@@ -29,8 +29,7 @@ const colors = {
29
29
  reset: makeColor(0, 0),
30
30
  underline: makeColor(4, 24)
31
31
  };
32
- //#endregion
33
- //#region src/utils/nostics.ts
32
+ // src/utils/nostics.ts
34
33
  const formatAnsi = ansiFormatter(colors);
35
34
  /**
36
35
  * The reporter every {@link defineDiagnostics} call below wires in ahead of
@@ -55,5 +54,4 @@ function defineDiagnostics$1(options) {
55
54
  reporters: [devframeReporter, ...options.reporters ?? []]
56
55
  });
57
56
  }
58
- //#endregion
59
57
  export { defineProdDiagnostics as a, defineDiagnostics$1 as i, ansiFormatter$1 as n, formatDiagnostic as o, createConsoleReporter as r, colors as s, Diagnostic as t };
@@ -1,4 +1,4 @@
1
- //#region src/utils/origin.ts
1
+ // src/utils/origin.ts
2
2
  /**
3
3
  * Origin and hostname predicates shared by the RPC transports (the WS upgrade,
4
4
  * SSE, and MCP origin gates) and the instance shell's authentication-link
@@ -76,5 +76,4 @@ function validateOriginCandidate(candidate, allowedOrigins) {
76
76
  if (canonical === "null") return void 0;
77
77
  if (isLoopbackHostname(url.hostname) || allowedOrigins?.includes(canonical)) return canonical;
78
78
  }
79
- //#endregion
80
79
  export { isLoopbackHostname as n, validateOriginCandidate as r, isAllowedOrigin as t };
@@ -1,4 +1,3 @@
1
- //#region src/utils/origin.d.ts
2
1
  /**
3
2
  * Origin and hostname predicates shared by the RPC transports (the WS upgrade,
4
3
  * SSE, and MCP origin gates) and the instance shell's authentication-link
@@ -54,5 +53,4 @@ declare function isAllowedOrigin(origin: string | undefined, allowedOrigins: rea
54
53
  * to reject. Forwarded headers are never consulted.
55
54
  */
56
55
  declare function validateOriginCandidate(candidate: string, allowedOrigins?: readonly string[]): string | undefined;
57
- //#endregion
58
56
  export { validateOriginCandidate as i, isLoopbackAddress as n, isLoopbackHostname as r, isAllowedOrigin as t };
@@ -1,7 +1,6 @@
1
- import { It as DevframeAuthHandler, o as DevframeNodeContext, s as DevframeNodeRpcSession } from "../context-Dko5QFWF.mjs";
2
- import "../index-BMj-o_sP.mjs";
1
+ import { Bt as DevframeAuthHandler, o as DevframeNodeContext, s as DevframeNodeRpcSession } from "../context-WxTq6kqb.mjs";
3
2
  import { ColorFn } from "../utils/colors.mjs";
4
- //#region src/recipes/interactive-auth.d.ts
3
+ import "../index-HMJPlexc.mjs";
5
4
  export interface CreateInteractiveAuthOptions {
6
5
  /**
7
6
  * Static, pre-shared bearer tokens that are always trusted, for CI runs
@@ -95,5 +94,4 @@ export declare function createAuthBanner(options?: CreateAuthBannerOptions): Aut
95
94
  * // the whole handler to `initDevframe` / `initHub` via their `auth` option.
96
95
  * ```
97
96
  */
98
- export declare function createInteractiveAuth(context: DevframeNodeContext, options?: CreateInteractiveAuthOptions): DevframeAuthHandler;
99
- //#endregion
97
+ export declare function createInteractiveAuth(context: DevframeNodeContext, options?: CreateInteractiveAuthOptions): DevframeAuthHandler;
@@ -1,2 +1 @@
1
- import { n as createInteractiveAuth, t as createAuthBanner } from "../interactive-auth-BsqLFXw8.mjs";
2
- export { createAuthBanner, createInteractiveAuth };
1
+ export { t as createAuthBanner, n as createInteractiveAuth } from "../interactive-auth-BURwIAvE.mjs";
@@ -1,4 +1,3 @@
1
- //#region src/types/remote-assets.d.ts
2
1
  /**
3
2
  * A version-locked pointer at browser assets published as their own npm
4
3
  * package (e.g. `@devframes/plugin-git-client`), served through devframe's
@@ -119,5 +118,4 @@ interface RemoteAssetsStore {
119
118
  */
120
119
  materialize: (targetDir: string) => Promise<void>;
121
120
  }
122
- //#endregion
123
121
  export { RemoteAssetsStore as a, RemoteAssetsProviderCustom as i, RemoteAssetsErrorMessage as n, StaticAssetsSource as o, RemoteAssetsProvider as r, RemoteAssets as t };
@@ -1,5 +1,5 @@
1
- import { t as diagnostics } from "./diagnostics-BJjvKfVK.mjs";
2
- import { t as lookup } from "./mrmime-40h5OOIp.mjs";
1
+ import { t as lookup } from "./mrmime-y_XyiVcd.mjs";
2
+ import { t as diagnostics } from "./diagnostics-DC1-WcvN.mjs";
3
3
  import { createRequire } from "node:module";
4
4
  import { mkdir, readFile, rename, rm, stat, writeFile } from "node:fs/promises";
5
5
  import { dirname, extname, isAbsolute, join, normalize, resolve, sep } from "pathe";
@@ -8,7 +8,7 @@ import { formatWithOptions, inspect } from "node:util";
8
8
  import { createReadStream, existsSync } from "node:fs";
9
9
  import { Buffer } from "node:buffer";
10
10
  import { Readable } from "node:stream";
11
- //#region ../../node_modules/.pnpm/obug@3.0.0/node_modules/obug/dist/core.js
11
+ // ../../node_modules/.pnpm/obug@3.0.0/node_modules/obug/dist/core.js
12
12
  /**
13
13
  * Coerce `value`.
14
14
  */
@@ -135,8 +135,7 @@ function enabled(name) {
135
135
  for (const ns of names) if (matchesTemplate(name, ns)) return true;
136
136
  return false;
137
137
  }
138
- //#endregion
139
- //#region ../../node_modules/.pnpm/obug@3.0.0/node_modules/obug/dist/ansi.js
138
+ // ../../node_modules/.pnpm/obug@3.0.0/node_modules/obug/dist/ansi.js
140
139
  let env = {};
141
140
  try {
142
141
  process.env.DEBUG;
@@ -293,8 +292,7 @@ function createDebug(namespace, options) {
293
292
  return createDebug$1(namespace, Object.assign(defaultOptions, { color }, options));
294
293
  }
295
294
  enable(env.DEBUG || "");
296
- //#endregion
297
- //#region src/utils/remote-assets.ts
295
+ // src/utils/remote-assets.ts
298
296
  const debugFetch = createDebug("devframe:remote-assets:fetch");
299
297
  const debugCache = createDebug("devframe:remote-assets:cache");
300
298
  const MANIFEST_FILENAME = ".manifest.json";
@@ -664,5 +662,4 @@ function resolveStaticAssetsSource(source, projectStorageDir, defaultResolveFrom
664
662
  } : source;
665
663
  return resolveInstalled(resolved) ?? createStore(resolved, join(projectStorageDir, ".remote-assets", `${resolved.package.replace(/\//g, "+")}@${resolved.version}`));
666
664
  }
667
- //#endregion
668
665
  export { createDebug as n, resolveStaticAssetsSource as t };
@@ -1,5 +1,5 @@
1
- import { t as DEVFRAME_EVENTS } from "./events-0wDwalmL.mjs";
2
- //#region src/node/auth/revoke.ts
1
+ import { t as DEVFRAME_EVENTS } from "./events-qWCKwD8-.mjs";
2
+ // src/node/auth/revoke.ts
3
3
  /**
4
4
  * Flip `isTrusted` to false on any live WS clients connected with `token`
5
5
  * and broadcast the `auth:revoked` event so they can react.
@@ -32,5 +32,4 @@ async function revokeAuthToken(context, storage, token) {
32
32
  });
33
33
  await revokeActiveConnectionsForToken(context, token);
34
34
  }
35
- //#endregion
36
35
  export { revokeAuthToken as n, revokeActiveConnectionsForToken as t };
@@ -1,12 +1,12 @@
1
1
  import { createRequire } from "node:module";
2
- //#region \0rolldown/runtime.js
2
+ // \0rolldown/runtime.js
3
3
  var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
7
  var __getProtoOf = Object.getPrototypeOf;
8
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
9
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
10
10
  var __exportAll = (all, no_symbols) => {
11
11
  let target = {};
12
12
  for (var name in all) __defProp(target, name, {
@@ -31,5 +31,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
31
31
  enumerable: true
32
32
  }) : target, mod));
33
33
  var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
34
- //#endregion
35
34
  export { __toESM as i, __exportAll as n, __require as r, __commonJSMin as t };
@@ -1,7 +1,5 @@
1
- import { a as ChannelOptions, i as BirpcReturn, r as BirpcOptions } from "../index-Bia1vKjL.mjs";
2
- //#region src/rpc/client.d.ts
1
+ import { a as ChannelOptions, i as BirpcReturn, r as BirpcOptions } from "../index-BKu9BxcT.mjs";
3
2
  export declare function createRpcClient<ServerFunctions extends object = Record<string, never>, ClientFunctions extends object = Record<string, never>>(functions: ClientFunctions, options: {
4
3
  channel: ChannelOptions;
5
4
  rpcOptions?: Partial<BirpcOptions<ServerFunctions, ClientFunctions, boolean>>;
6
- }): BirpcReturn<ServerFunctions, ClientFunctions, false>;
7
- //#endregion
5
+ }): BirpcReturn<ServerFunctions, ClientFunctions, false>;
@@ -1,5 +1,5 @@
1
- import { t as createBirpc } from "../dist-CO98PBnQ.mjs";
2
- //#region src/rpc/client.ts
1
+ import { t as createBirpc } from "../dist-BWGpvt-z.mjs";
2
+ // src/rpc/client.ts
3
3
  function createRpcClient(functions, options) {
4
4
  const { channel, rpcOptions = {} } = options;
5
5
  return createBirpc(functions, {
@@ -9,5 +9,4 @@ function createRpcClient(functions, options) {
9
9
  proxify: false
10
10
  });
11
11
  }
12
- //#endregion
13
12
  export { createRpcClient };
@@ -1,6 +1,5 @@
1
- import { i as BirpcReturn } from "../index-Bia1vKjL.mjs";
2
- import { c as RpcDumpCollectionOptions, f as RpcDumpRecordError, g as RpcFunctionDefinitionAny, i as RpcDefinitionsToFunctions, p as RpcDumpStore, s as RpcDumpClientOptions } from "../types-BmDbfHCx.mjs";
3
- //#region src/rpc/dump/collect.d.ts
1
+ import { i as BirpcReturn } from "../index-BKu9BxcT.mjs";
2
+ import { c as RpcDumpCollectionOptions, f as RpcDumpRecordError, g as RpcFunctionDefinitionAny, i as RpcDefinitionsToFunctions, p as RpcDumpStore, s as RpcDumpClientOptions } from "../types-844OBepb.mjs";
4
3
  export declare function dumpFunctions<T extends readonly RpcFunctionDefinitionAny[]>(definitions: T, context?: any, options?: RpcDumpCollectionOptions): Promise<RpcDumpStore<RpcDefinitionsToFunctions<T>>>;
5
4
  /**
6
5
  * Creates a client that serves pre-computed results from a dump store.
@@ -18,8 +17,6 @@ export declare function createClientFromDump<T extends Record<string, any>>(stor
18
17
  * Note: Only checks the definition itself, not setup results.
19
18
  */
20
19
  export declare function getDefinitionsWithDumps<T extends readonly RpcFunctionDefinitionAny[]>(definitions: T): RpcFunctionDefinitionAny[];
21
- //#endregion
22
- //#region src/rpc/dump/error.d.ts
23
20
  /**
24
21
  * Normalize a thrown value into a plain object suitable for storage in
25
22
  * a dump record. Preserves `message`, `name`, `cause`, and any own
@@ -35,8 +32,6 @@ export declare function serializeDumpError(error: unknown): RpcDumpRecordError;
35
32
  * the original `name`, and re-attaches any custom own properties.
36
33
  */
37
34
  export declare function reviveDumpError(stored: RpcDumpRecordError): Error;
38
- //#endregion
39
- //#region src/rpc/dump/static.d.ts
40
35
  export type StaticRpcDumpSerialization = 'json' | 'structured-clone';
41
36
  export interface StaticRpcDumpManifestStaticEntry {
42
37
  type: 'static';
@@ -66,8 +61,6 @@ export interface StaticRpcDumpCollection {
66
61
  files: Record<string, StaticRpcDumpFile>;
67
62
  }
68
63
  export declare function collectStaticRpcDump(definitions: Iterable<RpcFunctionDefinitionAny>, context: any): Promise<StaticRpcDumpCollection>;
69
- //#endregion
70
- //#region src/rpc/dump/write.d.ts
71
64
  export interface WriteStaticRpcDumpOptions {
72
65
  /**
73
66
  * Pretty-print RPC dump JSON files. Defaults to `false` so payload
@@ -81,5 +74,4 @@ export interface WriteStaticRpcDumpOptions {
81
74
  * the `__rpc-dump/index.json` manifest, under `outDir`. Shared by the build
82
75
  * adapter (`createBuild`) and `@devframes/hub`'s `buildHub`.
83
76
  */
84
- export declare function writeStaticRpcDump(dump: StaticRpcDumpCollection, outDir: string, options?: WriteStaticRpcDumpOptions): Promise<void>;
85
- //#endregion
77
+ export declare function writeStaticRpcDump(dump: StaticRpcDumpCollection, outDir: string, options?: WriteStaticRpcDumpOptions): Promise<void>;
package/dist/rpc/dump.mjs CHANGED
@@ -1,2 +1 @@
1
- import { a as getDefinitionsWithDumps, i as dumpFunctions, n as collectStaticRpcDump, o as reviveDumpError, r as createClientFromDump, s as serializeDumpError, t as writeStaticRpcDump } from "../write-DK7rBUN3.mjs";
2
- export { collectStaticRpcDump, createClientFromDump, dumpFunctions, getDefinitionsWithDumps, reviveDumpError, serializeDumpError, writeStaticRpcDump };
1
+ export { n as collectStaticRpcDump, r as createClientFromDump, i as dumpFunctions, a as getDefinitionsWithDumps, o as reviveDumpError, s as serializeDumpError, t as writeStaticRpcDump } from "../write-3miSvPaD.mjs";
@@ -1,4 +1,4 @@
1
- import { i as BirpcReturn, t as BirpcFn } from "../index-Bia1vKjL.mjs";
2
- import { a as STRUCTURED_CLONE_PREFIX, c as getRpcResolvedSetupResult, d as RpcFunctionsCollectorBase, f as RpcCacheManager, i as validateRpcReturn, l as createDefineWrapperWithContext, n as validateDefinitions, o as strictJsonStringify, p as RpcCacheOptions, r as validateRpcArgs, s as getRpcHandler, t as validateDefinition, u as defineRpcFunction } from "../index-DuEm0sDH.mjs";
3
- import { C as RpcFunctionType, E as Thenable, S as RpcFunctionSetupResult, T as RpcReturnSchema, _ as RpcFunctionDefinitionAnyWithContext, a as RpcDefinitionsToFunctionsWithNamespace, b as RpcFunctionDefinitionWithSchemas, c as RpcDumpCollectionOptions, d as RpcDumpRecord, f as RpcDumpRecordError, g as RpcFunctionDefinitionAny, h as RpcFunctionDefinition, i as RpcDefinitionsToFunctions, l as RpcDumpDefinition, m as RpcFunctionAgentOptions, n as RpcArgsSchema, o as RpcDump, p as RpcDumpStore, r as RpcDefinitionsFilter, s as RpcDumpClientOptions, t as EntriesToObject, u as RpcDumpGetter, v as RpcFunctionDefinitionBase, w as RpcFunctionsCollector, x as RpcFunctionDefinitionWithoutSchemas, y as RpcFunctionDefinitionToFunction } from "../types-BmDbfHCx.mjs";
1
+ import { i as BirpcReturn, t as BirpcFn } from "../index-BKu9BxcT.mjs";
2
+ import { a as STRUCTURED_CLONE_PREFIX, c as getRpcResolvedSetupResult, d as RpcFunctionsCollectorBase, f as RpcCacheManager, i as validateRpcReturn, l as createDefineWrapperWithContext, n as validateDefinitions, o as strictJsonStringify, p as RpcCacheOptions, r as validateRpcArgs, s as getRpcHandler, t as validateDefinition, u as defineRpcFunction } from "../index-D0qrBkhO.mjs";
3
+ import { C as RpcFunctionType, E as Thenable, S as RpcFunctionSetupResult, T as RpcReturnSchema, _ as RpcFunctionDefinitionAnyWithContext, a as RpcDefinitionsToFunctionsWithNamespace, b as RpcFunctionDefinitionWithSchemas, c as RpcDumpCollectionOptions, d as RpcDumpRecord, f as RpcDumpRecordError, g as RpcFunctionDefinitionAny, h as RpcFunctionDefinition, i as RpcDefinitionsToFunctions, l as RpcDumpDefinition, m as RpcFunctionAgentOptions, n as RpcArgsSchema, o as RpcDump, p as RpcDumpStore, r as RpcDefinitionsFilter, s as RpcDumpClientOptions, t as EntriesToObject, u as RpcDumpGetter, v as RpcFunctionDefinitionBase, w as RpcFunctionsCollector, x as RpcFunctionDefinitionWithoutSchemas, y as RpcFunctionDefinitionToFunction } from "../types-844OBepb.mjs";
4
4
  export { type BirpcFn, type BirpcReturn, EntriesToObject, RpcArgsSchema, RpcCacheManager, RpcCacheOptions, RpcDefinitionsFilter, RpcDefinitionsToFunctions, RpcDefinitionsToFunctionsWithNamespace, RpcDump, RpcDumpClientOptions, RpcDumpCollectionOptions, RpcDumpDefinition, RpcDumpGetter, RpcDumpRecord, RpcDumpRecordError, RpcDumpStore, RpcFunctionAgentOptions, RpcFunctionDefinition, RpcFunctionDefinitionAny, RpcFunctionDefinitionAnyWithContext, RpcFunctionDefinitionBase, RpcFunctionDefinitionToFunction, RpcFunctionDefinitionWithSchemas, RpcFunctionDefinitionWithoutSchemas, RpcFunctionSetupResult, RpcFunctionType, RpcFunctionsCollector, RpcFunctionsCollectorBase, RpcReturnSchema, STRUCTURED_CLONE_PREFIX, Thenable, createDefineWrapperWithContext, defineRpcFunction, getRpcHandler, getRpcResolvedSetupResult, strictJsonStringify, validateDefinition, validateDefinitions, validateRpcArgs, validateRpcReturn };
@@ -1,8 +1,8 @@
1
- import { i as hash, n as validateDefinitions, r as ensureAgentJsonSerializable, t as validateDefinition } from "../validation-CMfDAti3.mjs";
2
- import { n as strictJsonStringify, r as diagnostics, t as STRUCTURED_CLONE_PREFIX } from "../serialization-BhuOoL80.mjs";
3
- import { i as validateRpcReturn, n as getRpcResolvedSetupResult, r as validateRpcArgs, t as getRpcHandler } from "../handler-DmaAfpGq.mjs";
4
- import { n as defineRpcFunction, t as createDefineWrapperWithContext } from "../define-BLWPsH6y.mjs";
5
- //#region src/rpc/cache.ts
1
+ import { i as hash, n as validateDefinitions, r as ensureAgentJsonSerializable, t as validateDefinition } from "../validation-Cjy1P58H.mjs";
2
+ import { n as strictJsonStringify, r as diagnostics, t as STRUCTURED_CLONE_PREFIX } from "../serialization-iiTQ7n21.mjs";
3
+ import { i as validateRpcReturn, n as getRpcResolvedSetupResult, r as validateRpcArgs, t as getRpcHandler } from "../handler-DkLlj3-B.mjs";
4
+ import { n as defineRpcFunction, t as createDefineWrapperWithContext } from "../define-C8h-fyD3.mjs";
5
+ // src/rpc/cache.ts
6
6
  /**
7
7
  * @experimental API is expected to change.
8
8
  */
@@ -40,8 +40,7 @@ var RpcCacheManager = class {
40
40
  else this.cacheMap.clear();
41
41
  }
42
42
  };
43
- //#endregion
44
- //#region src/rpc/collector.ts
43
+ // src/rpc/collector.ts
45
44
  var RpcFunctionsCollectorBase = class {
46
45
  context;
47
46
  definitions = /* @__PURE__ */ new Map();
@@ -112,5 +111,4 @@ var RpcFunctionsCollectorBase = class {
112
111
  return Array.from(this.definitions.keys());
113
112
  }
114
113
  };
115
- //#endregion
116
114
  export { RpcCacheManager, RpcFunctionsCollectorBase, STRUCTURED_CLONE_PREFIX, createDefineWrapperWithContext, defineRpcFunction, getRpcHandler, getRpcResolvedSetupResult, strictJsonStringify, validateDefinition, validateDefinitions, validateRpcArgs, validateRpcReturn };
@@ -1,6 +1,4 @@
1
- import { n as BirpcGroup, o as EventOptions } from "../index-Bia1vKjL.mjs";
2
- //#region src/rpc/server.d.ts
1
+ import { n as BirpcGroup, o as EventOptions } from "../index-BKu9BxcT.mjs";
3
2
  export declare function createRpcServer<ClientFunctions extends object = Record<string, never>, ServerFunctions extends object = Record<string, never>>(functions: ServerFunctions, options?: {
4
3
  rpcOptions?: EventOptions<ClientFunctions, ServerFunctions, false>;
5
- }): BirpcGroup<ClientFunctions, ServerFunctions, false>;
6
- //#endregion
4
+ }): BirpcGroup<ClientFunctions, ServerFunctions, false>;
@@ -1,10 +1,9 @@
1
- import { n as createBirpcGroup } from "../dist-CO98PBnQ.mjs";
2
- //#region src/rpc/server.ts
1
+ import { n as createBirpcGroup } from "../dist-BWGpvt-z.mjs";
2
+ // src/rpc/server.ts
3
3
  function createRpcServer(functions, options = {}) {
4
4
  return createBirpcGroup(functions, [], {
5
5
  ...options.rpcOptions,
6
6
  proxify: false
7
7
  });
8
8
  }
9
- //#endregion
10
9
  export { createRpcServer };
@@ -1,2 +1,2 @@
1
- import { n as createSseRpcChannel, t as SseRpcChannelOptions } from "../../sse-client-DNdscfu_.mjs";
1
+ import { n as createSseRpcChannel, t as SseRpcChannelOptions } from "../../sse-client-B2PrSz-H.mjs";
2
2
  export { SseRpcChannelOptions, createSseRpcChannel };
@@ -1,6 +1,6 @@
1
1
  import { DEVFRAME_AUTH_TOKEN_QUERY_PARAM, DEVFRAME_SSE_SESSION_HEADER } from "../../constants.mjs";
2
- import { t as createRpcWireCodec } from "../../wire-codec-B1W3zH3L.mjs";
3
- //#region src/rpc/transports/sse-client.ts
2
+ import { t as createRpcWireCodec } from "../../wire-codec-BdngvzfH.mjs";
3
+ // src/rpc/transports/sse-client.ts
4
4
  function NOOP() {}
5
5
  /** Split the next complete SSE frame (up to a blank line) off the buffer. */
6
6
  function takeFrame(buffer) {
@@ -154,5 +154,4 @@ function createSseRpcChannel(options) {
154
154
  deserialize: codec.deserialize
155
155
  };
156
156
  }
157
- //#endregion
158
157
  export { createSseRpcChannel };
@@ -1,8 +1,7 @@
1
- import { n as BirpcGroup } from "../../index-Bia1vKjL.mjs";
2
- import { g as RpcFunctionDefinitionAny } from "../../types-BmDbfHCx.mjs";
3
- import { n as DevframeRpcConnection, t as DevframeNodeRpcSessionMeta } from "../../session-r6PDixP6.mjs";
4
- import { n as WsOriginRegistry } from "../../ws-server-y2R76aSW.mjs";
5
- //#region src/rpc/transports/sse-server.d.ts
1
+ import { n as BirpcGroup } from "../../index-BKu9BxcT.mjs";
2
+ import { g as RpcFunctionDefinitionAny } from "../../types-844OBepb.mjs";
3
+ import { n as DevframeRpcConnection, t as DevframeNodeRpcSessionMeta } from "../../session-Y9R6tqg4.mjs";
4
+ import { n as WsOriginRegistry } from "../../ws-server-CYHkeyA-.mjs";
6
5
  export interface SseRpcTransportOptions {
7
6
  /**
8
7
  * Same contract as `WsRpcTransportOptions.allowedOrigins`: extra origins
@@ -57,5 +56,4 @@ export interface SseRpcTransport {
57
56
  * - server-initiated calls/events stream down as `event: message`
58
57
  * frames, and the client's replies up via `POST` get a bare `202`.
59
58
  */
60
- export declare function attachSseRpcTransport<ClientFunctions extends object, ServerFunctions extends object>(rpcGroup: BirpcGroup<ClientFunctions, ServerFunctions, false>, options?: SseRpcTransportOptions): SseRpcTransport;
61
- //#endregion
59
+ export declare function attachSseRpcTransport<ClientFunctions extends object, ServerFunctions extends object>(rpcGroup: BirpcGroup<ClientFunctions, ServerFunctions, false>, options?: SseRpcTransportOptions): SseRpcTransport;
@@ -1,8 +1,8 @@
1
1
  import { DEVFRAME_SSE_SESSION_HEADER } from "../../constants.mjs";
2
- import { n as peekRpcWireFrame, t as createRpcWireCodec } from "../../wire-codec-B1W3zH3L.mjs";
3
- import { t as isAllowedOrigin } from "../../origin-DZit9g29.mjs";
4
- import { t as createRpcSessionMeta } from "../../session-DPfj6zQG.mjs";
5
- //#region src/rpc/transports/sse-server.ts
2
+ import { t as isAllowedOrigin } from "../../origin-Ck7mLbKU.mjs";
3
+ import { n as peekRpcWireFrame, t as createRpcWireCodec } from "../../wire-codec-BdngvzfH.mjs";
4
+ import { t as createRpcSessionMeta } from "../../session-BjvoLH3r.mjs";
5
+ // src/rpc/transports/sse-server.ts
6
6
  const SSE_STREAM_HEADERS = {
7
7
  "content-type": "text/event-stream",
8
8
  "cache-control": "no-cache, no-transform",
@@ -205,5 +205,4 @@ function attachSseRpcTransport(rpcGroup, options = {}) {
205
205
  }
206
206
  };
207
207
  }
208
- //#endregion
209
208
  export { attachSseRpcTransport };
@@ -1,6 +1,5 @@
1
- import { n as WsOriginRegistry } from "../../ws-server-y2R76aSW.mjs";
2
- import { t as ContextRpcServer } from "../../rpc-core-BQ1mesqZ.mjs";
3
- //#region src/rpc/transports/ws-bun.d.ts
1
+ import { t as ContextRpcServer } from "../../rpc-core-CFwyV10r.mjs";
2
+ import { n as WsOriginRegistry } from "../../ws-server-CYHkeyA-.mjs";
4
3
  export interface AttachBunWsTransportOptions {
5
4
  /** Same contract as `WsRpcTransportOptions.allowedOrigins`. */
6
5
  allowedOrigins?: readonly string[] | WsOriginRegistry | false;
@@ -30,5 +29,4 @@ export interface BunWsTier {
30
29
  * app's own origin, with no side-car server. Load it dynamically so the Bun
31
30
  * adapter never enters a Node-only bundle path.
32
31
  */
33
- export declare function attachBunWsTransport(core: ContextRpcServer, options?: AttachBunWsTransportOptions): Promise<BunWsTier>;
34
- //#endregion
32
+ export declare function attachBunWsTransport(core: ContextRpcServer, options?: AttachBunWsTransportOptions): Promise<BunWsTier>;
@@ -1,6 +1,6 @@
1
- import { t as isAllowedOrigin } from "../../origin-DZit9g29.mjs";
1
+ import { t as isAllowedOrigin } from "../../origin-Ck7mLbKU.mjs";
2
2
  import { createWsRpcPeerHooks } from "./ws-server.mjs";
3
- //#region src/rpc/transports/ws-bun.ts
3
+ // src/rpc/transports/ws-bun.ts
4
4
  /**
5
5
  * The Bun fetch-upgrade WebSocket tier for `initDevframe` / `initHub`: the
6
6
  * same RPC peer wiring as `attachWsRpcTransport`, driven by crossws's Bun
@@ -33,5 +33,4 @@ async function attachBunWsTransport(core, options = {}) {
33
33
  close: () => ws.close()
34
34
  };
35
35
  }
36
- //#endregion
37
36
  export { attachBunWsTransport };
@@ -1,2 +1,2 @@
1
- import { n as createWsRpcChannel, t as WsRpcChannelOptions } from "../../ws-client-6Mrz6eC4.mjs";
1
+ import { n as createWsRpcChannel, t as WsRpcChannelOptions } from "../../ws-client-lqOeANcn.mjs";
2
2
  export { WsRpcChannelOptions, createWsRpcChannel };
@@ -1,6 +1,6 @@
1
1
  import { DEVFRAME_AUTH_TOKEN_QUERY_PARAM } from "../../constants.mjs";
2
- import { t as createRpcWireCodec } from "../../wire-codec-B1W3zH3L.mjs";
3
- //#region src/rpc/transports/ws-client.ts
2
+ import { t as createRpcWireCodec } from "../../wire-codec-BdngvzfH.mjs";
3
+ // src/rpc/transports/ws-client.ts
4
4
  function NOOP() {}
5
5
  const EMPTY_DEFS = /* @__PURE__ */ new Map();
6
6
  /**
@@ -60,5 +60,4 @@ function createWsRpcChannel(options) {
60
60
  deserialize: codec.deserialize
61
61
  };
62
62
  }
63
- //#endregion
64
63
  export { createWsRpcChannel };
@@ -1,6 +1,5 @@
1
- import { n as WsOriginRegistry } from "../../ws-server-y2R76aSW.mjs";
2
- import { t as ContextRpcServer } from "../../rpc-core-BQ1mesqZ.mjs";
3
- //#region src/rpc/transports/ws-deno.d.ts
1
+ import { t as ContextRpcServer } from "../../rpc-core-CFwyV10r.mjs";
2
+ import { n as WsOriginRegistry } from "../../ws-server-CYHkeyA-.mjs";
4
3
  export interface AttachDenoWsTransportOptions {
5
4
  /** Same contract as `WsRpcTransportOptions.allowedOrigins`. */
6
5
  allowedOrigins?: readonly string[] | WsOriginRegistry | false;
@@ -21,5 +20,4 @@ export interface DenoWsTier {
21
20
  * app's own origin, with no side-car server. Load it dynamically so the Deno
22
21
  * adapter never enters a Node-only bundle path.
23
22
  */
24
- export declare function attachDenoWsTransport(core: ContextRpcServer, options?: AttachDenoWsTransportOptions): Promise<DenoWsTier>;
25
- //#endregion
23
+ export declare function attachDenoWsTransport(core: ContextRpcServer, options?: AttachDenoWsTransportOptions): Promise<DenoWsTier>;
@@ -1,6 +1,6 @@
1
- import { t as isAllowedOrigin } from "../../origin-DZit9g29.mjs";
1
+ import { t as isAllowedOrigin } from "../../origin-Ck7mLbKU.mjs";
2
2
  import { createWsRpcPeerHooks } from "./ws-server.mjs";
3
- //#region src/rpc/transports/ws-deno.ts
3
+ // src/rpc/transports/ws-deno.ts
4
4
  /**
5
5
  * The Deno fetch-upgrade WebSocket tier for `initDevframe` / `initHub`: the
6
6
  * same RPC peer wiring as `attachWsRpcTransport`, driven by crossws's Deno
@@ -32,5 +32,4 @@ async function attachDenoWsTransport(core, options = {}) {
32
32
  close: () => ws.close()
33
33
  };
34
34
  }
35
- //#endregion
36
35
  export { attachDenoWsTransport };
@@ -1,4 +1,4 @@
1
- import { a as DevframeWsPeer, i as DevframeRpcTransportKind, n as DevframeRpcConnection, r as DevframeRpcConnectionRequest, t as DevframeNodeRpcSessionMeta } from "../../session-r6PDixP6.mjs";
2
- import { r as isLoopbackHostname, t as isAllowedOrigin } from "../../origin-CY6BBHOy.mjs";
3
- import { a as attachWsRpcTransport, i as WsRpcTransportOptions, n as WsOriginRegistry, o as createWsOriginRegistry, r as WsRpcTransport, s as createWsRpcPeerHooks, t as CreateWsOriginRegistryOptions } from "../../ws-server-y2R76aSW.mjs";
1
+ import { a as DevframeWsPeer, i as DevframeRpcTransportKind, n as DevframeRpcConnection, r as DevframeRpcConnectionRequest, t as DevframeNodeRpcSessionMeta } from "../../session-Y9R6tqg4.mjs";
2
+ import { r as isLoopbackHostname, t as isAllowedOrigin } from "../../origin-D5i7K_Zb.mjs";
3
+ import { a as attachWsRpcTransport, i as WsRpcTransportOptions, n as WsOriginRegistry, o as createWsOriginRegistry, r as WsRpcTransport, s as createWsRpcPeerHooks, t as CreateWsOriginRegistryOptions } from "../../ws-server-CYHkeyA-.mjs";
4
4
  export { CreateWsOriginRegistryOptions, type DevframeNodeRpcSessionMeta, type DevframeRpcConnection, type DevframeRpcConnectionRequest, type DevframeRpcTransportKind, type DevframeWsPeer, WsOriginRegistry, WsRpcTransport, WsRpcTransportOptions, attachWsRpcTransport, createWsOriginRegistry, createWsRpcPeerHooks, isAllowedOrigin, isLoopbackHostname };
@@ -1,12 +1,12 @@
1
1
  import "../../constants.mjs";
2
- import { t as createRpcWireCodec } from "../../wire-codec-B1W3zH3L.mjs";
3
- import { n as isLoopbackHostname, t as isAllowedOrigin } from "../../origin-DZit9g29.mjs";
4
- import { t as createRpcSessionMeta } from "../../session-DPfj6zQG.mjs";
5
- import { n as randomToken, r as timingSafeEqual } from "../../crypto-token-TVbGGFuj.mjs";
2
+ import { n as randomToken, r as timingSafeEqual } from "../../crypto-token-CUhPE_ei.mjs";
3
+ import { n as isLoopbackHostname, t as isAllowedOrigin } from "../../origin-Ck7mLbKU.mjs";
4
+ import { t as createRpcWireCodec } from "../../wire-codec-BdngvzfH.mjs";
5
+ import { t as createRpcSessionMeta } from "../../session-BjvoLH3r.mjs";
6
6
  import { createServer } from "node:http";
7
7
  import { createServer as createServer$1 } from "node:https";
8
8
  import crossws from "crossws/adapters/node";
9
- //#region src/rpc/transports/ws-server.ts
9
+ // src/rpc/transports/ws-server.ts
10
10
  /**
11
11
  * Create a live, token-protected origin allowlist for external browser
12
12
  * viewers. Pass it to {@link WsRpcTransportOptions.allowedOrigins}, then use
@@ -229,5 +229,4 @@ function attachWsRpcTransport(rpcGroup, options = {}) {
229
229
  }
230
230
  };
231
231
  }
232
- //#endregion
233
232
  export { attachWsRpcTransport, createWsOriginRegistry, createWsRpcPeerHooks, isAllowedOrigin, isLoopbackHostname };
@@ -1,9 +1,9 @@
1
- import { n as __exportAll } from "./rolldown-runtime-B4iAMlE-.mjs";
2
- import { n as getRpcResolvedSetupResult, t as getRpcHandler } from "./handler-DmaAfpGq.mjs";
1
+ import { n as __exportAll } from "./rolldown-runtime-DYf_mQCB.mjs";
3
2
  import { createRpcServer } from "./rpc/server.mjs";
4
- import { t as diagnostics } from "./diagnostics-BJjvKfVK.mjs";
3
+ import { n as getRpcResolvedSetupResult, t as getRpcHandler } from "./handler-DkLlj3-B.mjs";
4
+ import { t as diagnostics } from "./diagnostics-DC1-WcvN.mjs";
5
5
  import { AsyncLocalStorage } from "node:async_hooks";
6
- //#region src/node/rpc-core.ts
6
+ // src/node/rpc-core.ts
7
7
  var rpc_core_exports = /* @__PURE__ */ __exportAll({ createContextRpcServer: () => createContextRpcServer });
8
8
  /**
9
9
  * Bind a devframe context's registered RPC functions to a birpc group,
@@ -93,5 +93,4 @@ function createContextRpcServer(options) {
93
93
  onDisconnected
94
94
  };
95
95
  }
96
- //#endregion
97
96
  export { rpc_core_exports as n, createContextRpcServer as t };
@@ -1,9 +1,8 @@
1
- import { n as BirpcGroup, o as EventOptions } from "./index-Bia1vKjL.mjs";
2
- import { It as DevframeAuthHandler, o as DevframeNodeContext, s as DevframeNodeRpcSession, vt as DevframeRpcClientFunctions, yt as DevframeRpcServerFunctions } from "./context-Dko5QFWF.mjs";
3
- import { n as DevframeRpcConnection, t as DevframeNodeRpcSessionMeta } from "./session-r6PDixP6.mjs";
4
- import "./ws-server-y2R76aSW.mjs";
5
- import "./index-BMj-o_sP.mjs";
6
- //#region src/node/rpc-core.d.ts
1
+ import { n as BirpcGroup, o as EventOptions } from "./index-BKu9BxcT.mjs";
2
+ import "./ws-server-CYHkeyA-.mjs";
3
+ import { n as DevframeRpcConnection, t as DevframeNodeRpcSessionMeta } from "./session-Y9R6tqg4.mjs";
4
+ import { Bt as DevframeAuthHandler, o as DevframeNodeContext, s as DevframeNodeRpcSession, vt as DevframeRpcClientFunctions, yt as DevframeRpcServerFunctions } from "./context-WxTq6kqb.mjs";
5
+ import "./index-HMJPlexc.mjs";
7
6
  interface CreateContextRpcServerOptions {
8
7
  context: DevframeNodeContext;
9
8
  /**
@@ -45,5 +44,4 @@ interface ContextRpcServer {
45
44
  * `authorize` gate, and the `auth: false` auto-trust handshake shim.
46
45
  */
47
46
  declare function createContextRpcServer(options: CreateContextRpcServerOptions): ContextRpcServer;
48
- //#endregion
49
47
  export { CreateContextRpcServerOptions as n, createContextRpcServer as r, ContextRpcServer as t };
@@ -1,5 +1,5 @@
1
- import { i as defineDiagnostics } from "./nostics-D0PvLZsn.mjs";
2
- //#region src/rpc/diagnostics.ts
1
+ import { i as defineDiagnostics } from "./nostics-InlX4tmd.mjs";
2
+ // src/rpc/diagnostics.ts
3
3
  const diagnostics = defineDiagnostics({
4
4
  docsBase: "https://devfra.me/errors",
5
5
  codes: {
@@ -35,8 +35,7 @@ const diagnostics = defineDiagnostics({
35
35
  }
36
36
  }
37
37
  });
38
- //#endregion
39
- //#region src/rpc/serialization.ts
38
+ // src/rpc/serialization.ts
40
39
  /**
41
40
  * Wire format used by the live RPC transports (WebSocket and SSE).
42
41
  *
@@ -112,5 +111,4 @@ function formatPath(parent, key) {
112
111
  if (key === "") return "<root>";
113
112
  return key;
114
113
  }
115
- //#endregion
116
114
  export { strictJsonStringify as n, diagnostics as r, STRUCTURED_CLONE_PREFIX as t };
@@ -1,7 +1,7 @@
1
1
  import { createRequire } from "node:module";
2
2
  import { isAbsolute, join } from "pathe";
3
3
  import { pathToFileURL } from "node:url";
4
- //#region src/node/services-install.ts
4
+ // src/node/services-install.ts
5
5
  /**
6
6
  * Turn a `resolveFrom` value (a file path, a file URL like `import.meta.url`,
7
7
  * or a directory) into something `createRequire` accepts; a directory gets a
@@ -166,5 +166,4 @@ function deepMergeTwo(a, b) {
166
166
  function deepMergeOptionSets(sets) {
167
167
  return sets.reduce((merged, set) => deepMergeTwo(merged, set));
168
168
  }
169
- //#endregion
170
169
  export { satisfiesVersionRange as a, resolveServicePackage as i, expandResolveFrom as n, importServicePackage as r, deepMergeOptionSets as t };
@@ -1,4 +1,4 @@
1
- //#region src/rpc/transports/session.ts
1
+ // src/rpc/transports/session.ts
2
2
  let sessionId = 0;
3
3
  /**
4
4
  * Mint the per-connection session meta every transport binding shares:
@@ -12,5 +12,4 @@ function createRpcSessionMeta() {
12
12
  subscribedStates: /* @__PURE__ */ new Set()
13
13
  };
14
14
  }
15
- //#endregion
16
15
  export { createRpcSessionMeta as t };
@@ -1,4 +1,3 @@
1
- //#region src/rpc/transports/session.d.ts
2
1
  /**
3
2
  * Structural view of the crossws `Peer` backing a WebSocket RPC connection:
4
3
  * the transport-independent slice of its API (identity, send, pub/sub,
@@ -107,5 +106,4 @@ interface DevframeNodeRpcSessionMeta {
107
106
  */
108
107
  uploadingStreams?: Set<string>;
109
108
  }
110
- //#endregion
111
109
  export { DevframeWsPeer as a, DevframeRpcTransportKind as i, DevframeRpcConnection as n, DevframeRpcConnectionRequest as r, DevframeNodeRpcSessionMeta as t };