@introspection-ai/recipes 0.34.0 → 0.36.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 (117) hide show
  1. package/dist/inspect.d.ts +7 -0
  2. package/dist/inspect.d.ts.map +1 -1
  3. package/dist/inspect.js.map +1 -1
  4. package/dist/mcp/catalog.d.ts.map +1 -1
  5. package/dist/mcp/catalog.js +9 -2
  6. package/dist/mcp/catalog.js.map +1 -1
  7. package/dist/mcp/index.d.ts +14 -2
  8. package/dist/mcp/index.d.ts.map +1 -1
  9. package/dist/mcp/index.js +36 -5
  10. package/dist/mcp/index.js.map +1 -1
  11. package/dist/mcp/tools.d.ts +8 -0
  12. package/dist/mcp/tools.d.ts.map +1 -1
  13. package/dist/mcp/tools.js +15 -3
  14. package/dist/mcp/tools.js.map +1 -1
  15. package/dist/mcp-chunks/{auth-command-SDTBVC2R.js → auth-command-GMMLBU24.js} +23 -23
  16. package/dist/mcp-chunks/call-arguments-WSURHOLV.js +16 -0
  17. package/dist/mcp-chunks/{call-command-WOZT2DLX.js → call-command-2VF6IKAZ.js} +33 -33
  18. package/dist/mcp-chunks/{chunk-WQBESOWG.js → chunk-22WCLO4D.js} +7 -6
  19. package/dist/mcp-chunks/{chunk-2IO3FXZJ.js → chunk-2JTXIMGE.js} +1 -1
  20. package/dist/mcp-chunks/{chunk-SVCKS5MW.js → chunk-347GOMV4.js} +5 -5
  21. package/dist/mcp-chunks/{chunk-IR5SMKTP.js → chunk-35LLRCRA.js} +303 -128
  22. package/dist/mcp-chunks/{chunk-EIXFNLU6.js → chunk-3AAF3FSI.js} +1 -1
  23. package/dist/mcp-chunks/{chunk-TKZA4MPW.js → chunk-4PN2J74H.js} +4 -4
  24. package/dist/mcp-chunks/{chunk-FWWPRZ37.js → chunk-4U4BUXQD.js} +16 -16
  25. package/dist/mcp-chunks/{chunk-XDARNDP3.js → chunk-5OO6WVPL.js} +1 -1
  26. package/dist/mcp-chunks/{chunk-4IXQQER3.js → chunk-5UK2JLTN.js} +5 -5
  27. package/dist/mcp-chunks/{chunk-M7VINGHY.js → chunk-6TIU2CDB.js} +7 -7
  28. package/dist/mcp-chunks/{chunk-VRTH73R5.js → chunk-6XC5JJWD.js} +73 -36
  29. package/dist/mcp-chunks/{chunk-OURSGEZX.js → chunk-7BVYBZ4J.js} +8 -8
  30. package/dist/mcp-chunks/{chunk-HM26TIPK.js → chunk-7IVXKYTI.js} +42 -22
  31. package/dist/mcp-chunks/{chunk-CO4CYU5W.js → chunk-ANNJGB6F.js} +62 -32
  32. package/dist/mcp-chunks/{chunk-33YQLJYL.js → chunk-BIVX2WFX.js} +3 -3
  33. package/dist/mcp-chunks/{chunk-JRU5LZJQ.js → chunk-C4TJGC4F.js} +1 -1
  34. package/dist/mcp-chunks/{chunk-7X3JHUMH.js → chunk-CN5KSNWG.js} +1 -1
  35. package/dist/mcp-chunks/{chunk-UXI26V4F.js → chunk-D2SZ7KRY.js} +1 -1
  36. package/dist/mcp-chunks/{chunk-VWNF5PIF.js → chunk-D65GOMYV.js} +2 -2
  37. package/dist/mcp-chunks/{chunk-27XDYSXJ.js → chunk-DBNBEWRX.js} +4 -1
  38. package/dist/mcp-chunks/{chunk-P3S4OJPI.js → chunk-DUBQHYW4.js} +9 -9
  39. package/dist/mcp-chunks/{chunk-FMYP6JXX.js → chunk-ENBJFQ6H.js} +1 -1
  40. package/dist/mcp-chunks/{chunk-YTO7DITJ.js → chunk-FLUF2FRN.js} +3 -3
  41. package/dist/mcp-chunks/{chunk-IJTZ2ZRM.js → chunk-HFHIY5TO.js} +4 -4
  42. package/dist/mcp-chunks/{chunk-35JUFDQI.js → chunk-HI6VG5LR.js} +2 -2
  43. package/dist/mcp-chunks/{chunk-7OQUF6V6.js → chunk-IHOU2BEL.js} +2 -2
  44. package/dist/mcp-chunks/{chunk-7CI6DKEP.js → chunk-IMXPLUKE.js} +20 -20
  45. package/dist/mcp-chunks/{chunk-UHXTAPEC.js → chunk-LISNXOIQ.js} +1 -1
  46. package/dist/mcp-chunks/{chunk-ASFI5AJK.js → chunk-LRGMFF5S.js} +7 -7
  47. package/dist/mcp-chunks/{chunk-ALLS7CUV.js → chunk-LUVLTUKR.js} +1 -1
  48. package/dist/mcp-chunks/{chunk-SONMFI3S.js → chunk-LZUKBEQZ.js} +12 -12
  49. package/dist/mcp-chunks/{chunk-FQAJT6U2.js → chunk-O2C3HXGS.js} +1 -1
  50. package/dist/mcp-chunks/{chunk-EIF7GALA.js → chunk-OI3RTQXY.js} +1 -1
  51. package/dist/mcp-chunks/{chunk-CRX2G22W.js → chunk-OSTHIELS.js} +1 -1
  52. package/dist/mcp-chunks/{chunk-R636HUNL.js → chunk-P5YLK5G2.js} +17 -12
  53. package/dist/mcp-chunks/{chunk-YGRORKGT.js → chunk-QDFL757K.js} +99 -74
  54. package/dist/mcp-chunks/{chunk-DUJ5WAHC.js → chunk-QNZGFUKC.js} +2 -2
  55. package/dist/mcp-chunks/{chunk-GJ7DWMRT.js → chunk-R4OYHQ4V.js} +1 -1
  56. package/dist/mcp-chunks/{chunk-7ZZZ7MR2.js → chunk-RHXZKYM7.js} +1 -1
  57. package/dist/mcp-chunks/{chunk-POYT6GCW.js → chunk-RKQC2EE6.js} +2 -2
  58. package/dist/mcp-chunks/{chunk-43QNQO5C.js → chunk-RZZO3ZD4.js} +4 -4
  59. package/dist/mcp-chunks/{chunk-FUKRLUU7.js → chunk-SS7V7GVT.js} +4 -4
  60. package/dist/mcp-chunks/{chunk-FVZKQMZS.js → chunk-TYL2NVXI.js} +2 -2
  61. package/dist/mcp-chunks/{chunk-TDBM2UIR.js → chunk-U5QZHPCC.js} +10 -1
  62. package/dist/mcp-chunks/{chunk-6XBQDCGX.js → chunk-UQUM7ICD.js} +36 -17
  63. package/dist/mcp-chunks/{chunk-JQCSGX6E.js → chunk-VWPKJFK4.js} +2 -5
  64. package/dist/mcp-chunks/{chunk-AHDUZPNI.js → chunk-WXNGATQ7.js} +1 -1
  65. package/dist/mcp-chunks/{chunk-VCPUZFU7.js → chunk-YFCNRWLV.js} +2 -2
  66. package/dist/mcp-chunks/{chunk-IWXEOLJL.js → chunk-YPSODIQX.js} +18 -18
  67. package/dist/mcp-chunks/{chunk-CMDB57MS.js → chunk-YWFQPA4D.js} +2 -2
  68. package/dist/mcp-chunks/{chunk-YM7ZVYI2.js → chunk-ZI5XYM4C.js} +23 -7
  69. package/dist/mcp-chunks/{chunk-UYG7PAN2.js → chunk-ZJWZY54X.js} +2 -2
  70. package/dist/mcp-chunks/{chunk-ZLV5S5UP.js → chunk-ZXIF7MKN.js} +2 -2
  71. package/dist/mcp-chunks/{cli-67GWFF4R.js → cli-4OQD3H4N.js} +77 -70
  72. package/dist/mcp-chunks/client-LXKCCVMT.js +31 -0
  73. package/dist/mcp-chunks/{config-command-3IKIRWMW.js → config-command-72TCIWPV.js} +63 -36
  74. package/dist/mcp-chunks/daemon-command-QHS3ACBM.js +31 -0
  75. package/dist/mcp-chunks/{dist-YL3LFKVP.js → dist-74UCKZK5.js} +95 -69
  76. package/dist/mcp-chunks/{emit-ts-command-YWKROLL2.js → emit-ts-command-KD4ON2SE.js} +34 -22
  77. package/dist/mcp-chunks/{generate-cli-runner-CZEVY2Y7.js → generate-cli-runner-HWGI6HPL.js} +55 -49
  78. package/dist/mcp-chunks/generated-daemon-runtime-7ORS5KBR.js +31 -0
  79. package/dist/mcp-chunks/{inspect-cli-command-5Y2LORK5.js → inspect-cli-command-FT5JSB7V.js} +9 -9
  80. package/dist/mcp-chunks/{launch-43TA3HYF.js → launch-AHLKP2VM.js} +1 -1
  81. package/dist/mcp-chunks/{lifecycle-BY2ILXTB.js → lifecycle-BJDITFWN.js} +1 -1
  82. package/dist/mcp-chunks/{list-command-7RU7NNAV.js → list-command-YKF7RN6Y.js} +30 -30
  83. package/dist/mcp-chunks/{output-utils-2R3SA6KR.js → output-utils-LYB5IJRD.js} +3 -3
  84. package/dist/mcp-chunks/{prompt-CH6TK0bC-GKQOEUY4.js → prompt-CH6TK0bC-B3USYOND.js} +1 -1
  85. package/dist/mcp-chunks/{record-command-ROIRRNFS.js → record-command-MJW3Z5E5.js} +5 -5
  86. package/dist/mcp-chunks/{replay-command-Y2MYVQTL.js → replay-command-5ZHBUOLE.js} +6 -6
  87. package/dist/mcp-chunks/{resource-command-VUV7AYYQ.js → resource-command-L4I24AX5.js} +9 -9
  88. package/dist/mcp-chunks/{result-utils-5U7NVXDZ.js → result-utils-5WRI66KV.js} +3 -3
  89. package/dist/mcp-chunks/runtime-IKWDQLZF.js +38 -0
  90. package/dist/mcp-chunks/{runtime-wrapper-3BVFTSWJ.js → runtime-wrapper-WFMNIHD5.js} +3 -3
  91. package/dist/mcp-chunks/{serve-command-BXLQWHFW.js → serve-command-KNCSJUXS.js} +185 -78
  92. package/dist/mcp-chunks/{timeouts-6GL2F44N.js → timeouts-2ZHGSB3R.js} +3 -3
  93. package/dist/mcp-chunks/{vault-command-JCMW3DQA.js → vault-command-7EDL45AA.js} +4 -4
  94. package/dist/mcp-chunks/{webapi-UMWFGMQV.js → webapi-NNCZGUMZ.js} +46 -46
  95. package/dist/mcp-daemon.js +27 -27
  96. package/dist/mcp-run-worker.js +27 -27
  97. package/dist/pi-extension.d.ts.map +1 -1
  98. package/dist/pi-extension.js +8 -1
  99. package/dist/pi-extension.js.map +1 -1
  100. package/dist/recipe/package.d.ts +5 -0
  101. package/dist/recipe/package.d.ts.map +1 -1
  102. package/dist/recipe/package.js +7 -1
  103. package/dist/recipe/package.js.map +1 -1
  104. package/dist/session.d.ts +6 -0
  105. package/dist/session.d.ts.map +1 -1
  106. package/dist/session.js +2 -1
  107. package/dist/session.js.map +1 -1
  108. package/docs/host-api.md +4 -1
  109. package/docs/mcp-configuration.md +15 -0
  110. package/docs/recipe-format.md +3 -1
  111. package/docs/slack.md +6 -0
  112. package/package.json +10 -10
  113. package/dist/mcp-chunks/call-arguments-ER7NWEPS.js +0 -16
  114. package/dist/mcp-chunks/client-MQMNAYYW.js +0 -31
  115. package/dist/mcp-chunks/daemon-command-OMOZ5MP7.js +0 -31
  116. package/dist/mcp-chunks/generated-daemon-runtime-SRFULTIT.js +0 -31
  117. package/dist/mcp-chunks/runtime-Q4SCCOQE.js +0 -38
@@ -1,9 +1,9 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  analyzeConnectionError
4
- } from "./chunk-35JUFDQI.js";
4
+ } from "./chunk-HI6VG5LR.js";
5
5
 
6
- // node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/result-utils.js
6
+ // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/result-utils.js
7
7
  function extractEnvelope(raw) {
8
8
  return collectEnvelopeFields(raw, { content: null, structuredContent: null }, 0);
9
9
  }
@@ -67,7 +67,7 @@ function collectCallContent(raw) {
67
67
  for (const entry of envelope.content) {
68
68
  if (typeof entry === "string") {
69
69
  const parsed2 = tryParseJson(entry);
70
- if (parsed2 !== null) {
70
+ if (parsed2 !== void 0) {
71
71
  jsonCandidates.push(parsed2);
72
72
  }
73
73
  continue;
@@ -78,7 +78,7 @@ function collectCallContent(raw) {
78
78
  const typedEntry = entry;
79
79
  if (typedEntry.type === "json") {
80
80
  const parsed2 = tryParseJson(entry);
81
- if (parsed2 !== null) {
81
+ if (parsed2 !== void 0) {
82
82
  jsonCandidates.push(parsed2);
83
83
  }
84
84
  continue;
@@ -108,7 +108,7 @@ function collectCallContent(raw) {
108
108
  markdownEntries.push(text);
109
109
  }
110
110
  const parsed = tryParseJson(text);
111
- if (parsed !== null) {
111
+ if (parsed !== void 0) {
112
112
  jsonCandidates.push(parsed);
113
113
  }
114
114
  }
@@ -134,7 +134,7 @@ function collectResourcePayload(resource, textEntries, markdownEntries, jsonCand
134
134
  markdownEntries.push(record.text);
135
135
  }
136
136
  const parsed = tryParseJson(record.text);
137
- if (parsed !== null) {
137
+ if (parsed !== void 0) {
138
138
  jsonCandidates.push(parsed);
139
139
  }
140
140
  } else if (typeof record.blob === "string") {
@@ -155,33 +155,33 @@ function collectImages(images) {
155
155
  }
156
156
  function unwrapJsonEnvelope(record, fallback) {
157
157
  if ("json" in record) {
158
- return record.json ?? null;
158
+ return record.json;
159
159
  }
160
160
  if ("data" in record) {
161
- return Object.keys(record).length === 1 ? record.data ?? null : fallback;
161
+ return Object.keys(record).length === 1 ? record.data : fallback;
162
162
  }
163
- return null;
163
+ return void 0;
164
164
  }
165
165
  function parseStructuredContent(value) {
166
166
  if (value === void 0 || value === null) {
167
- return null;
167
+ return void 0;
168
168
  }
169
169
  if (typeof value === "string") {
170
170
  return tryParseJson(value);
171
171
  }
172
172
  if (typeof value !== "object") {
173
- return null;
173
+ return void 0;
174
174
  }
175
175
  const unwrapped = unwrapJsonEnvelope(value, value);
176
- return unwrapped ?? value;
176
+ return unwrapped === void 0 ? value : unwrapped;
177
177
  }
178
178
  function tryParseJson(value) {
179
179
  if (value === void 0 || value === null) {
180
- return null;
180
+ return void 0;
181
181
  }
182
182
  if (typeof value === "object") {
183
183
  const unwrapped = unwrapJsonEnvelope(value, value);
184
- if (unwrapped !== null) {
184
+ if (unwrapped !== void 0) {
185
185
  return unwrapped;
186
186
  }
187
187
  }
@@ -189,10 +189,10 @@ function tryParseJson(value) {
189
189
  try {
190
190
  return JSON.parse(value);
191
191
  } catch {
192
- return null;
192
+ return void 0;
193
193
  }
194
194
  }
195
- return null;
195
+ return void 0;
196
196
  }
197
197
  function createCallResult(raw) {
198
198
  let cachedContent;
@@ -233,7 +233,7 @@ function createCallResult(raw) {
233
233
  json() {
234
234
  const collected = getCollectedContent();
235
235
  const parsedStructured = parseStructuredContent(collected.structuredContent);
236
- if (parsedStructured !== null) {
236
+ if (parsedStructured !== void 0) {
237
237
  return parsedStructured;
238
238
  }
239
239
  if (collected.jsonCandidates.length === 1) {
@@ -244,21 +244,21 @@ function createCallResult(raw) {
244
244
  }
245
245
  if (typeof raw === "string") {
246
246
  const parsedRaw = tryParseJson(raw);
247
- if (parsedRaw !== null) {
247
+ if (parsedRaw !== void 0) {
248
248
  return parsedRaw;
249
249
  }
250
250
  }
251
251
  const textContent = this.text?.();
252
252
  if (typeof textContent === "string") {
253
253
  const parsedText = tryParseJson(textContent);
254
- if (parsedText !== null) {
254
+ if (parsedText !== void 0) {
255
255
  return parsedText;
256
256
  }
257
257
  }
258
258
  const markdownContent = this.markdown?.();
259
259
  if (typeof markdownContent === "string") {
260
260
  const parsedMarkdown = tryParseJson(markdownContent);
261
- if (parsedMarkdown !== null) {
261
+ if (parsedMarkdown !== void 0) {
262
262
  return parsedMarkdown;
263
263
  }
264
264
  }
@@ -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.14.2/node_modules/mcporter/dist/cli/http-utils.js
3
+ // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/http-utils.js
4
4
  var DOMAIN_WITH_PATH_PATTERN = /^[A-Za-z0-9](?:[A-Za-z0-9.-]*)(?::\d+)?\//;
5
5
  function normalizeHttpUrlCandidate(value) {
6
6
  if (!value) {
@@ -1,23 +1,23 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  __configInternals
4
- } from "./chunk-FWWPRZ37.js";
4
+ } from "./chunk-4U4BUXQD.js";
5
5
  import {
6
6
  isRecord
7
- } from "./chunk-XDARNDP3.js";
7
+ } from "./chunk-5OO6WVPL.js";
8
8
  import {
9
9
  withFileLock,
10
10
  writeTextFileAtomic
11
- } from "./chunk-7OQUF6V6.js";
11
+ } from "./chunk-IHOU2BEL.js";
12
12
  import {
13
13
  expandHome
14
- } from "./chunk-JQCSGX6E.js";
14
+ } from "./chunk-VWPKJFK4.js";
15
15
  import {
16
16
  canonicalKeepAliveName,
17
17
  resolveLifecycle
18
- } from "./chunk-EIXFNLU6.js";
18
+ } from "./chunk-3AAF3FSI.js";
19
19
 
20
- // node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/cli/ascii-slug.js
20
+ // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/ascii-slug.js
21
21
  function toAsciiSlug(value) {
22
22
  let slug = "";
23
23
  let pendingSeparator = false;
@@ -38,7 +38,7 @@ function toAsciiSlug(value) {
38
38
  return slug;
39
39
  }
40
40
 
41
- // node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/cli/adhoc-server.js
41
+ // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/adhoc-server.js
42
42
  import fs from "node:fs/promises";
43
43
  import path from "node:path";
44
44
  var TEMP_SOURCE = { kind: "local", path: "<adhoc>" };
@@ -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.14.2/node_modules/mcporter/dist/cli/errors.js
3
+ // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/errors.js
4
4
  var CliUsageError = class extends Error {
5
5
  constructor(message) {
6
6
  super(message);
@@ -7,42 +7,42 @@ import {
7
7
  reconcilePersistedTokens,
8
8
  withRefreshLock,
9
9
  withRefreshRequestTimeout
10
- } from "./chunk-OURSGEZX.js";
10
+ } from "./chunk-7BVYBZ4J.js";
11
11
  import {
12
12
  runtimeEnvironment,
13
13
  sameOAuthClientGeneration,
14
14
  sameOAuthTokenGeneration,
15
15
  withOAuthClientGeneration
16
- } from "./chunk-M7VINGHY.js";
16
+ } from "./chunk-6TIU2CDB.js";
17
17
  import {
18
18
  OAuthRequestedScopeSchema
19
- } from "./chunk-FWWPRZ37.js";
19
+ } from "./chunk-4U4BUXQD.js";
20
20
  import {
21
21
  isFileLockTimeoutError
22
- } from "./chunk-7OQUF6V6.js";
22
+ } from "./chunk-IHOU2BEL.js";
23
23
  import {
24
24
  analyzeConnectionError
25
- } from "./chunk-35JUFDQI.js";
25
+ } from "./chunk-HI6VG5LR.js";
26
26
  import {
27
27
  IssuerMismatchError,
28
28
  auth,
29
29
  validateClientMetadataUrl
30
- } from "./chunk-IR5SMKTP.js";
30
+ } from "./chunk-35LLRCRA.js";
31
31
 
32
- // node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/oauth-browser-suppression.js
32
+ // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/oauth-browser-suppression.js
33
33
  var TRUE_VALUES = /* @__PURE__ */ new Set(["1", "true", "yes"]);
34
34
  function suppressBrowserLaunchFromEnv(env = runtimeEnvironment()) {
35
35
  const raw = env.MCPORTER_OAUTH_NO_BROWSER;
36
36
  return raw !== void 0 && TRUE_VALUES.has(raw.trim().toLowerCase());
37
37
  }
38
38
 
39
- // node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/oauth.js
39
+ // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/oauth.js
40
40
  import { spawn } from "node:child_process";
41
41
  import { createHash, randomUUID } from "node:crypto";
42
42
  import http from "node:http";
43
43
  import { URL as URL2 } from "node:url";
44
44
 
45
- // node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/oauth-redirect-uri.js
45
+ // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/oauth-redirect-uri.js
46
46
  function matchesFreshLoopbackRedirect(returned, requested) {
47
47
  let redirect;
48
48
  try {
@@ -63,7 +63,7 @@ function matchesFreshLoopbackRedirect(returned, requested) {
63
63
  return redirect.href === requested.href;
64
64
  }
65
65
 
66
- // node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/oauth.js
66
+ // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/oauth.js
67
67
  var CALLBACK_HOST = "127.0.0.1";
68
68
  var CALLBACK_PATH = "/callback";
69
69
  var INTERACTIVE_AUTHORIZATION_TTL_MS = 3e5;
@@ -576,7 +576,7 @@ var __oauthInternals = {
576
576
  openExternal
577
577
  };
578
578
 
579
- // node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/runtime-oauth-support.js
579
+ // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/runtime-oauth-support.js
580
580
  function maybeEnableOAuth(definition, logger) {
581
581
  if (definition.auth === "oauth" || definition.auth === "refreshable_bearer") {
582
582
  return void 0;
@@ -595,7 +595,7 @@ function isUnauthorizedError(error) {
595
595
  return issue.kind === "auth";
596
596
  }
597
597
 
598
- // node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/runtime/oauth.js
598
+ // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/runtime/oauth.js
599
599
  var DEFAULT_OAUTH_CODE_TIMEOUT_MS = 3e5;
600
600
  var OAUTH_FLOW_ERROR = /* @__PURE__ */ Symbol("oauth-flow-error");
601
601
  var POST_AUTH_CONNECT_ERROR = /* @__PURE__ */ Symbol("post-auth-connect-error");
@@ -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.14.2/node_modules/mcporter/dist/daemon/launch.js
3
+ // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/daemon/launch.js
4
4
  import { spawn } from "node:child_process";
5
5
  import path from "node:path";
6
6
  import { existsSync } from "node:fs";
@@ -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.14.2/node_modules/mcporter/dist/cli/identifier-helpers.js
3
+ // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/identifier-helpers.js
4
4
  var AUTO_THRESHOLD_RATIO = 0.3;
5
5
  var AUTO_THRESHOLD_MIN = 2;
6
6
  function chooseClosestIdentifier(input, candidates) {
@@ -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.14.2/node_modules/mcporter/dist/cli/terminal.js
3
+ // node_modules/.pnpm/mcporter@0.15.0/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";
@@ -1,12 +1,13 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  launchDaemonDetached
4
- } from "./chunk-FQAJT6U2.js";
4
+ } from "./chunk-O2C3HXGS.js";
5
5
  import {
6
6
  BrokerError,
7
7
  DAEMON_PROTOCOL_VERSION,
8
8
  DaemonBroker,
9
9
  DaemonClient,
10
+ ExpiredViewError,
10
11
  ProcessObservationError,
11
12
  SocketFrames,
12
13
  assertLegacyDrained,
@@ -19,33 +20,33 @@ import {
19
20
  resolveProgressInterval,
20
21
  stopVerifiedLegacyDaemons,
21
22
  waitForDaemonReady
22
- } from "./chunk-VRTH73R5.js";
23
+ } from "./chunk-6XC5JJWD.js";
23
24
  import {
24
25
  canonicalUserConfiguration,
25
26
  getDaemonLogPath,
26
27
  secureDaemonDirectory
27
- } from "./chunk-YGRORKGT.js";
28
+ } from "./chunk-QDFL757K.js";
28
29
  import {
29
30
  ChromeDevtoolsRelayDiscoveryError
30
- } from "./chunk-P3S4OJPI.js";
31
+ } from "./chunk-DUBQHYW4.js";
31
32
  import {
32
33
  withFileLock,
33
34
  writeJsonFile
34
- } from "./chunk-7OQUF6V6.js";
35
+ } from "./chunk-IHOU2BEL.js";
35
36
  import {
36
37
  expandHome
37
- } from "./chunk-JQCSGX6E.js";
38
+ } from "./chunk-VWPKJFK4.js";
38
39
 
39
- // node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/cli/daemon-command.js
40
+ // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/daemon-command.js
40
41
  import fsPromises from "node:fs/promises";
41
42
  import path2 from "node:path";
42
43
 
43
- // node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/daemon/host.js
44
+ // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/daemon/host.js
44
45
  import fs from "node:fs/promises";
45
46
  import net from "node:net";
46
47
  import { randomUUID } from "node:crypto";
47
48
 
48
- // node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/daemon/log-context.js
49
+ // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/daemon/log-context.js
49
50
  import fsSync from "node:fs";
50
51
  import path from "node:path";
51
52
  function createLogContext(options) {
@@ -97,7 +98,7 @@ async function disposeLogContext(context) {
97
98
  });
98
99
  }
99
100
 
100
- // node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/daemon/host.js
101
+ // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/daemon/host.js
101
102
  async function runDaemonHost(options) {
102
103
  await secureDaemonDirectory();
103
104
  await assertLegacyDrained();
@@ -221,7 +222,11 @@ async function runDaemonHost(options) {
221
222
  } catch (error) {
222
223
  const code = error && typeof error === "object" && "code" in error ? String(error.code) : "runtime_error";
223
224
  const message = error instanceof BrokerError || error instanceof ProcessObservationError || error instanceof ChromeDevtoolsRelayDiscoveryError || code === "browser_owner_conflict" ? error.message : `MCP operation failed (${code}); the request was not replayed.`;
224
- frames.write({ id, ok: false, error: { code, message } });
225
+ frames.write({
226
+ id,
227
+ ok: false,
228
+ error: { code, message, ...error instanceof ExpiredViewError ? { retry: "renew_view" } : {} }
229
+ });
225
230
  socket.end();
226
231
  } finally {
227
232
  lastActivity = Date.now();
@@ -296,7 +301,7 @@ async function cleanupDaemonArtifactsIfOwned(paths, ownerPid) {
296
301
  await fs.unlink(paths.metadataPath);
297
302
  }
298
303
 
299
- // node_modules/.pnpm/mcporter@0.14.2/node_modules/mcporter/dist/cli/daemon-command.js
304
+ // node_modules/.pnpm/mcporter@0.15.0/node_modules/mcporter/dist/cli/daemon-command.js
300
305
  async function handleDaemonCli(args, options) {
301
306
  const subcommand = args.shift();
302
307
  if (!subcommand || subcommand === "help" || subcommand === "--help") {