@introspection-ai/recipes 0.36.1 → 0.37.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 (143) hide show
  1. package/dist/agents.d.ts.map +1 -1
  2. package/dist/agents.js +46 -11
  3. package/dist/agents.js.map +1 -1
  4. package/dist/ask-user-question.d.ts +82 -0
  5. package/dist/ask-user-question.d.ts.map +1 -0
  6. package/dist/ask-user-question.js +314 -0
  7. package/dist/ask-user-question.js.map +1 -0
  8. package/dist/child/agent-completions.d.ts +2 -1
  9. package/dist/child/agent-completions.d.ts.map +1 -1
  10. package/dist/child/agent-completions.js +4 -3
  11. package/dist/child/agent-completions.js.map +1 -1
  12. package/dist/connector-tools.d.ts.map +1 -1
  13. package/dist/connector-tools.js +10 -2
  14. package/dist/connector-tools.js.map +1 -1
  15. package/dist/documents/index.d.ts +6 -0
  16. package/dist/documents/index.d.ts.map +1 -0
  17. package/dist/documents/index.js +3 -0
  18. package/dist/documents/index.js.map +1 -0
  19. package/dist/documents/module.d.ts +51 -0
  20. package/dist/documents/module.d.ts.map +1 -0
  21. package/dist/documents/module.js +116 -0
  22. package/dist/documents/module.js.map +1 -0
  23. package/dist/documents/tools.d.ts +40 -0
  24. package/dist/documents/tools.d.ts.map +1 -0
  25. package/dist/documents/tools.js +327 -0
  26. package/dist/documents/tools.js.map +1 -0
  27. package/dist/documents/types.d.ts +144 -0
  28. package/dist/documents/types.d.ts.map +1 -0
  29. package/dist/documents/types.js +10 -0
  30. package/dist/documents/types.js.map +1 -0
  31. package/dist/extensions.d.ts +2 -0
  32. package/dist/extensions.d.ts.map +1 -1
  33. package/dist/extensions.js +3 -0
  34. package/dist/extensions.js.map +1 -1
  35. package/dist/interaction-tui.d.ts +1 -1
  36. package/dist/interaction-tui.d.ts.map +1 -1
  37. package/dist/interaction-tui.js +2 -2
  38. package/dist/interaction-tui.js.map +1 -1
  39. package/dist/mcp-chunks/{auth-command-GMMLBU24.js → auth-command-M7TQE3AL.js} +26 -23
  40. package/dist/mcp-chunks/call-arguments-GCXZA4HC.js +16 -0
  41. package/dist/mcp-chunks/{call-command-2VF6IKAZ.js → call-command-7LD7UEFK.js} +33 -33
  42. package/dist/mcp-chunks/{chunk-TYL2NVXI.js → chunk-2AKSS7WR.js} +2 -2
  43. package/dist/mcp-chunks/{chunk-LZUKBEQZ.js → chunk-2YV72LUA.js} +12 -12
  44. package/dist/mcp-chunks/{chunk-2JTXIMGE.js → chunk-3ETUDW7N.js} +1 -1
  45. package/dist/mcp-chunks/{chunk-5UK2JLTN.js → chunk-3FRLDHVD.js} +5 -5
  46. package/dist/mcp-chunks/{chunk-ENBJFQ6H.js → chunk-3HSC6NHZ.js} +1 -1
  47. package/dist/mcp-chunks/{chunk-IHOU2BEL.js → chunk-3LENTPGE.js} +2 -2
  48. package/dist/mcp-chunks/{chunk-ZJWZY54X.js → chunk-3P3KGT4H.js} +2 -2
  49. package/dist/mcp-chunks/{chunk-IMXPLUKE.js → chunk-3SXP4S2A.js} +2 -2
  50. package/dist/mcp-chunks/{chunk-22WCLO4D.js → chunk-5Z6WSV5D.js} +5 -5
  51. package/dist/mcp-chunks/{chunk-QNZGFUKC.js → chunk-63L6SHK3.js} +2 -2
  52. package/dist/mcp-chunks/{chunk-OI3RTQXY.js → chunk-66VSGFXA.js} +1 -1
  53. package/dist/mcp-chunks/{chunk-DUBQHYW4.js → chunk-6O42UGLI.js} +9 -9
  54. package/dist/mcp-chunks/{chunk-R4OYHQ4V.js → chunk-6P3KAQ5N.js} +1 -1
  55. package/dist/mcp-chunks/{chunk-5OO6WVPL.js → chunk-7U5NSQ5T.js} +1 -1
  56. package/dist/mcp-chunks/{chunk-O2C3HXGS.js → chunk-B6S43WID.js} +1 -1
  57. package/dist/mcp-chunks/{chunk-VWPKJFK4.js → chunk-BHXCAVFP.js} +1 -1
  58. package/dist/mcp-chunks/{chunk-WXNGATQ7.js → chunk-BUOGKTKK.js} +2 -1
  59. package/dist/mcp-chunks/{chunk-4U4BUXQD.js → chunk-CXST5CVH.js} +33 -17
  60. package/dist/mcp-chunks/{chunk-YWFQPA4D.js → chunk-DU4SDPEV.js} +2 -2
  61. package/dist/mcp-chunks/{chunk-ZI5XYM4C.js → chunk-E76ZUBOJ.js} +4 -4
  62. package/dist/mcp-chunks/{chunk-D2SZ7KRY.js → chunk-ELHS763C.js} +1 -1
  63. package/dist/mcp-chunks/{chunk-RHXZKYM7.js → chunk-F2X4Y2TQ.js} +1 -1
  64. package/dist/mcp-chunks/{chunk-6XC5JJWD.js → chunk-GTETFUPQ.js} +28 -25
  65. package/dist/mcp-chunks/{chunk-UQUM7ICD.js → chunk-GZ53GNFP.js} +10 -10
  66. package/dist/mcp-chunks/{chunk-LUVLTUKR.js → chunk-H5PBSJP3.js} +1 -1
  67. package/dist/mcp-chunks/{chunk-FLUF2FRN.js → chunk-HNQSUT44.js} +3 -3
  68. package/dist/mcp-chunks/{chunk-CN5KSNWG.js → chunk-I6UFV7RW.js} +1 -1
  69. package/dist/mcp-chunks/{chunk-OSTHIELS.js → chunk-IRARVOUM.js} +1 -1
  70. package/dist/mcp-chunks/{webapi-NNCZGUMZ.js → chunk-IRSL7JRH.js} +255 -249
  71. package/dist/mcp-chunks/{chunk-ZXIF7MKN.js → chunk-IWCVZ46B.js} +2 -2
  72. package/dist/mcp-chunks/{chunk-RZZO3ZD4.js → chunk-JEHI2YU4.js} +3 -3
  73. package/dist/mcp-chunks/{chunk-ANNJGB6F.js → chunk-JTPTAO4M.js} +13 -13
  74. package/dist/mcp-chunks/{chunk-U5QZHPCC.js → chunk-KJ5FPQF6.js} +1 -1
  75. package/dist/mcp-chunks/{chunk-7IVXKYTI.js → chunk-L2MSWQDL.js} +1 -1
  76. package/dist/mcp-chunks/{chunk-DBNBEWRX.js → chunk-MEQXX43K.js} +1 -1
  77. package/dist/mcp-chunks/{chunk-3AAF3FSI.js → chunk-MHUMLEBO.js} +1 -1
  78. package/dist/mcp-chunks/{chunk-HFHIY5TO.js → chunk-N2U2FODH.js} +4 -4
  79. package/dist/mcp-chunks/{chunk-YFCNRWLV.js → chunk-N6YUOYDS.js} +2 -2
  80. package/dist/mcp-chunks/{chunk-C4TJGC4F.js → chunk-O3RTM5HD.js} +1 -1
  81. package/dist/mcp-chunks/{chunk-35LLRCRA.js → chunk-O7SIXJM6.js} +1308 -912
  82. package/dist/mcp-chunks/{chunk-QDFL757K.js → chunk-PSE442BC.js} +91 -77
  83. package/dist/mcp-chunks/{chunk-YPSODIQX.js → chunk-QNXOIF5U.js} +15 -14
  84. package/dist/mcp-chunks/{chunk-RKQC2EE6.js → chunk-RUF27IUF.js} +2 -2
  85. package/dist/mcp-chunks/{chunk-SS7V7GVT.js → chunk-S2F7DDP5.js} +4 -4
  86. package/dist/mcp-chunks/{chunk-D65GOMYV.js → chunk-TC2JPBFB.js} +2 -2
  87. package/dist/mcp-chunks/{chunk-7BVYBZ4J.js → chunk-THRMUZZD.js} +39 -14
  88. package/dist/mcp-chunks/{chunk-P5YLK5G2.js → chunk-UFV6SVQG.js} +11 -11
  89. package/dist/mcp-chunks/{chunk-LISNXOIQ.js → chunk-US63Y6XE.js} +1 -1
  90. package/dist/mcp-chunks/{chunk-BIVX2WFX.js → chunk-UVEZNUN3.js} +285 -322
  91. package/dist/mcp-chunks/{chunk-HI6VG5LR.js → chunk-UVRJ3AAD.js} +2 -2
  92. package/dist/mcp-chunks/{chunk-6TIU2CDB.js → chunk-V42T3QNK.js} +456 -64
  93. package/dist/mcp-chunks/{chunk-347GOMV4.js → chunk-WDWSA7RL.js} +4 -4
  94. package/dist/mcp-chunks/{chunk-4PN2J74H.js → chunk-WQL7FJQ3.js} +4 -4
  95. package/dist/mcp-chunks/{chunk-LRGMFF5S.js → chunk-ZEA3Y5ZD.js} +7 -7
  96. package/dist/mcp-chunks/{cli-4OQD3H4N.js → cli-IYD7Y7MO.js} +67 -67
  97. package/dist/mcp-chunks/client-5MNBV3Z7.js +32 -0
  98. package/dist/mcp-chunks/{config-command-72TCIWPV.js → config-command-6DXILFNO.js} +129 -34
  99. package/dist/mcp-chunks/daemon-command-V3B3EMXD.js +32 -0
  100. package/dist/mcp-chunks/{dist-74UCKZK5.js → dist-Q7WSCBBK.js} +74 -55
  101. package/dist/mcp-chunks/{emit-ts-command-KD4ON2SE.js → emit-ts-command-NDCDFDRM.js} +17 -17
  102. package/dist/mcp-chunks/{generate-cli-runner-HWGI6HPL.js → generate-cli-runner-PW5WJ7KI.js} +136 -92
  103. package/dist/mcp-chunks/generated-daemon-runtime-3C4NWGAU.js +32 -0
  104. package/dist/mcp-chunks/{inspect-cli-command-FT5JSB7V.js → inspect-cli-command-4MGF5CPP.js} +9 -9
  105. package/dist/mcp-chunks/{launch-AHLKP2VM.js → launch-UG7IH27P.js} +1 -1
  106. package/dist/mcp-chunks/{lifecycle-BJDITFWN.js → lifecycle-QBYGUHQ3.js} +1 -1
  107. package/dist/mcp-chunks/{list-command-YKF7RN6Y.js → list-command-SDITI3ZM.js} +36 -35
  108. package/dist/mcp-chunks/{output-utils-LYB5IJRD.js → output-utils-YTMZTA7J.js} +3 -3
  109. package/dist/mcp-chunks/{prompt-CH6TK0bC-B3USYOND.js → prompt-DkftHXS7-N7UENQ4C.js} +1 -1
  110. package/dist/mcp-chunks/{record-command-MJW3Z5E5.js → record-command-JGTMATYI.js} +5 -5
  111. package/dist/mcp-chunks/{replay-command-5ZHBUOLE.js → replay-command-S2VAC4RW.js} +6 -6
  112. package/dist/mcp-chunks/{resource-command-L4I24AX5.js → resource-command-SRFQQROJ.js} +9 -9
  113. package/dist/mcp-chunks/{result-utils-5WRI66KV.js → result-utils-JASGNHXK.js} +3 -3
  114. package/dist/mcp-chunks/runtime-RMI3XCYJ.js +39 -0
  115. package/dist/mcp-chunks/{runtime-wrapper-WFMNIHD5.js → runtime-wrapper-7HYO3NM5.js} +3 -3
  116. package/dist/mcp-chunks/{serve-command-KNCSJUXS.js → serve-command-UF5SVREV.js} +1111 -697
  117. package/dist/mcp-chunks/{timeouts-2ZHGSB3R.js → timeouts-BJWDJEMH.js} +3 -3
  118. package/dist/mcp-chunks/{vault-command-7EDL45AA.js → vault-command-EYOIFWEY.js} +5 -4
  119. package/dist/mcp-chunks/webapi-WMMA3OEC.js +82 -0
  120. package/dist/mcp-daemon.js +28 -27
  121. package/dist/mcp-run-worker.js +28 -27
  122. package/dist/pi-extension.d.ts.map +1 -1
  123. package/dist/pi-extension.js +6 -0
  124. package/dist/pi-extension.js.map +1 -1
  125. package/dist/recipe/package.d.ts +7 -0
  126. package/dist/recipe/package.d.ts.map +1 -1
  127. package/dist/recipe/package.js +69 -0
  128. package/dist/recipe/package.js.map +1 -1
  129. package/dist/session.d.ts.map +1 -1
  130. package/dist/session.js +6 -0
  131. package/dist/session.js.map +1 -1
  132. package/docs/agent-composition.md +8 -0
  133. package/docs/documents.md +249 -0
  134. package/docs/index.md +1 -0
  135. package/docs/interactions.md +76 -8
  136. package/docs/mcp-configuration.md +10 -5
  137. package/docs/recipe-format.md +69 -1
  138. package/package.json +10 -6
  139. package/dist/mcp-chunks/call-arguments-WSURHOLV.js +0 -16
  140. package/dist/mcp-chunks/client-LXKCCVMT.js +0 -31
  141. package/dist/mcp-chunks/daemon-command-QHS3ACBM.js +0 -31
  142. package/dist/mcp-chunks/generated-daemon-runtime-7ORS5KBR.js +0 -31
  143. package/dist/mcp-chunks/runtime-IKWDQLZF.js +0 -38
@@ -2,27 +2,27 @@ import { createRequire as __createRequire } from "node:module"; const require =
2
2
  import {
3
3
  isRecord,
4
4
  parseJsonBuffer
5
- } from "./chunk-5OO6WVPL.js";
5
+ } from "./chunk-7U5NSQ5T.js";
6
6
  import {
7
7
  writeTextFileAtomic
8
- } from "./chunk-IHOU2BEL.js";
8
+ } from "./chunk-3LENTPGE.js";
9
9
  import {
10
10
  homeConfigCandidates,
11
11
  listConfigLayerPaths,
12
12
  pathExists,
13
13
  pathExistsAsync,
14
14
  resolveConfigPath
15
- } from "./chunk-RZZO3ZD4.js";
15
+ } from "./chunk-JEHI2YU4.js";
16
16
  import {
17
17
  expandHome,
18
18
  resolveEnvPlaceholders
19
- } from "./chunk-VWPKJFK4.js";
19
+ } from "./chunk-BHXCAVFP.js";
20
20
  import {
21
21
  resolveLifecycle
22
- } from "./chunk-3AAF3FSI.js";
22
+ } from "./chunk-MHUMLEBO.js";
23
23
  import {
24
24
  external_exports
25
- } from "./chunk-35LLRCRA.js";
25
+ } from "./chunk-O7SIXJM6.js";
26
26
  import {
27
27
  __commonJS,
28
28
  __require,
@@ -2024,14 +2024,14 @@ var require_toml = __commonJS({
2024
2024
  }
2025
2025
  });
2026
2026
 
2027
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/config.js
2027
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/config.js
2028
2028
  import path6 from "node:path";
2029
2029
 
2030
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/config/read-config.js
2030
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/config/read-config.js
2031
2031
  import fs from "node:fs/promises";
2032
2032
  import path from "node:path";
2033
2033
 
2034
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/config-schema.js
2034
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/config-schema.js
2035
2035
  var OAuthRequestedScopeSchema = external_exports.string().regex(/^[\x21\x23-\x5B\x5D-\x7E]+(?: [\x21\x23-\x5B\x5D-\x7E]+)*$/, "OAuth requested scope must be a non-empty, space-separated list of OAuth scope tokens.");
2036
2036
  var ImportKindSchema = external_exports.enum(["cursor", "claude-code", "claude-desktop", "codex", "windsurf", "opencode", "vscode"]).describe("Supported editor/client configurations to import MCP servers from");
2037
2037
  var DEFAULT_IMPORTS = [
@@ -2142,14 +2142,16 @@ var RawEntrySchema = external_exports.object({
2142
2142
  });
2143
2143
  }
2144
2144
  }).describe("MCP server definition supporting both HTTP/SSE and stdio transports");
2145
+ var VaultEncryptionPolicySchema = external_exports.enum(["optional", "required"]);
2145
2146
  var RawConfigSchema = external_exports.object({
2146
2147
  mcpServers: external_exports.record(external_exports.string(), RawEntrySchema).describe("Map of server names to their configurations"),
2147
2148
  daemonIdleTimeoutMs: external_exports.number().int().positive().optional().describe("Idle timeout in milliseconds before shutting down an inactive daemon"),
2148
2149
  daemon_idle_timeout_ms: external_exports.number().int().positive().optional().describe("Idle timeout in milliseconds before shutting down an inactive daemon"),
2150
+ oauthVaultEncryption: VaultEncryptionPolicySchema.optional().describe('Policy for the shared OAuth vault: "required" refuses every vault operation unless MCPORTER_VAULT_PASSWORD is set. MCPORTER_VAULT_ENCRYPTION overrides this key.'),
2149
2151
  imports: external_exports.array(ImportKindSchema).optional().describe("Editor configurations to import servers from. Omit to use defaults, or set to [] to disable imports")
2150
2152
  }).describe("mcporter configuration file schema");
2151
2153
 
2152
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/config/read-config.js
2154
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/config/read-config.js
2153
2155
  async function loadConfigLayers(options, rootDir) {
2154
2156
  const explicitPath = options.configPath ?? process.env.MCPORTER_CONFIG;
2155
2157
  if (explicitPath) {
@@ -2216,12 +2218,12 @@ function includesErrnoMessage(error, code) {
2216
2218
  return typeof message === "string" && message.includes(code);
2217
2219
  }
2218
2220
 
2219
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/config/imports/external.js
2221
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/config/imports/external.js
2220
2222
  var import_toml = __toESM(require_toml(), 1);
2221
2223
  import fs2 from "node:fs/promises";
2222
2224
  import path3 from "node:path";
2223
2225
 
2224
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/config/imports/paths-utils.js
2226
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/config/imports/paths-utils.js
2225
2227
  import os from "node:os";
2226
2228
  import path2 from "node:path";
2227
2229
  function normalizeProjectPath(input) {
@@ -2249,7 +2251,7 @@ function pathsEqual(a, b) {
2249
2251
  return a === b;
2250
2252
  }
2251
2253
 
2252
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/config/imports/external.js
2254
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/config/imports/external.js
2253
2255
  async function readExternalEntries(filePath, options = {}) {
2254
2256
  if (!await pathExistsAsync(filePath)) {
2255
2257
  return null;
@@ -2501,7 +2503,7 @@ function shouldIgnoreParseError(error) {
2501
2503
  return "fromTOML" in error;
2502
2504
  }
2503
2505
 
2504
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/config/imports/paths.js
2506
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/config/imports/paths.js
2505
2507
  import os2 from "node:os";
2506
2508
  import path4 from "node:path";
2507
2509
  function pathsForImport(kind, rootDir) {
@@ -2635,7 +2637,7 @@ function dedupePaths(paths) {
2635
2637
  return result;
2636
2638
  }
2637
2639
 
2638
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/config-normalize.js
2640
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/config-normalize.js
2639
2641
  import fs3 from "node:fs";
2640
2642
  import path5 from "node:path";
2641
2643
  function normalizeServerEntry(name, raw, baseDir, source, sources, context = {}) {
@@ -2919,7 +2921,7 @@ function normalizeLogging(raw) {
2919
2921
  return void 0;
2920
2922
  }
2921
2923
 
2922
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/config.js
2924
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/config.js
2923
2925
  async function buildServerDefinitions(layers, rootDir) {
2924
2926
  const merged = /* @__PURE__ */ new Map();
2925
2927
  for (const layer of layers) {
@@ -2975,6 +2977,11 @@ async function buildServerDefinitions(layers, rootDir) {
2975
2977
  }
2976
2978
  }
2977
2979
  }
2980
+ const vaultPolicy = resolveVaultEncryptionPolicy(layers);
2981
+ if (vaultPolicy !== void 0) {
2982
+ for (const server of servers)
2983
+ Object.assign(server, { oauthVaultEncryption: vaultPolicy });
2984
+ }
2978
2985
  return servers;
2979
2986
  }
2980
2987
  function buildDaemonConfig(layers) {
@@ -2987,12 +2994,19 @@ function buildDaemonConfig(layers) {
2987
2994
  }
2988
2995
  return { idleTimeoutMs };
2989
2996
  }
2997
+ function resolveVaultEncryptionPolicy(layers) {
2998
+ let policy;
2999
+ for (const layer of layers)
3000
+ policy = layer.config.oauthVaultEncryption ?? policy;
3001
+ return policy;
3002
+ }
2990
3003
  async function loadConfigSnapshot(options = {}) {
2991
3004
  const rootDir = options.rootDir ?? process.cwd();
2992
3005
  const layers = await loadConfigLayers(options, rootDir);
2993
3006
  return {
2994
3007
  servers: await buildServerDefinitions(layers, rootDir),
2995
- daemon: buildDaemonConfig(layers)
3008
+ daemon: buildDaemonConfig(layers),
3009
+ vaultEncryption: resolveVaultEncryptionPolicy(layers)
2996
3010
  };
2997
3011
  }
2998
3012
  async function loadServerDefinitions(options = {}) {
@@ -3019,11 +3033,13 @@ function resolveConfigPath2(configPath, rootDir) {
3019
3033
  export {
3020
3034
  OAuthRequestedScopeSchema,
3021
3035
  RawEntrySchema,
3036
+ VaultEncryptionPolicySchema,
3022
3037
  readConfigFile,
3023
3038
  readExternalEntries,
3024
3039
  pathsForImport,
3025
3040
  normalizeServerEntry,
3026
3041
  __configInternals,
3042
+ loadConfigSnapshot,
3027
3043
  loadServerDefinitions,
3028
3044
  loadRawConfig,
3029
3045
  listConfigLayerPaths2 as listConfigLayerPaths,
@@ -2,9 +2,9 @@ import { createRequire as __createRequire } from "node:module"; const require =
2
2
  import {
3
3
  createPrefixedConsoleLogger,
4
4
  resolveLogLevelFromEnv
5
- } from "./chunk-C4TJGC4F.js";
5
+ } from "./chunk-O3RTM5HD.js";
6
6
 
7
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/logger-context.js
7
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/logger-context.js
8
8
  var activeLogLevel = resolveLogLevelFromEnv();
9
9
  var activeLogger = createPrefixedConsoleLogger("mcporter", activeLogLevel);
10
10
  function getActiveLogLevel() {
@@ -1,9 +1,9 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  pickSharedDefinitionFields
4
- } from "./chunk-WXNGATQ7.js";
4
+ } from "./chunk-BUOGKTKK.js";
5
5
 
6
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli-metadata.js
6
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli-metadata.js
7
7
  import { spawn } from "node:child_process";
8
8
  import fs from "node:fs/promises";
9
9
  function metadataPathForArtifact(artifactPath) {
@@ -108,7 +108,7 @@ function serializeDefinition(definition) {
108
108
  };
109
109
  }
110
110
 
111
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/generate/tool-selection.js
111
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate/tool-selection.js
112
112
  function validateToolSelection(includeTools, excludeTools, context) {
113
113
  if (includeTools && excludeTools) {
114
114
  throw new Error(context.mutuallyExclusiveMessage);
@@ -121,7 +121,7 @@ function validateToolSelection(includeTools, excludeTools, context) {
121
121
  }
122
122
  }
123
123
 
124
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/generate/template-data.js
124
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate/template-data.js
125
125
  function buildGenerateCliCommand(invocation, definition, globalFlags = {}) {
126
126
  const tokens = ["mcporter"];
127
127
  const configPath = invocation.configPath ?? globalFlags["--config"];
@@ -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.15.0/node_modules/mcporter/dist/cli/record-replay-env.js
3
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/record-replay-env.js
4
4
  var KEEP_ALIVE_DISABLED_FOR_MODE = "*";
5
5
  function buildRecordCommandEnv(sessionName, server) {
6
6
  return buildModeEnv({
@@ -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.15.0/node_modules/mcporter/dist/runtime/elicitation.js
3
+ // node_modules/.pnpm/mcporter@0.16.1/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 = {}) {
@@ -16,52 +16,53 @@ import {
16
16
  resolveSystemPowerShellPath,
17
17
  secureDaemonDirectory,
18
18
  upgradeLegacyDaemonDirectory
19
- } from "./chunk-QDFL757K.js";
19
+ } from "./chunk-PSE442BC.js";
20
20
  import {
21
21
  NON_INTERACTIVE_ELICITATION_HINT,
22
22
  createNonInteractiveElicitationResponder
23
- } from "./chunk-RHXZKYM7.js";
23
+ } from "./chunk-F2X4Y2TQ.js";
24
24
  import {
25
25
  isOAuthFlowError,
26
26
  resolveOAuthTimeoutFromEnv
27
- } from "./chunk-LZUKBEQZ.js";
27
+ } from "./chunk-2YV72LUA.js";
28
28
  import {
29
29
  withRuntimeEnvironment
30
- } from "./chunk-6TIU2CDB.js";
30
+ } from "./chunk-V42T3QNK.js";
31
31
  import {
32
32
  MCPORTER_VERSION
33
- } from "./chunk-YPSODIQX.js";
33
+ } from "./chunk-QNXOIF5U.js";
34
34
  import {
35
35
  getChromeDevtoolsRelayDecision,
36
36
  normalizeTimeout
37
- } from "./chunk-DUBQHYW4.js";
37
+ } from "./chunk-6O42UGLI.js";
38
38
  import {
39
39
  RawEntrySchema,
40
+ VaultEncryptionPolicySchema,
40
41
  loadServerDefinitions
41
- } from "./chunk-4U4BUXQD.js";
42
+ } from "./chunk-CXST5CVH.js";
42
43
  import {
43
44
  isProcessRunning,
44
45
  withFileLock,
45
46
  writeJsonFile
46
- } from "./chunk-IHOU2BEL.js";
47
+ } from "./chunk-3LENTPGE.js";
47
48
  import {
48
49
  mcporterDir
49
- } from "./chunk-ZXIF7MKN.js";
50
+ } from "./chunk-IWCVZ46B.js";
50
51
  import {
51
52
  isKeepAliveServer
52
- } from "./chunk-3AAF3FSI.js";
53
+ } from "./chunk-MHUMLEBO.js";
53
54
  import {
54
55
  SdkErrorCode,
55
56
  external_exports
56
- } from "./chunk-35LLRCRA.js";
57
+ } from "./chunk-O7SIXJM6.js";
57
58
 
58
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/daemon/socket-rpc.js
59
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/socket-rpc.js
59
60
  import { createHmac, randomBytes, timingSafeEqual } from "node:crypto";
60
61
  import fs from "node:fs/promises";
61
62
  import net from "node:net";
62
63
  import path from "node:path";
63
64
 
64
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/daemon/protocol.js
65
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/protocol.js
65
66
  var DAEMON_PROTOCOL_VERSION = 3;
66
67
  var MAX_DAEMON_PAYLOAD_BYTES = 4 * 1024 * 1024;
67
68
  var DAEMON_PROGRESS_INTERVAL_MS = 250;
@@ -86,7 +87,7 @@ function resolveProgressTiming(requestedIdleTimeoutMs) {
86
87
  };
87
88
  }
88
89
 
89
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/daemon/socket-rpc.js
90
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/socket-rpc.js
90
91
  async function daemonKey() {
91
92
  await secureDaemonDirectory();
92
93
  const file = path.join(daemonRunDir(), "user.key");
@@ -225,11 +226,11 @@ async function requestDaemon(socketPath, request, idleTimeoutMs) {
225
226
  }
226
227
  }
227
228
 
228
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/daemon/client.js
229
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/client.js
229
230
  import { randomUUID as randomUUID3 } from "node:crypto";
230
231
  import fs3 from "node:fs/promises";
231
232
 
232
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/daemon/process-retirement.js
233
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/process-retirement.js
233
234
  import { execFile } from "node:child_process";
234
235
  import { promisify } from "node:util";
235
236
  var exec = promisify(execFile);
@@ -428,24 +429,24 @@ async function awaitRetirement(identities) {
428
429
  throw new Error("Verified legacy processes have not retired; cutover remains blocked. No process was signalled.");
429
430
  }
430
431
 
431
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/daemon/migration.js
432
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/migration.js
432
433
  import fs2 from "node:fs/promises";
433
434
  import net2 from "node:net";
434
435
  import path2 from "node:path";
435
436
  import { randomUUID as randomUUID2 } from "node:crypto";
436
437
 
437
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/daemon/idle-timer.js
438
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/idle-timer.js
438
439
  var MAX_NATIVE_TIMER_MS = 2147483647;
439
440
  function idleTimerDelay(timeoutMs, lastActivity) {
440
441
  const remaining = timeoutMs - (Date.now() - lastActivity);
441
442
  return Math.min(MAX_NATIVE_TIMER_MS, Math.max(1, remaining > 0 ? remaining : timeoutMs));
442
443
  }
443
444
 
444
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/daemon/broker.js
445
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/broker.js
445
446
  import { AsyncLocalStorage } from "node:async_hooks";
446
447
  import { randomUUID } from "node:crypto";
447
448
 
448
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/daemon/view-codec.js
449
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/view-codec.js
449
450
  var command = external_exports.discriminatedUnion("kind", [
450
451
  external_exports.object({
451
452
  kind: external_exports.literal("stdio"),
@@ -458,6 +459,8 @@ var command = external_exports.discriminatedUnion("kind", [
458
459
  var definition = external_exports.object({
459
460
  ...RawEntrySchema.shape,
460
461
  name: external_exports.string().min(1).max(256),
462
+ // Top-level config policy carried on each definition (not a RawEntry field).
463
+ oauthVaultEncryption: VaultEncryptionPolicySchema.optional(),
461
464
  configuredEnv: external_exports.record(external_exports.string(), external_exports.string()).optional(),
462
465
  launchCommand: external_exports.string().min(1).optional(),
463
466
  command,
@@ -485,7 +488,7 @@ function decodeView(value) {
485
488
  return { definitions, clientInfo: parsed.clientInfo };
486
489
  }
487
490
 
488
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/daemon/broker.js
491
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/broker.js
489
492
  var notices = new AsyncLocalStorage();
490
493
  var BrokerError = class extends Error {
491
494
  code;
@@ -814,7 +817,7 @@ var DaemonBroker = class {
814
817
  }
815
818
  };
816
819
 
817
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/daemon/migration.js
820
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/migration.js
818
821
  async function probeDaemon(socketPath, method = "status") {
819
822
  return new Promise((resolve) => {
820
823
  const socket = net2.createConnection(socketPath);
@@ -920,7 +923,7 @@ async function stopVerifiedLegacyDaemons() {
920
923
  }
921
924
  }
922
925
 
923
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/daemon/startup-readiness.js
926
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/startup-readiness.js
924
927
  var DAEMON_STARTUP_TIMEOUT_MS = 45e3;
925
928
  var DAEMON_STARTUP_SLOW_NOTICE_MS = 5e3;
926
929
  var DAEMON_STARTUP_POLL_INTERVAL_MS = 100;
@@ -967,7 +970,7 @@ function delay(ms) {
967
970
  });
968
971
  }
969
972
 
970
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/daemon/client.js
973
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/client.js
971
974
  var DEFAULT_DAEMON_TIMEOUT_MS = 3e4;
972
975
  function resolveDaemonPaths(configPath) {
973
976
  const key = "user";
@@ -1135,7 +1138,7 @@ var DaemonClient = class {
1135
1138
  if (previous && !isProcessRunning(previous.pid))
1136
1139
  throw new Error("Previous daemon exited unexpectedly; verify retirement of its transports before deliberate recovery. No replacement was launched.");
1137
1140
  this.startingPromise ??= (async () => {
1138
- const { launchDaemonDetached } = await import("./launch-AHLKP2VM.js");
1141
+ const { launchDaemonDetached } = await import("./launch-UG7IH27P.js");
1139
1142
  await launchDaemonDetached({
1140
1143
  configPath: this.options.configPath,
1141
1144
  metadataPath: this.metadataPath,
@@ -1,22 +1,22 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  buildToolDoc
4
- } from "./chunk-22WCLO4D.js";
4
+ } from "./chunk-5Z6WSV5D.js";
5
5
  import {
6
6
  buildEmbeddedSchemaMap,
7
7
  toCliOptionKey
8
- } from "./chunk-U5QZHPCC.js";
8
+ } from "./chunk-KJ5FPQF6.js";
9
9
  import {
10
10
  parsePositiveInteger
11
- } from "./chunk-D65GOMYV.js";
11
+ } from "./chunk-TC2JPBFB.js";
12
12
  import {
13
13
  stableJsonStringify
14
- } from "./chunk-R4OYHQ4V.js";
14
+ } from "./chunk-6P3KAQ5N.js";
15
15
  import {
16
16
  MCPORTER_VERSION
17
- } from "./chunk-YPSODIQX.js";
17
+ } from "./chunk-QNXOIF5U.js";
18
18
 
19
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/generate/flag-parser.js
19
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate/flag-parser.js
20
20
  function extractGeneratorFlags(args, options = {}) {
21
21
  const result = {};
22
22
  let index = 0;
@@ -58,12 +58,12 @@ function extractGeneratorFlags(args, options = {}) {
58
58
  return result;
59
59
  }
60
60
 
61
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/generate/template.js
61
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate/template.js
62
62
  import { realpathSync } from "node:fs";
63
63
  import fs2 from "node:fs/promises";
64
64
  import path from "node:path";
65
65
 
66
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/generate/fs-helpers.js
66
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate/fs-helpers.js
67
67
  import fs from "node:fs/promises";
68
68
  async function markExecutable(filePath) {
69
69
  try {
@@ -94,7 +94,7 @@ function shouldIgnorePosixPermissionError(error) {
94
94
  return code === "EPERM" || code === "EINVAL" || code === "ENOSYS" || code === "EACCES";
95
95
  }
96
96
 
97
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/generate/template-help.js
97
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate/template-help.js
98
98
  function renderEmbeddedHelpSource() {
99
99
  return `function configureGeneratedCommandHelp(command: Command): void {
100
100
  command.configureHelp({
@@ -208,7 +208,7 @@ function quickStartExamples(): Array<[string, string]> {
208
208
  `;
209
209
  }
210
210
 
211
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/generate/template.js
211
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/generate/template.js
212
212
  async function writeTemplate(input) {
213
213
  const resolvedOutput = input.outputPath ? path.resolve(input.outputPath) : path.resolve(process.cwd(), `${input.serverName}.ts`);
214
214
  const runtimeScriptPath = input.runtimeScriptPath ? path.resolve(input.runtimeScriptPath) : resolvedOutput;
@@ -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.15.0/node_modules/mcporter/dist/cli/errors.js
3
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/errors.js
4
4
  var CliUsageError = class extends Error {
5
5
  constructor(message) {
6
6
  super(message);
@@ -1,12 +1,12 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  MCPORTER_VERSION
4
- } from "./chunk-YPSODIQX.js";
4
+ } from "./chunk-QNXOIF5U.js";
5
5
  import {
6
6
  isKeepAliveServer
7
- } from "./chunk-3AAF3FSI.js";
7
+ } from "./chunk-MHUMLEBO.js";
8
8
 
9
- // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/daemon/runtime-wrapper.js
9
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/daemon/runtime-wrapper.js
10
10
  function createKeepAliveRuntime(base, options) {
11
11
  if (!options.daemonClient || options.keepAliveServers.size === 0) {
12
12
  return base;
@@ -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.15.0/node_modules/mcporter/dist/cli/flag-utils.js
3
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/flag-utils.js
4
4
  function extractFlags(args, keys) {
5
5
  const flags = {};
6
6
  let index = 0;
@@ -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.15.0/node_modules/mcporter/dist/cli/terminal.js
3
+ // node_modules/.pnpm/mcporter@0.16.1/node_modules/mcporter/dist/cli/terminal.js
4
4
  var forceColorRaw = process.env.FORCE_COLOR?.toLowerCase();
5
5
  var forceDisableColor = forceColorRaw === "0" || forceColorRaw === "false";
6
6
  var forceEnableColor = forceColorRaw === "1" || forceColorRaw === "true" || forceColorRaw === "2" || forceColorRaw === "3";