@introspection-ai/recipes 0.61.0 → 0.62.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 (144) hide show
  1. package/dist/documents/module.d.ts.map +1 -1
  2. package/dist/documents/module.js +2 -3
  3. package/dist/documents/module.js.map +1 -1
  4. package/dist/issues/module.d.ts.map +1 -1
  5. package/dist/issues/module.js +2 -2
  6. package/dist/issues/module.js.map +1 -1
  7. package/dist/mcp-chunks/{auth-command-WE7QY6RH.js → auth-command-ENP2QQ5Z.js} +67 -27
  8. package/dist/mcp-chunks/call-arguments-Z5REZUAX.js +16 -0
  9. package/dist/mcp-chunks/{call-command-OOBUGVTM.js → call-command-LOWTMLJD.js} +59 -43
  10. package/dist/mcp-chunks/{chunk-32UZRZIL.js → chunk-27PQUO34.js} +1 -1
  11. package/dist/mcp-chunks/{chunk-NJR33E7V.js → chunk-2OSM5WUI.js} +4 -4
  12. package/dist/mcp-chunks/{chunk-BI6L3SYV.js → chunk-33P3PYCH.js} +28 -20
  13. package/dist/mcp-chunks/{chunk-2PTK6KBV.js → chunk-3MELXKB4.js} +12 -9
  14. package/dist/mcp-chunks/{chunk-Z5XOB522.js → chunk-3P3Z5PKQ.js} +1 -1
  15. package/dist/mcp-chunks/{chunk-ZEMVGFKG.js → chunk-3TZZPKQP.js} +2 -2
  16. package/dist/mcp-chunks/{chunk-73TMUGJL.js → chunk-3UONQ24E.js} +3 -3
  17. package/dist/mcp-chunks/{chunk-W47YAN6W.js → chunk-5AVROWKC.js} +3 -3
  18. package/dist/mcp-chunks/{chunk-SYBDN4SV.js → chunk-6HA2S26Q.js} +5 -5
  19. package/dist/mcp-chunks/{chunk-MG6EVYIM.js → chunk-6IKBK334.js} +13 -13
  20. package/dist/mcp-chunks/{chunk-7SQZWTDU.js → chunk-6VAFZAST.js} +1 -1
  21. package/dist/mcp-chunks/{chunk-2R7UGABC.js → chunk-6WTCG4OR.js} +113 -89
  22. package/dist/mcp-chunks/{chunk-ZJZ53NIB.js → chunk-7JRVQRQ4.js} +10 -7
  23. package/dist/mcp-chunks/{chunk-AIUZOMBB.js → chunk-7LKVFBEL.js} +12 -12
  24. package/dist/mcp-chunks/{chunk-44KI6DPL.js → chunk-ACSE24O5.js} +15 -18
  25. package/dist/mcp-chunks/{chunk-5ZQKSEUN.js → chunk-B6YFFSTP.js} +6 -3
  26. package/dist/mcp-chunks/{chunk-3KSDZBUJ.js → chunk-BA3QLN3P.js} +5 -5
  27. package/dist/mcp-chunks/{chunk-MSPGQEWX.js → chunk-BMOK7SQE.js} +12 -12
  28. package/dist/mcp-chunks/{chunk-H44A4G2O.js → chunk-CPAQ4API.js} +2 -2
  29. package/dist/mcp-chunks/{chunk-Y7JQJ352.js → chunk-CSUDITHP.js} +16 -16
  30. package/dist/mcp-chunks/{chunk-UY2QWZB3.js → chunk-DSBXRWGJ.js} +64 -65
  31. package/dist/mcp-chunks/{chunk-DEYGZRBD.js → chunk-EUT2CVFE.js} +8 -5
  32. package/dist/mcp-chunks/{chunk-HPFIAALB.js → chunk-F4UVQBNV.js} +16 -13
  33. package/dist/mcp-chunks/{chunk-VLJQSE6L.js → chunk-F5XGHRRC.js} +9 -9
  34. package/dist/mcp-chunks/{chunk-YFPPHEDE.js → chunk-FMLYITVD.js} +1 -1
  35. package/dist/mcp-chunks/{chunk-37VJZIFW.js → chunk-FYRRJZPO.js} +8 -8
  36. package/dist/mcp-chunks/{chunk-2R2HWX2E.js → chunk-GJKH5KNE.js} +1 -1
  37. package/dist/mcp-chunks/{chunk-HGEKP2E5.js → chunk-H4TU7J5F.js} +9 -6
  38. package/dist/mcp-chunks/{chunk-4ACA5GWL.js → chunk-IX6HNQSH.js} +1 -1
  39. package/dist/mcp-chunks/{chunk-FJNWUAGR.js → chunk-KKM3M3F7.js} +13 -10
  40. package/dist/mcp-chunks/{chunk-Z43KJRXY.js → chunk-KUP2GHFE.js} +1 -1
  41. package/dist/mcp-chunks/{chunk-CWM4RO33.js → chunk-L3BBHB3E.js} +1 -1
  42. package/dist/mcp-chunks/{chunk-XU4D5QN2.js → chunk-M4RI6BN4.js} +1 -1
  43. package/dist/mcp-chunks/{chunk-EUHXZKP2.js → chunk-N53HQB4G.js} +108 -108
  44. package/dist/mcp-chunks/{chunk-HKMH4N3Z.js → chunk-NAGTWK62.js} +1 -1
  45. package/dist/mcp-chunks/{chunk-ABPXAKP7.js → chunk-OH3HVZE7.js} +40 -32
  46. package/dist/mcp-chunks/{chunk-4SO2DY7F.js → chunk-OHAXEQ22.js} +2 -2
  47. package/dist/mcp-chunks/{chunk-OSK2JGFH.js → chunk-PBYZ5QZW.js} +1 -1
  48. package/dist/mcp-chunks/{chunk-QYR3UKJS.js → chunk-PJH2FNYO.js} +3 -3
  49. package/dist/mcp-chunks/{chunk-FDVES4CU.js → chunk-PJSLJ3YK.js} +2 -2
  50. package/dist/mcp-chunks/{chunk-MW3YO24Q.js → chunk-PPJWHK7M.js} +3 -3
  51. package/dist/mcp-chunks/{chunk-4NABHXDS.js → chunk-QA6AKKCT.js} +11 -8
  52. package/dist/mcp-chunks/{chunk-DL3GVI4M.js → chunk-QDLNI6YU.js} +2 -2
  53. package/dist/mcp-chunks/{chunk-TTVO6RCP.js → chunk-QRC4AH7I.js} +2 -2
  54. package/dist/mcp-chunks/{chunk-Y7UTXETL.js → chunk-QRD3PAVF.js} +1 -1
  55. package/dist/mcp-chunks/{chunk-G5DK4L6M.js → chunk-RAUI7O2B.js} +2 -2
  56. package/dist/mcp-chunks/{chunk-VJ45Y5IO.js → chunk-RF3HIBXO.js} +1 -1
  57. package/dist/mcp-chunks/{chunk-CIQX62WO.js → chunk-RFQCNCWI.js} +2 -2
  58. package/dist/mcp-chunks/{chunk-GQM53HF7.js → chunk-SL74CLNX.js} +1 -1
  59. package/dist/mcp-chunks/{chunk-EVEVCVYR.js → chunk-TAEXC3CS.js} +5 -5
  60. package/dist/mcp-chunks/{chunk-QHD5RXW4.js → chunk-U4NDKPOH.js} +24 -17
  61. package/dist/mcp-chunks/{chunk-CFRA424Y.js → chunk-UP3I6WR3.js} +4 -4
  62. package/dist/mcp-chunks/{chunk-VJ5VDK6D.js → chunk-UZ5WW52A.js} +1 -1
  63. package/dist/mcp-chunks/{chunk-TT3LOCMN.js → chunk-V65N6VX7.js} +2 -2
  64. package/dist/mcp-chunks/{chunk-7KOGD2JK.js → chunk-VKRJV2OQ.js} +2 -2
  65. package/dist/mcp-chunks/{chunk-YGT57XUN.js → chunk-VNQIAJ4I.js} +2 -2
  66. package/dist/mcp-chunks/{chunk-EV3SP7ME.js → chunk-W3HK334E.js} +1 -1
  67. package/dist/mcp-chunks/{chunk-KUJUYFDC.js → chunk-XCAIV2CS.js} +4 -4
  68. package/dist/mcp-chunks/{chunk-TQ5T5VO7.js → chunk-YINZMSAI.js} +2 -2
  69. package/dist/mcp-chunks/{cli-TJFAYJO4.js → cli-QNVUCDJE.js} +70 -70
  70. package/dist/mcp-chunks/client-VL2MU7HF.js +32 -0
  71. package/dist/mcp-chunks/{config-command-YGNK2VVL.js → config-command-NMIYA3HF.js} +31 -31
  72. package/dist/mcp-chunks/daemon-command-SLRKTEMY.js +36 -0
  73. package/dist/mcp-chunks/dist-GMDBFGJD.js +69 -0
  74. package/dist/mcp-chunks/{dist-IFOLXE2R.js → dist-P7P5T6YZ.js} +1362 -1231
  75. package/dist/mcp-chunks/{emit-ts-command-4EVF6CIG.js → emit-ts-command-CH34ZIJL.js} +18 -18
  76. package/dist/mcp-chunks/{generate-cli-runner-UFVSXJVK.js → generate-cli-runner-3X2GEPPY.js} +57 -55
  77. package/dist/mcp-chunks/generated-daemon-runtime-BL7IYY6T.js +32 -0
  78. package/dist/mcp-chunks/{inspect-cli-command-L3JGLLTG.js → inspect-cli-command-JCKHV5GL.js} +16 -13
  79. package/dist/mcp-chunks/{launch-LUKDWKH4.js → launch-YFY4X7YJ.js} +1 -1
  80. package/dist/mcp-chunks/{lifecycle-H57PYAZ5.js → lifecycle-UUTEE5WE.js} +1 -1
  81. package/dist/mcp-chunks/{list-command-QBO4LK5Q.js → list-command-VDZVNILR.js} +36 -36
  82. package/dist/mcp-chunks/{logger-LvdykevT-BQ5B4N5O.js → logger-CpvFcLaq-27JFRZ4G.js} +3 -3
  83. package/dist/mcp-chunks/{output-utils-MB3PEV2M.js → output-utils-SYVU3XAD.js} +3 -3
  84. package/dist/mcp-chunks/{pi-mcp-runtime-OIMIJV5A.js → pi-mcp-runtime-V2OMZAIR.js} +1 -1
  85. package/dist/mcp-chunks/{prompt-DkftHXS7-TE2LNPAM.js → prompt-DkftHXS7-6LABGWLG.js} +1 -1
  86. package/dist/mcp-chunks/{record-command-RYDP3Y2A.js → record-command-U7L3OGJZ.js} +6 -5
  87. package/dist/mcp-chunks/{replay-command-QDJCQ5JU.js → replay-command-4AZZBGXO.js} +7 -6
  88. package/dist/mcp-chunks/{resource-command-RKHHQBFP.js → resource-command-BZZBELBM.js} +14 -11
  89. package/dist/mcp-chunks/{result-utils-ZD5GFX7P.js → result-utils-XNXSDC6N.js} +3 -3
  90. package/dist/mcp-chunks/runtime-OVVVPYHO.js +39 -0
  91. package/dist/mcp-chunks/{runtime-wrapper-AV4JCNRF.js → runtime-wrapper-6BUJRMQL.js} +3 -3
  92. package/dist/mcp-chunks/{serve-command-MRPTK4XX.js → serve-command-ZY3PLYNM.js} +39 -36
  93. package/dist/mcp-chunks/server-6DQUPUFW.js +43 -0
  94. package/dist/mcp-chunks/{timeouts-2SQIDYBE.js → timeouts-EEXKP36K.js} +4 -4
  95. package/dist/mcp-chunks/{vault-command-6JVDCFWU.js → vault-command-PRTY3B4I.js} +5 -5
  96. package/dist/mcp-chunks/{webapi-CI4O7AUX.js → webapi-SSFFKLRR.js} +1 -1
  97. package/dist/mcp-daemon.js +35 -35
  98. package/dist/mcp-run-worker.js +34 -34
  99. package/dist/memory-context.d.ts +16 -0
  100. package/dist/memory-context.d.ts.map +1 -0
  101. package/dist/memory-context.js +100 -0
  102. package/dist/memory-context.js.map +1 -0
  103. package/dist/memory.d.ts +2 -0
  104. package/dist/memory.d.ts.map +1 -1
  105. package/dist/memory.js +13 -0
  106. package/dist/memory.js.map +1 -1
  107. package/dist/pi-extension.d.ts.map +1 -1
  108. package/dist/pi-extension.js +6 -0
  109. package/dist/pi-extension.js.map +1 -1
  110. package/dist/productivity/module.js +2 -2
  111. package/dist/productivity/module.js.map +1 -1
  112. package/dist/recipe/companions.d.ts +14 -0
  113. package/dist/recipe/companions.d.ts.map +1 -1
  114. package/dist/recipe/companions.js +23 -0
  115. package/dist/recipe/companions.js.map +1 -1
  116. package/dist/recipe/manifest.generated.d.ts +1 -1
  117. package/dist/recipe/manifest.generated.js +1 -1
  118. package/dist/recipe/python.d.ts.map +1 -1
  119. package/dist/recipe/python.js +2 -5
  120. package/dist/recipe/python.js.map +1 -1
  121. package/dist/recipe/resolve.d.ts +1 -0
  122. package/dist/recipe/resolve.d.ts.map +1 -1
  123. package/dist/recipe/resolve.js +1 -0
  124. package/dist/recipe/resolve.js.map +1 -1
  125. package/dist/search/tool.d.ts.map +1 -1
  126. package/dist/search/tool.js +2 -2
  127. package/dist/search/tool.js.map +1 -1
  128. package/dist/session.d.ts.map +1 -1
  129. package/dist/session.js +27 -9
  130. package/dist/session.js.map +1 -1
  131. package/dist/signature/module.d.ts.map +1 -1
  132. package/dist/signature/module.js +2 -2
  133. package/dist/signature/module.js.map +1 -1
  134. package/docs/host-api.md +18 -10
  135. package/docs/pi-extension.md +11 -0
  136. package/docs/recipe-format.md +6 -0
  137. package/package.json +8 -8
  138. package/dist/mcp-chunks/call-arguments-2ABANGLE.js +0 -16
  139. package/dist/mcp-chunks/client-LDKUW5K5.js +0 -32
  140. package/dist/mcp-chunks/daemon-command-UYAYRHVD.js +0 -36
  141. package/dist/mcp-chunks/dist-5JNZD3JV.js +0 -69
  142. package/dist/mcp-chunks/generated-daemon-runtime-LTH36X2R.js +0 -32
  143. package/dist/mcp-chunks/runtime-F7PP4V25.js +0 -39
  144. package/dist/mcp-chunks/server-2WSYXDII.js +0 -43
@@ -4,15 +4,15 @@ import {
4
4
  withFileLock,
5
5
  writeJsonFile,
6
6
  writeTextFileAtomic
7
- } from "./chunk-TTVO6RCP.js";
7
+ } from "./chunk-QRC4AH7I.js";
8
8
  import {
9
9
  CompactEncrypt,
10
10
  compactDecrypt,
11
11
  decodeProtectedHeader,
12
12
  errors_exports
13
- } from "./chunk-UY2QWZB3.js";
13
+ } from "./chunk-DSBXRWGJ.js";
14
14
 
15
- // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/oauth-vault-encryption.js
15
+ // node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/dist/oauth-vault-encryption.js
16
16
  var VAULT_PASSWORD_ENV = "MCPORTER_VAULT_PASSWORD";
17
17
  var VAULT_ENCRYPTION_POLICY_ENV = "MCPORTER_VAULT_ENCRYPTION";
18
18
  var VAULT_SECRET_ENV_NAMES = [VAULT_PASSWORD_ENV, VAULT_ENCRYPTION_POLICY_ENV];
@@ -153,11 +153,11 @@ function describeVaultSecrets(entries) {
153
153
  return stats;
154
154
  }
155
155
 
156
- // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/oauth-vault.js
156
+ // node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/dist/oauth-vault.js
157
157
  import crypto from "node:crypto";
158
158
  import path2 from "node:path";
159
159
 
160
- // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/oauth-credential-validation.js
160
+ // node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/dist/oauth-credential-validation.js
161
161
  function isRecord(value) {
162
162
  return Boolean(value && typeof value === "object" && !Array.isArray(value));
163
163
  }
@@ -178,7 +178,7 @@ function isStoredOAuthClientInformation(value) {
178
178
  return isOptionalString(value, "issuer");
179
179
  }
180
180
 
181
- // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/oauth-token-generation.js
181
+ // node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/dist/oauth-token-generation.js
182
182
  import { randomUUID } from "node:crypto";
183
183
  import { isDeepStrictEqual } from "node:util";
184
184
  var TOKEN_GENERATION_FIELD = "__mcporter_generation";
@@ -258,7 +258,7 @@ function sameOAuthClientValue(left, right) {
258
258
  return isDeepStrictEqual(withoutClientGeneration(left), withoutClientGeneration(right));
259
259
  }
260
260
 
261
- // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/runtime/environment.js
261
+ // node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/dist/runtime/environment.js
262
262
  import { AsyncLocalStorage } from "node:async_hooks";
263
263
  import os from "node:os";
264
264
  import path from "node:path";
@@ -281,7 +281,7 @@ function runtimeStateDir(kind) {
281
281
  return root && path.isAbsolute(root) ? path.join(root, "mcporter") : path.join(runtimeHome(), ".mcporter");
282
282
  }
283
283
 
284
- // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/oauth-vault.js
284
+ // node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/dist/oauth-vault.js
285
285
  function getOAuthVaultPath() {
286
286
  return path2.join(runtimeStateDir("data"), "credentials.json");
287
287
  }
@@ -631,7 +631,7 @@ async function clearVaultEntry(definition, scope) {
631
631
  });
632
632
  }
633
633
 
634
- // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/oauth-persistence-stores.js
634
+ // node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/dist/oauth-persistence-stores.js
635
635
  import fs from "node:fs/promises";
636
636
  import path3 from "node:path";
637
637
  function withStoredExpiry(tokens) {
@@ -1176,8 +1176,16 @@ var CompositePersistence = class {
1176
1176
  describe() {
1177
1177
  return this.stores.map((store) => store.describe()).join(" + ");
1178
1178
  }
1179
+ async settleAll(operations) {
1180
+ const results = await Promise.allSettled(operations);
1181
+ return results.map((result) => {
1182
+ if (result.status === "rejected")
1183
+ throw result.reason;
1184
+ return result.value;
1185
+ });
1186
+ }
1179
1187
  async readSnapshot() {
1180
- const snapshots = await Promise.all(this.stores.map((store) => store.readSnapshot()));
1188
+ const snapshots = await this.settleAll(this.stores.map((store) => store.readSnapshot()));
1181
1189
  const tokens = this.firstSnapshotValue(snapshots, "tokens");
1182
1190
  const clientInfo = this.firstSnapshotValue(snapshots, "clientInfo");
1183
1191
  this.recoveryTokenSnapshots.clear();
@@ -1213,15 +1221,15 @@ var CompositePersistence = class {
1213
1221
  return result.value;
1214
1222
  }
1215
1223
  async readTokensPerStore() {
1216
- const perStore = await Promise.all(this.stores.map((store) => store.readTokens()));
1224
+ const perStore = await this.settleAll(this.stores.map((store) => store.readTokens()));
1217
1225
  return perStore.filter((tokens) => tokens !== void 0);
1218
1226
  }
1219
1227
  async saveTokens(tokens) {
1220
1228
  const stored = prepareStoredTokens(tokens);
1221
- await Promise.all(this.stores.map((store) => store.saveTokens(stored)));
1229
+ await this.settleAll(this.stores.map((store) => store.saveTokens(stored)));
1222
1230
  }
1223
1231
  async clearRejectedCredentials(expectedTokens, expectedClientInfo) {
1224
- await Promise.all(this.stores.map((store) => {
1232
+ await this.settleAll(this.stores.map((store) => {
1225
1233
  const storedTokenSnapshot = expectedTokens ? this.recoveryTokenSnapshots.get(store) : void 0;
1226
1234
  const tokenSnapshot = expectedTokens && storedTokenSnapshot && (store === this.recoveryTokenSource || sameOAuthTokenValue(storedTokenSnapshot, expectedTokens)) ? storedTokenSnapshot : void 0;
1227
1235
  const storedClientSnapshot = expectedClientInfo ? this.recoveryClientSnapshots.get(store) : void 0;
@@ -1261,7 +1269,7 @@ var CompositePersistence = class {
1261
1269
  }
1262
1270
  async saveClientInfo(info) {
1263
1271
  const stored = withOAuthClientGeneration(info);
1264
- await Promise.all(this.stores.map((store) => store.saveClientInfo(stored)));
1272
+ await this.settleAll(this.stores.map((store) => store.saveClientInfo(stored)));
1265
1273
  }
1266
1274
  async readCodeVerifier() {
1267
1275
  for (const store of this.stores) {
@@ -1273,7 +1281,7 @@ var CompositePersistence = class {
1273
1281
  return void 0;
1274
1282
  }
1275
1283
  async saveCodeVerifier(value) {
1276
- await Promise.all(this.stores.map((store) => store.saveCodeVerifier(value)));
1284
+ await this.settleAll(this.stores.map((store) => store.saveCodeVerifier(value)));
1277
1285
  }
1278
1286
  async readState() {
1279
1287
  for (const store of this.stores) {
@@ -1285,25 +1293,25 @@ var CompositePersistence = class {
1285
1293
  return void 0;
1286
1294
  }
1287
1295
  async saveState(value) {
1288
- await Promise.all(this.stores.map((store) => store.saveState(value)));
1296
+ await this.settleAll(this.stores.map((store) => store.saveState(value)));
1289
1297
  }
1290
1298
  async readDiscoveryState() {
1291
1299
  return this.readFirst((store) => store.readDiscoveryState());
1292
1300
  }
1293
1301
  async saveDiscoveryState(value) {
1294
- await Promise.all(this.stores.map((store) => store.saveDiscoveryState(value)));
1302
+ await this.settleAll(this.stores.map((store) => store.saveDiscoveryState(value)));
1295
1303
  }
1296
1304
  async readAuthorizationServerUrl() {
1297
1305
  return this.readFirst((store) => store.readAuthorizationServerUrl());
1298
1306
  }
1299
1307
  async saveAuthorizationServerUrl(value) {
1300
- await Promise.all(this.stores.map((store) => store.saveAuthorizationServerUrl(value)));
1308
+ await this.settleAll(this.stores.map((store) => store.saveAuthorizationServerUrl(value)));
1301
1309
  }
1302
1310
  async readResourceUrl() {
1303
1311
  return this.readFirst((store) => store.readResourceUrl());
1304
1312
  }
1305
1313
  async saveResourceUrl(value) {
1306
- await Promise.all(this.stores.map((store) => store.saveResourceUrl(value)));
1314
+ await this.settleAll(this.stores.map((store) => store.saveResourceUrl(value)));
1307
1315
  }
1308
1316
  async readFirst(read) {
1309
1317
  for (const store of this.stores) {
@@ -1314,7 +1322,7 @@ var CompositePersistence = class {
1314
1322
  return void 0;
1315
1323
  }
1316
1324
  async clear(scope) {
1317
- await Promise.all(this.stores.map((store) => store.clear(scope)));
1325
+ await this.settleAll(this.stores.map((store) => store.clear(scope)));
1318
1326
  }
1319
1327
  };
1320
1328
  async function createOAuthPersistenceStores(definition, logger) {
@@ -1,15 +1,18 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  buildRecordCommandEnv
4
- } from "./chunk-HKMH4N3Z.js";
4
+ } from "./chunk-NAGTWK62.js";
5
+ import {
6
+ CliUsageError
7
+ } from "./chunk-W3HK334E.js";
5
8
  import {
6
9
  PRIVATE_RECORDING_FILE_MODE,
7
10
  ensurePrivateRecordingDir,
8
11
  resolveRecordingConfigPath,
9
12
  resolveRecordingPath
10
- } from "./chunk-H44A4G2O.js";
13
+ } from "./chunk-CPAQ4API.js";
11
14
 
12
- // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/record-replay-command.js
15
+ // node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/dist/cli/record-replay-command.js
13
16
  import { spawn } from "node:child_process";
14
17
  import fs from "node:fs/promises";
15
18
  async function writeRecordReplayConfig(parsed, mode) {
@@ -63,7 +66,7 @@ function buildRecordReplayInstructionEnv(mode, sessionName, server) {
63
66
  };
64
67
  }
65
68
 
66
- // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/record-command.js
69
+ // node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/dist/cli/record-command.js
67
70
  async function handleRecordCli(args) {
68
71
  const parsed = parseRecordArgs(args);
69
72
  const recordPath = resolveRecordingPath(parsed.sessionName);
@@ -107,7 +110,7 @@ function parseSessionCommandArgs(args, commandName) {
107
110
  if (token === "--server") {
108
111
  const value = tokens[index + 1];
109
112
  if (!value) {
110
- throw new Error("Flag '--server' requires a server name.");
113
+ throw new CliUsageError("Flag '--server' requires a server name.");
111
114
  }
112
115
  server = value;
113
116
  index += 1;
@@ -116,21 +119,21 @@ function parseSessionCommandArgs(args, commandName) {
116
119
  if (token.startsWith("--server=")) {
117
120
  server = token.slice("--server=".length);
118
121
  if (!server) {
119
- throw new Error("Flag '--server' requires a server name.");
122
+ throw new CliUsageError("Flag '--server' requires a server name.");
120
123
  }
121
124
  continue;
122
125
  }
123
126
  if (token.startsWith("-")) {
124
- throw new Error(`Unknown ${commandName} flag '${token}'.`);
127
+ throw new CliUsageError(`Unknown ${commandName} flag '${token}'.`);
125
128
  }
126
129
  remaining.push(token);
127
130
  }
128
131
  const sessionName = remaining[0];
129
132
  if (!sessionName) {
130
- throw new Error(`Usage: mcporter ${commandName} <session-name> [--server <name>] [-- <command-to-run>]`);
133
+ throw new CliUsageError(`Usage: mcporter ${commandName} <session-name> [--server <name>] [-- <command-to-run>]`);
131
134
  }
132
135
  if (remaining.length > 1) {
133
- throw new Error(`Unexpected ${commandName} argument '${remaining[1]}'. Put commands after '--'.`);
136
+ throw new CliUsageError(`Unexpected ${commandName} argument '${remaining[1]}'. Put commands after '--'.`);
134
137
  }
135
138
  return { sessionName, server, command };
136
139
  }
@@ -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.17.0/node_modules/mcporter/dist/stable-json.js
3
+ // node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/dist/stable-json.js
4
4
  function stableJsonStringify(value, space) {
5
5
  const json = JSON.stringify(sortJsonValue(value), void 0, space);
6
6
  if (json === void 0) {
@@ -1,9 +1,9 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  normalizeHttpUrl
4
- } from "./chunk-32UZRZIL.js";
4
+ } from "./chunk-27PQUO34.js";
5
5
 
6
- // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/server-lookup.js
6
+ // node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/dist/cli/server-lookup.js
7
7
  function findServerByHttpUrl(definitions, urlString) {
8
8
  const normalizedTarget = normalizeHttpUrl(urlString);
9
9
  if (!normalizedTarget) {
@@ -2,11 +2,11 @@ import { createRequire as __createRequire } from "node:module"; const require =
2
2
  import {
3
3
  createMcpRuntime,
4
4
  usesPiMcpClient
5
- } from "./chunk-TT3LOCMN.js";
5
+ } from "./chunk-V65N6VX7.js";
6
6
  import {
7
7
  createCallResult,
8
8
  describeConnectionIssue
9
- } from "./chunk-DL3GVI4M.js";
9
+ } from "./chunk-QDLNI6YU.js";
10
10
  import {
11
11
  __commonJS,
12
12
  __require,
@@ -14193,7 +14193,7 @@ function loadMcporterCli() {
14193
14193
  if (mcporterCliPromise) return mcporterCliPromise;
14194
14194
  const previousDisableAutorun = process.env.MCPORTER_DISABLE_AUTORUN;
14195
14195
  process.env.MCPORTER_DISABLE_AUTORUN = "1";
14196
- mcporterCliPromise = import("./cli-TJFAYJO4.js").finally(() => {
14196
+ mcporterCliPromise = import("./cli-QNVUCDJE.js").finally(() => {
14197
14197
  if (previousDisableAutorun === void 0) {
14198
14198
  delete process.env.MCPORTER_DISABLE_AUTORUN;
14199
14199
  } else {
@@ -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-MSPGQEWX.js";
4
+ } from "./chunk-BMOK7SQE.js";
5
5
  import {
6
6
  isKeepAliveServer
7
- } from "./chunk-CWM4RO33.js";
7
+ } from "./chunk-L3BBHB3E.js";
8
8
 
9
- // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/daemon/runtime-wrapper.js
9
+ // node_modules/.pnpm/mcporter@0.17.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,18 +1,18 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  findServerByHttpUrl
4
- } from "./chunk-ZEMVGFKG.js";
4
+ } from "./chunk-3TZZPKQP.js";
5
5
  import {
6
6
  persistEphemeralServer,
7
7
  resolveEphemeralServer,
8
8
  splitCommandLine
9
- } from "./chunk-QHD5RXW4.js";
9
+ } from "./chunk-U4NDKPOH.js";
10
10
  import {
11
11
  looksLikeHttpUrl,
12
12
  normalizeHttpUrlCandidate
13
- } from "./chunk-32UZRZIL.js";
13
+ } from "./chunk-27PQUO34.js";
14
14
 
15
- // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/adhoc-help.js
15
+ // node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/dist/cli/adhoc-help.js
16
16
  var ADHOC_SERVER_HELP_ENTRIES = [
17
17
  { flag: "--http-url <url>", description: "Register an HTTP server for this run." },
18
18
  { flag: "--allow-http", description: "Permit plain http:// URLs with --http-url." },
@@ -36,7 +36,7 @@ function renderAdhocServerHelpLines(width = 23) {
36
36
  return ADHOC_SERVER_HELP_ENTRIES.map((entry) => ` ${entry.flag.padEnd(width)}${entry.description}`);
37
37
  }
38
38
 
39
- // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/ephemeral-target.js
39
+ // node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/dist/cli/ephemeral-target.js
40
40
  async function prepareEphemeralServerTarget(options) {
41
41
  let target = options.target;
42
42
  let spec = options.ephemeral ? { ...options.ephemeral } : void 0;
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  isHelpToken
4
- } from "./chunk-KUJUYFDC.js";
4
+ } from "./chunk-XCAIV2CS.js";
5
5
  import {
6
6
  BrokerError,
7
7
  DAEMON_PROTOCOL_VERSION,
@@ -20,39 +20,39 @@ import {
20
20
  resolveProgressInterval,
21
21
  stopVerifiedLegacyDaemons,
22
22
  waitForDaemonReady
23
- } from "./chunk-ABPXAKP7.js";
23
+ } from "./chunk-OH3HVZE7.js";
24
24
  import {
25
25
  CliUsageError
26
- } from "./chunk-EV3SP7ME.js";
26
+ } from "./chunk-W3HK334E.js";
27
27
  import {
28
28
  canonicalUserConfiguration,
29
29
  getDaemonLogPath,
30
30
  secureDaemonDirectory
31
- } from "./chunk-2R7UGABC.js";
31
+ } from "./chunk-6WTCG4OR.js";
32
32
  import {
33
33
  ChromeDevtoolsRelayDiscoveryError
34
- } from "./chunk-VLJQSE6L.js";
34
+ } from "./chunk-F5XGHRRC.js";
35
35
  import {
36
36
  withFileLock,
37
37
  writeJsonFile
38
- } from "./chunk-TTVO6RCP.js";
38
+ } from "./chunk-QRC4AH7I.js";
39
39
  import {
40
40
  expandHome
41
- } from "./chunk-4ACA5GWL.js";
41
+ } from "./chunk-IX6HNQSH.js";
42
42
  import {
43
43
  launchDaemonDetached
44
- } from "./chunk-VJ45Y5IO.js";
44
+ } from "./chunk-RF3HIBXO.js";
45
45
 
46
- // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/daemon-command.js
46
+ // node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/dist/cli/daemon-command.js
47
47
  import fsPromises from "node:fs/promises";
48
48
  import path2 from "node:path";
49
49
 
50
- // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/daemon/host.js
50
+ // node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/dist/daemon/host.js
51
51
  import fs from "node:fs/promises";
52
52
  import net from "node:net";
53
53
  import { randomUUID } from "node:crypto";
54
54
 
55
- // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/daemon/log-context.js
55
+ // node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/dist/daemon/log-context.js
56
56
  import fsSync from "node:fs";
57
57
  import path from "node:path";
58
58
  function createLogContext(options) {
@@ -104,7 +104,7 @@ async function disposeLogContext(context) {
104
104
  });
105
105
  }
106
106
 
107
- // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/daemon/host.js
107
+ // node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/dist/daemon/host.js
108
108
  async function runDaemonHost(options) {
109
109
  await secureDaemonDirectory();
110
110
  await assertLegacyDrained();
@@ -307,7 +307,7 @@ async function cleanupDaemonArtifactsIfOwned(paths, ownerPid) {
307
307
  await fs.unlink(paths.metadataPath);
308
308
  }
309
309
 
310
- // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/daemon-command.js
310
+ // node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/dist/cli/daemon-command.js
311
311
  async function handleDaemonCli(args, options) {
312
312
  const subcommand = args.shift();
313
313
  if (!subcommand || isHelpToken(subcommand) || hasDaemonHelp(args, subcommand)) {
@@ -3372,7 +3372,7 @@ function useColor() {
3372
3372
  // node_modules/.pnpm/commander@15.1.0/node_modules/commander/index.js
3373
3373
  var program = new Command();
3374
3374
 
3375
- // node_modules/.pnpm/mcporter@0.17.0/node_modules/mcporter/dist/cli/generate/tools.js
3375
+ // node_modules/.pnpm/mcporter@0.17.1/node_modules/mcporter/dist/cli/generate/tools.js
3376
3376
  function resolveSchemaType(value) {
3377
3377
  if (value === "integer") {
3378
3378
  return "number";