@introspection-ai/recipes 0.55.0 → 0.57.0

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 (190) hide show
  1. package/dist/artifact-links.d.ts +25 -0
  2. package/dist/artifact-links.d.ts.map +1 -0
  3. package/dist/artifact-links.js +92 -0
  4. package/dist/artifact-links.js.map +1 -0
  5. package/dist/artifact-viewer-tui.d.ts +2 -1
  6. package/dist/artifact-viewer-tui.d.ts.map +1 -1
  7. package/dist/artifact-viewer-tui.js.map +1 -1
  8. package/dist/artifact-viewer.d.ts +2 -1
  9. package/dist/artifact-viewer.d.ts.map +1 -1
  10. package/dist/artifact-viewer.js +49 -3
  11. package/dist/artifact-viewer.js.map +1 -1
  12. package/dist/artifact.d.ts +5 -4
  13. package/dist/artifact.d.ts.map +1 -1
  14. package/dist/artifact.js +4 -1
  15. package/dist/artifact.js.map +1 -1
  16. package/dist/batch/files.d.ts +16 -0
  17. package/dist/batch/files.d.ts.map +1 -0
  18. package/dist/batch/files.js +58 -0
  19. package/dist/batch/files.js.map +1 -0
  20. package/dist/batch/index.d.ts +67 -0
  21. package/dist/batch/index.d.ts.map +1 -0
  22. package/dist/batch/index.js +109 -0
  23. package/dist/batch/index.js.map +1 -0
  24. package/dist/batch/limiter.d.ts +20 -0
  25. package/dist/batch/limiter.d.ts.map +1 -0
  26. package/dist/batch/limiter.js +54 -0
  27. package/dist/batch/limiter.js.map +1 -0
  28. package/dist/batch/lines.d.ts +58 -0
  29. package/dist/batch/lines.d.ts.map +1 -0
  30. package/dist/batch/lines.js +77 -0
  31. package/dist/batch/lines.js.map +1 -0
  32. package/dist/batch/params.d.ts +30 -0
  33. package/dist/batch/params.d.ts.map +1 -0
  34. package/dist/batch/params.js +48 -0
  35. package/dist/batch/params.js.map +1 -0
  36. package/dist/batch/runner.d.ts +77 -0
  37. package/dist/batch/runner.d.ts.map +1 -0
  38. package/dist/batch/runner.js +240 -0
  39. package/dist/batch/runner.js.map +1 -0
  40. package/dist/batch/shards.d.ts +42 -0
  41. package/dist/batch/shards.d.ts.map +1 -0
  42. package/dist/batch/shards.js +115 -0
  43. package/dist/batch/shards.js.map +1 -0
  44. package/dist/child/agent.d.ts.map +1 -1
  45. package/dist/child/agent.js +6 -5
  46. package/dist/child/agent.js.map +1 -1
  47. package/dist/child/session.d.ts +1 -0
  48. package/dist/child/session.d.ts.map +1 -1
  49. package/dist/child/session.js +9 -6
  50. package/dist/child/session.js.map +1 -1
  51. package/dist/mcp/daemon/server.d.ts +0 -2
  52. package/dist/mcp/daemon/server.d.ts.map +1 -1
  53. package/dist/mcp/daemon/server.js +1 -1
  54. package/dist/mcp/daemon/server.js.map +1 -1
  55. package/dist/mcp-chunks/{auth-command-PZLSOYAT.js → auth-command-WE7QY6RH.js} +27 -27
  56. package/dist/mcp-chunks/call-arguments-2ABANGLE.js +16 -0
  57. package/dist/mcp-chunks/{call-command-VILJIFYG.js → call-command-OOBUGVTM.js} +56 -70
  58. package/dist/mcp-chunks/{chunk-N2U2FODH.js → chunk-2PTK6KBV.js} +4 -4
  59. package/dist/mcp-chunks/{chunk-F2X4Y2TQ.js → chunk-2R2HWX2E.js} +1 -1
  60. package/dist/mcp-chunks/{chunk-ORJND4AI.js → chunk-2R7UGABC.js} +70 -70
  61. package/dist/mcp-chunks/{chunk-US63Y6XE.js → chunk-32UZRZIL.js} +1 -1
  62. package/dist/mcp-chunks/{chunk-THRMUZZD.js → chunk-37VJZIFW.js} +8 -8
  63. package/dist/mcp-chunks/{chunk-5Z6WSV5D.js → chunk-3KSDZBUJ.js} +5 -5
  64. package/dist/mcp-chunks/{chunk-JTPTAO4M.js → chunk-44KI6DPL.js} +24 -15
  65. package/dist/mcp-chunks/{chunk-BHXCAVFP.js → chunk-4ACA5GWL.js} +1 -1
  66. package/dist/mcp-chunks/{chunk-E76ZUBOJ.js → chunk-4NABHXDS.js} +4 -4
  67. package/dist/mcp-chunks/{chunk-AJDK5Z7O.js → chunk-4SO2DY7F.js} +2 -3
  68. package/dist/mcp-chunks/{chunk-I6UFV7RW.js → chunk-5ZQKSEUN.js} +1 -1
  69. package/dist/mcp-chunks/{chunk-KZGUH7E2.js → chunk-73TMUGJL.js} +2039 -1148
  70. package/dist/mcp-chunks/{chunk-UVRJ3AAD.js → chunk-7KOGD2JK.js} +2 -2
  71. package/dist/mcp-chunks/{chunk-KJ5FPQF6.js → chunk-7SQZWTDU.js} +30 -26
  72. package/dist/mcp-chunks/{chunk-MYAMG6VL.js → chunk-ABPXAKP7.js} +89 -28
  73. package/dist/mcp-chunks/{chunk-2YV72LUA.js → chunk-AIUZOMBB.js} +12 -12
  74. package/dist/mcp-chunks/{chunk-V42T3QNK.js → chunk-BI6L3SYV.js} +9 -9
  75. package/dist/mcp-chunks/{chunk-757ZF552.js → chunk-CFRA424Y.js} +4 -4
  76. package/dist/mcp-chunks/{chunk-DU4SDPEV.js → chunk-CIQX62WO.js} +2 -2
  77. package/dist/mcp-chunks/{chunk-MHUMLEBO.js → chunk-CWM4RO33.js} +1 -1
  78. package/dist/mcp-chunks/{chunk-TUPFPO4L.js → chunk-DEYGZRBD.js} +5 -5
  79. package/dist/mcp-chunks/{chunk-3SXP4S2A.js → chunk-DL3GVI4M.js} +2 -2
  80. package/dist/mcp-chunks/{chunk-O7SIXJM6.js → chunk-EUHXZKP2.js} +108 -108
  81. package/dist/mcp-chunks/{chunk-H5PBSJP3.js → chunk-EV3SP7ME.js} +1 -1
  82. package/dist/mcp-chunks/chunk-EVEVCVYR.js +42 -0
  83. package/dist/mcp-chunks/{chunk-RUF27IUF.js → chunk-FDVES4CU.js} +2 -2
  84. package/dist/mcp-chunks/{chunk-L2MSWQDL.js → chunk-FJNWUAGR.js} +1 -1
  85. package/dist/mcp-chunks/{chunk-IWCVZ46B.js → chunk-G5DK4L6M.js} +2 -2
  86. package/dist/mcp-chunks/{chunk-3ETUDW7N.js → chunk-GQM53HF7.js} +1 -1
  87. package/dist/mcp-chunks/{chunk-2AKSS7WR.js → chunk-H44A4G2O.js} +2 -2
  88. package/dist/mcp-chunks/{chunk-WDWSA7RL.js → chunk-HGEKP2E5.js} +4 -4
  89. package/dist/mcp-chunks/{chunk-ELHS763C.js → chunk-HKMH4N3Z.js} +1 -1
  90. package/dist/mcp-chunks/{chunk-GZ53GNFP.js → chunk-HPFIAALB.js} +13 -10
  91. package/dist/mcp-chunks/chunk-KUJUYFDC.js +224 -0
  92. package/dist/mcp-chunks/{chunk-OIK5AH2S.js → chunk-MG6EVYIM.js} +41 -19
  93. package/dist/mcp-chunks/{chunk-QNXOIF5U.js → chunk-MSPGQEWX.js} +12 -12
  94. package/dist/mcp-chunks/{chunk-JEHI2YU4.js → chunk-MW3YO24Q.js} +3 -3
  95. package/dist/mcp-chunks/{chunk-WQL7FJQ3.js → chunk-NJR33E7V.js} +4 -4
  96. package/dist/mcp-chunks/{chunk-7U5NSQ5T.js → chunk-OSK2JGFH.js} +2 -2
  97. package/dist/mcp-chunks/{chunk-ZEA3Y5ZD.js → chunk-QHD5RXW4.js} +7 -7
  98. package/dist/mcp-chunks/{chunk-TC2JPBFB.js → chunk-QYR3UKJS.js} +7 -4
  99. package/dist/mcp-chunks/{chunk-3FRLDHVD.js → chunk-SYBDN4SV.js} +5 -5
  100. package/dist/mcp-chunks/{chunk-3P3KGT4H.js → chunk-TQ5T5VO7.js} +2 -2
  101. package/dist/mcp-chunks/{chunk-OWGTNJNR.js → chunk-TT3LOCMN.js} +2 -2
  102. package/dist/mcp-chunks/{chunk-3LENTPGE.js → chunk-TTVO6RCP.js} +2 -2
  103. package/dist/mcp-chunks/{chunk-IRSL7JRH.js → chunk-UY2QWZB3.js} +53 -49
  104. package/dist/mcp-chunks/{chunk-B6S43WID.js → chunk-VJ45Y5IO.js} +1 -1
  105. package/dist/mcp-chunks/{chunk-IRARVOUM.js → chunk-VJ5VDK6D.js} +1 -1
  106. package/dist/mcp-chunks/{chunk-6O42UGLI.js → chunk-VLJQSE6L.js} +9 -9
  107. package/dist/mcp-chunks/{chunk-HNQSUT44.js → chunk-W47YAN6W.js} +3 -3
  108. package/dist/mcp-chunks/{chunk-66VSGFXA.js → chunk-XU4D5QN2.js} +1 -1
  109. package/dist/mcp-chunks/{chunk-CXST5CVH.js → chunk-Y7JQJ352.js} +22 -18
  110. package/dist/mcp-chunks/{chunk-3HSC6NHZ.js → chunk-Y7UTXETL.js} +1 -1
  111. package/dist/mcp-chunks/{chunk-O3RTM5HD.js → chunk-YFPPHEDE.js} +1 -1
  112. package/dist/mcp-chunks/{chunk-N6YUOYDS.js → chunk-YGT57XUN.js} +2 -2
  113. package/dist/mcp-chunks/{chunk-BUOGKTKK.js → chunk-Z43KJRXY.js} +1 -1
  114. package/dist/mcp-chunks/{chunk-6P3KAQ5N.js → chunk-Z5XOB522.js} +1 -1
  115. package/dist/mcp-chunks/{chunk-63L6SHK3.js → chunk-ZEMVGFKG.js} +2 -2
  116. package/dist/mcp-chunks/{chunk-MEQXX43K.js → chunk-ZJZ53NIB.js} +1 -1
  117. package/dist/mcp-chunks/{cli-UQ5QXFXU.js → cli-TJFAYJO4.js} +81 -283
  118. package/dist/mcp-chunks/client-LDKUW5K5.js +32 -0
  119. package/dist/mcp-chunks/{config-command-ZSPJI34E.js → config-command-YGNK2VVL.js} +29 -29
  120. package/dist/mcp-chunks/daemon-command-UYAYRHVD.js +36 -0
  121. package/dist/mcp-chunks/dist-5JNZD3JV.js +69 -0
  122. package/dist/mcp-chunks/{dist-Q7WSCBBK.js → dist-IFOLXE2R.js} +351 -1305
  123. package/dist/mcp-chunks/{emit-ts-command-SY4LQE4S.js → emit-ts-command-4EVF6CIG.js} +28 -25
  124. package/dist/mcp-chunks/{generate-cli-runner-LQBBQ7F5.js → generate-cli-runner-UFVSXJVK.js} +58 -49
  125. package/dist/mcp-chunks/generated-daemon-runtime-LTH36X2R.js +32 -0
  126. package/dist/mcp-chunks/{inspect-cli-command-JPX4ON6N.js → inspect-cli-command-L3JGLLTG.js} +11 -11
  127. package/dist/mcp-chunks/{launch-UG7IH27P.js → launch-LUKDWKH4.js} +1 -1
  128. package/dist/mcp-chunks/{lifecycle-QBYGUHQ3.js → lifecycle-H57PYAZ5.js} +1 -1
  129. package/dist/mcp-chunks/{list-command-SDITI3ZM.js → list-command-QBO4LK5Q.js} +53 -42
  130. package/dist/mcp-chunks/logger-LvdykevT-BQ5B4N5O.js +995 -0
  131. package/dist/mcp-chunks/{output-utils-YTMZTA7J.js → output-utils-MB3PEV2M.js} +3 -3
  132. package/dist/mcp-chunks/{pi-mcp-runtime-OLO25D7A.js → pi-mcp-runtime-OIMIJV5A.js} +73 -17
  133. package/dist/mcp-chunks/{prompt-DkftHXS7-N7UENQ4C.js → prompt-DkftHXS7-TE2LNPAM.js} +1 -1
  134. package/dist/mcp-chunks/{record-command-JGTMATYI.js → record-command-RYDP3Y2A.js} +5 -5
  135. package/dist/mcp-chunks/{replay-command-S2VAC4RW.js → replay-command-QDJCQ5JU.js} +6 -6
  136. package/dist/mcp-chunks/{resource-command-SRFQQROJ.js → resource-command-RKHHQBFP.js} +9 -9
  137. package/dist/mcp-chunks/{result-utils-JASGNHXK.js → result-utils-ZD5GFX7P.js} +3 -3
  138. package/dist/mcp-chunks/runtime-F7PP4V25.js +39 -0
  139. package/dist/mcp-chunks/{runtime-wrapper-7HYO3NM5.js → runtime-wrapper-AV4JCNRF.js} +3 -3
  140. package/dist/mcp-chunks/{serve-command-YKSIXG7K.js → serve-command-MRPTK4XX.js} +26 -26
  141. package/dist/mcp-chunks/server-2WSYXDII.js +43 -0
  142. package/dist/mcp-chunks/{timeouts-BJWDJEMH.js → timeouts-2SQIDYBE.js} +4 -3
  143. package/dist/mcp-chunks/{vault-command-EYOIFWEY.js → vault-command-6JVDCFWU.js} +5 -5
  144. package/dist/mcp-chunks/{webapi-WMMA3OEC.js → webapi-CI4O7AUX.js} +1 -1
  145. package/dist/mcp-daemon.js +35 -31
  146. package/dist/mcp-run-worker.js +34 -30
  147. package/dist/model-binding.d.ts +34 -3
  148. package/dist/model-binding.d.ts.map +1 -1
  149. package/dist/model-binding.js +174 -4
  150. package/dist/model-binding.js.map +1 -1
  151. package/dist/otel-baggage.d.ts +7 -0
  152. package/dist/otel-baggage.d.ts.map +1 -0
  153. package/dist/otel-baggage.js +7 -0
  154. package/dist/otel-baggage.js.map +1 -0
  155. package/dist/recipe/manifest.generated.d.ts +2 -1
  156. package/dist/recipe/manifest.generated.d.ts.map +1 -1
  157. package/dist/recipe/manifest.generated.js +2 -1
  158. package/dist/recipe/manifest.generated.js.map +1 -1
  159. package/dist/recipe/model.d.ts +2 -0
  160. package/dist/recipe/model.d.ts.map +1 -1
  161. package/dist/recipe/model.js +15 -1
  162. package/dist/recipe/model.js.map +1 -1
  163. package/dist/review.d.ts +1 -1
  164. package/dist/review.d.ts.map +1 -1
  165. package/dist/review.js +1 -1
  166. package/dist/review.js.map +1 -1
  167. package/dist/session.d.ts +9 -2
  168. package/dist/session.d.ts.map +1 -1
  169. package/dist/session.js +86 -16
  170. package/dist/session.js.map +1 -1
  171. package/dist/suggestion-picker.d.ts +2 -2
  172. package/dist/suggestion-picker.d.ts.map +1 -1
  173. package/dist/suggestion-picker.js +5 -3
  174. package/dist/suggestion-picker.js.map +1 -1
  175. package/docs/README.md +19 -18
  176. package/docs/batch.md +223 -0
  177. package/docs/pi-extension.md +42 -0
  178. package/docs/recipe-format.md +14 -3
  179. package/package.json +20 -15
  180. package/skills/documents/SKILL.md +6 -2
  181. package/skills/issues/SKILL.md +2 -1
  182. package/skills/search/SKILL.md +3 -0
  183. package/skills/signature/SKILL.md +4 -4
  184. package/dist/mcp-chunks/call-arguments-GCXZA4HC.js +0 -16
  185. package/dist/mcp-chunks/client-SBELHRAE.js +0 -32
  186. package/dist/mcp-chunks/daemon-command-MQS6AP2W.js +0 -32
  187. package/dist/mcp-chunks/dist-SDPPH7XQ.js +0 -65
  188. package/dist/mcp-chunks/generated-daemon-runtime-TUCZ3JEP.js +0 -32
  189. package/dist/mcp-chunks/runtime-5SOGEUTQ.js +0 -39
  190. package/dist/mcp-chunks/server-HQBFWAJR.js +0 -41
@@ -3,9 +3,9 @@ import {
3
3
  SdkHttpError,
4
4
  SseError,
5
5
  UnauthorizedError
6
- } from "./chunk-O7SIXJM6.js";
6
+ } from "./chunk-EUHXZKP2.js";
7
7
 
8
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/error-classifier.js
8
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/error-classifier.js
9
9
  var AUTH_STATUSES = /* @__PURE__ */ new Set([401, 403]);
10
10
  var KEYWORD_AUTH_PATTERNS = [/unauthorized/, /invalid_token/, /forbidden/];
11
11
  var NUMERIC_AUTH_PATTERNS = [/(?<![0-9a-z_])401(?![0-9a-z_])/i];
@@ -1,6 +1,6 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
 
3
- // node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/error.js
3
+ // node_modules/.pnpm/commander@15.1.0/node_modules/commander/lib/error.js
4
4
  var CommanderError = class extends Error {
5
5
  /**
6
6
  * Constructs the CommanderError class
@@ -29,7 +29,7 @@ var InvalidArgumentError = class extends CommanderError {
29
29
  }
30
30
  };
31
31
 
32
- // node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/argument.js
32
+ // node_modules/.pnpm/commander@15.1.0/node_modules/commander/lib/argument.js
33
33
  var Argument = class {
34
34
  /**
35
35
  * Initialize a new command argument with the given name and description.
@@ -150,7 +150,7 @@ function humanReadableArgName(arg) {
150
150
  return arg.required ? "<" + nameOutput + ">" : "[" + nameOutput + "]";
151
151
  }
152
152
 
153
- // node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/command.js
153
+ // node_modules/.pnpm/commander@15.1.0/node_modules/commander/lib/command.js
154
154
  import { EventEmitter } from "node:events";
155
155
  import childProcess from "node:child_process";
156
156
  import path from "node:path";
@@ -158,7 +158,7 @@ import fs from "node:fs";
158
158
  import process from "node:process";
159
159
  import { stripVTControlCharacters as stripVTControlCharacters2 } from "node:util";
160
160
 
161
- // node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/help.js
161
+ // node_modules/.pnpm/commander@15.1.0/node_modules/commander/lib/help.js
162
162
  import { stripVTControlCharacters } from "node:util";
163
163
  var Help = class {
164
164
  constructor() {
@@ -227,11 +227,11 @@ var Help = class {
227
227
  visibleOptions.push(helpOption);
228
228
  } else if (helpOption.long && !removeLong) {
229
229
  visibleOptions.push(
230
- cmd.createOption(helpOption.long, helpOption.description)
230
+ cmd.createOption(helpOption.long, helpOption.description).helpGroup(helpOption.helpGroupHeading)
231
231
  );
232
232
  } else if (helpOption.short && !removeShort) {
233
233
  visibleOptions.push(
234
- cmd.createOption(helpOption.short, helpOption.description)
234
+ cmd.createOption(helpOption.short, helpOption.description).helpGroup(helpOption.helpGroupHeading)
235
235
  );
236
236
  }
237
237
  }
@@ -750,7 +750,7 @@ ${itemIndentStr}`);
750
750
  }
751
751
  };
752
752
 
753
- // node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/option.js
753
+ // node_modules/.pnpm/commander@15.1.0/node_modules/commander/lib/option.js
754
754
  var Option = class {
755
755
  /**
756
756
  * Initialize a new `Option` with the given `flags` and `description`.
@@ -763,7 +763,7 @@ var Option = class {
763
763
  this.description = description || "";
764
764
  this.required = flags.includes("<");
765
765
  this.optional = flags.includes("[");
766
- this.variadic = /\w\.\.\.[>\]]$/.test(flags);
766
+ this.variadic = new RegExp("\\p{ID_Continue}\\.\\.\\.[>\\]]$", "u").test(flags);
767
767
  this.mandatory = false;
768
768
  const optionFlags = splitOptionFlags(flags);
769
769
  this.short = optionFlags.shortFlag;
@@ -1056,7 +1056,7 @@ function splitOptionFlags(flags) {
1056
1056
  return { shortFlag, longFlag };
1057
1057
  }
1058
1058
 
1059
- // node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/suggestSimilar.js
1059
+ // node_modules/.pnpm/commander@15.1.0/node_modules/commander/lib/suggestSimilar.js
1060
1060
  var maxDistance = 3;
1061
1061
  function editDistance(a, b) {
1062
1062
  if (Math.abs(a.length - b.length) > maxDistance)
@@ -1131,7 +1131,7 @@ function suggestSimilar(word, candidates) {
1131
1131
  return "";
1132
1132
  }
1133
1133
 
1134
- // node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/command.js
1134
+ // node_modules/.pnpm/commander@15.1.0/node_modules/commander/lib/command.js
1135
1135
  var Command = class _Command extends EventEmitter {
1136
1136
  /**
1137
1137
  * Initialize a new `Command`.
@@ -1946,7 +1946,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
1946
1946
  getOptionValueSourceWithGlobals(key) {
1947
1947
  let source;
1948
1948
  this._getCommandAndAncestors().forEach((cmd) => {
1949
- if (cmd.getOptionValueSource(key) !== void 0) {
1949
+ if (Object.hasOwn(cmd._optionValueSources, key)) {
1950
1950
  source = cmd.getOptionValueSource(key);
1951
1951
  }
1952
1952
  });
@@ -2589,7 +2589,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
2589
2589
  return arg.length > 1 && arg[0] === "-";
2590
2590
  }
2591
2591
  const negativeNumberArg = (arg) => {
2592
- if (!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(arg)) return false;
2592
+ if (!/^-(\d+|\d*\.\d+)([eE][+-]?\d+)?$/.test(arg)) return false;
2593
2593
  return !this._getCommandAndAncestors().some(
2594
2594
  (cmd) => cmd.options.map((opt) => opt.short).some((short) => /^-\d$/.test(short))
2595
2595
  );
@@ -3037,7 +3037,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
3037
3037
  * (This does not override a group set directly on the subcommand using .helpGroup().)
3038
3038
  *
3039
3039
  * @example
3040
- * program.commandsGroup('Development Commands:);
3040
+ * program.commandsGroup('Development Commands:');
3041
3041
  * program.command('watch')...
3042
3042
  * program.command('lint')...
3043
3043
  * ...
@@ -3208,7 +3208,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
3208
3208
  * Pass in false to disable the built-in help option.
3209
3209
  *
3210
3210
  * @example
3211
- * program.helpOption('-?, --help' 'show help'); // customise
3211
+ * program.helpOption('-?, --help', 'show help'); // customise
3212
3212
  * program.helpOption(false); // disable
3213
3213
  *
3214
3214
  * @param {(string | boolean)} flags
@@ -3337,16 +3337,20 @@ function incrementNodeInspectorPort(args) {
3337
3337
  let debugHost = "127.0.0.1";
3338
3338
  let debugPort = "9229";
3339
3339
  let match;
3340
- if ((match = arg.match(/^(--inspect(-brk)?)$/)) !== null) {
3340
+ if ((match = arg.match(/^(--inspect(-brk|-wait)?)$/)) !== null) {
3341
3341
  debugOption = match[1];
3342
- } else if ((match = arg.match(/^(--inspect(-brk|-port)?)=([^:]+)$/)) !== null) {
3342
+ } else if ((match = arg.match(
3343
+ /^(--inspect(-brk|-port|-wait)?)=(\[[^\]]+\]|[^:]+)$/
3344
+ )) !== null) {
3343
3345
  debugOption = match[1];
3344
3346
  if (/^\d+$/.test(match[3])) {
3345
3347
  debugPort = match[3];
3346
3348
  } else {
3347
3349
  debugHost = match[3];
3348
3350
  }
3349
- } else if ((match = arg.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/)) !== null) {
3351
+ } else if ((match = arg.match(
3352
+ /^(--inspect(-brk|-port|-wait)?)=(\[[^\]]+\]|[^:]+):(\d+)$/
3353
+ )) !== null) {
3350
3354
  debugOption = match[1];
3351
3355
  debugHost = match[3];
3352
3356
  debugPort = match[4];
@@ -3365,10 +3369,10 @@ function useColor() {
3365
3369
  return void 0;
3366
3370
  }
3367
3371
 
3368
- // node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
3372
+ // node_modules/.pnpm/commander@15.1.0/node_modules/commander/index.js
3369
3373
  var program = new Command();
3370
3374
 
3371
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate/tools.js
3375
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/generate/tools.js
3372
3376
  function resolveSchemaType(value) {
3373
3377
  if (value === "integer") {
3374
3378
  return "number";
@@ -3387,9 +3391,9 @@ function resolveArrayItemType(value) {
3387
3391
  }
3388
3392
  return void 0;
3389
3393
  }
3390
- function buildToolMetadata(tool) {
3394
+ function buildToolMetadata(tool, reservedOptionNames = []) {
3391
3395
  const methodName = toProxyMethodName(tool.name);
3392
- const properties = extractOptions(tool);
3396
+ const properties = extractOptions(tool, reservedOptionNames);
3393
3397
  return {
3394
3398
  tool,
3395
3399
  methodName,
@@ -3397,7 +3401,7 @@ function buildToolMetadata(tool) {
3397
3401
  };
3398
3402
  }
3399
3403
  function buildToolMetadataList(tools, options = {}) {
3400
- const result = tools.map((tool) => buildToolMetadata(tool));
3404
+ const result = tools.map((tool) => buildToolMetadata(tool, options.reservedOptionNames));
3401
3405
  if (options.sort !== false) {
3402
3406
  result.sort((left, right) => left.tool.name.localeCompare(right.tool.name));
3403
3407
  }
@@ -3421,7 +3425,7 @@ function buildToolMetadataList(tools, options = {}) {
3421
3425
  function buildEmbeddedSchemaMap(tools) {
3422
3426
  return Object.fromEntries(tools.toSorted((left, right) => left.tool.name.localeCompare(right.tool.name)).filter((entry) => entry.tool.inputSchema && typeof entry.tool.inputSchema === "object").map((entry) => [entry.tool.name, entry.tool.inputSchema]));
3423
3427
  }
3424
- function extractOptions(tool) {
3428
+ function extractOptions(tool, reservedOptionNames = []) {
3425
3429
  const schema = tool.inputSchema;
3426
3430
  if (!schema || typeof schema !== "object") {
3427
3431
  return [];
@@ -3433,7 +3437,7 @@ function extractOptions(tool) {
3433
3437
  const properties = record.properties;
3434
3438
  const requiredList = Array.isArray(record.required) ? record.required : [];
3435
3439
  const entries = Object.entries(properties);
3436
- const cliNames = assignCliNames(entries.map(([property]) => property));
3440
+ const cliNames = assignCliNames(entries.map(([property]) => property), reservedOptionNames);
3437
3441
  return entries.map(([property, descriptor], index) => {
3438
3442
  const cliName = cliNames[index];
3439
3443
  const type = inferType(descriptor);
@@ -3460,10 +3464,10 @@ function extractOptions(tool) {
3460
3464
  });
3461
3465
  }
3462
3466
  var EMPTY_CLI_OPTION_STEM = "option";
3463
- function assignCliNames(properties) {
3467
+ function assignCliNames(properties, reservedOptionNames) {
3464
3468
  const natural = properties.map((property) => toCliOption(property));
3465
3469
  const claimed = new Set(natural.map(toCliOptionKey));
3466
- const used = /* @__PURE__ */ new Set();
3470
+ const used = new Set(reservedOptionNames.map(toCliOptionKey));
3467
3471
  return natural.map((base) => {
3468
3472
  let name = base;
3469
3473
  let suffix = 2;
@@ -16,53 +16,53 @@ import {
16
16
  resolveSystemPowerShellPath,
17
17
  secureDaemonDirectory,
18
18
  upgradeLegacyDaemonDirectory
19
- } from "./chunk-ORJND4AI.js";
19
+ } from "./chunk-2R7UGABC.js";
20
20
  import {
21
21
  NON_INTERACTIVE_ELICITATION_HINT,
22
22
  createNonInteractiveElicitationResponder
23
- } from "./chunk-F2X4Y2TQ.js";
23
+ } from "./chunk-2R2HWX2E.js";
24
24
  import {
25
25
  MCPORTER_VERSION
26
- } from "./chunk-QNXOIF5U.js";
26
+ } from "./chunk-MSPGQEWX.js";
27
27
  import {
28
28
  getChromeDevtoolsRelayDecision,
29
29
  normalizeTimeout
30
- } from "./chunk-6O42UGLI.js";
30
+ } from "./chunk-VLJQSE6L.js";
31
31
  import {
32
32
  isOAuthFlowError,
33
33
  resolveOAuthTimeoutFromEnv
34
- } from "./chunk-2YV72LUA.js";
34
+ } from "./chunk-AIUZOMBB.js";
35
35
  import {
36
36
  withRuntimeEnvironment
37
- } from "./chunk-V42T3QNK.js";
37
+ } from "./chunk-BI6L3SYV.js";
38
38
  import {
39
39
  RawEntrySchema,
40
40
  VaultEncryptionPolicySchema,
41
41
  loadServerDefinitions
42
- } from "./chunk-CXST5CVH.js";
42
+ } from "./chunk-Y7JQJ352.js";
43
43
  import {
44
44
  isProcessRunning,
45
45
  withFileLock,
46
46
  writeJsonFile
47
- } from "./chunk-3LENTPGE.js";
47
+ } from "./chunk-TTVO6RCP.js";
48
48
  import {
49
49
  mcporterDir
50
- } from "./chunk-IWCVZ46B.js";
50
+ } from "./chunk-G5DK4L6M.js";
51
51
  import {
52
52
  isKeepAliveServer
53
- } from "./chunk-MHUMLEBO.js";
53
+ } from "./chunk-CWM4RO33.js";
54
54
  import {
55
55
  SdkErrorCode,
56
56
  external_exports
57
- } from "./chunk-O7SIXJM6.js";
57
+ } from "./chunk-EUHXZKP2.js";
58
58
 
59
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/socket-rpc.js
59
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/daemon/socket-rpc.js
60
60
  import { createHmac, randomBytes, timingSafeEqual } from "node:crypto";
61
61
  import fs from "node:fs/promises";
62
62
  import net from "node:net";
63
63
  import path from "node:path";
64
64
 
65
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/protocol.js
65
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/daemon/protocol.js
66
66
  var DAEMON_PROTOCOL_VERSION = 3;
67
67
  var MAX_DAEMON_PAYLOAD_BYTES = 4 * 1024 * 1024;
68
68
  var DAEMON_PROGRESS_INTERVAL_MS = 250;
@@ -87,7 +87,7 @@ function resolveProgressTiming(requestedIdleTimeoutMs) {
87
87
  };
88
88
  }
89
89
 
90
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/socket-rpc.js
90
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/daemon/socket-rpc.js
91
91
  async function daemonKey() {
92
92
  await secureDaemonDirectory();
93
93
  const file = path.join(daemonRunDir(), "user.key");
@@ -107,6 +107,12 @@ async function daemonKey() {
107
107
  return key;
108
108
  });
109
109
  }
110
+ var DaemonConnectionEndedError = class extends Error {
111
+ code = "ECONNRESET";
112
+ constructor() {
113
+ super("Daemon connection ended.");
114
+ }
115
+ };
110
116
  var SocketFrames = class {
111
117
  socket;
112
118
  buffer = "";
@@ -148,7 +154,7 @@ var SocketFrames = class {
148
154
  }
149
155
  });
150
156
  socket.on("error", (error) => this.fail(error));
151
- socket.on("end", () => this.fail(new Error("Daemon connection ended.")));
157
+ socket.on("end", () => this.fail(new DaemonConnectionEndedError()));
152
158
  }
153
159
  fail(error) {
154
160
  this.failure ??= error;
@@ -207,8 +213,10 @@ async function requestDaemon(socketPath, request, idleTimeoutMs) {
207
213
  const socket = net.createConnection(socketPath);
208
214
  const frames = new SocketFrames(socket);
209
215
  socket.setTimeout(idleTimeoutMs, () => socket.destroy(Object.assign(new Error("Daemon request timed out; outcome unknown, not replayed."), { code: "ETIMEDOUT" })));
216
+ let authenticated = false;
210
217
  try {
211
218
  await authenticateClient(frames, key);
219
+ authenticated = true;
212
220
  frames.write(request);
213
221
  for (; ; ) {
214
222
  const response = await frames.read();
@@ -220,17 +228,21 @@ async function requestDaemon(socketPath, request, idleTimeoutMs) {
220
228
  throw new Error("Invalid daemon response.");
221
229
  return response;
222
230
  }
231
+ } catch (error) {
232
+ if (!authenticated && error instanceof DaemonConnectionEndedError)
233
+ throw new Error("Daemon authentication ended before completion.", { cause: error });
234
+ throw error;
223
235
  } finally {
224
236
  key.fill(0);
225
237
  socket.destroy();
226
238
  }
227
239
  }
228
240
 
229
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/client.js
241
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/daemon/client.js
230
242
  import { randomUUID as randomUUID3 } from "node:crypto";
231
243
  import fs3 from "node:fs/promises";
232
244
 
233
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/process-retirement.js
245
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/daemon/process-retirement.js
234
246
  import { execFile } from "node:child_process";
235
247
  import { promisify } from "node:util";
236
248
  var exec = promisify(execFile);
@@ -429,24 +441,24 @@ async function awaitRetirement(identities) {
429
441
  throw new Error("Verified legacy processes have not retired; cutover remains blocked. No process was signalled.");
430
442
  }
431
443
 
432
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/migration.js
444
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/daemon/migration.js
433
445
  import fs2 from "node:fs/promises";
434
446
  import net2 from "node:net";
435
447
  import path2 from "node:path";
436
448
  import { randomUUID as randomUUID2 } from "node:crypto";
437
449
 
438
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/idle-timer.js
450
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/daemon/idle-timer.js
439
451
  var MAX_NATIVE_TIMER_MS = 2147483647;
440
452
  function idleTimerDelay(timeoutMs, lastActivity) {
441
453
  const remaining = timeoutMs - (Date.now() - lastActivity);
442
454
  return Math.min(MAX_NATIVE_TIMER_MS, Math.max(1, remaining > 0 ? remaining : timeoutMs));
443
455
  }
444
456
 
445
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/broker.js
457
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/daemon/broker.js
446
458
  import { AsyncLocalStorage } from "node:async_hooks";
447
459
  import { randomUUID } from "node:crypto";
448
460
 
449
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/view-codec.js
461
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/daemon/view-codec.js
450
462
  var command = external_exports.discriminatedUnion("kind", [
451
463
  external_exports.object({
452
464
  kind: external_exports.literal("stdio"),
@@ -488,8 +500,10 @@ function decodeView(value) {
488
500
  return { definitions, clientInfo: parsed.clientInfo };
489
501
  }
490
502
 
491
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/broker.js
503
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/daemon/broker.js
492
504
  var notices = new AsyncLocalStorage();
505
+ var MAX_TRANSPORTS = 256;
506
+ var unconnected = (entry) => entry.state === "idle" || entry.state === "pending" && !entry.connection;
493
507
  var BrokerError = class extends Error {
494
508
  code;
495
509
  constructor(code, message) {
@@ -591,9 +605,13 @@ var DaemonBroker = class {
591
605
  };
592
606
  const key = `${identity}:${relay}:${JSON.stringify(policy)}:${JSON.stringify(view.clientInfo)}`;
593
607
  let entry = this.entries.get(key);
608
+ while (!entry && this.entries.size >= MAX_TRANSPORTS) {
609
+ const reclaimed = await this.reclaimTransport(key);
610
+ entry = this.entries.get(key);
611
+ if (!reclaimed && !entry && this.entries.size >= MAX_TRANSPORTS)
612
+ throw new BrokerError("transport_limit", "Transport capacity reached; no transport can be safely reclaimed. Retry after active calls finish; if it persists, drain transports with daemon stop.");
613
+ }
594
614
  if (!entry) {
595
- if (this.entries.size >= 256)
596
- throw new BrokerError("transport_limit", "Transport capacity reached; drain unused transports with daemon stop.");
597
615
  const pooled = { ...definition2, allowedTools: void 0, blockedTools: void 0 };
598
616
  authorizeBrokerDefinition(pooled, chrome ? () => this.owner.resolveIdentity(definition2) : void 0);
599
617
  entry = {
@@ -776,6 +794,49 @@ var DaemonBroker = class {
776
794
  canIdleShutdown() {
777
795
  return !this.draining && this.activeRequests === 0 && !this.owner.reserved && [...this.entries.values()].every((entry) => !entry.active && !entry.uncertain && entry.state !== "retirement-failed");
778
796
  }
797
+ /** Retires the least recently used transport without callers; idle (already retired) ones go first. */
798
+ async reclaimTransport(wanted) {
799
+ const admitted = () => this.entries.has(wanted) || this.entries.size < MAX_TRANSPORTS;
800
+ const reclaimable = (key, entry) => this.entries.get(key) === entry && !this.draining && !entry.active && !entry.chrome && !entry.uncertain && (entry.state === "idle" || entry.state === "connected" || entry.state === "disconnected" || unconnected(entry));
801
+ const scan = () => [...this.entries].filter(([key, entry]) => reclaimable(key, entry)).toSorted(([, a], [, b]) => Number(unconnected(b)) - Number(unconnected(a)) || a.lastUsed - b.lastUsed);
802
+ for (let pass = 0; pass < 2; pass++) {
803
+ if (admitted())
804
+ return true;
805
+ const candidates = scan();
806
+ if (candidates.length === 0)
807
+ break;
808
+ for (const [key, entry] of candidates) {
809
+ if (admitted())
810
+ return true;
811
+ if (!reclaimable(key, entry))
812
+ continue;
813
+ const reclaimed = entry.serial.then(async () => {
814
+ if (admitted() || !reclaimable(key, entry))
815
+ return false;
816
+ clearTimeout(entry.idleTimer);
817
+ if (entry.state !== "idle") {
818
+ entry.state = "disconnected";
819
+ try {
820
+ await this.retire(entry);
821
+ } catch {
822
+ entry.state = "retirement-failed";
823
+ return false;
824
+ }
825
+ entry.state = "idle";
826
+ }
827
+ if (entry.active || this.entries.get(key) !== entry)
828
+ return false;
829
+ this.entries.delete(key);
830
+ return true;
831
+ });
832
+ entry.serial = reclaimed.catch(() => {
833
+ });
834
+ if (await reclaimed)
835
+ return true;
836
+ }
837
+ }
838
+ return admitted();
839
+ }
779
840
  async retire(entry) {
780
841
  await withRuntimeEnvironment(entry.definition.env ?? {}, async () => {
781
842
  await (await entry.runtime).close();
@@ -817,7 +878,7 @@ var DaemonBroker = class {
817
878
  }
818
879
  };
819
880
 
820
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/migration.js
881
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/daemon/migration.js
821
882
  async function probeDaemon(socketPath, method = "status") {
822
883
  return new Promise((resolve) => {
823
884
  const socket = net2.createConnection(socketPath);
@@ -923,7 +984,7 @@ async function stopVerifiedLegacyDaemons() {
923
984
  }
924
985
  }
925
986
 
926
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/startup-readiness.js
987
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/daemon/startup-readiness.js
927
988
  var DAEMON_STARTUP_TIMEOUT_MS = 45e3;
928
989
  var DAEMON_STARTUP_SLOW_NOTICE_MS = 5e3;
929
990
  var DAEMON_STARTUP_POLL_INTERVAL_MS = 100;
@@ -970,7 +1031,7 @@ function delay(ms) {
970
1031
  });
971
1032
  }
972
1033
 
973
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/client.js
1034
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/daemon/client.js
974
1035
  var DEFAULT_DAEMON_TIMEOUT_MS = 3e4;
975
1036
  function resolveDaemonPaths(configPath) {
976
1037
  const key = "user";
@@ -1138,7 +1199,7 @@ var DaemonClient = class {
1138
1199
  if (previous && !isProcessRunning(previous.pid))
1139
1200
  throw new Error("Previous daemon exited unexpectedly; verify retirement of its transports before deliberate recovery. No replacement was launched.");
1140
1201
  this.startingPromise ??= (async () => {
1141
- const { launchDaemonDetached } = await import("./launch-UG7IH27P.js");
1202
+ const { launchDaemonDetached } = await import("./launch-LUKDWKH4.js");
1142
1203
  await launchDaemonDetached({
1143
1204
  configPath: this.options.configPath,
1144
1205
  metadataPath: this.metadataPath,
@@ -7,42 +7,42 @@ import {
7
7
  reconcilePersistedTokens,
8
8
  withRefreshLock,
9
9
  withRefreshRequestTimeout
10
- } from "./chunk-THRMUZZD.js";
10
+ } from "./chunk-37VJZIFW.js";
11
11
  import {
12
12
  runtimeEnvironment,
13
13
  sameOAuthClientGeneration,
14
14
  sameOAuthTokenGeneration,
15
15
  withOAuthClientGeneration
16
- } from "./chunk-V42T3QNK.js";
16
+ } from "./chunk-BI6L3SYV.js";
17
17
  import {
18
18
  OAuthRequestedScopeSchema
19
- } from "./chunk-CXST5CVH.js";
19
+ } from "./chunk-Y7JQJ352.js";
20
20
  import {
21
21
  isFileLockTimeoutError
22
- } from "./chunk-3LENTPGE.js";
22
+ } from "./chunk-TTVO6RCP.js";
23
23
  import {
24
24
  analyzeConnectionError
25
- } from "./chunk-UVRJ3AAD.js";
25
+ } from "./chunk-7KOGD2JK.js";
26
26
  import {
27
27
  IssuerMismatchError,
28
28
  auth,
29
29
  validateClientMetadataUrl
30
- } from "./chunk-O7SIXJM6.js";
30
+ } from "./chunk-EUHXZKP2.js";
31
31
 
32
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/oauth-browser-suppression.js
32
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/oauth-browser-suppression.js
33
33
  var TRUE_VALUES = /* @__PURE__ */ new Set(["1", "true", "yes"]);
34
34
  function suppressBrowserLaunchFromEnv(env = runtimeEnvironment()) {
35
35
  const raw = env.MCPORTER_OAUTH_NO_BROWSER;
36
36
  return raw !== void 0 && TRUE_VALUES.has(raw.trim().toLowerCase());
37
37
  }
38
38
 
39
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/oauth.js
39
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/oauth.js
40
40
  import { spawn } from "node:child_process";
41
41
  import { createHash, randomUUID } from "node:crypto";
42
42
  import http from "node:http";
43
43
  import { URL as URL2 } from "node:url";
44
44
 
45
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/oauth-redirect-uri.js
45
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/oauth-redirect-uri.js
46
46
  function matchesFreshLoopbackRedirect(returned, requested) {
47
47
  let redirect;
48
48
  try {
@@ -63,7 +63,7 @@ function matchesFreshLoopbackRedirect(returned, requested) {
63
63
  return redirect.href === requested.href;
64
64
  }
65
65
 
66
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/oauth.js
66
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/oauth.js
67
67
  var CALLBACK_HOST = "127.0.0.1";
68
68
  var CALLBACK_PATH = "/callback";
69
69
  var INTERACTIVE_AUTHORIZATION_TTL_MS = 3e5;
@@ -576,7 +576,7 @@ var __oauthInternals = {
576
576
  openExternal
577
577
  };
578
578
 
579
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/runtime-oauth-support.js
579
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/runtime-oauth-support.js
580
580
  function maybeEnableOAuth(definition, logger) {
581
581
  if (definition.auth === "oauth" || definition.auth === "refreshable_bearer") {
582
582
  return void 0;
@@ -595,7 +595,7 @@ function isUnauthorizedError(error) {
595
595
  return issue.kind === "auth";
596
596
  }
597
597
 
598
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/runtime/oauth.js
598
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/runtime/oauth.js
599
599
  var DEFAULT_OAUTH_CODE_TIMEOUT_MS = 3e5;
600
600
  var OAUTH_FLOW_ERROR = /* @__PURE__ */ Symbol("oauth-flow-error");
601
601
  var POST_AUTH_CONNECT_ERROR = /* @__PURE__ */ Symbol("post-auth-connect-error");
@@ -4,15 +4,15 @@ import {
4
4
  withFileLock,
5
5
  writeJsonFile,
6
6
  writeTextFileAtomic
7
- } from "./chunk-3LENTPGE.js";
7
+ } from "./chunk-TTVO6RCP.js";
8
8
  import {
9
9
  CompactEncrypt,
10
10
  compactDecrypt,
11
11
  decodeProtectedHeader,
12
12
  errors_exports
13
- } from "./chunk-IRSL7JRH.js";
13
+ } from "./chunk-UY2QWZB3.js";
14
14
 
15
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/oauth-vault-encryption.js
15
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/oauth-vault-encryption.js
16
16
  var VAULT_PASSWORD_ENV = "MCPORTER_VAULT_PASSWORD";
17
17
  var VAULT_ENCRYPTION_POLICY_ENV = "MCPORTER_VAULT_ENCRYPTION";
18
18
  var VAULT_SECRET_ENV_NAMES = [VAULT_PASSWORD_ENV, VAULT_ENCRYPTION_POLICY_ENV];
@@ -153,11 +153,11 @@ function describeVaultSecrets(entries) {
153
153
  return stats;
154
154
  }
155
155
 
156
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/oauth-vault.js
156
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/oauth-vault.js
157
157
  import crypto from "node:crypto";
158
158
  import path2 from "node:path";
159
159
 
160
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/oauth-credential-validation.js
160
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/oauth-credential-validation.js
161
161
  function isRecord(value) {
162
162
  return Boolean(value && typeof value === "object" && !Array.isArray(value));
163
163
  }
@@ -178,7 +178,7 @@ function isStoredOAuthClientInformation(value) {
178
178
  return isOptionalString(value, "issuer");
179
179
  }
180
180
 
181
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/oauth-token-generation.js
181
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/oauth-token-generation.js
182
182
  import { randomUUID } from "node:crypto";
183
183
  import { isDeepStrictEqual } from "node:util";
184
184
  var TOKEN_GENERATION_FIELD = "__mcporter_generation";
@@ -258,7 +258,7 @@ function sameOAuthClientValue(left, right) {
258
258
  return isDeepStrictEqual(withoutClientGeneration(left), withoutClientGeneration(right));
259
259
  }
260
260
 
261
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/runtime/environment.js
261
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/runtime/environment.js
262
262
  import { AsyncLocalStorage } from "node:async_hooks";
263
263
  import os from "node:os";
264
264
  import path from "node:path";
@@ -281,7 +281,7 @@ function runtimeStateDir(kind) {
281
281
  return root && path.isAbsolute(root) ? path.join(root, "mcporter") : path.join(runtimeHome(), ".mcporter");
282
282
  }
283
283
 
284
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/oauth-vault.js
284
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/oauth-vault.js
285
285
  function getOAuthVaultPath() {
286
286
  return path2.join(runtimeStateDir("data"), "credentials.json");
287
287
  }
@@ -631,7 +631,7 @@ async function clearVaultEntry(definition, scope) {
631
631
  });
632
632
  }
633
633
 
634
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/oauth-persistence-stores.js
634
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/oauth-persistence-stores.js
635
635
  import fs from "node:fs/promises";
636
636
  import path3 from "node:path";
637
637
  function withStoredExpiry(tokens) {
@@ -1,15 +1,15 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  createKeepAliveRuntime
4
- } from "./chunk-HNQSUT44.js";
4
+ } from "./chunk-W47YAN6W.js";
5
5
  import {
6
6
  DaemonClient
7
- } from "./chunk-MYAMG6VL.js";
7
+ } from "./chunk-ABPXAKP7.js";
8
8
  import {
9
9
  isKeepAliveServer
10
- } from "./chunk-MHUMLEBO.js";
10
+ } from "./chunk-CWM4RO33.js";
11
11
 
12
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/generated-daemon-runtime.js
12
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/generated-daemon-runtime.js
13
13
  async function createGeneratedKeepAliveRuntime(base, server) {
14
14
  if (!isKeepAliveServer(server)) {
15
15
  return {