devframe 1.3.1 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/dist/{_shared-Cm4iD0L3.d.mts → _shared-BxeuukaL.d.mts} +2 -4
  2. package/dist/{_shared-C61zPwIz.mjs → _shared-CtXCQFTV.mjs} +6 -9
  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 +10 -10
  12. package/dist/adapters/initiate.mjs +1 -2
  13. package/dist/adapters/mcp.d.mts +2 -2
  14. package/dist/adapters/mcp.mjs +1 -2
  15. package/dist/{agentic-C6SCkdtj.d.mts → agentic-DVgUzwhV.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-iBkMYxqn.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-BGJi0ITA.d.mts → context-B-AARy_U.d.mts} +1 -3
  26. package/dist/{context-D_jSSdME.mjs → context-BTxC4QrJ.mjs} +4 -5
  27. package/dist/{context-CAJ5V017.mjs → context-C5FcbWQi.mjs} +25 -41
  28. package/dist/{crypto-token-TVbGGFuj.mjs → crypto-token-CUhPE_ei.mjs} +1 -2
  29. package/dist/{define-BLWPsH6y.mjs → define-C8h-fyD3.mjs} +1 -2
  30. package/dist/{dev-BKBjIpX3.mjs → dev-Cu_iwSCy.mjs} +9 -11
  31. package/dist/{diagnostics-E_PvUPsA.mjs → diagnostics-DC1-WcvN.mjs} +2 -3
  32. package/dist/{dist-CO98PBnQ.mjs → dist-BWGpvt-z.mjs} +1 -2
  33. package/dist/{dist-CZXfGEkd.mjs → dist-CZ-TySHD.mjs} +3 -11
  34. package/dist/{events-0wDwalmL.mjs → events-qWCKwD8-.mjs} +1 -2
  35. package/dist/{handler-DmaAfpGq.mjs → handler-DkLlj3-B.mjs} +3 -5
  36. package/dist/{hash-DdPnc4k3.mjs → hash-DHqpWeMO.mjs} +4 -8
  37. package/dist/{host-h3-BROI6SQ4.mjs → host-h3-D1uj5EM8.mjs} +1 -2
  38. package/dist/{import-runtime-module-BzlEQ9PI.mjs → import-runtime-module-DsdqJ1gK.mjs} +2 -3
  39. package/dist/in-page-channel/index.d.mts +3 -12
  40. package/dist/in-page-channel/index.mjs +10 -16
  41. package/dist/{index-CeEtxDmK.d.mts → index-BIRF0E5l.d.mts} +0 -2
  42. package/dist/{index-Bia1vKjL.d.mts → index-BKu9BxcT.d.mts} +0 -2
  43. package/dist/{context-BNxFOPbX.d.mts → index-BhUqJUHG.d.mts} +1408 -1442
  44. package/dist/index.d.mts +7 -8
  45. package/dist/index.mjs +3 -4
  46. package/dist/{instance-registry-C_4PpB6N.mjs → instance-registry-DwmnWyCK.mjs} +4 -10
  47. package/dist/{instance-shell-m4sY2oTG.mjs → instance-shell-Coid7CP6.mjs} +38 -17
  48. package/dist/{instance-shell-GihbmXoF.d.mts → instance-shell-DTk514M9.d.mts} +6 -10
  49. package/dist/{interactive-auth-DdDxs3WF.mjs → interactive-auth-BURwIAvE.mjs} +6 -8
  50. package/dist/internal/index.d.mts +9 -29
  51. package/dist/internal/index.mjs +13 -15
  52. package/dist/{mcp-content-QImBQO8e.d.mts → mcp-content-0a0mpCL5.d.mts} +1 -3
  53. package/dist/{mcp-content-DN3O212x.mjs → mcp-content-CqU8yaF7.mjs} +1 -2
  54. package/dist/{mrmime-40h5OOIp.mjs → mrmime-y_XyiVcd.mjs} +1 -2
  55. package/dist/node/auth.d.mts +84 -3
  56. package/dist/node/auth.mjs +2 -2
  57. package/dist/node/hub-internals.d.mts +11 -2
  58. package/dist/node/hub-internals.mjs +2 -2
  59. package/dist/node/index.d.mts +4 -6
  60. package/dist/node/index.mjs +2 -2
  61. package/dist/{nostics-D0PvLZsn.mjs → nostics-InlX4tmd.mjs} +2 -4
  62. package/dist/{origin-DZit9g29.mjs → origin-Ck7mLbKU.mjs} +1 -2
  63. package/dist/recipes/interactive-auth.d.mts +3 -5
  64. package/dist/recipes/interactive-auth.mjs +1 -2
  65. package/dist/{remote-assets-eBvSKZMS.d.mts → remote-assets-5AQMHZnV.d.mts} +0 -2
  66. package/dist/{remote-assets-B-n83kUY.mjs → remote-assets-DhonNeo_.mjs} +5 -8
  67. package/dist/{revoke-CeQUo6KI.mjs → revoke-D6KA3vwr.mjs} +2 -3
  68. package/dist/{rolldown-runtime-B4iAMlE-.mjs → rolldown-runtime-BVN1G_yT.mjs} +6 -7
  69. package/dist/rpc/client.d.mts +2 -4
  70. package/dist/rpc/client.mjs +2 -3
  71. package/dist/rpc/dump.d.mts +3 -11
  72. package/dist/rpc/dump.mjs +1 -2
  73. package/dist/rpc/index.d.mts +122 -4
  74. package/dist/rpc/index.mjs +6 -8
  75. package/dist/rpc/server.d.mts +2 -4
  76. package/dist/rpc/server.mjs +2 -3
  77. package/dist/rpc/transports/sse-client.d.mts +34 -2
  78. package/dist/rpc/transports/sse-client.mjs +2 -3
  79. package/dist/rpc/transports/sse-server.d.mts +5 -7
  80. package/dist/rpc/transports/sse-server.mjs +4 -5
  81. package/dist/rpc/transports/ws-bun.d.mts +3 -5
  82. package/dist/rpc/transports/ws-bun.mjs +2 -3
  83. package/dist/rpc/transports/ws-client.d.mts +27 -2
  84. package/dist/rpc/transports/ws-client.mjs +2 -3
  85. package/dist/rpc/transports/ws-deno.d.mts +3 -5
  86. package/dist/rpc/transports/ws-deno.mjs +2 -3
  87. package/dist/rpc/transports/ws-server.d.mts +151 -4
  88. package/dist/rpc/transports/ws-server.mjs +5 -6
  89. package/dist/{rpc-core-BLc5hm9X.mjs → rpc-core-BmDHiDR6.mjs} +4 -5
  90. package/dist/{rpc-core-CGTCla-R.d.mts → rpc-core-CblgPYJ_.d.mts} +5 -7
  91. package/dist/{serialization-BhuOoL80.mjs → serialization-iiTQ7n21.mjs} +3 -5
  92. package/dist/{services-install-D5YUwFXW.mjs → services-install-DCuDzMJ-.mjs} +1 -2
  93. package/dist/{session-DPfj6zQG.mjs → session-BjvoLH3r.mjs} +1 -2
  94. package/dist/{session-r6PDixP6.d.mts → session-Y9R6tqg4.d.mts} +0 -2
  95. package/dist/{shared-state-Cc-Jrhma.mjs → shared-state-COV7NCbd.mjs} +4 -6
  96. package/dist/{state-W4wI6X5X.mjs → state-B_yjfeqo.mjs} +3 -5
  97. package/dist/{storage-CWI9PZ-5.mjs → storage-DpJ52UB_.mjs} +3 -5
  98. package/dist/{structured-clone-CbAV5rFI.mjs → structured-clone-B1N_XQvA.mjs} +2 -4
  99. package/dist/{structured-clone-CgtQ61SA.mjs → structured-clone-D1dOCZvc.mjs} +2 -4
  100. package/dist/{tool-input-CES3Pc4y.mjs → tool-input-CcCgJ8jq.mjs} +6 -12
  101. package/dist/types/index.d.mts +5 -5
  102. package/dist/{types-BmDbfHCx.d.mts → types-KZOyhez5.d.mts} +2 -5
  103. package/dist/utils/agent-tool-name.d.mts +1 -3
  104. package/dist/utils/agent-tool-name.mjs +1 -2
  105. package/dist/utils/colors.d.mts +1 -3
  106. package/dist/utils/colors.mjs +1 -2
  107. package/dist/utils/crypto-token.d.mts +1 -3
  108. package/dist/utils/crypto-token.mjs +1 -2
  109. package/dist/utils/debounce.d.mts +6 -2
  110. package/dist/utils/debounce.mjs +1 -2
  111. package/dist/utils/events.d.mts +2 -4
  112. package/dist/utils/events.mjs +1 -2
  113. package/dist/utils/get-port.d.mts +0 -2
  114. package/dist/utils/get-port.mjs +1 -2
  115. package/dist/utils/hash.d.mts +1 -3
  116. package/dist/utils/hash.mjs +1 -2
  117. package/dist/utils/launch-editor.d.mts +1 -3
  118. package/dist/utils/launch-editor.mjs +25 -37
  119. package/dist/utils/nanoid.d.mts +1 -3
  120. package/dist/utils/nanoid.mjs +1 -2
  121. package/dist/utils/nostics.d.mts +40 -2
  122. package/dist/utils/nostics.mjs +1 -2
  123. package/dist/utils/open.d.mts +1 -3
  124. package/dist/utils/open.mjs +1 -2
  125. package/dist/utils/origin.d.mts +55 -2
  126. package/dist/utils/origin.mjs +1 -2
  127. package/dist/utils/remote-assets.d.mts +2 -4
  128. package/dist/utils/remote-assets.mjs +1 -2
  129. package/dist/utils/serve-static.d.mts +3 -5
  130. package/dist/utils/serve-static.mjs +3 -4
  131. package/dist/utils/shared-state.d.mts +1 -1
  132. package/dist/utils/shared-state.mjs +1 -2
  133. package/dist/utils/simple-schema.d.mts +1 -3
  134. package/dist/utils/simple-schema.mjs +1 -2
  135. package/dist/utils/streaming-channel.d.mts +1 -1
  136. package/dist/utils/streaming-channel.mjs +1 -2
  137. package/dist/utils/structured-clone.d.mts +1 -3
  138. package/dist/utils/structured-clone.mjs +1 -2
  139. package/dist/utils/url.d.mts +1 -3
  140. package/dist/utils/url.mjs +1 -2
  141. package/dist/utils/when.d.mts +1 -3
  142. package/dist/utils/when.mjs +2 -4
  143. package/dist/{validation-CMfDAti3.mjs → validation-Cjy1P58H.mjs} +7 -13
  144. package/dist/{wire-codec-B1W3zH3L.mjs → wire-codec-BdngvzfH.mjs} +3 -4
  145. package/dist/{write-DK7rBUN3.mjs → write-3miSvPaD.mjs} +10 -16
  146. package/package.json +8 -8
  147. package/dist/index-CxJatyA1.d.mts +0 -88
  148. package/dist/index-DuEm0sDH.d.mts +0 -135
  149. package/dist/nostics-DWvukRwa.d.mts +0 -42
  150. package/dist/origin-CY6BBHOy.d.mts +0 -58
  151. package/dist/sse-client-DNdscfu_.d.mts +0 -37
  152. package/dist/ws-client-6Mrz6eC4.d.mts +0 -30
  153. package/dist/ws-server-y2R76aSW.d.mts +0 -152
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/perfect-debounce@2.1.0/node_modules/perfect-debounce/dist/index.mjs
1
+ // ../../node_modules/.pnpm/perfect-debounce@2.1.0/node_modules/perfect-debounce/dist/index.mjs
2
2
  const DEBOUNCE_DEFAULTS = { trailing: true };
3
3
  /**
4
4
  Debounce functions
@@ -84,5 +84,4 @@ function debounce(fn, wait = 25, options = {}) {
84
84
  async function _applyPromised(fn, _this, args) {
85
85
  return await fn.apply(_this, args);
86
86
  }
87
- //#endregion
88
87
  export { debounce };
@@ -1,7 +1,5 @@
1
- import { in as EventsMap, nn as EventEmitter } from "../context-BNxFOPbX.mjs";
2
- //#region src/utils/events.d.ts
1
+ import { in as EventsMap, nn as EventEmitter } from "../index-BhUqJUHG.mjs";
3
2
  /**
4
3
  * Create event emitter.
5
4
  */
6
- export declare function createEventEmitter<Events extends EventsMap>(): EventEmitter<Events>;
7
- //#endregion
5
+ export declare function createEventEmitter<Events extends EventsMap>(): EventEmitter<Events>;
@@ -1,4 +1,4 @@
1
- //#region src/utils/events.ts
1
+ // src/utils/events.ts
2
2
  /**
3
3
  * Create event emitter.
4
4
  */
@@ -36,5 +36,4 @@ function createEventEmitter() {
36
36
  once
37
37
  };
38
38
  }
39
- //#endregion
40
39
  export { createEventEmitter };
@@ -1,4 +1,3 @@
1
- //#region ../../node_modules/.pnpm/get-port-please@3.2.0/node_modules/get-port-please/dist/index.d.mts
2
1
  interface GetPortOptions {
3
2
  name: string;
4
3
  random: boolean;
@@ -13,5 +12,4 @@ interface GetPortOptions {
13
12
  type GetPortInput = Partial<GetPortOptions> | number | string;
14
13
  type PortNumber = number;
15
14
  declare function getPort(_userOptions?: GetPortInput): Promise<PortNumber>;
16
- //#endregion
17
15
  export { type GetPortInput, type GetPortOptions, getPort };
@@ -1,2 +1 @@
1
- import { n as getPort } from "../dist-CZXfGEkd.mjs";
2
- export { getPort };
1
+ export { n as getPort } from "../dist-CZ-TySHD.mjs";
@@ -1,6 +1,4 @@
1
- //#region src/utils/hash.d.ts
2
1
  /**
3
2
  * Stable, deterministic hash of any structured-cloneable value.
4
3
  */
5
- export declare function hash(value: unknown): string;
6
- //#endregion
4
+ export declare function hash(value: unknown): string;
@@ -1,2 +1 @@
1
- import { t as hash } from "../hash-DdPnc4k3.mjs";
2
- export { hash };
1
+ export { t as hash } from "../hash-DHqpWeMO.mjs";
@@ -1,4 +1,3 @@
1
- //#region src/utils/launch-editor.d.ts
2
1
  /**
3
2
  * Editor commands `launch-editor` recognizes with a tailored
4
3
  * `file:line:column` invocation. Callers that gate an RPC surface's editor
@@ -16,5 +15,4 @@ export declare const KNOWN_EDITORS: KnownEditor[];
16
15
  * `'subl'`) or absolute binary path. Otherwise the editor is auto-detected
17
16
  * via the `LAUNCH_EDITOR` env var with a fallback to common defaults.
18
17
  */
19
- export declare function launchEditor(target: string, editor?: string): void;
20
- //#endregion
18
+ export declare function launchEditor(target: string, editor?: string): void;
@@ -1,5 +1,5 @@
1
- import { i as __toESM, r as __require, t as __commonJSMin } from "../rolldown-runtime-B4iAMlE-.mjs";
2
- //#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
1
+ import { i as __toESM, r as __require, t as __commonJSMin } from "../rolldown-runtime-BVN1G_yT.mjs";
2
+ // ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
3
3
  var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4
4
  let p = process || {};
5
5
  let argv = p.argv || [];
@@ -68,8 +68,7 @@ var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
68
68
  module.exports = createColors();
69
69
  module.exports.createColors = createColors;
70
70
  }));
71
- //#endregion
72
- //#region ../../node_modules/.pnpm/shell-quote@1.12.0/node_modules/shell-quote/quote.js
71
+ // ../../node_modules/.pnpm/shell-quote@1.12.0/node_modules/shell-quote/quote.js
73
72
  var require_quote = /* @__PURE__ */ __commonJSMin(((exports, module) => {
74
73
  /** @import { ControlOperator } from './parse' */
75
74
  /** @type {ControlOperator['op'][]} */
@@ -133,8 +132,7 @@ var require_quote = /* @__PURE__ */ __commonJSMin(((exports, module) => {
133
132
  }).join(" ");
134
133
  };
135
134
  }));
136
- //#endregion
137
- //#region ../../node_modules/.pnpm/shell-quote@1.12.0/node_modules/shell-quote/parse.js
135
+ // ../../node_modules/.pnpm/shell-quote@1.12.0/node_modules/shell-quote/parse.js
138
136
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
139
137
  /**
140
138
  * @import {
@@ -401,14 +399,12 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
401
399
  }, []);
402
400
  };
403
401
  }));
404
- //#endregion
405
- //#region ../../node_modules/.pnpm/shell-quote@1.12.0/node_modules/shell-quote/index.js
402
+ // ../../node_modules/.pnpm/shell-quote@1.12.0/node_modules/shell-quote/index.js
406
403
  var require_shell_quote = /* @__PURE__ */ __commonJSMin(((exports) => {
407
404
  exports.quote = require_quote();
408
405
  exports.parse = require_parse();
409
406
  }));
410
- //#endregion
411
- //#region ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/editor-info/macos.js
407
+ // ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/editor-info/macos.js
412
408
  var require_macos = /* @__PURE__ */ __commonJSMin(((exports, module) => {
413
409
  module.exports = {
414
410
  "/Applications/Atom.app/Contents/MacOS/Atom": "atom",
@@ -442,8 +438,7 @@ var require_macos = /* @__PURE__ */ __commonJSMin(((exports, module) => {
442
438
  "/Applications/Zed.app/Contents/MacOS/zed": "zed"
443
439
  };
444
440
  }));
445
- //#endregion
446
- //#region ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/editor-info/linux.js
441
+ // ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/editor-info/linux.js
447
442
  var require_linux = /* @__PURE__ */ __commonJSMin(((exports, module) => {
448
443
  module.exports = {
449
444
  atom: "atom",
@@ -476,8 +471,7 @@ var require_linux = /* @__PURE__ */ __commonJSMin(((exports, module) => {
476
471
  zed: "zed"
477
472
  };
478
473
  }));
479
- //#endregion
480
- //#region ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/editor-info/windows.js
474
+ // ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/editor-info/windows.js
481
475
  var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
482
476
  module.exports = [
483
477
  "Brackets.exe",
@@ -509,12 +503,11 @@ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
509
503
  "Antigravity.exe"
510
504
  ];
511
505
  }));
512
- //#endregion
513
- //#region ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/guess.js
506
+ // ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/guess.js
514
507
  var require_guess = /* @__PURE__ */ __commonJSMin(((exports, module) => {
515
- const path$3 = __require("path");
508
+ const path = __require("path");
516
509
  const shellQuote = require_shell_quote();
517
- const childProcess$1 = __require("child_process");
510
+ const childProcess = __require("child_process");
518
511
  const COMMON_EDITORS_MACOS = require_macos();
519
512
  const COMMON_EDITORS_LINUX = require_linux();
520
513
  const COMMON_EDITORS_WIN = require_windows();
@@ -536,7 +529,7 @@ var require_guess = /* @__PURE__ */ __commonJSMin(((exports, module) => {
536
529
  const runningProcesses = output.split("\r\n");
537
530
  for (let i = 0; i < runningProcesses.length; i++) {
538
531
  const fullProcessPath = runningProcesses[i].trim();
539
- const shortProcessName = path$3.win32.basename(fullProcessPath);
532
+ const shortProcessName = path.win32.basename(fullProcessPath);
540
533
  if (COMMON_EDITORS_WIN.indexOf(shortProcessName) !== -1) return fullProcessPath;
541
534
  }
542
535
  }
@@ -553,21 +546,21 @@ var require_guess = /* @__PURE__ */ __commonJSMin(((exports, module) => {
553
546
  if (process.versions.webcontainer) return [process.env.EDITOR || "code"];
554
547
  try {
555
548
  if (process.platform === "darwin") {
556
- const editor = getEditorFromMacProcesses(childProcess$1.execSync("ps x -o comm=", { stdio: [
549
+ const editor = getEditorFromMacProcesses(childProcess.execSync("ps x -o comm=", { stdio: [
557
550
  "pipe",
558
551
  "pipe",
559
552
  "ignore"
560
553
  ] }).toString());
561
554
  if (editor !== void 0) return [editor];
562
555
  } else if (process.platform === "win32") {
563
- const editor = getEditorFromWindowsProcesses(childProcess$1.execSync("powershell -NoProfile -Command \"[Console]::OutputEncoding=[Text.Encoding]::UTF8;Get-CimInstance -Query \\\"select executablepath from win32_process where executablepath is not null\\\" | % { $_.ExecutablePath }\"", { stdio: [
556
+ const editor = getEditorFromWindowsProcesses(childProcess.execSync("powershell -NoProfile -Command \"[Console]::OutputEncoding=[Text.Encoding]::UTF8;Get-CimInstance -Query \\\"select executablepath from win32_process where executablepath is not null\\\" | % { $_.ExecutablePath }\"", { stdio: [
564
557
  "pipe",
565
558
  "pipe",
566
559
  "ignore"
567
560
  ] }).toString());
568
561
  if (editor !== void 0) return [editor];
569
562
  } else if (process.platform === "linux") {
570
- const editor = getEditorFromLinuxProcesses(childProcess$1.execSync("ps x --no-heading -o comm --sort=comm", { stdio: [
563
+ const editor = getEditorFromLinuxProcesses(childProcess.execSync("ps x --no-heading -o comm --sort=comm", { stdio: [
571
564
  "pipe",
572
565
  "pipe",
573
566
  "ignore"
@@ -584,16 +577,15 @@ var require_guess = /* @__PURE__ */ __commonJSMin(((exports, module) => {
584
577
  module.exports.getEditorFromWindowsProcesses = getEditorFromWindowsProcesses;
585
578
  module.exports.getEditorFromLinuxProcesses = getEditorFromLinuxProcesses;
586
579
  }));
587
- //#endregion
588
- //#region ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/get-args.js
580
+ // ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/get-args.js
589
581
  var require_get_args = /* @__PURE__ */ __commonJSMin(((exports, module) => {
590
582
  const os = __require("os");
591
- const path$2 = __require("path");
583
+ const path = __require("path");
592
584
  module.exports = function getArgumentsForFile(editor, fileName, lineNumber, columnNumber = 1) {
593
- fileName = path$2.resolve(fileName);
594
- if (process.platform === "linux" && fileName.startsWith("/mnt/") && /Microsoft/i.test(os.release())) fileName = `./${path$2.relative("", fileName)}`;
585
+ fileName = path.resolve(fileName);
586
+ if (process.platform === "linux" && fileName.startsWith("/mnt/") && /Microsoft/i.test(os.release())) fileName = `./${path.relative("", fileName)}`;
595
587
  if (!lineNumber) return [fileName];
596
- switch (path$2.basename(editor).replace(/\.(exe|cmd|bat)$/i, "")) {
588
+ switch (path.basename(editor).replace(/\.(exe|cmd|bat)$/i, "")) {
597
589
  case "atom":
598
590
  case "Atom":
599
591
  case "Atom Beta":
@@ -667,8 +659,7 @@ var require_get_args = /* @__PURE__ */ __commonJSMin(((exports, module) => {
667
659
  return [fileName];
668
660
  };
669
661
  }));
670
- //#endregion
671
- //#region ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/construct-windows-launch-command.js
662
+ // ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/construct-windows-launch-command.js
672
663
  var require_construct_windows_launch_command = /* @__PURE__ */ __commonJSMin(((exports, module) => {
673
664
  function escapeCmdArgs(cmdArgs) {
674
665
  return cmdArgs.replace(/([&|<>,;=^])/g, "^$1");
@@ -685,15 +676,14 @@ var require_construct_windows_launch_command = /* @__PURE__ */ __commonJSMin(((e
685
676
  }
686
677
  module.exports = constructWindowsLaunchCommand;
687
678
  }));
688
- //#endregion
689
- //#region ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/parse-file.js
679
+ // ../../node_modules/.pnpm/launch-editor@2.14.2/node_modules/launch-editor/parse-file.js
690
680
  var require_parse_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
691
- const path$1 = __require("path");
681
+ const path = __require("path");
692
682
  const positionRE = /:(\d+)(:(\d+))?$/;
693
683
  module.exports = function parseFile(file) {
694
684
  if (file.startsWith("file://")) file = __require("url").fileURLToPath(file);
695
685
  const unresolvedFileName = file.replace(positionRE, "");
696
- const fileName = unresolvedFileName ? path$1.resolve(unresolvedFileName) : "";
686
+ const fileName = unresolvedFileName ? path.resolve(unresolvedFileName) : "";
697
687
  const match = file.match(positionRE);
698
688
  return {
699
689
  fileName,
@@ -702,8 +692,7 @@ var require_parse_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
702
692
  };
703
693
  };
704
694
  }));
705
- //#endregion
706
- //#region src/utils/launch-editor.ts
695
+ // src/utils/launch-editor.ts
707
696
  var import_launch_editor = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
708
697
  /**
709
698
  * Copyright (c) 2015-present, Facebook, Inc.
@@ -831,5 +820,4 @@ const KNOWN_EDITORS = [
831
820
  function launchEditor(target, editor) {
832
821
  (0, import_launch_editor.default)(target, editor);
833
822
  }
834
- //#endregion
835
823
  export { KNOWN_EDITORS, launchEditor };
@@ -1,3 +1 @@
1
- //#region src/utils/nanoid.d.ts
2
- export declare function nanoid(size?: number): string;
3
- //#endregion
1
+ export declare function nanoid(size?: number): string;
@@ -1,4 +1,4 @@
1
- //#region src/utils/nanoid.ts
1
+ // src/utils/nanoid.ts
2
2
  const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
3
3
  function nanoid(size = 21) {
4
4
  let id = "";
@@ -6,5 +6,4 @@ function nanoid(size = 21) {
6
6
  while (i--) id += urlAlphabet[Math.random() * 64 | 0];
7
7
  return id;
8
8
  }
9
- //#endregion
10
9
  export { nanoid };
@@ -1,2 +1,40 @@
1
- import { _ as formatDiagnostic, a as DevframeDiagnostics, c as DiagnosticDefinition, d as DiagnosticReporter, f as Diagnostics, g as defineProdDiagnostics, h as defineDiagnostics, i as DevframeDefineDiagnosticsOptions, l as DiagnosticHandle, m as createConsoleReporter, n as ConsoleMethod, o as Diagnostic, p as ansiFormatter, r as ConsoleReporterOptions, s as DiagnosticCallParams, t as AnyDiagnosticReporter, u as DiagnosticInit } from "../nostics-DWvukRwa.mjs";
2
- export { type AnyDiagnosticReporter, type ConsoleMethod, type ConsoleReporterOptions, DevframeDefineDiagnosticsOptions, DevframeDiagnostics, type Diagnostic, type DiagnosticCallParams, type DiagnosticDefinition, type DiagnosticHandle, type DiagnosticInit, type DiagnosticReporter, type Diagnostics, ansiFormatter, createConsoleReporter, defineDiagnostics, defineProdDiagnostics, formatDiagnostic };
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
+ import { ansiFormatter } from "nostics/formatters/ansi";
3
+ /**
4
+ * The reporter every {@link defineDiagnostics} call below wires in ahead of
5
+ * any caller-supplied ones: prints the diagnostic through devframe's own
6
+ * ANSI colors via `console[method]` (default `'warn'`).
7
+ */
8
+ declare function devframeReporter(d: Diagnostic$1, { method }?: {
9
+ method?: 'log' | 'warn' | 'error';
10
+ }): void;
11
+ /**
12
+ * Options accepted by {@link defineDiagnostics}, identical to `nostics`'s
13
+ * own `DefineDiagnosticsOptions`, minus the reporter devframe already
14
+ * prepends.
15
+ */
16
+ export type DevframeDefineDiagnosticsOptions<Codes extends Record<string, DiagnosticDefinition$1>, Reporters extends readonly AnyDiagnosticReporter$1[] = []> = Parameters<typeof defineDiagnostics<Codes, Reporters>>[0];
17
+ /**
18
+ * Drop-in replacement for `nostics`'s `defineDiagnostics()` with devframe's
19
+ * ANSI console reporter pre-wired ahead of any `reporters` passed in. Every
20
+ * `diagnostics.ts` in devframe core, `@devframes/hub`, `@devframes/json-render`,
21
+ * and the built-in plugins defines its codes through this instead of
22
+ * `nostics`'s own `defineDiagnostics`; the reporter registration lives
23
+ * here, once, so none of them need to build their own reporter (`colors`,
24
+ * `ansiFormatter`) or take a direct dependency on `nostics` themselves.
25
+ */
26
+ export declare function defineDiagnostics<const Codes extends Record<string, DiagnosticDefinition$1>, const Reporters extends readonly AnyDiagnosticReporter$1[] = []>(options: {
27
+ docsBase?: string | ((code: keyof Codes) => string | undefined);
28
+ codes: Codes;
29
+ reporters?: Reporters;
30
+ }): DevframeDiagnostics<Codes, Reporters>;
31
+ /**
32
+ * The `Diagnostics` object returned by devframe's {@link defineDiagnostics}
33
+ * (devframe's ANSI console reporter is always prepended). Integrations that
34
+ * export their own `defineDiagnostics(...)` result as public API annotate it
35
+ * with this type, so the reference resolves through `devframe/utils/nostics`
36
+ * rather than inlining `nostics`'s types or taking a direct `nostics`
37
+ * dependency.
38
+ */
39
+ export type DevframeDiagnostics<Codes extends Record<string, DiagnosticDefinition$1>, Reporters extends readonly AnyDiagnosticReporter$1[] = []> = Diagnostics$1<Codes, readonly [typeof devframeReporter, ...Reporters]>;
40
+ export { type AnyDiagnosticReporter, type ConsoleMethod, type ConsoleReporterOptions, type Diagnostic, type DiagnosticCallParams, type DiagnosticDefinition, type DiagnosticHandle, type DiagnosticInit, type DiagnosticReporter, type Diagnostics, ansiFormatter, createConsoleReporter, defineProdDiagnostics, formatDiagnostic };
@@ -1,2 +1 @@
1
- import { a as defineProdDiagnostics, i as defineDiagnostics, n as ansiFormatter, o as formatDiagnostic, r as createConsoleReporter, t as Diagnostic } from "../nostics-D0PvLZsn.mjs";
2
- export { Diagnostic, ansiFormatter, createConsoleReporter, defineDiagnostics, defineProdDiagnostics, formatDiagnostic };
1
+ export { t as Diagnostic, n as ansiFormatter, r as createConsoleReporter, i as defineDiagnostics, a as defineProdDiagnostics, o as formatDiagnostic } from "../nostics-InlX4tmd.mjs";
@@ -1,7 +1,5 @@
1
- //#region src/utils/open.d.ts
2
1
  /**
3
2
  * Open a URL, file, or other target in its default OS handler
4
3
  * (browser for URLs, Finder/Explorer for paths, etc.).
5
4
  */
6
- export declare function open(target: string): Promise<void>;
7
- //#endregion
5
+ export declare function open(target: string): Promise<void>;
@@ -1,7 +1,7 @@
1
1
  import fs from "node:fs";
2
2
  import process from "node:process";
3
3
  import { spawn } from "node:child_process";
4
- //#region src/utils/open.ts
4
+ // src/utils/open.ts
5
5
  /**
6
6
  * Launches `command` detached from the current process and resolves once
7
7
  * the OS has accepted the spawn (not once the launched app exits), the
@@ -53,5 +53,4 @@ async function open(target) {
53
53
  }
54
54
  return spawnDetached("xdg-open", [target]);
55
55
  }
56
- //#endregion
57
56
  export { open };
@@ -1,2 +1,55 @@
1
- import { i as validateOriginCandidate, n as isLoopbackAddress, r as isLoopbackHostname, t as isAllowedOrigin } from "../origin-CY6BBHOy.mjs";
2
- export { isAllowedOrigin, isLoopbackAddress, isLoopbackHostname, validateOriginCandidate };
1
+ /**
2
+ * Origin and hostname predicates shared by the RPC transports (the WS upgrade,
3
+ * SSE, and MCP origin gates) and the instance shell's authentication-link
4
+ * origin validation. Kept dependency-free and runtime-agnostic so any consumer
5
+ * can pull in a single check without dragging in a transport's `crossws`
6
+ * import.
7
+ */
8
+ /**
9
+ * Whether `hostname` names a loopback host: `localhost` (or any `*.localhost`
10
+ * subdomain), the IPv6 loopback `::1`, or an IPv4 literal inside the
11
+ * `127.0.0.0/8` loopback block.
12
+ *
13
+ * The IPv4 case is matched **structurally**: the whole hostname must be a
14
+ * canonical dotted-decimal IPv4 literal whose first octet is `127`. A bare
15
+ * `startsWith('127.')` prefix check would also accept an attacker-controlled
16
+ * DNS name that merely *begins* with `127.` (`127.attacker.example`,
17
+ * `127.0.0.1.attacker.example`), letting a cross-origin browser page defeat
18
+ * the loopback origin gate that guards the RPC/MCP surface (a DNS-rebinding /
19
+ * cross-site WebSocket-hijacking bypass). Requiring a real IPv4 literal keeps
20
+ * genuine loopback addresses (`127.0.0.1`, `127.5.5.5`) allowed while rejecting
21
+ * those DNS names.
22
+ */
23
+ export declare function isLoopbackHostname(hostname: string): boolean;
24
+ /**
25
+ * Whether `address` is a loopback peer address as reported by a socket
26
+ * (`net.Socket.remoteAddress`): the IPv6 loopback `::1`, an IPv4 literal in
27
+ * `127.0.0.0/8`, or an IPv4-mapped IPv6 form of one (`::ffff:127.0.0.1`).
28
+ *
29
+ * Unlike {@link isLoopbackHostname} this takes a raw address, not a hostname:
30
+ * it never accepts a `localhost`-style name (a socket peer is always a literal
31
+ * address) and understands the IPv4-mapped IPv6 form the OS hands back on a
32
+ * dual-stack listener. Used to prove a same-machine caller from the connected
33
+ * peer, which a client cannot forge, rather than from the `Origin` header,
34
+ * which it can.
35
+ */
36
+ export declare function isLoopbackAddress(address: string): boolean;
37
+ /**
38
+ * Default origin policy for a localhost dev tool: allow requests with no
39
+ * `Origin` header (native, non-browser clients), allow any loopback origin
40
+ * (so cross-port localhost dev setups keep working), and allow explicitly
41
+ * configured origins. Everything else, such as a real remote page in the dev's
42
+ * browser, is rejected.
43
+ */
44
+ export declare function isAllowedOrigin(origin: string | undefined, allowedOrigins: readonly string[]): boolean;
45
+ /**
46
+ * Decide whether a request-derived origin candidate may back a devframe's
47
+ * advertised public origin, the destination of the OTP magic link. Stricter
48
+ * than {@link isAllowedOrigin}: it rejects credentials, a path, a query, a
49
+ * fragment, a malformed port, and non-HTTP(S) schemes, and adopts a candidate
50
+ * only when its hostname is loopback or its canonical origin exactly matches
51
+ * an `allowedOrigins` entry (a caller with no static list passes none, so only
52
+ * loopback qualifies). Returns the canonical origin to adopt, or `undefined`
53
+ * to reject. Forwarded headers are never consulted.
54
+ */
55
+ export declare function validateOriginCandidate(candidate: string, allowedOrigins?: readonly string[]): string | undefined;
@@ -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
@@ -96,5 +96,4 @@ function validateOriginCandidate(candidate, allowedOrigins) {
96
96
  if (canonical === "null") return void 0;
97
97
  if (isLoopbackHostname(url.hostname) || allowedOrigins?.includes(canonical)) return canonical;
98
98
  }
99
- //#endregion
100
99
  export { isAllowedOrigin, isLoopbackAddress, isLoopbackHostname, validateOriginCandidate };
@@ -1,5 +1,4 @@
1
- import { a as RemoteAssetsStore, o as StaticAssetsSource } from "../remote-assets-eBvSKZMS.mjs";
2
- //#region src/utils/remote-assets.d.ts
1
+ import { a as RemoteAssetsStore, o as StaticAssetsSource } from "../remote-assets-5AQMHZnV.mjs";
3
2
  /**
4
3
  * Normalize a {@link StaticAssetsSource} into something servable: a local
5
4
  * directory (strings pass through; a remote source short-circuits to a
@@ -16,5 +15,4 @@ import { a as RemoteAssetsStore, o as StaticAssetsSource } from "../remote-asset
16
15
  * per-source string still wins and an explicit `null` still opts out of the
17
16
  * installed-copy lookup.
18
17
  */
19
- export declare function resolveStaticAssetsSource(source: StaticAssetsSource, projectStorageDir: string, defaultResolveFrom?: string | null): string | RemoteAssetsStore;
20
- //#endregion
18
+ export declare function resolveStaticAssetsSource(source: StaticAssetsSource, projectStorageDir: string, defaultResolveFrom?: string | null): string | RemoteAssetsStore;
@@ -1,2 +1 @@
1
- import { t as resolveStaticAssetsSource } from "../remote-assets-B-n83kUY.mjs";
2
- export { resolveStaticAssetsSource };
1
+ export { t as resolveStaticAssetsSource } from "../remote-assets-DhonNeo_.mjs";
@@ -1,7 +1,6 @@
1
- import { a as RemoteAssetsStore } from "../remote-assets-eBvSKZMS.mjs";
2
- import { EventHandler, H3 } from "h3";
1
+ import { a as RemoteAssetsStore } from "../remote-assets-5AQMHZnV.mjs";
3
2
  import { IncomingMessage, ServerResponse } from "node:http";
4
- //#region src/utils/serve-static.d.ts
3
+ import { EventHandler, H3 } from "h3";
5
4
  /**
6
5
  * What the static-serving engine accepts: a local directory, or a resolved
7
6
  * {@link RemoteAssetsStore} back-proxy (from `devframe/utils/remote-assets`).
@@ -40,5 +39,4 @@ export declare function mountStaticHandler(app: H3, base: string, source: Servab
40
39
  * Connect stack; avoids forcing the host package to depend on h3 just to
41
40
  * adapt an event handler back into Node middleware.
42
41
  */
43
- export declare function serveStaticNodeMiddleware(source: ServableAssets, options?: ServeStaticOptions): (req: IncomingMessage, res: ServerResponse, next?: (err?: Error) => void) => void;
44
- //#endregion
42
+ export declare function serveStaticNodeMiddleware(source: ServableAssets, options?: ServeStaticOptions): (req: IncomingMessage, res: ServerResponse, next?: (err?: Error) => void) => void;
@@ -1,11 +1,11 @@
1
- import { t as DEVFRAME_EVENTS } from "../events-0wDwalmL.mjs";
2
- import { t as lookup } from "../mrmime-40h5OOIp.mjs";
1
+ import { t as lookup } from "../mrmime-y_XyiVcd.mjs";
2
+ import { t as DEVFRAME_EVENTS } from "../events-qWCKwD8-.mjs";
3
3
  import { realpath, stat } from "node:fs/promises";
4
4
  import { extname, join, normalize, resolve, sep } from "pathe";
5
5
  import { createReadStream } from "node:fs";
6
6
  import { Readable } from "node:stream";
7
7
  import { H3, defineHandler } from "h3";
8
- //#region src/utils/serve-static.ts
8
+ // src/utils/serve-static.ts
9
9
  const HTML_EXTENSIONS = [".html", ".htm"];
10
10
  /**
11
11
  * The canonical (symlink-resolved) served root, falling back to the lexical
@@ -312,5 +312,4 @@ function remoteErrorPage(pkg, version, reason) {
312
312
  </html>
313
313
  `;
314
314
  }
315
- //#endregion
316
315
  export { mountStaticHandler, serveStaticHandler, serveStaticNodeMiddleware };
@@ -1,2 +1,2 @@
1
- import { A as SharedStateEvents, D as ImmutableObject, E as ImmutableMap, M as SharedStatePatch, N as createSharedState, O as ImmutableSet, T as ImmutableArray, j as SharedStateOptions, k as SharedState, w as Immutable } from "../context-BNxFOPbX.mjs";
1
+ import { Bt as SharedState, Ft as Immutable, Ht as SharedStateOptions, It as ImmutableArray, Lt as ImmutableMap, Rt as ImmutableObject, Ut as SharedStatePatch, Vt as SharedStateEvents, Wt as createSharedState, zt as ImmutableSet } from "../index-BhUqJUHG.mjs";
2
2
  export { Immutable, ImmutableArray, ImmutableMap, ImmutableObject, ImmutableSet, SharedState, SharedStateEvents, SharedStateOptions, SharedStatePatch, createSharedState };
@@ -1,2 +1 @@
1
- import { t as createSharedState } from "../shared-state-Cc-Jrhma.mjs";
2
- export { createSharedState };
1
+ export { t as createSharedState } from "../shared-state-COV7NCbd.mjs";
@@ -1,5 +1,4 @@
1
- import { t as StandardSchemaV1 } from "../index-CeEtxDmK.mjs";
2
- //#region src/utils/simple-schema.d.ts
1
+ import { t as StandardSchemaV1 } from "../index-BIRF0E5l.mjs";
3
2
  /**
4
3
  * A tiny, zero-dependency [Standard Schema](https://standardschema.dev/)
5
4
  * builder.
@@ -98,5 +97,4 @@ export declare const s: {
98
97
  readonly nullable: typeof nullable;
99
98
  readonly describe: typeof describe;
100
99
  };
101
- //#endregion
102
100
  export type { StandardSchemaV1 };
@@ -1,4 +1,4 @@
1
- //#region src/utils/simple-schema.ts
1
+ // src/utils/simple-schema.ts
2
2
  function ok(value) {
3
3
  return { value };
4
4
  }
@@ -150,5 +150,4 @@ const s = {
150
150
  nullable,
151
151
  describe
152
152
  };
153
- //#endregion
154
153
  export { array, boolean, describe, literal, nullType, nullable, number, object, optional, picklist, record, s, string, union, voidType };
@@ -1,2 +1,2 @@
1
- import { C as createStreamSink, S as createStreamReader, _ as CreateStreamSinkOptions, b as StreamSink, g as CreateStreamReaderOptions, h as BufferedChunk, v as StreamErrorPayload, x as StreamSinkEvents, y as StreamReader } from "../context-BNxFOPbX.mjs";
1
+ import { At as StreamReader, Dt as CreateStreamReaderOptions, Et as BufferedChunk, Mt as StreamSinkEvents, Nt as createStreamReader, Ot as CreateStreamSinkOptions, Pt as createStreamSink, jt as StreamSink, kt as StreamErrorPayload } from "../index-BhUqJUHG.mjs";
2
2
  export { BufferedChunk, CreateStreamReaderOptions, CreateStreamSinkOptions, StreamErrorPayload, StreamReader, StreamSink, StreamSinkEvents, createStreamReader, createStreamSink };
@@ -1,6 +1,6 @@
1
1
  import { createEventEmitter } from "./events.mjs";
2
2
  import { nanoid } from "./nanoid.mjs";
3
- //#region src/utils/streaming-channel.ts
3
+ // src/utils/streaming-channel.ts
4
4
  const DEFAULT_HIGH_WATER_MARK = 256;
5
5
  var StreamClosedError = class extends Error {
6
6
  name = "StreamClosedError";
@@ -254,5 +254,4 @@ function toErrorPayload(reason) {
254
254
  };
255
255
  }
256
256
  }
257
- //#endregion
258
257
  export { createStreamReader, createStreamSink };
@@ -1,4 +1,3 @@
1
- //#region src/utils/structured-clone.d.ts
2
1
  /**
3
2
  * Serialize a structured-cloneable value (`Map`, `Set`, `Date`, `BigInt`,
4
3
  * cycles, class instances, …) into a JSON-safe records array.
@@ -16,5 +15,4 @@ export declare function structuredCloneStringify(value: unknown): string;
16
15
  /**
17
16
  * Inverse of {@link structuredCloneStringify}.
18
17
  */
19
- export declare function structuredCloneParse<T = unknown>(value: string): T;
20
- //#endregion
18
+ export declare function structuredCloneParse<T = unknown>(value: string): T;
@@ -1,2 +1 @@
1
- import { i as structuredCloneStringify, n as structuredCloneParse, r as structuredCloneSerialize, t as structuredCloneDeserialize } from "../structured-clone-CgtQ61SA.mjs";
2
- export { structuredCloneDeserialize, structuredCloneParse, structuredCloneSerialize, structuredCloneStringify };
1
+ export { t as structuredCloneDeserialize, n as structuredCloneParse, r as structuredCloneSerialize, i as structuredCloneStringify } from "../structured-clone-D1dOCZvc.mjs";
@@ -1,4 +1,3 @@
1
- //#region src/utils/url.d.ts
2
1
  /**
3
2
  * URL path-joining and slash-normalization helpers shared by the adapters,
4
3
  * the RPC clients, and the hub's mount-path plumbing. In-house replacements
@@ -27,5 +26,4 @@ export declare function joinURL(base: string, ...segments: string[]): string;
27
26
  */
28
27
  export declare function withBase(input: string, base: string): string;
29
28
  /** Replaces (or adds) the protocol of `input`: `withProtocol(url, 'ws://')`. */
30
- export declare function withProtocol(input: string, protocol: string): string;
31
- //#endregion
29
+ export declare function withProtocol(input: string, protocol: string): string;
@@ -1,4 +1,4 @@
1
- //#region src/utils/url.ts
1
+ // src/utils/url.ts
2
2
  /**
3
3
  * URL path-joining and slash-normalization helpers shared by the adapters,
4
4
  * the RPC clients, and the hub's mount-path plumbing. In-house replacements
@@ -54,5 +54,4 @@ function withProtocol(input, protocol) {
54
54
  const match = input.match(PROTOCOL_RE);
55
55
  return protocol + (match ? input.slice(match[0].length) : input);
56
56
  }
57
- //#endregion
58
57
  export { cleanDoubleSlashes, joinURL, withBase, withLeadingSlash, withProtocol, withTrailingSlash, withoutLeadingSlash, withoutTrailingSlash };
@@ -1,5 +1,4 @@
1
1
  import { WhenExpression as WhenExpression$1 } from "whenexpr";
2
- //#region src/utils/when.d.ts
3
2
  /**
4
3
  * Context object for evaluating `when` expressions.
5
4
  *
@@ -50,5 +49,4 @@ export declare function evaluateWhen<T extends object, const E extends string>(e
50
49
  * Resolve a context value by key. Supports namespaced keys with `.` or `:`
51
50
  * separators. Returns `undefined` for unknown keys.
52
51
  */
53
- export declare function resolveContextValue<T extends Record<string, unknown>>(key: string, context: T): unknown;
54
- //#endregion
52
+ export declare function resolveContextValue<T extends Record<string, unknown>>(key: string, context: T): unknown;
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/whenexpr@0.1.2/node_modules/whenexpr/dist/index.mjs
1
+ // ../../node_modules/.pnpm/whenexpr@0.1.2/node_modules/whenexpr/dist/index.mjs
2
2
  const OPS = [
3
3
  "===",
4
4
  "!==",
@@ -420,8 +420,7 @@ function resolve(key, ctx) {
420
420
  value: void 0
421
421
  };
422
422
  }
423
- //#endregion
424
- //#region src/utils/when.ts
423
+ // src/utils/when.ts
425
424
  /**
426
425
  * Evaluate a when-clause expression string against a context object.
427
426
  *
@@ -438,5 +437,4 @@ function evaluateWhen(expression, context, options) {
438
437
  function resolveContextValue(key, context) {
439
438
  return resolveContextValue$1(key, context);
440
439
  }
441
- //#endregion
442
440
  export { evaluateWhen, resolveContextValue };