@introspection-ai/recipes 0.24.0 → 0.25.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 (100) hide show
  1. package/README.md +3 -3
  2. package/dist/channels/tools.js +1 -1
  3. package/dist/channels/tools.js.map +1 -1
  4. package/dist/mcp-chunks/{auth-command-4OEOMU2V.js → auth-command-4WFRNU2I.js} +24 -24
  5. package/dist/mcp-chunks/call-arguments-4DWPBLQP.js +15 -0
  6. package/dist/mcp-chunks/{call-command-AUEKSBMD.js → call-command-JBIKXOGC.js} +36 -36
  7. package/dist/mcp-chunks/{chunk-L4CUJJI5.js → chunk-36VIJRYY.js} +4 -4
  8. package/dist/mcp-chunks/{chunk-PPIXUCYQ.js → chunk-3JGS7LQB.js} +2 -2
  9. package/dist/mcp-chunks/{chunk-4NDR45CX.js → chunk-3R2WK3NB.js} +28 -9
  10. package/dist/mcp-chunks/{chunk-YX2NKW6O.js → chunk-3Z7MFS6K.js} +23 -6
  11. package/dist/mcp-chunks/{chunk-ACTRQW5L.js → chunk-4ZNBWL65.js} +2 -2
  12. package/dist/mcp-chunks/chunk-53NRFMB3.js +990 -0
  13. package/dist/mcp-chunks/{chunk-6QH47GNE.js → chunk-6YZW3XAE.js} +68 -6
  14. package/dist/mcp-chunks/{chunk-X3FOKZ5C.js → chunk-7WOKCV6Q.js} +1 -1
  15. package/dist/mcp-chunks/{chunk-MOML5C2E.js → chunk-AD3FQ73K.js} +1 -1
  16. package/dist/mcp-chunks/{chunk-HDUKEFBI.js → chunk-AIKLVBYU.js} +2 -2
  17. package/dist/mcp-chunks/{chunk-SQTXZR56.js → chunk-ASG4OY3M.js} +21 -604
  18. package/dist/mcp-chunks/{chunk-V4RYLZM5.js → chunk-B2LNXGAP.js} +1 -1
  19. package/dist/mcp-chunks/{chunk-XVJAASVZ.js → chunk-BWW4XRUC.js} +16 -16
  20. package/dist/mcp-chunks/{chunk-MRXSXBZT.js → chunk-C2KNLFZR.js} +2 -2
  21. package/dist/mcp-chunks/{chunk-KPXFBRTG.js → chunk-CZKDJZER.js} +1 -1
  22. package/dist/mcp-chunks/{chunk-6CYJ6RN3.js → chunk-DTZHEVKC.js} +1 -1
  23. package/dist/mcp-chunks/{chunk-PLSS6TQZ.js → chunk-ED2WN5BI.js} +3 -3
  24. package/dist/mcp-chunks/{chunk-OGFFBNIC.js → chunk-ELA77TDC.js} +4 -4
  25. package/dist/mcp-chunks/{chunk-5WGJPYOR.js → chunk-EMSNQHZZ.js} +1 -1
  26. package/dist/mcp-chunks/{chunk-AB7MHBEG.js → chunk-EPT4MYOF.js} +11 -11
  27. package/dist/mcp-chunks/{chunk-HHMWZ2FZ.js → chunk-FAJPJTOC.js} +1 -1
  28. package/dist/mcp-chunks/{chunk-TGJOZDKG.js → chunk-FS5JIKT6.js} +2 -2
  29. package/dist/mcp-chunks/{chunk-IPH6U7SE.js → chunk-FX5NYWBH.js} +3 -3
  30. package/dist/mcp-chunks/{chunk-SCGMRUKI.js → chunk-G6OMDUNG.js} +5 -5
  31. package/dist/mcp-chunks/{chunk-47N2EELW.js → chunk-GQ6NSIDS.js} +30 -30
  32. package/dist/mcp-chunks/{chunk-PPOHGQKM.js → chunk-GUXMP7QB.js} +2 -2
  33. package/dist/mcp-chunks/{chunk-NMFI6AUD.js → chunk-H3JCYHGS.js} +25 -25
  34. package/dist/mcp-chunks/{chunk-3VLPWGJL.js → chunk-HCOKLSOB.js} +4 -4
  35. package/dist/mcp-chunks/{chunk-J6VOMOKI.js → chunk-HLRCUHNO.js} +1 -1
  36. package/dist/mcp-chunks/{chunk-LWVFSQYX.js → chunk-HN7WPMCA.js} +7806 -3454
  37. package/dist/mcp-chunks/chunk-I5GI2A2D.js +92 -0
  38. package/dist/mcp-chunks/{chunk-7KEDX7SE.js → chunk-IME7DGLJ.js} +2 -2
  39. package/dist/mcp-chunks/{chunk-E4YYMOT2.js → chunk-IPNSPKQK.js} +33 -21
  40. package/dist/mcp-chunks/{chunk-ZKFG37TB.js → chunk-IRTJXFWA.js} +2 -2
  41. package/dist/mcp-chunks/{chunk-KMH3PHLA.js → chunk-ITCCROID.js} +13 -7
  42. package/dist/mcp-chunks/{chunk-ADINDBOF.js → chunk-ITR7FQM3.js} +2 -2
  43. package/dist/mcp-chunks/{chunk-JILBFEBD.js → chunk-IYWYVHHD.js} +1 -1
  44. package/dist/mcp-chunks/{chunk-RO2Y34XX.js → chunk-JG4TRUPF.js} +1 -1
  45. package/dist/mcp-chunks/{chunk-DEYKPG4K.js → chunk-KW3ANJ36.js} +4 -4
  46. package/dist/mcp-chunks/{chunk-NWLOPQT7.js → chunk-MOEZ43ZL.js} +1 -1
  47. package/dist/mcp-chunks/{chunk-AFKE4BTR.js → chunk-NTHUNCXJ.js} +21 -21
  48. package/dist/mcp-chunks/{chunk-J3J3NQ4X.js → chunk-OD3MSMXY.js} +1 -1
  49. package/dist/mcp-chunks/{chunk-PRZCYXVO.js → chunk-OP3IW2V6.js} +2 -2
  50. package/dist/mcp-chunks/{chunk-K56RW4HB.js → chunk-PZ323CXI.js} +1 -1
  51. package/dist/mcp-chunks/{chunk-US57PK4B.js → chunk-QZUC2T72.js} +59 -4
  52. package/dist/mcp-chunks/{chunk-Z7O6NF7X.js → chunk-RD7NHCRK.js} +19 -19
  53. package/dist/mcp-chunks/{chunk-756YH7S4.js → chunk-RSTKSBVF.js} +2 -2
  54. package/dist/mcp-chunks/{chunk-6DL2C6V5.js → chunk-SCOMDV54.js} +1 -1
  55. package/dist/mcp-chunks/{chunk-SAK5KCLR.js → chunk-SNKXMWDB.js} +1 -1
  56. package/dist/mcp-chunks/{chunk-LC2CCTQN.js → chunk-TF2YTYE4.js} +1 -1
  57. package/dist/mcp-chunks/chunk-TPHPAEDH.js +3769 -0
  58. package/dist/mcp-chunks/{chunk-AF74TOWM.js → chunk-V5AYEKSL.js} +5 -5
  59. package/dist/mcp-chunks/{chunk-HBDCHBJP.js → chunk-WTMJMM3B.js} +12 -1
  60. package/dist/mcp-chunks/{chunk-ZZSD2JT7.js → chunk-WYLHHXI6.js} +1 -1
  61. package/dist/mcp-chunks/{chunk-MFFE5QSH.js → chunk-Y3EDWN2P.js} +1 -1
  62. package/dist/mcp-chunks/{chunk-ZRZ7C6L3.js → chunk-YIRGLKDA.js} +8 -8
  63. package/dist/mcp-chunks/{chunk-RE4EVQNC.js → chunk-ZOAQDFAO.js} +62 -7
  64. package/dist/mcp-chunks/{cli-B7WQQUME.js → cli-XU26MUCN.js} +67 -67
  65. package/dist/mcp-chunks/client-OT34CKRH.js +21 -0
  66. package/dist/mcp-chunks/{config-command-FF3JPMOP.js → config-command-UQMMIK2U.js} +37 -30
  67. package/dist/mcp-chunks/daemon-command-YCIOZGPZ.js +35 -0
  68. package/dist/mcp-chunks/{dist-V4UB7RTR.js → dist-DM2RXZMU.js} +47 -44
  69. package/dist/mcp-chunks/{emit-ts-command-4X56IZ32.js → emit-ts-command-KAOL6DAN.js} +16 -16
  70. package/dist/mcp-chunks/{generate-cli-runner-MIPF73SJ.js → generate-cli-runner-AK6XNRTK.js} +70 -50
  71. package/dist/mcp-chunks/{inspect-cli-command-GX54ZXKR.js → inspect-cli-command-6FVJO7H2.js} +10 -10
  72. package/dist/mcp-chunks/{launch-E2LWGPZS.js → launch-EIT73HX4.js} +1 -1
  73. package/dist/mcp-chunks/{lifecycle-TONHXXXJ.js → lifecycle-QH4TUI3K.js} +1 -1
  74. package/dist/mcp-chunks/{list-command-YUGRZO4G.js → list-command-UOB2XZK7.js} +30 -30
  75. package/dist/mcp-chunks/{output-utils-AZY6N2VQ.js → output-utils-6YXH23T7.js} +3 -3
  76. package/dist/mcp-chunks/{prompt-CH6TK0bC-NSBYYJZH.js → prompt-CH6TK0bC-ZB6RFAXR.js} +1 -1
  77. package/dist/mcp-chunks/{record-command-25DLELA2.js → record-command-FO5TTERC.js} +5 -5
  78. package/dist/mcp-chunks/{replay-command-6SLDG6PC.js → replay-command-SCBPCGQ7.js} +6 -6
  79. package/dist/mcp-chunks/{resource-command-YVOB4JCU.js → resource-command-S2J7XEMV.js} +10 -10
  80. package/dist/mcp-chunks/{result-utils-ZXB5DM36.js → result-utils-OME6HGS6.js} +4 -4
  81. package/dist/mcp-chunks/runtime-QIPMLIJI.js +39 -0
  82. package/dist/mcp-chunks/runtime-wrapper-X4YFKMJI.js +16 -0
  83. package/dist/mcp-chunks/{serve-command-QYGM2AMB.js → serve-command-DDBZZSG6.js} +28 -28
  84. package/dist/mcp-chunks/{timeouts-P3TBB3AX.js → timeouts-HNGNKDQN.js} +3 -3
  85. package/dist/mcp-chunks/{vault-command-VDMPATIX.js → vault-command-TJZYS3YI.js} +8 -7
  86. package/dist/mcp-chunks/{webapi-BLTNWSB2.js → webapi-4GWO2UBA.js} +887 -703
  87. package/dist/mcp-daemon.js +31 -31
  88. package/dist/mcp-run-worker.js +31 -31
  89. package/docs/channels.md +6 -5
  90. package/docs/recipe-format.md +6 -3
  91. package/docs/slack.md +14 -11
  92. package/package.json +11 -11
  93. package/dist/mcp-chunks/call-arguments-RPXZJOXL.js +0 -15
  94. package/dist/mcp-chunks/chunk-7CS27CWE.js +0 -431
  95. package/dist/mcp-chunks/chunk-LJCZWKGJ.js +0 -372
  96. package/dist/mcp-chunks/chunk-Q7ESBNJG.js +0 -57
  97. package/dist/mcp-chunks/client-4ZHIBB67.js +0 -21
  98. package/dist/mcp-chunks/daemon-command-FKW6YELL.js +0 -35
  99. package/dist/mcp-chunks/runtime-NOWGTHZ5.js +0 -39
  100. package/dist/mcp-chunks/runtime-wrapper-ZZPAFQE4.js +0 -14
@@ -1,19 +1,19 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  isUnauthorizedError
4
- } from "./chunk-ZKFG37TB.js";
4
+ } from "./chunk-IRTJXFWA.js";
5
5
  import {
6
6
  ProtocolErrorCode
7
- } from "./chunk-K56RW4HB.js";
7
+ } from "./chunk-PZ323CXI.js";
8
8
  import {
9
9
  DAEMON_OAUTH_FLOW_ERROR_CODE,
10
10
  DAEMON_OPERATION_TIMEOUT_CODE
11
- } from "./chunk-YX2NKW6O.js";
11
+ } from "./chunk-3Z7MFS6K.js";
12
12
  import {
13
13
  isKeepAliveServer
14
- } from "./chunk-RO2Y34XX.js";
14
+ } from "./chunk-JG4TRUPF.js";
15
15
 
16
- // node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/daemon/runtime-wrapper.js
16
+ // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/daemon/runtime-wrapper.js
17
17
  function createKeepAliveRuntime(base, options) {
18
18
  if (!options.daemonClient || options.keepAliveServers.size === 0) {
19
19
  return base;
@@ -1,10 +1,11 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
 
3
- // node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/env.js
3
+ // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/env.js
4
4
  import os from "node:os";
5
5
  import path from "node:path";
6
6
  var ENV_DEFAULT_PATTERN = /^\$\{([A-Za-z_][A-Za-z0-9_]*)(?::-|:|-)?([^}]*)\}$/;
7
7
  var ENV_INTERPOLATION_PATTERN = /\\?\$\{([A-Za-z_][A-Za-z0-9_]*)(?::-(.*?))?\}/g;
8
+ var UNSUPPORTED_BRACED_ENV_PATTERN = /\$\{env:[^}]*\}/;
8
9
  var ENV_DIRECT_PREFIX = "$env:";
9
10
  function expandHome(input) {
10
11
  if (!input.startsWith("~")) {
@@ -23,6 +24,7 @@ function resolveEnvValue(raw, env = process.env) {
23
24
  if (typeof raw !== "string") {
24
25
  return String(raw);
25
26
  }
27
+ rejectUnsupportedBracedEnvPlaceholder(raw);
26
28
  const match = ENV_DEFAULT_PATTERN.exec(raw);
27
29
  if (match) {
28
30
  const envName = match[1];
@@ -42,6 +44,7 @@ function resolveEnvValue(raw, env = process.env) {
42
44
  return raw;
43
45
  }
44
46
  function resolveEnvPlaceholders(value, env = process.env) {
47
+ rejectUnsupportedBracedEnvPlaceholder(value);
45
48
  if (value.startsWith(ENV_DIRECT_PREFIX)) {
46
49
  const envName = value.slice(ENV_DIRECT_PREFIX.length);
47
50
  const envValue = env[envName];
@@ -71,12 +74,20 @@ function resolveEnvPlaceholders(value, env = process.env) {
71
74
  }
72
75
  return replaced;
73
76
  }
77
+ function rejectUnsupportedBracedEnvPlaceholder(value) {
78
+ const unsupported = UNSUPPORTED_BRACED_ENV_PATTERN.exec(value)?.[0];
79
+ if (!unsupported) {
80
+ return;
81
+ }
82
+ throw new Error(`Unsupported environment placeholder '${unsupported}'. Use '\${VAR}', '\${VAR:-fallback}', or whole-value '$env:VAR'.`);
83
+ }
74
84
  async function withEnvOverrides(envOverrides, fn) {
75
85
  if (!envOverrides || Object.keys(envOverrides).length === 0) {
76
86
  return await fn();
77
87
  }
78
88
  const applied = [];
79
89
  for (const [key, rawValue] of Object.entries(envOverrides)) {
90
+ rejectUnsupportedBracedEnvPlaceholder(rawValue);
80
91
  if (process.env[key]) {
81
92
  continue;
82
93
  }
@@ -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/mcporter@0.13.7/node_modules/mcporter/dist/daemon/launch.js
3
+ // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/daemon/launch.js
4
4
  import { spawn } from "node:child_process";
5
5
  import path from "node:path";
6
6
  function launchDaemonDetached(options, launch = spawn) {
@@ -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/mcporter@0.13.7/node_modules/mcporter/dist/cli/output-format.js
3
+ // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/cli/output-format.js
4
4
  function consumeOutputFormat(args, options = {}) {
5
5
  const allowed = options.allowed ?? ["auto", "text", "markdown", "json", "raw"];
6
6
  const defaultFormat = options.defaultFormat ?? "auto";
@@ -7,26 +7,26 @@ import {
7
7
  reconcilePersistedTokens,
8
8
  withRefreshLock,
9
9
  withRefreshRequestTimeout
10
- } from "./chunk-SQTXZR56.js";
10
+ } from "./chunk-ASG4OY3M.js";
11
11
  import {
12
12
  sameOAuthTokenGeneration
13
- } from "./chunk-7CS27CWE.js";
13
+ } from "./chunk-53NRFMB3.js";
14
14
  import {
15
15
  isUnauthorizedError
16
- } from "./chunk-ZKFG37TB.js";
16
+ } from "./chunk-IRTJXFWA.js";
17
17
  import {
18
18
  IssuerMismatchError,
19
19
  auth,
20
20
  validateClientMetadataUrl
21
- } from "./chunk-K56RW4HB.js";
21
+ } from "./chunk-PZ323CXI.js";
22
22
  import {
23
23
  suppressBrowserLaunchFromEnv
24
- } from "./chunk-6CYJ6RN3.js";
24
+ } from "./chunk-DTZHEVKC.js";
25
25
  import {
26
26
  isFileLockTimeoutError
27
- } from "./chunk-ADINDBOF.js";
27
+ } from "./chunk-ITR7FQM3.js";
28
28
 
29
- // node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/oauth.js
29
+ // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/oauth.js
30
30
  import { spawn } from "node:child_process";
31
31
  import { createHash, randomUUID } from "node:crypto";
32
32
  import http from "node:http";
@@ -537,7 +537,7 @@ var __oauthInternals = {
537
537
  openExternal
538
538
  };
539
539
 
540
- // node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/runtime/oauth.js
540
+ // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/runtime/oauth.js
541
541
  var DEFAULT_OAUTH_CODE_TIMEOUT_MS = 3e5;
542
542
  var OAUTH_FLOW_ERROR = /* @__PURE__ */ Symbol("oauth-flow-error");
543
543
  var POST_AUTH_CONNECT_ERROR = /* @__PURE__ */ Symbol("post-auth-connect-error");
@@ -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/mcporter@0.13.7/node_modules/mcporter/dist/runtime/elicitation.js
3
+ // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/runtime/elicitation.js
4
4
  import readline from "node:readline";
5
5
  var NON_INTERACTIVE_ELICITATION_HINT = "Server requested interactive input; run mcporter in a terminal.";
6
6
  function createInteractiveElicitationResponder(options = {}) {
@@ -167,12 +167,8 @@ function ask(rl, prompt) {
167
167
  function formatDefault(value) {
168
168
  return sanitizeTerminalText(Array.isArray(value) ? value.join(", ") : String(value));
169
169
  }
170
- var ANSI_ESCAPE_PATTERN = (
171
- // eslint-disable-next-line no-control-regex -- Terminal escape bytes are the exact untrusted input being removed.
172
- /(?:\u001b\][^\u0007]*(?:\u0007|\u001b\\)|\u001b[P^_][\s\S]*?\u001b\\|(?:\u001b\[|\u009b)[0-?]*[ -/]*[@-~]|\u001b[@-_])/gu
173
- );
174
170
  function sanitizeTerminalText(value) {
175
- const withoutEscapes = value.replace(ANSI_ESCAPE_PATTERN, "");
171
+ const withoutEscapes = stripAnsiSequences(value);
176
172
  let withoutControls = "";
177
173
  for (const character of withoutEscapes) {
178
174
  const codePoint = character.codePointAt(0) ?? 0;
@@ -182,7 +178,66 @@ function sanitizeTerminalText(value) {
182
178
  withoutControls += character;
183
179
  }
184
180
  }
185
- return withoutControls.replace(/ {2,}/gu, " ").trim();
181
+ return collapseSpaces(withoutControls).trim();
182
+ }
183
+ function stripAnsiSequences(value) {
184
+ let output = "";
185
+ for (let index = 0; index < value.length; index += 1) {
186
+ const code = value.charCodeAt(index);
187
+ if (code === 155) {
188
+ index = consumeControlSequence(value, index + 1);
189
+ continue;
190
+ }
191
+ if (code !== 27) {
192
+ output += value[index];
193
+ continue;
194
+ }
195
+ const introducer = value.charAt(index + 1);
196
+ if (introducer === "[") {
197
+ index = consumeControlSequence(value, index + 2);
198
+ } else if (introducer === "]" || introducer === "P" || introducer === "^" || introducer === "_") {
199
+ index = consumeStringSequence(value, index + 2, introducer === "]");
200
+ } else if (introducer) {
201
+ index += 1;
202
+ }
203
+ }
204
+ return output;
205
+ }
206
+ function consumeControlSequence(value, start) {
207
+ for (let index = start; index < value.length; index += 1) {
208
+ const code = value.charCodeAt(index);
209
+ if (code >= 64 && code <= 126) {
210
+ return index;
211
+ }
212
+ }
213
+ return value.length;
214
+ }
215
+ function consumeStringSequence(value, start, allowBell) {
216
+ for (let index = start; index < value.length; index += 1) {
217
+ if (allowBell && value.charCodeAt(index) === 7) {
218
+ return index;
219
+ }
220
+ if (value.charCodeAt(index) === 27 && value.charAt(index + 1) === "\\") {
221
+ return index + 1;
222
+ }
223
+ }
224
+ return value.length;
225
+ }
226
+ function collapseSpaces(value) {
227
+ let output = "";
228
+ let previousWasSpace = false;
229
+ for (const character of value) {
230
+ if (character === " ") {
231
+ if (!previousWasSpace) {
232
+ output += character;
233
+ }
234
+ previousWasSpace = true;
235
+ } else {
236
+ output += character;
237
+ previousWasSpace = false;
238
+ }
239
+ }
240
+ return output;
186
241
  }
187
242
  function writeLine(output, message) {
188
243
  output.write(`${message}
@@ -3,75 +3,75 @@ import { createRequire as __createRequire } from "node:module"; const require =
3
3
  import {
4
4
  consumeMatchingTokens,
5
5
  extractFlags
6
- } from "./chunk-LC2CCTQN.js";
6
+ } from "./chunk-TF2YTYE4.js";
7
7
  import {
8
8
  isRecordReplayModeActive,
9
9
  isReplayModeActive
10
- } from "./chunk-HHMWZ2FZ.js";
10
+ } from "./chunk-FAJPJTOC.js";
11
11
  import {
12
12
  extractListFlags
13
- } from "./chunk-L4CUJJI5.js";
13
+ } from "./chunk-36VIJRYY.js";
14
14
  import {
15
15
  DEBUG_HANG,
16
16
  dumpActiveHandles,
17
17
  terminateChildProcesses
18
- } from "./chunk-PPIXUCYQ.js";
18
+ } from "./chunk-3JGS7LQB.js";
19
19
  import {
20
20
  parseCallArguments
21
- } from "./chunk-AB7MHBEG.js";
21
+ } from "./chunk-EPT4MYOF.js";
22
22
  import {
23
23
  CliUsageError
24
- } from "./chunk-KPXFBRTG.js";
24
+ } from "./chunk-CZKDJZER.js";
25
25
  import {
26
26
  getActiveLogLevel,
27
27
  getActiveLogger,
28
28
  logError,
29
29
  logInfo,
30
30
  setLogLevel
31
- } from "./chunk-PPOHGQKM.js";
31
+ } from "./chunk-GUXMP7QB.js";
32
32
  import {
33
33
  chooseClosestIdentifier,
34
34
  renderIdentifierResolutionMessages
35
- } from "./chunk-J6VOMOKI.js";
35
+ } from "./chunk-HLRCUHNO.js";
36
36
  import {
37
37
  boldText,
38
38
  dimText,
39
39
  extraDimText,
40
40
  supportsAnsiColor,
41
41
  yellowText
42
- } from "./chunk-6DL2C6V5.js";
42
+ } from "./chunk-SCOMDV54.js";
43
43
  import {
44
44
  STDOUT_FLUSH_TIMEOUT_MS,
45
45
  parsePositiveInteger,
46
46
  resolveCallTimeout
47
- } from "./chunk-HDUKEFBI.js";
48
- import "./chunk-NWLOPQT7.js";
47
+ } from "./chunk-AIKLVBYU.js";
48
+ import "./chunk-MOEZ43ZL.js";
49
49
  import {
50
50
  looksLikeHttpUrl,
51
51
  splitHttpToolSelector
52
- } from "./chunk-SCGMRUKI.js";
53
- import "./chunk-MFFE5QSH.js";
52
+ } from "./chunk-G6OMDUNG.js";
53
+ import "./chunk-Y3EDWN2P.js";
54
54
  import {
55
55
  configureAutoSelectFamilyAttemptTimeout
56
- } from "./chunk-MOML5C2E.js";
56
+ } from "./chunk-AD3FQ73K.js";
57
57
  import {
58
58
  createInteractiveElicitationResponder
59
- } from "./chunk-RE4EVQNC.js";
59
+ } from "./chunk-ZOAQDFAO.js";
60
60
  import {
61
61
  MCPORTER_VERSION
62
- } from "./chunk-J3J3NQ4X.js";
62
+ } from "./chunk-OD3MSMXY.js";
63
63
  import {
64
64
  parseLogLevel
65
- } from "./chunk-X3FOKZ5C.js";
66
- import "./chunk-Q7ESBNJG.js";
65
+ } from "./chunk-7WOKCV6Q.js";
66
+ import "./chunk-I5GI2A2D.js";
67
67
  import {
68
68
  resolveConfigPath
69
- } from "./chunk-IPH6U7SE.js";
70
- import "./chunk-TGJOZDKG.js";
71
- import "./chunk-HBDCHBJP.js";
69
+ } from "./chunk-FX5NYWBH.js";
70
+ import "./chunk-FS5JIKT6.js";
71
+ import "./chunk-WTMJMM3B.js";
72
72
  import "./chunk-LRKZP7DJ.js";
73
73
 
74
- // node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/cli/cli-factory.js
74
+ // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/cli/cli-factory.js
75
75
  function buildGlobalContext(argv) {
76
76
  const globalFlags = extractFlags(argv, ["--config", "--root", "--log-level", "--oauth-timeout"]);
77
77
  if (globalFlags["--log-level"]) {
@@ -104,7 +104,7 @@ function buildGlobalContext(argv) {
104
104
  return { globalFlags, oauthTimeoutOverride, runtimeOptions };
105
105
  }
106
106
 
107
- // node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/cli/command-inference.js
107
+ // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/cli/command-inference.js
108
108
  var CALL_TOKEN_PATTERN = /[.(]/;
109
109
  function inferCommandRouting(token, args, definitions) {
110
110
  if (!token) {
@@ -176,7 +176,7 @@ function isHttpToolToken(token) {
176
176
  return splitHttpToolSelector(token) !== null;
177
177
  }
178
178
 
179
- // node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/cli/help-output.js
179
+ // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/cli/help-output.js
180
180
  import fsPromises from "node:fs/promises";
181
181
  function printHelp(message) {
182
182
  if (message) {
@@ -378,7 +378,7 @@ async function resolveCliVersion() {
378
378
  }
379
379
  }
380
380
 
381
- // node_modules/.pnpm/mcporter@0.13.7/node_modules/mcporter/dist/cli.js
381
+ // node_modules/.pnpm/mcporter@0.13.8/node_modules/mcporter/dist/cli.js
382
382
  configureAutoSelectFamilyAttemptTimeout();
383
383
  var FORCE_EXIT_GRACE_MS = 50;
384
384
  var DAEMON_FAST_PATH_SERVERS = /* @__PURE__ */ new Set(["chrome-devtools", "mobile-mcp", "playwright"]);
@@ -420,31 +420,31 @@ function flushStdioThenForceExit() {
420
420
  });
421
421
  }
422
422
  async function handleAuth(...args) {
423
- const { handleAuth: imported } = await import("./auth-command-4OEOMU2V.js");
423
+ const { handleAuth: imported } = await import("./auth-command-4WFRNU2I.js");
424
424
  return imported(...args);
425
425
  }
426
426
  async function printAuthHelp() {
427
- const { printAuthHelp: imported } = await import("./auth-command-4OEOMU2V.js");
427
+ const { printAuthHelp: imported } = await import("./auth-command-4WFRNU2I.js");
428
428
  imported();
429
429
  }
430
430
  async function handleCall(...args) {
431
- const { handleCall: imported } = await import("./call-command-AUEKSBMD.js");
431
+ const { handleCall: imported } = await import("./call-command-JBIKXOGC.js");
432
432
  return imported(...args);
433
433
  }
434
434
  async function handleGenerateCli(...args) {
435
- const { handleGenerateCli: imported } = await import("./generate-cli-runner-MIPF73SJ.js");
435
+ const { handleGenerateCli: imported } = await import("./generate-cli-runner-AK6XNRTK.js");
436
436
  return imported(...args);
437
437
  }
438
438
  async function handleInspectCli(...args) {
439
- const { handleInspectCli: imported } = await import("./inspect-cli-command-GX54ZXKR.js");
439
+ const { handleInspectCli: imported } = await import("./inspect-cli-command-6FVJO7H2.js");
440
440
  return imported(...args);
441
441
  }
442
442
  async function handleList(...args) {
443
- const { handleList: imported } = await import("./list-command-YUGRZO4G.js");
443
+ const { handleList: imported } = await import("./list-command-UOB2XZK7.js");
444
444
  return imported(...args);
445
445
  }
446
446
  async function handleResource(...args) {
447
- const { handleResource: imported } = await import("./resource-command-YVOB4JCU.js");
447
+ const { handleResource: imported } = await import("./resource-command-S2J7XEMV.js");
448
448
  return imported(...args);
449
449
  }
450
450
  async function runCli(argv) {
@@ -477,23 +477,23 @@ async function runCli(argv) {
477
477
  }
478
478
  if (command === "generate-cli") {
479
479
  if (consumeHelpTokens(args)) {
480
- const { printGenerateCliHelp } = await import("./generate-cli-runner-MIPF73SJ.js");
480
+ const { printGenerateCliHelp } = await import("./generate-cli-runner-AK6XNRTK.js");
481
481
  printGenerateCliHelp();
482
482
  process.exitCode = 0;
483
483
  return;
484
484
  }
485
- const { handleGenerateCli: importedHandleGenerateCli } = await import("./generate-cli-runner-MIPF73SJ.js");
485
+ const { handleGenerateCli: importedHandleGenerateCli } = await import("./generate-cli-runner-AK6XNRTK.js");
486
486
  await importedHandleGenerateCli(args, globalFlags);
487
487
  return;
488
488
  }
489
489
  if (command === "inspect-cli") {
490
490
  if (consumeHelpTokens(args)) {
491
- const { printInspectCliHelp } = await import("./inspect-cli-command-GX54ZXKR.js");
491
+ const { printInspectCliHelp } = await import("./inspect-cli-command-6FVJO7H2.js");
492
492
  printInspectCliHelp();
493
493
  process.exitCode = 0;
494
494
  return;
495
495
  }
496
- const { handleInspectCli: importedHandleInspectCli } = await import("./inspect-cli-command-GX54ZXKR.js");
496
+ const { handleInspectCli: importedHandleInspectCli } = await import("./inspect-cli-command-6FVJO7H2.js");
497
497
  await importedHandleInspectCli(args);
498
498
  return;
499
499
  }
@@ -508,7 +508,7 @@ async function runCli(argv) {
508
508
  ...interactiveElicitation ? { elicitationHandler: interactiveElicitation.handler } : {}
509
509
  };
510
510
  if (command === "daemon") {
511
- const { handleDaemonCli } = await import("./daemon-command-FKW6YELL.js");
511
+ const { handleDaemonCli } = await import("./daemon-command-YCIOZGPZ.js");
512
512
  await handleDaemonCli(args, {
513
513
  configPath: configPathResolved,
514
514
  configExplicit: configResolution.explicit,
@@ -517,7 +517,7 @@ async function runCli(argv) {
517
517
  return;
518
518
  }
519
519
  if (command === "serve") {
520
- const { handleServeCli, printServeHelp } = await import("./serve-command-QYGM2AMB.js");
520
+ const { handleServeCli, printServeHelp } = await import("./serve-command-DDBZZSG6.js");
521
521
  if (consumeHelpTokens(args)) {
522
522
  printServeHelp();
523
523
  process.exitCode = 0;
@@ -531,7 +531,7 @@ async function runCli(argv) {
531
531
  return;
532
532
  }
533
533
  if (command === "record") {
534
- const { handleRecordCli, printRecordHelp } = await import("./record-command-25DLELA2.js");
534
+ const { handleRecordCli, printRecordHelp } = await import("./record-command-FO5TTERC.js");
535
535
  if (consumeHelpTokens(wrapperArgsBeforeSeparator(args))) {
536
536
  printRecordHelp();
537
537
  process.exitCode = 0;
@@ -541,7 +541,7 @@ async function runCli(argv) {
541
541
  return;
542
542
  }
543
543
  if (command === "replay") {
544
- const { handleReplayCli, printReplayHelp } = await import("./replay-command-6SLDG6PC.js");
544
+ const { handleReplayCli, printReplayHelp } = await import("./replay-command-SCBPCGQ7.js");
545
545
  if (consumeHelpTokens(wrapperArgsBeforeSeparator(args))) {
546
546
  printReplayHelp();
547
547
  process.exitCode = 0;
@@ -551,7 +551,7 @@ async function runCli(argv) {
551
551
  return;
552
552
  }
553
553
  if (command === "config") {
554
- const { handleConfigCli } = await import("./config-command-FF3JPMOP.js");
554
+ const { handleConfigCli } = await import("./config-command-UQMMIK2U.js");
555
555
  await handleConfigCli({
556
556
  loadOptions: { configPath, rootDir: rootOverride },
557
557
  invokeAuth: (authArgs) => invokeAuthCommand(runtimeOptionsWithPath, authArgs)
@@ -560,14 +560,14 @@ async function runCli(argv) {
560
560
  }
561
561
  if (command === "emit-ts") {
562
562
  if (consumeHelpTokens(args)) {
563
- const { printEmitTsHelp } = await import("./emit-ts-command-4X56IZ32.js");
563
+ const { printEmitTsHelp } = await import("./emit-ts-command-KAOL6DAN.js");
564
564
  printEmitTsHelp();
565
565
  process.exitCode = 0;
566
566
  return;
567
567
  }
568
568
  const [{ createRuntime: createRuntime2 }, { handleEmitTs }] = await Promise.all([
569
- import("./runtime-NOWGTHZ5.js"),
570
- import("./emit-ts-command-4X56IZ32.js")
569
+ import("./runtime-QIPMLIJI.js"),
570
+ import("./emit-ts-command-KAOL6DAN.js")
571
571
  ]);
572
572
  const runtime2 = await createRuntime2(runtimeOptionsWithPath);
573
573
  try {
@@ -582,10 +582,10 @@ async function runCli(argv) {
582
582
  return;
583
583
  }
584
584
  const [{ createRuntime }, { DaemonClient }, { createKeepAliveRuntime }, { isKeepAliveServer }] = await Promise.all([
585
- import("./runtime-NOWGTHZ5.js"),
586
- import("./client-4ZHIBB67.js"),
587
- import("./runtime-wrapper-ZZPAFQE4.js"),
588
- import("./lifecycle-TONHXXXJ.js")
585
+ import("./runtime-QIPMLIJI.js"),
586
+ import("./client-OT34CKRH.js"),
587
+ import("./runtime-wrapper-X4YFKMJI.js"),
588
+ import("./lifecycle-QH4TUI3K.js")
589
589
  ]);
590
590
  const baseRuntime = await createRuntime(runtimeOptionsWithPath);
591
591
  const recordReplayModeActive = isRecordReplayModeActive();
@@ -607,56 +607,56 @@ async function runCli(argv) {
607
607
  const resolvedArgs = inference.args;
608
608
  if (resolvedCommand === "list") {
609
609
  if (consumeHelpTokens(resolvedArgs)) {
610
- const { printListHelp } = await import("./list-command-YUGRZO4G.js");
610
+ const { printListHelp } = await import("./list-command-UOB2XZK7.js");
611
611
  printListHelp();
612
612
  process.exitCode = 0;
613
613
  return;
614
614
  }
615
- const { handleList: importedHandleList } = await import("./list-command-YUGRZO4G.js");
615
+ const { handleList: importedHandleList } = await import("./list-command-UOB2XZK7.js");
616
616
  await importedHandleList(runtime, resolvedArgs);
617
617
  return;
618
618
  }
619
619
  if (resolvedCommand === "call") {
620
620
  if (consumeHelpTokens(resolvedArgs)) {
621
- const { printCallHelp } = await import("./call-command-AUEKSBMD.js");
621
+ const { printCallHelp } = await import("./call-command-JBIKXOGC.js");
622
622
  printCallHelp();
623
623
  process.exitCode = 0;
624
624
  return;
625
625
  }
626
- const { handleCall: runHandleCall } = await import("./call-command-AUEKSBMD.js");
626
+ const { handleCall: runHandleCall } = await import("./call-command-JBIKXOGC.js");
627
627
  await runHandleCall(runtime, resolvedArgs);
628
628
  return;
629
629
  }
630
630
  if (resolvedCommand === "auth") {
631
631
  if (consumeHelpTokens(resolvedArgs)) {
632
- const { printAuthHelp: importedPrintAuthHelp } = await import("./auth-command-4OEOMU2V.js");
632
+ const { printAuthHelp: importedPrintAuthHelp } = await import("./auth-command-4WFRNU2I.js");
633
633
  importedPrintAuthHelp();
634
634
  process.exitCode = 0;
635
635
  return;
636
636
  }
637
- const { handleAuth: importedHandleAuth } = await import("./auth-command-4OEOMU2V.js");
637
+ const { handleAuth: importedHandleAuth } = await import("./auth-command-4WFRNU2I.js");
638
638
  await importedHandleAuth(runtime, resolvedArgs, { oauthTimeoutMs: runtimeOptionsWithPath.oauthTimeoutMs });
639
639
  return;
640
640
  }
641
641
  if (resolvedCommand === "vault") {
642
642
  if (consumeHelpTokens(resolvedArgs)) {
643
- const { printVaultHelp } = await import("./vault-command-VDMPATIX.js");
643
+ const { printVaultHelp } = await import("./vault-command-TJZYS3YI.js");
644
644
  printVaultHelp();
645
645
  process.exitCode = 0;
646
646
  return;
647
647
  }
648
- const { handleVault } = await import("./vault-command-VDMPATIX.js");
648
+ const { handleVault } = await import("./vault-command-TJZYS3YI.js");
649
649
  await handleVault(runtime, resolvedArgs);
650
650
  return;
651
651
  }
652
652
  if (resolvedCommand === "resource" || resolvedCommand === "resources") {
653
653
  if (consumeHelpTokens(resolvedArgs)) {
654
- const { printResourceHelp } = await import("./resource-command-YVOB4JCU.js");
654
+ const { printResourceHelp } = await import("./resource-command-S2J7XEMV.js");
655
655
  printResourceHelp();
656
656
  process.exitCode = 0;
657
657
  return;
658
658
  }
659
- const { handleResource: importedHandleResource } = await import("./resource-command-YVOB4JCU.js");
659
+ const { handleResource: importedHandleResource } = await import("./resource-command-S2J7XEMV.js");
660
660
  await importedHandleResource(runtime, resolvedArgs);
661
661
  return;
662
662
  }
@@ -739,8 +739,8 @@ if (process.env.MCPORTER_DISABLE_AUTORUN !== "1") {
739
739
  }
740
740
  async function invokeAuthCommand(runtimeOptions, args) {
741
741
  const [{ createRuntime }, { handleAuth: importedHandleAuth }] = await Promise.all([
742
- import("./runtime-NOWGTHZ5.js"),
743
- import("./auth-command-4OEOMU2V.js")
742
+ import("./runtime-QIPMLIJI.js"),
743
+ import("./auth-command-4WFRNU2I.js")
744
744
  ]);
745
745
  const runtime = await createRuntime(runtimeOptions);
746
746
  try {
@@ -766,8 +766,8 @@ async function maybeHandleDaemonFastCall(command, args, configResolution, rootDi
766
766
  return true;
767
767
  }
768
768
  const [{ DaemonClient }, { handleCall: importedHandleCall }] = await Promise.all([
769
- import("./client-4ZHIBB67.js"),
770
- import("./call-command-AUEKSBMD.js")
769
+ import("./client-OT34CKRH.js"),
770
+ import("./call-command-JBIKXOGC.js")
771
771
  ]);
772
772
  const daemonClient = new DaemonClient({
773
773
  configPath: configResolution.path,
@@ -779,8 +779,8 @@ async function maybeHandleDaemonFastCall(command, args, configResolution, rootDi
779
779
  }
780
780
  async function maybeHandleSimpleDaemonFastCall(callArgs, configResolution, rootDir) {
781
781
  const [{ parseCallArguments: parseCallArguments2 }, { resolveCallTimeout: resolveCallTimeout2 }] = await Promise.all([
782
- import("./call-arguments-RPXZJOXL.js"),
783
- import("./timeouts-P3TBB3AX.js")
782
+ import("./call-arguments-4DWPBLQP.js"),
783
+ import("./timeouts-HNGNKDQN.js")
784
784
  ]);
785
785
  let parsed;
786
786
  try {
@@ -792,9 +792,9 @@ async function maybeHandleSimpleDaemonFastCall(callArgs, configResolution, rootD
792
792
  return false;
793
793
  }
794
794
  const [{ DaemonClient }, { wrapCallResult }, { printCallOutput }] = await Promise.all([
795
- import("./client-4ZHIBB67.js"),
796
- import("./result-utils-ZXB5DM36.js"),
797
- import("./output-utils-AZY6N2VQ.js")
795
+ import("./client-OT34CKRH.js"),
796
+ import("./result-utils-OME6HGS6.js"),
797
+ import("./output-utils-6YXH23T7.js")
798
798
  ]);
799
799
  const daemonClient = new DaemonClient({
800
800
  configPath: configResolution.path,
@@ -0,0 +1,21 @@
1
+ import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
+ import {
3
+ DaemonClient,
4
+ resolveDaemonPaths
5
+ } from "./chunk-NTHUNCXJ.js";
6
+ import "./chunk-3Z7MFS6K.js";
7
+ import "./chunk-BWW4XRUC.js";
8
+ import "./chunk-DTZHEVKC.js";
9
+ import "./chunk-I5GI2A2D.js";
10
+ import "./chunk-RD7NHCRK.js";
11
+ import "./chunk-ITR7FQM3.js";
12
+ import "./chunk-FX5NYWBH.js";
13
+ import "./chunk-FS5JIKT6.js";
14
+ import "./chunk-WTMJMM3B.js";
15
+ import "./chunk-JG4TRUPF.js";
16
+ import "./chunk-HN7WPMCA.js";
17
+ import "./chunk-LRKZP7DJ.js";
18
+ export {
19
+ DaemonClient,
20
+ resolveDaemonPaths
21
+ };