devframe 0.6.2 → 0.7.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 (57) hide show
  1. package/dist/adapters/build.d.mts +1 -2
  2. package/dist/adapters/build.mjs +1 -1
  3. package/dist/adapters/cac.d.mts +40 -0
  4. package/dist/adapters/cac.mjs +2 -0
  5. package/dist/adapters/cli.d.mts +8 -32
  6. package/dist/adapters/cli.mjs +3 -143
  7. package/dist/adapters/dev.d.mts +3 -4
  8. package/dist/adapters/dev.mjs +1 -1
  9. package/dist/adapters/embedded.d.mts +1 -2
  10. package/dist/adapters/mcp.d.mts +2 -1
  11. package/dist/adapters/mcp.mjs +1 -1
  12. package/dist/{build-server-0jWgMrz-.mjs → build-server-Bo0G5XcS.mjs} +10 -4
  13. package/dist/cac-BFCgKymz.mjs +152 -0
  14. package/dist/client/index.d.mts +90 -6
  15. package/dist/client/index.mjs +150 -8
  16. package/dist/{context-DgkYTlXx.d.mts → context-B1sekkgB.d.mts} +3 -3
  17. package/dist/{dev-DE51PeJc.mjs → dev-Bs4oRVnI.mjs} +2 -2
  18. package/dist/{devframe-CpXy1ZlO.d.mts → devframe-CnTVuGw9.d.mts} +76 -16
  19. package/dist/{dump-D09PZb7T.mjs → dump-CocOVBVz.mjs} +3 -1
  20. package/dist/{hash-PAfnyu2k.mjs → hash-KtDZYXDN.mjs} +5 -2
  21. package/dist/helpers/vite.d.mts +7 -5
  22. package/dist/helpers/vite.mjs +2 -2
  23. package/dist/{http-COX960WK.mjs → http-BirzlyE9.mjs} +1 -1
  24. package/dist/{index-DI_TMGjv.d.mts → index-DgsLFhZg.d.mts} +2 -3
  25. package/dist/{index-DzeFcwMM.d.mts → index-Dpsr-8dD.d.mts} +4 -4
  26. package/dist/{index-BAZpbgHu.d.mts → index-YDSJgsyG.d.mts} +1 -2
  27. package/dist/index.d.mts +5 -5
  28. package/dist/{launch-editor-DIzaS5EG.mjs → launch-editor-C_xuzLnF.mjs} +67 -16
  29. package/dist/node/auth.d.mts +1 -1
  30. package/dist/node/hub-internals.d.mts +2 -3
  31. package/dist/node/index.d.mts +5 -6
  32. package/dist/recipes/interactive-auth.d.mts +2 -3
  33. package/dist/recipes/interactive-auth.mjs +1 -0
  34. package/dist/recipes/open-helpers.d.mts +3 -2
  35. package/dist/recipes/open-helpers.mjs +1 -1
  36. package/dist/rpc/client.d.mts +0 -1
  37. package/dist/rpc/dump.d.mts +1 -1
  38. package/dist/rpc/dump.mjs +1 -1
  39. package/dist/rpc/index.d.mts +2 -2
  40. package/dist/rpc/index.mjs +1 -1
  41. package/dist/rpc/server.d.mts +0 -1
  42. package/dist/rpc/transports/ws-client.d.mts +1 -1
  43. package/dist/rpc/transports/ws-server.d.mts +1 -1
  44. package/dist/{server-C83NJvZp.d.mts → server-4QH37sb-.d.mts} +2 -3
  45. package/dist/types/index.d.mts +4 -4
  46. package/dist/{types-oEqKqUC9.d.mts → types-CrzNxXKq.d.mts} +42 -23
  47. package/dist/utils/events.d.mts +1 -2
  48. package/dist/utils/hash.mjs +1 -1
  49. package/dist/utils/launch-editor.mjs +1 -1
  50. package/dist/utils/serve-static.d.mts +0 -1
  51. package/dist/utils/shared-state.d.mts +1 -1
  52. package/dist/utils/streaming-channel.d.mts +1 -1
  53. package/dist/utils/when.d.mts +1 -330
  54. package/dist/{ws-client-nBjpin71.d.mts → ws-client-DSXiI2h7.d.mts} +1 -2
  55. package/dist/{ws-server-BUgJpdX4.d.mts → ws-server-CceOy6He.d.mts} +1 -2
  56. package/package.json +11 -6
  57. package/skills/devframe/SKILL.md +4 -4
@@ -25,7 +25,9 @@ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
25
25
  //#endregion
26
26
  //#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
27
27
  var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
28
- let p = process || {}, argv = p.argv || [], env = p.env || {};
28
+ let p = process || {};
29
+ let argv = p.argv || [];
30
+ let env = p.env || {};
29
31
  let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
30
32
  let formatter = (open, close, replace = open) => (input) => {
31
33
  let string = "" + input, index = string.indexOf(close, open.length);
@@ -91,7 +93,7 @@ var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
91
93
  module.exports.createColors = createColors;
92
94
  }));
93
95
  //#endregion
94
- //#region ../../node_modules/.pnpm/shell-quote@1.9.0/node_modules/shell-quote/quote.js
96
+ //#region ../../node_modules/.pnpm/shell-quote@1.10.0/node_modules/shell-quote/quote.js
95
97
  var require_quote = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96
98
  /** @import { ControlOperator } from './parse' */
97
99
  /** @type {ControlOperator['op'][]} */
@@ -115,7 +117,7 @@ var require_quote = /* @__PURE__ */ __commonJSMin(((exports, module) => {
115
117
  ];
116
118
  var LINE_TERMINATORS = /[\n\r\u2028\u2029]/;
117
119
  var GLOB_SHELL_SPECIAL = /[\s#!"$&'():;<=>@\\^`|]/g;
118
- /** @type {import('./quote')} */
120
+ /** @type {typeof import('./quote')} */
119
121
  module.exports = function quote(xs) {
120
122
  return xs.map(function(s) {
121
123
  if (s === "") return "''";
@@ -142,7 +144,7 @@ var require_quote = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142
144
  };
143
145
  }));
144
146
  //#endregion
145
- //#region ../../node_modules/.pnpm/shell-quote@1.9.0/node_modules/shell-quote/parse.js
147
+ //#region ../../node_modules/.pnpm/shell-quote@1.10.0/node_modules/shell-quote/parse.js
146
148
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
147
149
  /**
148
150
  * @import {
@@ -165,8 +167,8 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
165
167
  ].join("|") + ")";
166
168
  var controlRE = new RegExp("^" + CONTROL + "$");
167
169
  var META = "|&;()<> \\t";
168
- var SINGLE_QUOTE = "\"((\\\\\"|[^\"])*?)\"";
169
- var DOUBLE_QUOTE = "'((\\\\'|[^'])*?)'";
170
+ var SINGLE_QUOTE = "'([^']*?)'";
171
+ var DOUBLE_QUOTE = "\"((\\\\\"|[^\"])*?)\"";
170
172
  var hash = /^#$/;
171
173
  var SQ = "'";
172
174
  var DQ = "\"";
@@ -205,14 +207,15 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
205
207
  /**
206
208
  * @param {string} string
207
209
  * @param {Env} [env]
208
- * @param {{ escape?: string }} [opts]
210
+ * @param {{ escape?: string, splitUnquoted?: boolean | string }} [opts]
209
211
  * @returns {ParseEntry[]}
210
212
  */
211
213
  function parseInternal(string, env, opts) {
212
214
  if (!opts) opts = {};
213
215
  var BS = opts.escape || "\\";
216
+ var ifs = opts.splitUnquoted === true ? " \n" : typeof opts.splitUnquoted === "string" ? opts.splitUnquoted : "";
214
217
  var BAREWORD = "(\\" + BS + "['\"" + META + "]|[^\\s'\"" + META + "])+";
215
- var matches = matchAll(string, new RegExp(["(" + CONTROL + ")", "(" + BAREWORD + "|" + SINGLE_QUOTE + "|" + DOUBLE_QUOTE + ")+"].join("|"), "g"));
218
+ var matches = matchAll(string, new RegExp(["(" + CONTROL + ")", "(" + BAREWORD + "|" + DOUBLE_QUOTE + "|" + SINGLE_QUOTE + ")+"].join("|"), "g"));
216
219
  if (matches.length === 0) return [];
217
220
  if (!env) env = {};
218
221
  var commented = false;
@@ -224,6 +227,11 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
224
227
  var quote = false;
225
228
  var esc = false;
226
229
  var out = "";
230
+ /** @type {string[]} */
231
+ var words = [];
232
+ var sawQuote = false;
233
+ /** @type {number | null} */
234
+ var pendingNw = null;
227
235
  var isGlob = false;
228
236
  /** @type {number} */
229
237
  var i;
@@ -237,8 +245,15 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
237
245
  if (char === "{") {
238
246
  i += 1;
239
247
  if (s.charAt(i) === "}") throw new Error("Bad substitution: " + s.slice(i - 2, i + 1));
240
- varend = s.indexOf("}", i);
241
- if (varend < 0) throw new Error("Bad substitution: " + s.slice(i));
248
+ var depth = 1;
249
+ varend = i;
250
+ while (depth > 0 && varend < s.length) {
251
+ if (s.charAt(varend) === "{" && s.charAt(varend - 1) === "$") depth += 1;
252
+ else if (s.charAt(varend) === "}") depth -= 1;
253
+ varend += 1;
254
+ }
255
+ if (depth !== 0) throw new Error("Bad substitution: " + s.slice(i));
256
+ varend -= 1;
242
257
  varname = s.slice(i, varend);
243
258
  i = varend;
244
259
  } else if (/[*@#?$!_-]/.test(char)) {
@@ -257,8 +272,23 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
257
272
  }
258
273
  return getVar(env, "", varname);
259
274
  }
275
+ function flushRun() {
276
+ if (pendingNw === null) return;
277
+ if (pendingNw === 0) {
278
+ if (out !== "") {
279
+ words[words.length] = out;
280
+ out = "";
281
+ }
282
+ } else {
283
+ words[words.length] = out;
284
+ out = "";
285
+ for (var fe = 1; fe < pendingNw; fe += 1) words[words.length] = "";
286
+ }
287
+ pendingNw = null;
288
+ }
260
289
  for (i = 0; i < s.length; i++) {
261
290
  var c = s.charAt(i);
291
+ if (ifs && c !== DS) flushRun();
262
292
  isGlob = isGlob || !quote && (c === "*" || c === "?");
263
293
  if (esc) {
264
294
  out += c;
@@ -272,21 +302,42 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
272
302
  else out += BS + c;
273
303
  } else if (c === DS) out += parseEnvVar();
274
304
  else out += c;
275
- else if (c === DQ || c === SQ) quote = c;
276
- else if (controlRE.test(c)) return { op: s };
305
+ else if (c === DQ || c === SQ) {
306
+ quote = c;
307
+ sawQuote = true;
308
+ } else if (controlRE.test(c)) return { op: s };
277
309
  else if (hash.test(c)) {
278
310
  commented = true;
279
311
  var commentObj = { comment: string.slice(match.index + i + 1) };
280
312
  if (out.length) return [out, commentObj];
281
313
  return [commentObj];
282
314
  } else if (c === BS) esc = true;
283
- else if (c === DS) out += parseEnvVar();
284
- else out += c;
315
+ else if (c === DS) {
316
+ var value = parseEnvVar();
317
+ if (!ifs) out += value;
318
+ else for (var vi = 0; vi < value.length; vi += 1) {
319
+ var vc = value.charAt(vi);
320
+ if (ifs.indexOf(vc) < 0) {
321
+ flushRun();
322
+ out += vc;
323
+ } else if (pendingNw === null) pendingNw = vc === " " || vc === " " || vc === "\n" ? 0 : 1;
324
+ else if (vc !== " " && vc !== " " && vc !== "\n") pendingNw += 1;
325
+ }
326
+ } else out += c;
285
327
  }
286
328
  if (isGlob) return {
287
329
  op: "glob",
288
330
  pattern: out
289
331
  };
332
+ if (ifs) {
333
+ if (pendingNw !== null && pendingNw > 0) {
334
+ words[words.length] = out;
335
+ out = "";
336
+ for (var te = 1; te < pendingNw; te += 1) words[words.length] = "";
337
+ }
338
+ if (out !== "" || sawQuote && words.length === 0) words[words.length] = out;
339
+ return words;
340
+ }
290
341
  return out;
291
342
  }).reduce(function(prev, arg) {
292
343
  if (typeof arg === "undefined") return prev;
@@ -296,7 +347,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
296
347
  return prev;
297
348
  }, []);
298
349
  }
299
- /** @type {import('./parse')} */
350
+ /** @type {typeof import('./parse')} */
300
351
  module.exports = function parse(s, env, opts) {
301
352
  var mapped = parseInternal(s, env, opts);
302
353
  if (typeof env !== "function") return mapped;
@@ -318,7 +369,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
318
369
  };
319
370
  }));
320
371
  //#endregion
321
- //#region ../../node_modules/.pnpm/shell-quote@1.9.0/node_modules/shell-quote/index.js
372
+ //#region ../../node_modules/.pnpm/shell-quote@1.10.0/node_modules/shell-quote/index.js
322
373
  var require_shell_quote = /* @__PURE__ */ __commonJSMin(((exports) => {
323
374
  exports.quote = require_quote();
324
375
  exports.parse = require_parse();
@@ -1,2 +1,2 @@
1
- import { a as verifyAuthToken, c as DevframeAuthHandler, i as refreshTempAuthCode, n as exchangeTempAuthCode, o as revokeActiveConnectionsForToken, r as getTempAuthCode, s as revokeAuthToken, t as buildOtpAuthUrl } from "../index-DzeFcwMM.mjs";
1
+ import { a as verifyAuthToken, c as DevframeAuthHandler, i as refreshTempAuthCode, n as exchangeTempAuthCode, o as revokeActiveConnectionsForToken, r as getTempAuthCode, s as revokeAuthToken, t as buildOtpAuthUrl } from "../index-Dpsr-8dD.mjs";
2
2
  export { DevframeAuthHandler, buildOtpAuthUrl, exchangeTempAuthCode, getTempAuthCode, refreshTempAuthCode, revokeActiveConnectionsForToken, revokeAuthToken, verifyAuthToken };
@@ -1,6 +1,5 @@
1
- import { i as DevframeDeploymentKind, r as DevframeDefinition } from "../devframe-CpXy1ZlO.mjs";
2
- import { a as internalContextMap, i as getInternalContext, n as InternalAnonymousAuthStorage, r as RemoteTokenRecord, t as DevframeInternalContext } from "../context-DgkYTlXx.mjs";
3
-
1
+ import { i as DevframeDeploymentKind, r as DevframeDefinition } from "../devframe-CnTVuGw9.mjs";
2
+ import { a as internalContextMap, i as getInternalContext, n as InternalAnonymousAuthStorage, r as RemoteTokenRecord, t as DevframeInternalContext } from "../context-B1sekkgB.mjs";
4
3
  //#region src/adapters/_shared.d.ts
5
4
  /**
6
5
  * Resolve the mount base path for a devframe's SPA. Hosted adapters
@@ -1,11 +1,10 @@
1
- import { C as RpcStreamingHost, K as DevframeScopedNodeContext, R as SharedState, Y as DevframeSettings, _ as RpcBroadcastOptions, _t as AgentTool, at as DevframeRpcServerFunctions, b as RpcSharedStateHost, bt as DevframeAgentHostEvents, dt as DevframeDiagnosticsLogger, ft as AgentHandle, g as DevframeNodeRpcSession, gt as AgentResourceInput, h as DevframeNodeContext, ht as AgentResourceContent, it as DevframeRpcClientFunctions, mt as AgentResource, pt as AgentManifest, rt as DevframeViewHost$1, st as DevframeHost, ut as DevframeDiagnosticsHost$1, v as RpcFunctionsHost$1, vt as AgentToolInput, xt as EventEmitter, yt as DevframeAgentHost$1 } from "../devframe-CpXy1ZlO.mjs";
2
- import { v as RpcFunctionDefinitionAny } from "../types-oEqKqUC9.mjs";
3
- import { S as RpcFunctionsCollectorBase } from "../index-DI_TMGjv.mjs";
4
- import { t as DevframeNodeRpcSessionMeta } from "../ws-server-BUgJpdX4.mjs";
5
- import { n as StartedServer, r as startHttpAndWs, t as StartHttpAndWsOptions } from "../server-C83NJvZp.mjs";
1
+ import { St as EventEmitter, X as DevframeSettings, _ as DevframeNodeRpcSession, _t as AgentResourceInput, at as DevframeRpcClientFunctions, bt as DevframeAgentHost$1, ct as DevframeHost, dt as DevframeDiagnosticsHost$1, ft as DevframeDiagnosticsLogger, g as DevframeNodeContext, gt as AgentResourceContent, ht as AgentResource, it as DevframeViewHost$1, mt as AgentManifest, ot as DevframeRpcServerFunctions, pt as AgentHandle, q as DevframeScopedNodeContext, v as RpcBroadcastOptions, vt as AgentTool, w as RpcStreamingHost, x as RpcSharedStateHost, xt as DevframeAgentHostEvents, y as RpcFunctionsHost$1, yt as AgentToolInput, z as SharedState } from "../devframe-CnTVuGw9.mjs";
2
+ import { v as RpcFunctionDefinitionAny } from "../types-CrzNxXKq.mjs";
3
+ import { S as RpcFunctionsCollectorBase } from "../index-DgsLFhZg.mjs";
4
+ import { t as DevframeNodeRpcSessionMeta } from "../ws-server-CceOy6He.mjs";
5
+ import { n as StartedServer, r as startHttpAndWs, t as StartHttpAndWsOptions } from "../server-4QH37sb-.mjs";
6
6
  import { BirpcGroup } from "birpc";
7
7
  import { AsyncLocalStorage } from "node:async_hooks";
8
-
9
8
  //#region src/node/context.d.ts
10
9
  interface CreateHostContextOptions {
11
10
  cwd: string;
@@ -1,6 +1,5 @@
1
- import { h as DevframeNodeContext } from "../devframe-CpXy1ZlO.mjs";
2
- import { c as DevframeAuthHandler } from "../index-DzeFcwMM.mjs";
3
-
1
+ import { g as DevframeNodeContext } from "../devframe-CnTVuGw9.mjs";
2
+ import { c as DevframeAuthHandler } from "../index-Dpsr-8dD.mjs";
4
3
  //#region src/recipes/interactive-auth.d.ts
5
4
  interface CreateInteractiveAuthOptions {
6
5
  /**
@@ -63,6 +63,7 @@ function createInteractiveAuth(context, options = {}) {
63
63
  handler(params) {
64
64
  const session = context.rpc.getCurrentRpcSession();
65
65
  if (!session) return { isTrusted: false };
66
+ if (session.meta.isTrusted) return { isTrusted: true };
66
67
  if (isStaticToken(params.authToken)) {
67
68
  session.meta.clientAuthToken = params.authToken;
68
69
  session.meta.isTrusted = true;
@@ -1,6 +1,7 @@
1
- import { E as Thenable, S as RpcFunctionSetupResult, c as RpcDump, g as RpcFunctionAgentOptions } from "../types-oEqKqUC9.mjs";
1
+ import "../devframe-CnTVuGw9.mjs";
2
+ import { E as Thenable, S as RpcFunctionSetupResult, c as RpcDump, g as RpcFunctionAgentOptions } from "../types-CrzNxXKq.mjs";
3
+ import "../index-DgsLFhZg.mjs";
2
4
  import * as v from "valibot";
3
-
4
5
  //#region src/recipes/open-helpers.d.ts
5
6
  /**
6
7
  * Prebuilt RPC action that opens a file in the user's configured editor.
@@ -1,4 +1,4 @@
1
- import { t as launchEditor } from "../launch-editor-DIzaS5EG.mjs";
1
+ import { t as launchEditor } from "../launch-editor-C_xuzLnF.mjs";
2
2
  import { n as defineRpcFunction } from "../define-BLWPsH6y.mjs";
3
3
  import { t as open } from "../open-Deb5xmIT.mjs";
4
4
  import * as v from "valibot";
@@ -1,5 +1,4 @@
1
1
  import { BirpcOptions, BirpcReturn, ChannelOptions } from "birpc";
2
-
3
2
  //#region src/rpc/client.d.ts
4
3
  declare function createRpcClient<ServerFunctions extends object = Record<string, never>, ClientFunctions extends object = Record<string, never>>(functions: ClientFunctions, options: {
5
4
  channel: ChannelOptions;
@@ -1,2 +1,2 @@
1
- import { a as getDefinitionsWithDumps, c as StaticRpcDumpManifest, d as StaticRpcDumpManifestValue, f as StaticRpcDumpSerialization, i as dumpFunctions, l as StaticRpcDumpManifestQueryEntry, n as serializeDumpError, o as StaticRpcDumpCollection, p as collectStaticRpcDump, r as createClientFromDump, s as StaticRpcDumpFile, t as reviveDumpError, u as StaticRpcDumpManifestStaticEntry } from "../index-BAZpbgHu.mjs";
1
+ import { a as getDefinitionsWithDumps, c as StaticRpcDumpManifest, d as StaticRpcDumpManifestValue, f as StaticRpcDumpSerialization, i as dumpFunctions, l as StaticRpcDumpManifestQueryEntry, n as serializeDumpError, o as StaticRpcDumpCollection, p as collectStaticRpcDump, r as createClientFromDump, s as StaticRpcDumpFile, t as reviveDumpError, u as StaticRpcDumpManifestStaticEntry } from "../index-YDSJgsyG.mjs";
2
2
  export { StaticRpcDumpCollection, StaticRpcDumpFile, StaticRpcDumpManifest, StaticRpcDumpManifestQueryEntry, StaticRpcDumpManifestStaticEntry, StaticRpcDumpManifestValue, StaticRpcDumpSerialization, collectStaticRpcDump, createClientFromDump, dumpFunctions, getDefinitionsWithDumps, reviveDumpError, serializeDumpError };
package/dist/rpc/dump.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { a as dumpFunctions, c as serializeDumpError, i as createClientFromDump, o as getDefinitionsWithDumps, s as reviveDumpError, t as collectStaticRpcDump } from "../dump-D09PZb7T.mjs";
1
+ import { a as dumpFunctions, c as serializeDumpError, i as createClientFromDump, o as getDefinitionsWithDumps, s as reviveDumpError, t as collectStaticRpcDump } from "../dump-CocOVBVz.mjs";
2
2
  export { collectStaticRpcDump, createClientFromDump, dumpFunctions, getDefinitionsWithDumps, reviveDumpError, serializeDumpError };
@@ -1,3 +1,3 @@
1
- import { C as RpcFunctionType, E as Thenable, S as RpcFunctionSetupResult, T as RpcReturnSchema, _ as RpcFunctionDefinition, a as RpcDefinitionsFilter, b as RpcFunctionDefinitionBase, c as RpcDump, d as RpcDumpDefinition, f as RpcDumpGetter, g as RpcFunctionAgentOptions, h as RpcDumpStore, i as RpcArgsSchema, l as RpcDumpClientOptions, m as RpcDumpRecordError, n as BirpcReturn, o as RpcDefinitionsToFunctions, p as RpcDumpRecord, r as EntriesToObject, s as RpcDefinitionsToFunctionsWithNamespace, t as BirpcFn, u as RpcDumpCollectionOptions, v as RpcFunctionDefinitionAny, w as RpcFunctionsCollector, x as RpcFunctionDefinitionToFunction, y as RpcFunctionDefinitionAnyWithContext } from "../types-oEqKqUC9.mjs";
2
- import { C as RpcCacheManager, S as RpcFunctionsCollectorBase, _ as strictJsonStringify, a as StaticRpcDumpManifestStaticEntry, b as createDefineWrapperWithContext, c as collectStaticRpcDump, d as getDefinitionsWithDumps, f as reviveDumpError, g as STRUCTURED_CLONE_PREFIX, h as validateDefinitions, i as StaticRpcDumpManifestQueryEntry, l as createClientFromDump, m as validateDefinition, n as StaticRpcDumpFile, o as StaticRpcDumpManifestValue, p as serializeDumpError, r as StaticRpcDumpManifest, s as StaticRpcDumpSerialization, t as StaticRpcDumpCollection, u as dumpFunctions, v as getRpcHandler, w as RpcCacheOptions, x as defineRpcFunction, y as getRpcResolvedSetupResult } from "../index-DI_TMGjv.mjs";
1
+ import { C as RpcFunctionType, E as Thenable, S as RpcFunctionSetupResult, T as RpcReturnSchema, _ as RpcFunctionDefinition, a as RpcDefinitionsFilter, b as RpcFunctionDefinitionBase, c as RpcDump, d as RpcDumpDefinition, f as RpcDumpGetter, g as RpcFunctionAgentOptions, h as RpcDumpStore, i as RpcArgsSchema, l as RpcDumpClientOptions, m as RpcDumpRecordError, n as BirpcReturn, o as RpcDefinitionsToFunctions, p as RpcDumpRecord, r as EntriesToObject, s as RpcDefinitionsToFunctionsWithNamespace, t as BirpcFn, u as RpcDumpCollectionOptions, v as RpcFunctionDefinitionAny, w as RpcFunctionsCollector, x as RpcFunctionDefinitionToFunction, y as RpcFunctionDefinitionAnyWithContext } from "../types-CrzNxXKq.mjs";
2
+ import { C as RpcCacheManager, S as RpcFunctionsCollectorBase, _ as strictJsonStringify, a as StaticRpcDumpManifestStaticEntry, b as createDefineWrapperWithContext, c as collectStaticRpcDump, d as getDefinitionsWithDumps, f as reviveDumpError, g as STRUCTURED_CLONE_PREFIX, h as validateDefinitions, i as StaticRpcDumpManifestQueryEntry, l as createClientFromDump, m as validateDefinition, n as StaticRpcDumpFile, o as StaticRpcDumpManifestValue, p as serializeDumpError, r as StaticRpcDumpManifest, s as StaticRpcDumpSerialization, t as StaticRpcDumpCollection, u as dumpFunctions, v as getRpcHandler, w as RpcCacheOptions, x as defineRpcFunction, y as getRpcResolvedSetupResult } from "../index-DgsLFhZg.mjs";
3
3
  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, RpcFunctionSetupResult, RpcFunctionType, RpcFunctionsCollector, RpcFunctionsCollectorBase, RpcReturnSchema, STRUCTURED_CLONE_PREFIX, StaticRpcDumpCollection, StaticRpcDumpFile, StaticRpcDumpManifest, StaticRpcDumpManifestQueryEntry, StaticRpcDumpManifestStaticEntry, StaticRpcDumpManifestValue, StaticRpcDumpSerialization, Thenable, collectStaticRpcDump, createClientFromDump, createDefineWrapperWithContext, defineRpcFunction, dumpFunctions, getDefinitionsWithDumps, getRpcHandler, getRpcResolvedSetupResult, reviveDumpError, serializeDumpError, strictJsonStringify, validateDefinition, validateDefinitions };
@@ -1,4 +1,4 @@
1
- import { a as dumpFunctions$1, c as serializeDumpError$1, d as hash, i as createClientFromDump$1, l as validateDefinition, n as getRpcHandler, o as getDefinitionsWithDumps$1, r as getRpcResolvedSetupResult, s as reviveDumpError$1, t as collectStaticRpcDump$1, u as validateDefinitions } from "../dump-D09PZb7T.mjs";
1
+ import { a as dumpFunctions$1, c as serializeDumpError$1, d as hash, i as createClientFromDump$1, l as validateDefinition, n as getRpcHandler, o as getDefinitionsWithDumps$1, r as getRpcResolvedSetupResult, s as reviveDumpError$1, t as collectStaticRpcDump$1, u as validateDefinitions } from "../dump-CocOVBVz.mjs";
2
2
  import { t as diagnostics } from "../diagnostics-BXwBQmoN.mjs";
3
3
  import { n as defineRpcFunction, t as createDefineWrapperWithContext } from "../define-BLWPsH6y.mjs";
4
4
  import { n as strictJsonStringify, t as STRUCTURED_CLONE_PREFIX } from "../serialization-DpLXCy13.mjs";
@@ -1,5 +1,4 @@
1
1
  import { BirpcGroup, EventOptions } from "birpc";
2
-
3
2
  //#region src/rpc/server.d.ts
4
3
  declare function createRpcServer<ClientFunctions extends object = Record<string, never>, ServerFunctions extends object = Record<string, never>>(functions: ServerFunctions, options?: {
5
4
  rpcOptions?: EventOptions<ClientFunctions, ServerFunctions, false>;
@@ -1,2 +1,2 @@
1
- import { n as createWsRpcChannel, t as WsRpcChannelOptions } from "../../ws-client-nBjpin71.mjs";
1
+ import { n as createWsRpcChannel, t as WsRpcChannelOptions } from "../../ws-client-DSXiI2h7.mjs";
2
2
  export { WsRpcChannelOptions, createWsRpcChannel };
@@ -1,2 +1,2 @@
1
- import { a as isAllowedOrigin, i as attachWsRpcTransport, n as WsRpcTransport, o as isLoopbackHostname, r as WsRpcTransportOptions, t as DevframeNodeRpcSessionMeta } from "../../ws-server-BUgJpdX4.mjs";
1
+ import { a as isAllowedOrigin, i as attachWsRpcTransport, n as WsRpcTransport, o as isLoopbackHostname, r as WsRpcTransportOptions, t as DevframeNodeRpcSessionMeta } from "../../ws-server-CceOy6He.mjs";
2
2
  export { DevframeNodeRpcSessionMeta, WsRpcTransport, WsRpcTransportOptions, attachWsRpcTransport, isAllowedOrigin, isLoopbackHostname };
@@ -1,11 +1,10 @@
1
- import { at as DevframeRpcServerFunctions, f as ConnectionMeta, g as DevframeNodeRpcSession, h as DevframeNodeContext, it as DevframeRpcClientFunctions } from "./devframe-CpXy1ZlO.mjs";
2
- import { c as DevframeAuthHandler } from "./index-DzeFcwMM.mjs";
1
+ import { _ as DevframeNodeRpcSession, at as DevframeRpcClientFunctions, g as DevframeNodeContext, ot as DevframeRpcServerFunctions, p as ConnectionMeta } from "./devframe-CnTVuGw9.mjs";
2
+ import { c as DevframeAuthHandler } from "./index-Dpsr-8dD.mjs";
3
3
  import { BirpcGroup, EventOptions } from "birpc";
4
4
  import { Peer } from "crossws";
5
5
  import { NodeAdapter } from "crossws/adapters/node";
6
6
  import { Server } from "node:http";
7
7
  import { H3 } from "h3";
8
-
9
8
  //#region src/node/server.d.ts
10
9
  interface StartHttpAndWsOptions {
11
10
  context: DevframeNodeContext;
@@ -1,4 +1,4 @@
1
- import { $ as ScopedClientFunctions, C as RpcStreamingHost, Ct as EventsMap, G as Thenable, J as DevframeScopedStreamingHost, K as DevframeScopedNodeContext, Q as ScopedBroadcastOptions, S as RpcStreamingChannelOptions, St as EventUnsubscribe, U as EntriesToObject, W as PartialWithoutId, X as DevframeSettingsRegistry, Y as DevframeSettings, Z as DevframeSettingsStore, _ as RpcBroadcastOptions, _t as AgentTool, a as DevframeDuplicationStrategy, at as DevframeRpcServerFunctions, b as RpcSharedStateHost, bt as DevframeAgentHostEvents, c as DevframeSpaOptions, ct as DevframeDefineDiagnosticsOptions, d as defineDevframe, dt as DevframeDiagnosticsLogger, et as ScopedServerFunctions, f as ConnectionMeta, ft as AgentHandle, g as DevframeNodeRpcSession, gt as AgentResourceInput, h as DevframeNodeContext, ht as AgentResourceContent, i as DevframeDeploymentKind, it as DevframeRpcClientFunctions, l as DevframeWsOptions, lt as DevframeDiagnosticsDefinition, m as DevframeCapabilities, mt as AgentResource, n as DevframeCliOptions, nt as SettingsForNamespace, o as DevframeRuntime, ot as DevframeRpcSharedStates, p as ConnectionMetaWebsocket, pt as AgentManifest, q as DevframeScopedNodeRpc, r as DevframeDefinition, rt as DevframeViewHost, s as DevframeSetupInfo, st as DevframeHost, t as DevframeBrowserContext, tt as ScopedSharedStates, u as McpRouteOptions, ut as DevframeDiagnosticsHost, v as RpcFunctionsHost, vt as AgentToolInput, x as RpcStreamingChannel, xt as EventEmitter, y as RpcSharedStateGetOptions, yt as DevframeAgentHost } from "../devframe-CpXy1ZlO.mjs";
2
- import { g as RpcFunctionAgentOptions } from "../types-oEqKqUC9.mjs";
3
- import { t as DevframeNodeRpcSessionMeta } from "../ws-server-BUgJpdX4.mjs";
4
- export { AgentHandle, AgentManifest, AgentResource, AgentResourceContent, AgentResourceInput, AgentTool, AgentToolInput, ConnectionMeta, ConnectionMetaWebsocket, DevframeAgentHost, DevframeAgentHostEvents, DevframeBrowserContext, DevframeCapabilities, DevframeCliOptions, DevframeDefineDiagnosticsOptions, DevframeDefinition, DevframeDeploymentKind, DevframeDiagnosticsDefinition, DevframeDiagnosticsHost, DevframeDiagnosticsLogger, DevframeDuplicationStrategy, DevframeHost, DevframeNodeContext, DevframeNodeRpcSession, type DevframeNodeRpcSessionMeta, DevframeRpcClientFunctions, DevframeRpcServerFunctions, DevframeRpcSharedStates, DevframeRuntime, DevframeScopedNodeContext, DevframeScopedNodeRpc, DevframeScopedStreamingHost, DevframeSettings, DevframeSettingsRegistry, DevframeSettingsStore, DevframeSetupInfo, DevframeSpaOptions, DevframeViewHost, DevframeWsOptions, EntriesToObject, EventEmitter, EventUnsubscribe, EventsMap, McpRouteOptions, PartialWithoutId, RpcBroadcastOptions, type RpcFunctionAgentOptions, RpcFunctionsHost, RpcSharedStateGetOptions, RpcSharedStateHost, RpcStreamingChannel, RpcStreamingChannelOptions, RpcStreamingHost, ScopedBroadcastOptions, ScopedClientFunctions, ScopedServerFunctions, ScopedSharedStates, SettingsForNamespace, Thenable, defineDevframe };
1
+ import { $ as ScopedBroadcastOptions, C as RpcStreamingChannelOptions, Ct as EventUnsubscribe, G as PartialWithoutId, J as DevframeScopedNodeRpc, K as Thenable, Q as DevframeSettingsStore, S as RpcStreamingChannel, St as EventEmitter, W as EntriesToObject, X as DevframeSettings, Y as DevframeScopedStreamingHost, Z as DevframeSettingsRegistry, _ as DevframeNodeRpcSession, _t as AgentResourceInput, a as DevframeDockDefaults, at as DevframeRpcClientFunctions, b as RpcSharedStateGetOptions, bt as DevframeAgentHost, c as DevframeSetupInfo, ct as DevframeHost, d as McpRouteOptions, dt as DevframeDiagnosticsHost, et as ScopedClientFunctions, f as defineDevframe, ft as DevframeDiagnosticsLogger, g as DevframeNodeContext, gt as AgentResourceContent, h as DevframeCapabilities, ht as AgentResource, i as DevframeDeploymentKind, it as DevframeViewHost, l as DevframeSpaOptions, lt as DevframeDefineDiagnosticsOptions, m as ConnectionMetaWebsocket, mt as AgentManifest, n as DevframeCliOptions, nt as ScopedSharedStates, o as DevframeDuplicationStrategy, ot as DevframeRpcServerFunctions, p as ConnectionMeta, pt as AgentHandle, q as DevframeScopedNodeContext, r as DevframeDefinition, rt as SettingsForNamespace, s as DevframeRuntime, st as DevframeRpcSharedStates, t as DevframeBrowserContext, tt as ScopedServerFunctions, u as DevframeWsOptions, ut as DevframeDiagnosticsDefinition, v as RpcBroadcastOptions, vt as AgentTool, w as RpcStreamingHost, wt as EventsMap, x as RpcSharedStateHost, xt as DevframeAgentHostEvents, y as RpcFunctionsHost, yt as AgentToolInput } from "../devframe-CnTVuGw9.mjs";
2
+ import { g as RpcFunctionAgentOptions } from "../types-CrzNxXKq.mjs";
3
+ import { t as DevframeNodeRpcSessionMeta } from "../ws-server-CceOy6He.mjs";
4
+ export { AgentHandle, AgentManifest, AgentResource, AgentResourceContent, AgentResourceInput, AgentTool, AgentToolInput, ConnectionMeta, ConnectionMetaWebsocket, DevframeAgentHost, DevframeAgentHostEvents, DevframeBrowserContext, DevframeCapabilities, DevframeCliOptions, DevframeDefineDiagnosticsOptions, DevframeDefinition, DevframeDeploymentKind, DevframeDiagnosticsDefinition, DevframeDiagnosticsHost, DevframeDiagnosticsLogger, DevframeDockDefaults, DevframeDuplicationStrategy, DevframeHost, DevframeNodeContext, DevframeNodeRpcSession, type DevframeNodeRpcSessionMeta, DevframeRpcClientFunctions, DevframeRpcServerFunctions, DevframeRpcSharedStates, DevframeRuntime, DevframeScopedNodeContext, DevframeScopedNodeRpc, DevframeScopedStreamingHost, DevframeSettings, DevframeSettingsRegistry, DevframeSettingsStore, DevframeSetupInfo, DevframeSpaOptions, DevframeViewHost, DevframeWsOptions, EntriesToObject, EventEmitter, EventUnsubscribe, EventsMap, McpRouteOptions, PartialWithoutId, RpcBroadcastOptions, type RpcFunctionAgentOptions, RpcFunctionsHost, RpcSharedStateGetOptions, RpcSharedStateHost, RpcStreamingChannel, RpcStreamingChannelOptions, RpcStreamingHost, ScopedBroadcastOptions, ScopedClientFunctions, ScopedServerFunctions, ScopedSharedStates, SettingsForNamespace, Thenable, defineDevframe };
@@ -1,6 +1,5 @@
1
1
  import { GenericSchema, InferInput } from "valibot";
2
2
  import { BirpcFn, BirpcReturn as BirpcReturn$1 } from "birpc";
3
-
4
3
  //#region src/rpc/utils.d.ts
5
4
  /** Infers TypeScript tuple type from Valibot schema array */
6
5
  type InferArgsType<S extends RpcArgsSchema | undefined> = S extends readonly [] ? [] : S extends readonly [infer H, ...infer T] ? H extends GenericSchema ? T extends readonly GenericSchema[] ? [InferInput<H>, ...InferArgsType<T>] : never : never : never;
@@ -9,7 +8,7 @@ type InferReturnType<S extends RpcReturnSchema | undefined> = S extends RpcRetur
9
8
  //#endregion
10
9
  //#region src/rpc/types.d.ts
11
10
  type Thenable<T> = T | Promise<T>;
12
- type EntriesToObject<T extends readonly [string, any][]> = { [K in T[number] as K[0]]: K[1] };
11
+ type EntriesToObject<T extends readonly [string, any][]> = { [K in T[number] as K[0]]: K[1]; };
13
12
  /**
14
13
  * Type of the RPC function,
15
14
  * - static: A function that returns a static data, no arguments (can be cached and dumped)
@@ -201,10 +200,15 @@ interface RpcDumpCollectionOptions {
201
200
  * RPC function definition with optional dump support.
202
201
  */
203
202
  type RpcFunctionDefinition<NAME extends string, TYPE extends RpcFunctionType = 'query', ARGS extends any[] = [], RETURN = void, AS extends RpcArgsSchema | undefined = undefined, RS extends RpcReturnSchema | undefined = undefined, CONTEXT = undefined> = [AS, RS] extends [undefined, undefined] ? {
204
- /** Function name (unique identifier) */name: NAME; /** Function type (static, action, event, or query) */
205
- type?: TYPE; /** Whether the function results should be cached */
206
- cacheable?: boolean; /** Valibot schema array for validating function arguments */
207
- args?: AS; /** Valibot schema for validating function return value */
203
+ /** Function name (unique identifier) */
204
+ name: NAME;
205
+ /** Function type (static, action, event, or query) */
206
+ type?: TYPE;
207
+ /** Whether the function results should be cached */
208
+ cacheable?: boolean;
209
+ /** Valibot schema array for validating function arguments */
210
+ args?: AS;
211
+ /** Valibot schema for validating function return value */
208
212
  returns?: RS;
209
213
  /**
210
214
  * Declares whether this function's args/return are JSON-serializable
@@ -222,9 +226,12 @@ type RpcFunctionDefinition<NAME extends string, TYPE extends RpcFunctionType = '
222
226
  *
223
227
  * @experimental
224
228
  */
225
- agent?: RpcFunctionAgentOptions; /** Setup function called with context to initialize handler and dump */
226
- setup?: (context: CONTEXT) => Thenable<RpcFunctionSetupResult<ARGS, RETURN>>; /** Function implementation (required if setup doesn't provide one) */
227
- handler?: (...args: ARGS) => RETURN; /** Dump definition (setup dump takes priority) */
229
+ agent?: RpcFunctionAgentOptions;
230
+ /** Setup function called with context to initialize handler and dump */
231
+ setup?: (context: CONTEXT) => Thenable<RpcFunctionSetupResult<ARGS, RETURN>>;
232
+ /** Function implementation (required if setup doesn't provide one) */
233
+ handler?: (...args: ARGS) => RETURN;
234
+ /** Dump definition (setup dump takes priority) */
228
235
  dump?: RpcDump<ARGS, RETURN, CONTEXT>;
229
236
  /**
230
237
  * Sugar for "query in dev, single baked snapshot in build": when
@@ -234,14 +241,21 @@ type RpcFunctionDefinition<NAME extends string, TYPE extends RpcFunctionType = '
234
241
  * to the same snapshot. Only valid on `query` (or untyped)
235
242
  * functions — `static` already has equivalent default behavior.
236
243
  */
237
- snapshot?: boolean; /** Per-context setup-result cache, populated by `getRpcResolvedSetupResult`. @internal */
238
- __cache?: WeakMap<object, Thenable<RpcFunctionSetupResult<ARGS, RETURN>>>; /** Single-slot fallback for primitive contexts. @internal */
244
+ snapshot?: boolean;
245
+ /** Per-context setup-result cache, populated by `getRpcResolvedSetupResult`. @internal */
246
+ __cache?: WeakMap<object, Thenable<RpcFunctionSetupResult<ARGS, RETURN>>>;
247
+ /** Single-slot fallback for primitive contexts. @internal */
239
248
  __promise?: Thenable<RpcFunctionSetupResult<ARGS, RETURN>>;
240
249
  } : {
241
- /** Function name (unique identifier) */name: NAME; /** Function type (static, action, event, or query) */
242
- type?: TYPE; /** Whether the function results should be cached */
243
- cacheable?: boolean; /** Valibot schema array for validating function arguments */
244
- args: AS; /** Valibot schema for validating function return value */
250
+ /** Function name (unique identifier) */
251
+ name: NAME;
252
+ /** Function type (static, action, event, or query) */
253
+ type?: TYPE;
254
+ /** Whether the function results should be cached */
255
+ cacheable?: boolean;
256
+ /** Valibot schema array for validating function arguments */
257
+ args: AS;
258
+ /** Valibot schema for validating function return value */
245
259
  returns: RS;
246
260
  /**
247
261
  * Declares whether this function's args/return are JSON-serializable
@@ -259,9 +273,12 @@ type RpcFunctionDefinition<NAME extends string, TYPE extends RpcFunctionType = '
259
273
  *
260
274
  * @experimental
261
275
  */
262
- agent?: RpcFunctionAgentOptions; /** Setup function called with context to initialize handler and dump */
263
- setup?: (context: CONTEXT) => Thenable<RpcFunctionSetupResult<InferArgsType<AS>, InferReturnType<RS>>>; /** Function implementation (required if setup doesn't provide one) */
264
- handler?: (...args: InferArgsType<AS>) => InferReturnType<RS>; /** Dump definition (setup dump takes priority) */
276
+ agent?: RpcFunctionAgentOptions;
277
+ /** Setup function called with context to initialize handler and dump */
278
+ setup?: (context: CONTEXT) => Thenable<RpcFunctionSetupResult<InferArgsType<AS>, InferReturnType<RS>>>;
279
+ /** Function implementation (required if setup doesn't provide one) */
280
+ handler?: (...args: InferArgsType<AS>) => InferReturnType<RS>;
281
+ /** Dump definition (setup dump takes priority) */
265
282
  dump?: RpcDump<InferArgsType<AS>, InferReturnType<RS>, CONTEXT>;
266
283
  /**
267
284
  * Sugar for "query in dev, single baked snapshot in build": when
@@ -271,8 +288,10 @@ type RpcFunctionDefinition<NAME extends string, TYPE extends RpcFunctionType = '
271
288
  * to the same snapshot. Only valid on `query` (or untyped)
272
289
  * functions — `static` already has equivalent default behavior.
273
290
  */
274
- snapshot?: boolean; /** Per-context setup-result cache, populated by `getRpcResolvedSetupResult`. @internal */
275
- __cache?: WeakMap<object, Thenable<RpcFunctionSetupResult<InferArgsType<AS>, InferReturnType<RS>>>>; /** Single-slot fallback for primitive contexts. @internal */
291
+ snapshot?: boolean;
292
+ /** Per-context setup-result cache, populated by `getRpcResolvedSetupResult`. @internal */
293
+ __cache?: WeakMap<object, Thenable<RpcFunctionSetupResult<InferArgsType<AS>, InferReturnType<RS>>>>;
294
+ /** Single-slot fallback for primitive contexts. @internal */
276
295
  __promise?: Thenable<RpcFunctionSetupResult<InferArgsType<AS>, InferReturnType<RS>>>;
277
296
  };
278
297
  type RpcFunctionDefinitionToFunction<T extends RpcFunctionDefinitionAny> = T extends {
@@ -281,7 +300,7 @@ type RpcFunctionDefinitionToFunction<T extends RpcFunctionDefinitionAny> = T ext
281
300
  } ? AS extends RpcArgsSchema ? RS extends RpcReturnSchema ? (...args: InferArgsType<AS>) => InferReturnType<RS> : never : never : T extends RpcFunctionDefinition<string, any, infer ARGS, infer RETURN, any, any, any> ? (...args: ARGS) => RETURN : never;
282
301
  type RpcFunctionDefinitionAny = RpcFunctionDefinition<string, any, any, any, any, any, any>;
283
302
  type RpcFunctionDefinitionAnyWithContext<CONTEXT = undefined> = RpcFunctionDefinition<string, any, any, any, any, any, CONTEXT>;
284
- type RpcDefinitionsToFunctions<T extends readonly RpcFunctionDefinitionAny[]> = EntriesToObject<{ [K in keyof T]: [T[K]['name'], RpcFunctionDefinitionToFunction<T[K]>] }>;
303
+ type RpcDefinitionsToFunctions<T extends readonly RpcFunctionDefinitionAny[]> = EntriesToObject<{ [K in keyof T]: [T[K]['name'], RpcFunctionDefinitionToFunction<T[K]>]; }>;
285
304
  /**
286
305
  * Like {@link RpcDefinitionsToFunctions}, but prefixes every (bare)
287
306
  * definition name with `<NS>:`. Use this when functions are defined with
@@ -289,9 +308,9 @@ type RpcDefinitionsToFunctions<T extends readonly RpcFunctionDefinitionAny[]> =
289
308
  * (`ctx.scope(NS).rpc.register(...)`), so the augmented registry keys
290
309
  * match the namespaced ids stored at runtime.
291
310
  */
292
- type RpcDefinitionsToFunctionsWithNamespace<NS extends string, T extends readonly RpcFunctionDefinitionAny[]> = EntriesToObject<{ [K in keyof T]: [`${NS}:${T[K]['name'] & string}`, RpcFunctionDefinitionToFunction<T[K]>] }>;
311
+ type RpcDefinitionsToFunctionsWithNamespace<NS extends string, T extends readonly RpcFunctionDefinitionAny[]> = EntriesToObject<{ [K in keyof T]: [`${NS}:${T[K]['name'] & string}`, RpcFunctionDefinitionToFunction<T[K]>]; }>;
293
312
  type RpcDefinitionsFilter<T extends readonly RpcFunctionDefinitionAny[], Type extends RpcFunctionType> = { [K in keyof T]: T[K] extends {
294
313
  type: Type;
295
- } ? T[K] : never };
314
+ } ? T[K] : never; };
296
315
  //#endregion
297
316
  export { RpcFunctionType as C, Thenable as E, RpcFunctionSetupResult as S, RpcReturnSchema as T, RpcFunctionDefinition as _, RpcDefinitionsFilter as a, RpcFunctionDefinitionBase as b, RpcDump as c, RpcDumpDefinition as d, RpcDumpGetter as f, RpcFunctionAgentOptions as g, RpcDumpStore as h, RpcArgsSchema as i, RpcDumpClientOptions as l, RpcDumpRecordError as m, BirpcReturn$1 as n, RpcDefinitionsToFunctions as o, RpcDumpRecord as p, EntriesToObject as r, RpcDefinitionsToFunctionsWithNamespace as s, BirpcFn as t, RpcDumpCollectionOptions as u, RpcFunctionDefinitionAny as v, RpcFunctionsCollector as w, RpcFunctionDefinitionToFunction as x, RpcFunctionDefinitionAnyWithContext as y };
@@ -1,5 +1,4 @@
1
- import { Ct as EventsMap, xt as EventEmitter } from "../devframe-CpXy1ZlO.mjs";
2
-
1
+ import { St as EventEmitter, wt as EventsMap } from "../devframe-CnTVuGw9.mjs";
3
2
  //#region src/utils/events.d.ts
4
3
  /**
5
4
  * Create event emitter.
@@ -1,2 +1,2 @@
1
- import { t as hash } from "../hash-PAfnyu2k.mjs";
1
+ import { t as hash } from "../hash-KtDZYXDN.mjs";
2
2
  export { hash };
@@ -1,2 +1,2 @@
1
- import { t as launchEditor } from "../launch-editor-DIzaS5EG.mjs";
1
+ import { t as launchEditor } from "../launch-editor-C_xuzLnF.mjs";
2
2
  export { launchEditor };
@@ -1,6 +1,5 @@
1
1
  import { IncomingMessage, ServerResponse } from "node:http";
2
2
  import { EventHandler, H3 } from "h3";
3
-
4
3
  //#region src/utils/serve-static.d.ts
5
4
  interface ServeStaticOptions {
6
5
  /** Default: `['index.html']`. */
@@ -1,2 +1,2 @@
1
- import { B as SharedStateOptions, F as ImmutableMap, H as createSharedState, I as ImmutableObject, L as ImmutableSet, N as Immutable, P as ImmutableArray, R as SharedState, V as SharedStatePatch, z as SharedStateEvents } from "../devframe-CpXy1ZlO.mjs";
1
+ import { B as SharedStateEvents, F as ImmutableArray, H as SharedStatePatch, I as ImmutableMap, L as ImmutableObject, P as Immutable, R as ImmutableSet, U as createSharedState, V as SharedStateOptions, z as SharedState } from "../devframe-CnTVuGw9.mjs";
2
2
  export { Immutable, ImmutableArray, ImmutableMap, ImmutableObject, ImmutableSet, SharedState, SharedStateEvents, SharedStateOptions, SharedStatePatch, createSharedState };
@@ -1,2 +1,2 @@
1
- import { A as StreamSinkEvents, D as StreamErrorPayload, E as CreateStreamSinkOptions, M as createStreamSink, O as StreamReader, T as CreateStreamReaderOptions, j as createStreamReader, k as StreamSink, w as BufferedChunk } from "../devframe-CpXy1ZlO.mjs";
1
+ import { A as StreamSink, D as CreateStreamSinkOptions, E as CreateStreamReaderOptions, M as createStreamReader, N as createStreamSink, O as StreamErrorPayload, T as BufferedChunk, j as StreamSinkEvents, k as StreamReader } from "../devframe-CnTVuGw9.mjs";
2
2
  export { BufferedChunk, CreateStreamReaderOptions, CreateStreamSinkOptions, StreamErrorPayload, StreamReader, StreamSink, StreamSinkEvents, createStreamReader, createStreamSink };