@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
@@ -1,42 +1,45 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  loadToolMetadata
4
- } from "./chunk-3P3KGT4H.js";
4
+ } from "./chunk-TQ5T5VO7.js";
5
5
  import {
6
6
  extractGeneratorFlags,
7
7
  readPackageMetadata
8
- } from "./chunk-GZ53GNFP.js";
8
+ } from "./chunk-HPFIAALB.js";
9
9
  import {
10
10
  buildToolDoc,
11
11
  formatParameterObjectType
12
- } from "./chunk-5Z6WSV5D.js";
13
- import "./chunk-KJ5FPQF6.js";
14
- import "./chunk-IRARVOUM.js";
15
- import "./chunk-TC2JPBFB.js";
12
+ } from "./chunk-3KSDZBUJ.js";
13
+ import "./chunk-7SQZWTDU.js";
14
+ import "./chunk-QYR3UKJS.js";
16
15
  import {
17
16
  findServerByHttpUrl
18
- } from "./chunk-63L6SHK3.js";
17
+ } from "./chunk-ZEMVGFKG.js";
19
18
  import {
20
19
  extractHttpServerTarget
21
- } from "./chunk-US63Y6XE.js";
20
+ } from "./chunk-32UZRZIL.js";
22
21
  import {
23
22
  consumeOutputFormat
24
- } from "./chunk-MEQXX43K.js";
25
- import "./chunk-6P3KAQ5N.js";
26
- import "./chunk-QNXOIF5U.js";
27
- import "./chunk-6O42UGLI.js";
23
+ } from "./chunk-ZJZ53NIB.js";
24
+ import "./chunk-VJ5VDK6D.js";
25
+ import {
26
+ CliUsageError
27
+ } from "./chunk-EV3SP7ME.js";
28
+ import "./chunk-Z5XOB522.js";
29
+ import "./chunk-MSPGQEWX.js";
30
+ import "./chunk-VLJQSE6L.js";
28
31
  import {
29
32
  isRecord
30
- } from "./chunk-7U5NSQ5T.js";
33
+ } from "./chunk-OSK2JGFH.js";
31
34
  import "./chunk-T4MQCFIK.js";
32
- import "./chunk-BHXCAVFP.js";
35
+ import "./chunk-4ACA5GWL.js";
33
36
  import "./chunk-LRKZP7DJ.js";
34
37
 
35
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/emit-ts-command.js
38
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/emit-ts-command.js
36
39
  import fs from "node:fs/promises";
37
40
  import path2 from "node:path";
38
41
 
39
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/emit-ts-templates.js
42
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/emit-ts-templates.js
40
43
  import path from "node:path";
41
44
  function renderTypesModule(input) {
42
45
  const lines = [];
@@ -205,7 +208,7 @@ function describeSource(definition) {
205
208
  return void 0;
206
209
  }
207
210
 
208
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/emit-ts-command.js
211
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/emit-ts-command.js
209
212
  async function handleEmitTs(runtime, args) {
210
213
  const options = parseEmitTsArgs(args);
211
214
  const definition = getServerDefinition(runtime, options.server);
@@ -294,7 +297,7 @@ function parseEmitTsArgs(args) {
294
297
  if (token === "--out") {
295
298
  const value = args[index + 1];
296
299
  if (!value) {
297
- throw new Error("Flag '--out' requires a path.");
300
+ throw new CliUsageError("Flag '--out' requires a path.");
298
301
  }
299
302
  flags.outPath = value;
300
303
  args.splice(index, 2);
@@ -303,7 +306,7 @@ function parseEmitTsArgs(args) {
303
306
  if (token === "--types-out") {
304
307
  const value = args[index + 1];
305
308
  if (!value) {
306
- throw new Error("Flag '--types-out' requires a path.");
309
+ throw new CliUsageError("Flag '--types-out' requires a path.");
307
310
  }
308
311
  flags.typesOutPath = value;
309
312
  args.splice(index, 2);
@@ -312,30 +315,30 @@ function parseEmitTsArgs(args) {
312
315
  if (token === "--mode") {
313
316
  const value = args[index + 1];
314
317
  if (value !== "types" && value !== "client") {
315
- throw new Error("--mode must be 'types' or 'client'.");
318
+ throw new CliUsageError("--mode must be 'types' or 'client'.");
316
319
  }
317
320
  flags.mode = value;
318
321
  args.splice(index, 2);
319
322
  continue;
320
323
  }
321
324
  if (token.startsWith("--")) {
322
- throw new Error(`Unknown flag '${token}' for emit-ts.`);
325
+ throw new CliUsageError(`Unknown flag '${token}' for emit-ts.`);
323
326
  }
324
327
  index += 1;
325
328
  }
326
329
  const server = args.shift();
327
330
  if (!server) {
328
- throw new Error("Usage: mcporter emit-ts <server> --out <file> [--mode types|client]");
331
+ throw new CliUsageError("Usage: mcporter emit-ts <server> --out <file> [--mode types|client]");
329
332
  }
330
333
  const outPath = flags.outPath;
331
334
  if (!outPath) {
332
- throw new Error("Flag '--out' is required for emit-ts.");
335
+ throw new CliUsageError("Flag '--out' is required for emit-ts.");
333
336
  }
334
337
  if (flags.mode === "client" && !outPath.endsWith(".ts")) {
335
- throw new Error("--out should point to a .ts file when --mode client is used.");
338
+ throw new CliUsageError("--out should point to a .ts file when --mode client is used.");
336
339
  }
337
340
  if (flags.mode === "types" && !outPath.endsWith(".ts") && !outPath.endsWith(".d.ts")) {
338
- throw new Error("--out should be a .ts or .d.ts file for --mode types.");
341
+ throw new CliUsageError("--out should be a .ts or .d.ts file for --mode types.");
339
342
  }
340
343
  return {
341
344
  server,
@@ -5,76 +5,77 @@ import {
5
5
  readPackageMetadata,
6
6
  safeCopyFile,
7
7
  writeTemplate
8
- } from "./chunk-GZ53GNFP.js";
9
- import "./chunk-5Z6WSV5D.js";
8
+ } from "./chunk-HPFIAALB.js";
9
+ import "./chunk-3KSDZBUJ.js";
10
10
  import {
11
11
  buildToolMetadataList,
12
12
  toolsTestHelpers
13
- } from "./chunk-KJ5FPQF6.js";
13
+ } from "./chunk-7SQZWTDU.js";
14
14
  import {
15
15
  buildGenerateCliCommand,
16
16
  readCliMetadata,
17
17
  resolveGenerateRequestFromArtifact,
18
18
  serializeDefinition,
19
19
  validateToolSelection
20
- } from "./chunk-E76ZUBOJ.js";
21
- import "./chunk-BUOGKTKK.js";
22
- import {
23
- expectValue
24
- } from "./chunk-I6UFV7RW.js";
25
- import "./chunk-IRARVOUM.js";
26
- import "./chunk-TC2JPBFB.js";
20
+ } from "./chunk-4NABHXDS.js";
21
+ import "./chunk-Z43KJRXY.js";
22
+ import "./chunk-QYR3UKJS.js";
27
23
  import {
28
24
  splitCommandLine,
29
25
  toAsciiSlug
30
- } from "./chunk-ZEA3Y5ZD.js";
26
+ } from "./chunk-QHD5RXW4.js";
31
27
  import {
32
28
  extractHttpServerTarget,
33
29
  looksLikeHttpUrl,
34
30
  normalizeHttpUrl,
35
31
  normalizeHttpUrlCandidate,
36
32
  splitHttpToolSelector
37
- } from "./chunk-US63Y6XE.js";
33
+ } from "./chunk-32UZRZIL.js";
34
+ import {
35
+ expectValue
36
+ } from "./chunk-5ZQKSEUN.js";
37
+ import "./chunk-VJ5VDK6D.js";
38
+ import "./chunk-EV3SP7ME.js";
38
39
  import {
39
40
  createRuntime
40
- } from "./chunk-ORJND4AI.js";
41
- import "./chunk-2AKSS7WR.js";
41
+ } from "./chunk-2R7UGABC.js";
42
+ import "./chunk-H44A4G2O.js";
42
43
  import {
43
44
  stableJsonStringify
44
- } from "./chunk-6P3KAQ5N.js";
45
- import "./chunk-F2X4Y2TQ.js";
46
- import "./chunk-3ETUDW7N.js";
45
+ } from "./chunk-Z5XOB522.js";
46
+ import "./chunk-2R2HWX2E.js";
47
+ import "./chunk-GQM53HF7.js";
47
48
  import {
48
49
  MCPORTER_VERSION
49
- } from "./chunk-QNXOIF5U.js";
50
- import "./chunk-6O42UGLI.js";
51
- import "./chunk-2YV72LUA.js";
52
- import "./chunk-THRMUZZD.js";
53
- import "./chunk-V42T3QNK.js";
50
+ } from "./chunk-MSPGQEWX.js";
51
+ import "./chunk-VLJQSE6L.js";
52
+ import "./chunk-AIUZOMBB.js";
53
+ import "./chunk-37VJZIFW.js";
54
+ import "./chunk-BI6L3SYV.js";
55
+ import "./chunk-YFPPHEDE.js";
54
56
  import {
55
57
  RawEntrySchema,
56
58
  VaultEncryptionPolicySchema,
57
59
  loadServerDefinitions,
58
60
  normalizeServerEntry
59
- } from "./chunk-CXST5CVH.js";
61
+ } from "./chunk-Y7JQJ352.js";
60
62
  import {
61
63
  parseJsonBuffer
62
- } from "./chunk-7U5NSQ5T.js";
63
- import "./chunk-3LENTPGE.js";
64
- import "./chunk-JEHI2YU4.js";
65
- import "./chunk-IWCVZ46B.js";
66
- import "./chunk-O3RTM5HD.js";
64
+ } from "./chunk-OSK2JGFH.js";
65
+ import "./chunk-TTVO6RCP.js";
66
+ import "./chunk-MW3YO24Q.js";
67
+ import "./chunk-G5DK4L6M.js";
67
68
  import "./chunk-T4MQCFIK.js";
68
- import "./chunk-BHXCAVFP.js";
69
+ import "./chunk-4ACA5GWL.js";
69
70
  import {
70
71
  resolveLifecycle
71
- } from "./chunk-MHUMLEBO.js";
72
- import "./chunk-IRSL7JRH.js";
73
- import "./chunk-UVRJ3AAD.js";
74
- import "./chunk-O7SIXJM6.js";
72
+ } from "./chunk-CWM4RO33.js";
73
+ import "./chunk-UY2QWZB3.js";
74
+ import "./chunk-7KOGD2JK.js";
75
+ import "./chunk-EUHXZKP2.js";
75
76
  import "./chunk-LRKZP7DJ.js";
76
77
 
77
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate/name-utils.js
78
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/generate/name-utils.js
78
79
  function inferNameFromCommand(command) {
79
80
  if (typeof command === "string") {
80
81
  const normalizedHttp = normalizeHttpUrlCandidate(command);
@@ -233,7 +234,7 @@ function deriveNameFromUrl(url) {
233
234
  return void 0;
234
235
  }
235
236
 
236
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate/flags.js
237
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/generate/flags.js
237
238
  function parseGenerateFlags(args) {
238
239
  const common = extractGeneratorFlags(args);
239
240
  let server;
@@ -416,12 +417,12 @@ function normalizeCommandInput2(value) {
416
417
  return command;
417
418
  }
418
419
 
419
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/generate-cli.js
420
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/generate-cli.js
420
421
  import fs3 from "node:fs/promises";
421
422
  import { createHash } from "node:crypto";
422
423
  import path4 from "node:path";
423
424
 
424
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate/artifacts.js
425
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/generate/artifacts.js
425
426
  import { execFile as execFile2 } from "node:child_process";
426
427
  import fsSync from "node:fs";
427
428
  import fs from "node:fs/promises";
@@ -429,7 +430,7 @@ import { builtinModules, createRequire } from "node:module";
429
430
  import path2 from "node:path";
430
431
  import { fileURLToPath } from "node:url";
431
432
 
432
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate/runtime.js
433
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/generate/runtime.js
433
434
  import { execFile } from "node:child_process";
434
435
  import path from "node:path";
435
436
  import { devNull } from "node:os";
@@ -493,7 +494,7 @@ async function isBunAvailable() {
493
494
  }
494
495
  }
495
496
 
496
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate/artifacts.js
497
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/generate/artifacts.js
497
498
  var localRequire = createRequire(import.meta.url);
498
499
  var packageRoot = fileURLToPath(new URL("../../..", import.meta.url));
499
500
  var BUNDLED_DEPENDENCIES = ["commander", "mcporter", "jsonc-parser"];
@@ -508,7 +509,7 @@ async function bundleOutput({ sourcePath, targetPath, runtimeKind, minify, bundl
508
509
  async function bundleWithRolldown({ sourcePath, targetPath, runtimeKind, minify }) {
509
510
  let rolldownImpl;
510
511
  try {
511
- ({ rolldown: rolldownImpl } = await import("./dist-Q7WSCBBK.js"));
512
+ ({ rolldown: rolldownImpl } = await import("./dist-IFOLXE2R.js"));
512
513
  } catch (error) {
513
514
  const message = "Rolldown bundling is unavailable in this build of mcporter; rerun with --bundler bun or install mcporter via npm (Node.js) to use the Rolldown bundler.";
514
515
  if (error instanceof Error) {
@@ -621,7 +622,14 @@ function resolveBundleTarget({ bundle, compile, outputPath }) {
621
622
  return bundle;
622
623
  }
623
624
  if (bundle) {
624
- throw new Error("--bundle requires an explicit output path when used with --compile.");
625
+ if (compile) {
626
+ throw new Error("--bundle requires an explicit output path when used with --compile.");
627
+ }
628
+ const ext = path2.extname(outputPath);
629
+ if (ext.toLowerCase() === ".js") {
630
+ throw new Error("--bundle requires an explicit output path when --output already ends in .js.");
631
+ }
632
+ return path2.join(path2.dirname(outputPath), `${path2.basename(outputPath, ext)}.js`);
625
633
  }
626
634
  if (typeof compile === "string") {
627
635
  const ext = path2.extname(compile);
@@ -793,7 +801,7 @@ function resolveUniquePath(directory, baseName) {
793
801
  return attempt;
794
802
  }
795
803
 
796
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate/definition.js
804
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/generate/definition.js
797
805
  import fs2 from "node:fs/promises";
798
806
  import path3 from "node:path";
799
807
  function ensureInvocationDefaults(invocation, definition) {
@@ -878,7 +886,7 @@ async function fetchTools(definition, serverName, configPath, rootDir) {
878
886
  rootDir,
879
887
  servers: [definition]
880
888
  });
881
- const { createGeneratedKeepAliveRuntime } = await import("./generated-daemon-runtime-TUCZ3JEP.js");
889
+ const { createGeneratedKeepAliveRuntime } = await import("./generated-daemon-runtime-LTH36X2R.js");
882
890
  const context = await createGeneratedKeepAliveRuntime(base, definition);
883
891
  const runtime = context.runtime;
884
892
  try {
@@ -1163,7 +1171,7 @@ function toStringRecord(value) {
1163
1171
  return Object.keys(result).length > 0 ? result : void 0;
1164
1172
  }
1165
1173
 
1166
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/generate-cli.js
1174
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/generate-cli.js
1167
1175
  var REPRODUCIBLE_GENERATED_AT = "1970-01-01T00:00:00.000Z";
1168
1176
  async function generateCli(options) {
1169
1177
  const runtimeKind = await resolveRuntimeKind(options.runtime, options.compile);
@@ -1178,7 +1186,7 @@ async function generateCli(options) {
1178
1186
  const definition = baseDefinition.description || !derivedDescription ? baseDefinition : { ...baseDefinition, description: derivedDescription };
1179
1187
  const embeddedDefinition = stripBuildSources(definition);
1180
1188
  const serializedDefinition = serializeDefinition(embeddedDefinition);
1181
- const toolMetadata = buildToolMetadataList(tools);
1189
+ const toolMetadata = buildToolMetadataList(tools, { reservedOptionNames: ["raw"] });
1182
1190
  const generator = await readPackageMetadata();
1183
1191
  const baseInvocation = ensureInvocationDefaults({
1184
1192
  serverRef: options.serverRef,
@@ -1223,7 +1231,8 @@ async function generateCli(options) {
1223
1231
  resolvedBundleTarget = path4.resolve(resolveBundleTarget({
1224
1232
  bundle: options.bundle,
1225
1233
  compile: options.compile,
1226
- outputPath: templateSourcePath
1234
+ // Without --output the template sits in a temp dir; a bare --bundle still belongs in the cwd.
1235
+ outputPath: options.outputPath ? templateSourcePath : path4.resolve(`${sanitizePathSegment(name) || "server"}.ts`)
1227
1236
  }));
1228
1237
  if (options.compile) {
1229
1238
  resolvedCompileTarget = path4.resolve(computeCompileTarget(options.compile, resolvedBundleTarget, name));
@@ -1361,7 +1370,7 @@ function applyToolFilters(tools, includeTools, excludeTools) {
1361
1370
  }
1362
1371
  var __test = { ...toolsTestHelpers, applyToolFilters };
1363
1372
 
1364
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate/output.js
1373
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/generate/output.js
1365
1374
  async function performGenerateFromArtifact(metadata, request) {
1366
1375
  const { outputPath, bundlePath, compilePath } = await generateCli(request);
1367
1376
  if (metadata.artifact.kind === "binary" && compilePath) {
@@ -1385,7 +1394,7 @@ async function performGenerateFromRequest(request) {
1385
1394
  }
1386
1395
  }
1387
1396
 
1388
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate/server-utils.js
1397
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/generate/server-utils.js
1389
1398
  function buildInlineServerDefinition(name, command, description) {
1390
1399
  if (typeof command === "string") {
1391
1400
  const url = normalizeHttpUrlCandidate(command) ?? command;
@@ -1418,7 +1427,7 @@ function buildInlineServerDefinition(name, command, description) {
1418
1427
  };
1419
1428
  }
1420
1429
 
1421
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate-cli-runner.js
1430
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/generate-cli-runner.js
1422
1431
  async function handleGenerateCli(args, globalFlags) {
1423
1432
  const parsed = parseGenerateFlags(args);
1424
1433
  validateToolSelection(parsed.includeTools, parsed.excludeTools, {
@@ -0,0 +1,32 @@
1
+ import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
+ import {
3
+ createGeneratedKeepAliveRuntime
4
+ } from "./chunk-CFRA424Y.js";
5
+ import "./chunk-W47YAN6W.js";
6
+ import "./chunk-ABPXAKP7.js";
7
+ import "./chunk-2R7UGABC.js";
8
+ import "./chunk-H44A4G2O.js";
9
+ import "./chunk-Z5XOB522.js";
10
+ import "./chunk-2R2HWX2E.js";
11
+ import "./chunk-GQM53HF7.js";
12
+ import "./chunk-MSPGQEWX.js";
13
+ import "./chunk-VLJQSE6L.js";
14
+ import "./chunk-AIUZOMBB.js";
15
+ import "./chunk-37VJZIFW.js";
16
+ import "./chunk-BI6L3SYV.js";
17
+ import "./chunk-YFPPHEDE.js";
18
+ import "./chunk-Y7JQJ352.js";
19
+ import "./chunk-OSK2JGFH.js";
20
+ import "./chunk-TTVO6RCP.js";
21
+ import "./chunk-MW3YO24Q.js";
22
+ import "./chunk-G5DK4L6M.js";
23
+ import "./chunk-T4MQCFIK.js";
24
+ import "./chunk-4ACA5GWL.js";
25
+ import "./chunk-CWM4RO33.js";
26
+ import "./chunk-UY2QWZB3.js";
27
+ import "./chunk-7KOGD2JK.js";
28
+ import "./chunk-EUHXZKP2.js";
29
+ import "./chunk-LRKZP7DJ.js";
30
+ export {
31
+ createGeneratedKeepAliveRuntime
32
+ };
@@ -2,25 +2,25 @@ import { createRequire as __createRequire } from "node:module"; const require =
2
2
  import {
3
3
  formatPathForDisplay,
4
4
  formatSourceSuffix
5
- } from "./chunk-WQL7FJQ3.js";
5
+ } from "./chunk-NJR33E7V.js";
6
6
  import {
7
7
  buildGenerateCliCommand,
8
8
  readCliMetadata,
9
9
  shellQuote
10
- } from "./chunk-E76ZUBOJ.js";
11
- import "./chunk-BUOGKTKK.js";
12
- import {
13
- expectValue
14
- } from "./chunk-I6UFV7RW.js";
15
- import "./chunk-IRARVOUM.js";
10
+ } from "./chunk-4NABHXDS.js";
11
+ import "./chunk-Z43KJRXY.js";
16
12
  import {
17
13
  consumeOutputFormat
18
- } from "./chunk-MEQXX43K.js";
19
- import "./chunk-UVRJ3AAD.js";
20
- import "./chunk-O7SIXJM6.js";
14
+ } from "./chunk-ZJZ53NIB.js";
15
+ import {
16
+ expectValue
17
+ } from "./chunk-5ZQKSEUN.js";
18
+ import "./chunk-VJ5VDK6D.js";
19
+ import "./chunk-7KOGD2JK.js";
20
+ import "./chunk-EUHXZKP2.js";
21
21
  import "./chunk-LRKZP7DJ.js";
22
22
 
23
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/inspect-cli-command.js
23
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/inspect-cli-command.js
24
24
  async function handleInspectCli(args) {
25
25
  const parsed = parseInspectFlags(args);
26
26
  const metadata = await readCliMetadata(parsed.artifactPath);
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from "node:module"; const require =
2
2
  import {
3
3
  buildDaemonLaunchInvocation,
4
4
  launchDaemonDetached
5
- } from "./chunk-B6S43WID.js";
5
+ } from "./chunk-VJ45Y5IO.js";
6
6
  import "./chunk-LRKZP7DJ.js";
7
7
  export {
8
8
  buildDaemonLaunchInvocation,
@@ -5,7 +5,7 @@ import {
5
5
  isKeepAliveServer,
6
6
  keepAliveIdleTimeout,
7
7
  resolveLifecycle
8
- } from "./chunk-MHUMLEBO.js";
8
+ } from "./chunk-CWM4RO33.js";
9
9
  import "./chunk-LRKZP7DJ.js";
10
10
  export {
11
11
  DEFAULT_KEEP_ALIVE,
@@ -1,68 +1,71 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  extractListFlags
4
- } from "./chunk-WDWSA7RL.js";
4
+ } from "./chunk-HGEKP2E5.js";
5
5
  import {
6
6
  loadToolMetadata
7
- } from "./chunk-3P3KGT4H.js";
7
+ } from "./chunk-TQ5T5VO7.js";
8
8
  import {
9
9
  chooseClosestIdentifier,
10
10
  renderIdentifierResolutionMessages
11
- } from "./chunk-66VSGFXA.js";
11
+ } from "./chunk-XU4D5QN2.js";
12
12
  import {
13
13
  buildToolDoc,
14
14
  formatExampleBlock
15
- } from "./chunk-5Z6WSV5D.js";
16
- import "./chunk-KJ5FPQF6.js";
15
+ } from "./chunk-3KSDZBUJ.js";
16
+ import "./chunk-7SQZWTDU.js";
17
17
  import {
18
18
  classifyListError,
19
19
  formatSourceSuffix,
20
20
  renderServerListRow
21
- } from "./chunk-WQL7FJQ3.js";
22
- import {
23
- boldText,
24
- dimText,
25
- extraDimText,
26
- supportsSpinner,
27
- yellowText
28
- } from "./chunk-IRARVOUM.js";
21
+ } from "./chunk-NJR33E7V.js";
29
22
  import {
30
23
  resolveListTimeout,
31
24
  withTimeout
32
- } from "./chunk-TC2JPBFB.js";
25
+ } from "./chunk-QYR3UKJS.js";
33
26
  import {
34
27
  persistPreparedEphemeralServer,
35
28
  prepareEphemeralServerTarget,
36
29
  renderAdhocServerHelpLines
37
- } from "./chunk-3FRLDHVD.js";
38
- import "./chunk-63L6SHK3.js";
39
- import "./chunk-ZEA3Y5ZD.js";
30
+ } from "./chunk-SYBDN4SV.js";
40
31
  import {
41
32
  formatErrorMessage,
42
33
  serializeConnectionIssue
43
- } from "./chunk-3HSC6NHZ.js";
44
- import "./chunk-L2MSWQDL.js";
34
+ } from "./chunk-Y7UTXETL.js";
35
+ import "./chunk-ZEMVGFKG.js";
36
+ import "./chunk-QHD5RXW4.js";
37
+ import "./chunk-FJNWUAGR.js";
45
38
  import {
46
39
  splitHttpToolSelector
47
- } from "./chunk-US63Y6XE.js";
48
- import "./chunk-MEQXX43K.js";
40
+ } from "./chunk-32UZRZIL.js";
41
+ import "./chunk-ZJZ53NIB.js";
42
+ import {
43
+ boldText,
44
+ dimText,
45
+ extraDimText,
46
+ supportsSpinner,
47
+ yellowText
48
+ } from "./chunk-VJ5VDK6D.js";
49
+ import {
50
+ CliUsageError
51
+ } from "./chunk-EV3SP7ME.js";
49
52
  import {
50
53
  setStdioLogMode
51
- } from "./chunk-3ETUDW7N.js";
54
+ } from "./chunk-GQM53HF7.js";
52
55
  import {
53
56
  MCPORTER_VERSION
54
- } from "./chunk-QNXOIF5U.js";
55
- import "./chunk-6O42UGLI.js";
56
- import "./chunk-CXST5CVH.js";
57
- import "./chunk-7U5NSQ5T.js";
58
- import "./chunk-3LENTPGE.js";
59
- import "./chunk-JEHI2YU4.js";
60
- import "./chunk-IWCVZ46B.js";
57
+ } from "./chunk-MSPGQEWX.js";
58
+ import "./chunk-VLJQSE6L.js";
59
+ import "./chunk-Y7JQJ352.js";
60
+ import "./chunk-OSK2JGFH.js";
61
+ import "./chunk-TTVO6RCP.js";
62
+ import "./chunk-MW3YO24Q.js";
63
+ import "./chunk-G5DK4L6M.js";
61
64
  import "./chunk-T4MQCFIK.js";
62
- import "./chunk-BHXCAVFP.js";
63
- import "./chunk-MHUMLEBO.js";
64
- import "./chunk-UVRJ3AAD.js";
65
- import "./chunk-O7SIXJM6.js";
65
+ import "./chunk-4ACA5GWL.js";
66
+ import "./chunk-CWM4RO33.js";
67
+ import "./chunk-7KOGD2JK.js";
68
+ import "./chunk-EUHXZKP2.js";
66
69
  import {
67
70
  __export
68
71
  } from "./chunk-LRKZP7DJ.js";
@@ -2760,13 +2763,16 @@ var success = green(_isUnicodeSupported ? "\u2714" : "\u221A");
2760
2763
  var warning = yellow(_isUnicodeSupported ? "\u26A0" : "\u203C");
2761
2764
  var error = red(_isUnicodeSupported ? "\u2716" : "\xD7");
2762
2765
 
2763
- // node_modules/.pnpm/ansi-regex@6.5.0/node_modules/ansi-regex/index.js
2766
+ // node_modules/.pnpm/ansi-regex@6.6.0/node_modules/ansi-regex/index.js
2767
+ var ST = String.raw`(?:\u001B\u005C|\u009C)`;
2768
+ var stringControls = String.raw`\u0018\u001A\u001B\u0080-\u009F`;
2769
+ var osc = String.raw`(?:\u001B\]|\u009D)[^\u0007${stringControls}]*(?:\u0007|${ST})`;
2770
+ var controlString = String.raw`(?:\u001B[PX^_k]|[\u0090\u0098\u009E\u009F])[^${stringControls}]*${ST}`;
2771
+ var linuxPalette = String.raw`\u001B\](?:P[\dA-Fa-f]{7}|R)(?:\u0007|${ST})?`;
2772
+ var csi = String.raw`(?:\u001B\[|\u009B)[\u0030-\u003F]*[\u0020-\u002F]*[\u0040-\u007E]`;
2773
+ var escape = String.raw`\u001B(?:[\u0020-\u002F]+[\u0030-\u007E]|[\dA-PR-TZcf-oq-uy=><~|}])`;
2774
+ var pattern = `${linuxPalette}|${osc}|${controlString}|${csi}|${escape}`;
2764
2775
  function ansiRegex({ onlyFirst = false } = {}) {
2765
- const ST = String.raw`(?:\u0007|\u001B\u005C|\u009C)`;
2766
- const osc = String.raw`(?:(?:\u001B\]|\u009D)[^\u0007\u001B\u009C\u009D]*${ST})`;
2767
- const csi = String.raw`[\u001B\u009B][[\]()#;?]*(?:\d{1,4}(?:[;:]\d{0,4})*)?[A-PR-TZcf-nq-uy=><~]`;
2768
- const csiPrivate = String.raw`(?:\u001B\[|\u009B)[<=>][0-9;:]*[A-PR-TZcf-nq-uy~]`;
2769
- const pattern = `${osc}|${csiPrivate}|${csi}`;
2770
2776
  return new RegExp(pattern, onlyFirst ? void 0 : "g");
2771
2777
  }
2772
2778
 
@@ -3523,7 +3529,7 @@ function ora(options) {
3523
3529
  return new Ora(options);
3524
3530
  }
3525
3531
 
3526
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/transport-utils.js
3532
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/transport-utils.js
3527
3533
  function formatTransportSummary(definition) {
3528
3534
  if (definition.command.kind === "http") {
3529
3535
  const url = definition.command.url instanceof URL ? definition.command.url.href : String(definition.command.url);
@@ -3533,7 +3539,7 @@ function formatTransportSummary(definition) {
3533
3539
  return `STDIO ${rendered}`;
3534
3540
  }
3535
3541
 
3536
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/list-output.js
3542
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/list-output.js
3537
3543
  function printSingleServerHeader(definition, toolCount, durationMs, transportSummary, sourcePath, options) {
3538
3544
  const prefix = boldText(definition.name);
3539
3545
  if (definition.description) {
@@ -3710,10 +3716,15 @@ function quoteCommandSegment(segment) {
3710
3716
  return `'${segment.replace(/'/g, `'\\''`)}'`;
3711
3717
  }
3712
3718
 
3713
- // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/list-command.js
3719
+ // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/list-command.js
3714
3720
  async function handleList(runtime, args) {
3715
3721
  const flags = extractListFlags(args);
3716
3722
  let target = args.shift();
3723
+ const unknownOption = target?.startsWith("-") && !runtime.getDefinitions().some(({ name }) => name === target) && !resolveConfiguredToolSelector(runtime, target);
3724
+ const unexpected = unknownOption ? target : args[0];
3725
+ if (unexpected !== void 0) {
3726
+ throw new CliUsageError(`Unexpected list argument '${unexpected}'.`);
3727
+ }
3717
3728
  let requestedTool;
3718
3729
  if (target) {
3719
3730
  const split = splitHttpToolSelector(target);