@ashx-j/lunr-dev 0.2.16-dev.9.1 → 0.2.21-dev.12.1

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 (430) hide show
  1. package/CHANGELOG.md +67 -1
  2. package/README.md +7 -1
  3. package/dist/builtin-extensions/ashxj-thinking.d.ts +1 -0
  4. package/dist/builtin-extensions/ashxj-thinking.d.ts.map +1 -1
  5. package/dist/builtin-extensions/ashxj-thinking.js +44 -19
  6. package/dist/builtin-extensions/ashxj-thinking.js.map +1 -1
  7. package/dist/builtin-extensions/index.d.ts.map +1 -1
  8. package/dist/builtin-extensions/index.js +1 -2
  9. package/dist/builtin-extensions/index.js.map +1 -1
  10. package/dist/builtin-extensions/lunr-computer-use.d.ts +3 -0
  11. package/dist/builtin-extensions/lunr-computer-use.d.ts.map +1 -0
  12. package/dist/builtin-extensions/lunr-computer-use.js +158 -0
  13. package/dist/builtin-extensions/lunr-computer-use.js.map +1 -0
  14. package/dist/builtin-extensions/lunr-todos.d.ts +6 -5
  15. package/dist/builtin-extensions/lunr-todos.d.ts.map +1 -1
  16. package/dist/builtin-extensions/lunr-todos.js +9 -7
  17. package/dist/builtin-extensions/lunr-todos.js.map +1 -1
  18. package/dist/builtin-extensions/pi-intercom/broker/spawn.d.ts +6 -4
  19. package/dist/builtin-extensions/pi-intercom/broker/spawn.d.ts.map +1 -1
  20. package/dist/builtin-extensions/pi-intercom/broker/spawn.js +114 -61
  21. package/dist/builtin-extensions/pi-intercom/broker/spawn.js.map +1 -1
  22. package/dist/builtin-extensions/pi-intercom/index.d.ts.map +1 -1
  23. package/dist/builtin-extensions/pi-intercom/index.js +360 -351
  24. package/dist/builtin-extensions/pi-intercom/index.js.map +1 -1
  25. package/dist/builtin-extensions/pi-lsp-extension/src/index.d.ts.map +1 -1
  26. package/dist/builtin-extensions/pi-lsp-extension/src/index.js +10 -3
  27. package/dist/builtin-extensions/pi-lsp-extension/src/index.js.map +1 -1
  28. package/dist/builtin-extensions/pi-lsp-extension/src/runtime.d.ts +5 -1
  29. package/dist/builtin-extensions/pi-lsp-extension/src/runtime.d.ts.map +1 -1
  30. package/dist/builtin-extensions/pi-lsp-extension/src/runtime.js +26 -4
  31. package/dist/builtin-extensions/pi-lsp-extension/src/runtime.js.map +1 -1
  32. package/dist/builtin-extensions/pi-mcp-adapter/index.d.ts.map +1 -1
  33. package/dist/builtin-extensions/pi-mcp-adapter/index.js +37 -27
  34. package/dist/builtin-extensions/pi-mcp-adapter/index.js.map +1 -1
  35. package/dist/builtin-extensions/pi-mcp-adapter/server-manager.d.ts +6 -1
  36. package/dist/builtin-extensions/pi-mcp-adapter/server-manager.d.ts.map +1 -1
  37. package/dist/builtin-extensions/pi-mcp-adapter/server-manager.js +33 -8
  38. package/dist/builtin-extensions/pi-mcp-adapter/server-manager.js.map +1 -1
  39. package/dist/builtin-extensions/pi-subagents/src/extension/fanout-child.d.ts.map +1 -1
  40. package/dist/builtin-extensions/pi-subagents/src/extension/fanout-child.js +2 -2
  41. package/dist/builtin-extensions/pi-subagents/src/extension/fanout-child.js.map +1 -1
  42. package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts +8 -6
  43. package/dist/builtin-extensions/pi-subagents/src/extension/index.d.ts.map +1 -1
  44. package/dist/builtin-extensions/pi-subagents/src/extension/index.js +179 -79
  45. package/dist/builtin-extensions/pi-subagents/src/extension/index.js.map +1 -1
  46. package/dist/builtin-extensions/pi-subagents/src/extension/schemas.d.ts +18 -8
  47. package/dist/builtin-extensions/pi-subagents/src/extension/schemas.d.ts.map +1 -1
  48. package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js +44 -15
  49. package/dist/builtin-extensions/pi-subagents/src/extension/schemas.js.map +1 -1
  50. package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.d.ts +4 -3
  51. package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.d.ts.map +1 -1
  52. package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.js +24 -14
  53. package/dist/builtin-extensions/pi-subagents/src/extension/tool-description.js.map +1 -1
  54. package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.d.ts +8 -1
  55. package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.d.ts.map +1 -1
  56. package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.js +247 -18
  57. package/dist/builtin-extensions/pi-subagents/src/intercom/native-supervisor-channel.js.map +1 -1
  58. package/dist/builtin-extensions/pi-subagents/src/intercom/result-intercom.d.ts +1 -0
  59. package/dist/builtin-extensions/pi-subagents/src/intercom/result-intercom.d.ts.map +1 -1
  60. package/dist/builtin-extensions/pi-subagents/src/intercom/result-intercom.js +1 -1
  61. package/dist/builtin-extensions/pi-subagents/src/intercom/result-intercom.js.map +1 -1
  62. package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-ask.d.ts +29 -0
  63. package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-ask.d.ts.map +1 -0
  64. package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-ask.js +179 -0
  65. package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-ask.js.map +1 -0
  66. package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.d.ts +89 -0
  67. package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.d.ts.map +1 -0
  68. package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.js +541 -0
  69. package/dist/builtin-extensions/pi-subagents/src/intercom/supervisor-questions.js.map +1 -0
  70. package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.d.ts +11 -1
  71. package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.d.ts.map +1 -1
  72. package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.js +38 -12
  73. package/dist/builtin-extensions/pi-subagents/src/runs/background/async-execution.js.map +1 -1
  74. package/dist/builtin-extensions/pi-subagents/src/runs/background/async-job-tracker.d.ts.map +1 -1
  75. package/dist/builtin-extensions/pi-subagents/src/runs/background/async-job-tracker.js +3 -2
  76. package/dist/builtin-extensions/pi-subagents/src/runs/background/async-job-tracker.js.map +1 -1
  77. package/dist/builtin-extensions/pi-subagents/src/runs/background/async-resume.d.ts +2 -1
  78. package/dist/builtin-extensions/pi-subagents/src/runs/background/async-resume.d.ts.map +1 -1
  79. package/dist/builtin-extensions/pi-subagents/src/runs/background/async-resume.js +35 -8
  80. package/dist/builtin-extensions/pi-subagents/src/runs/background/async-resume.js.map +1 -1
  81. package/dist/builtin-extensions/pi-subagents/src/runs/background/notify.d.ts +7 -3
  82. package/dist/builtin-extensions/pi-subagents/src/runs/background/notify.d.ts.map +1 -1
  83. package/dist/builtin-extensions/pi-subagents/src/runs/background/notify.js +26 -4
  84. package/dist/builtin-extensions/pi-subagents/src/runs/background/notify.js.map +1 -1
  85. package/dist/builtin-extensions/pi-subagents/src/runs/background/result-watcher.d.ts +1 -0
  86. package/dist/builtin-extensions/pi-subagents/src/runs/background/result-watcher.d.ts.map +1 -1
  87. package/dist/builtin-extensions/pi-subagents/src/runs/background/result-watcher.js +55 -38
  88. package/dist/builtin-extensions/pi-subagents/src/runs/background/result-watcher.js.map +1 -1
  89. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.d.ts +100 -0
  90. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.d.ts.map +1 -1
  91. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.js +46 -31
  92. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-runner.js.map +1 -1
  93. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.d.ts +3 -6
  94. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.d.ts.map +1 -1
  95. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.js +64 -5
  96. package/dist/builtin-extensions/pi-subagents/src/runs/background/subagent-wait.js.map +1 -1
  97. package/dist/builtin-extensions/pi-subagents/src/runs/background/top-level-async.d.ts +15 -2
  98. package/dist/builtin-extensions/pi-subagents/src/runs/background/top-level-async.d.ts.map +1 -1
  99. package/dist/builtin-extensions/pi-subagents/src/runs/background/top-level-async.js +14 -4
  100. package/dist/builtin-extensions/pi-subagents/src/runs/background/top-level-async.js.map +1 -1
  101. package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.d.ts +1 -1
  102. package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.d.ts.map +1 -1
  103. package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.js +7 -3
  104. package/dist/builtin-extensions/pi-subagents/src/runs/background/wait-tool.js.map +1 -1
  105. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.d.ts.map +1 -1
  106. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.js +21 -8
  107. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/chain-execution.js.map +1 -1
  108. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.d.ts.map +1 -1
  109. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.js +1 -1
  110. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/execution.js.map +1 -1
  111. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/request-params.d.ts +10 -0
  112. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/request-params.d.ts.map +1 -0
  113. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/request-params.js +38 -0
  114. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/request-params.js.map +1 -0
  115. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.d.ts +0 -1
  116. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.d.ts.map +1 -1
  117. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js +74 -41
  118. package/dist/builtin-extensions/pi-subagents/src/runs/foreground/subagent-executor.js.map +1 -1
  119. package/dist/builtin-extensions/pi-subagents/src/runs/shared/acceptance.d.ts +2 -0
  120. package/dist/builtin-extensions/pi-subagents/src/runs/shared/acceptance.d.ts.map +1 -1
  121. package/dist/builtin-extensions/pi-subagents/src/runs/shared/acceptance.js +75 -18
  122. package/dist/builtin-extensions/pi-subagents/src/runs/shared/acceptance.js.map +1 -1
  123. package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.d.ts +1 -1
  124. package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.d.ts.map +1 -1
  125. package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.js +2 -0
  126. package/dist/builtin-extensions/pi-subagents/src/runs/shared/child-tools.js.map +1 -1
  127. package/dist/builtin-extensions/pi-subagents/src/runs/shared/completion-guard.d.ts +1 -1
  128. package/dist/builtin-extensions/pi-subagents/src/runs/shared/completion-guard.d.ts.map +1 -1
  129. package/dist/builtin-extensions/pi-subagents/src/runs/shared/completion-guard.js +1 -1
  130. package/dist/builtin-extensions/pi-subagents/src/runs/shared/completion-guard.js.map +1 -1
  131. package/dist/builtin-extensions/pi-subagents/src/runs/shared/model-fallback.d.ts +13 -1
  132. package/dist/builtin-extensions/pi-subagents/src/runs/shared/model-fallback.d.ts.map +1 -1
  133. package/dist/builtin-extensions/pi-subagents/src/runs/shared/model-fallback.js +67 -11
  134. package/dist/builtin-extensions/pi-subagents/src/runs/shared/model-fallback.js.map +1 -1
  135. package/dist/builtin-extensions/pi-subagents/src/runs/shared/parallel-utils.d.ts +1 -0
  136. package/dist/builtin-extensions/pi-subagents/src/runs/shared/parallel-utils.d.ts.map +1 -1
  137. package/dist/builtin-extensions/pi-subagents/src/runs/shared/parallel-utils.js.map +1 -1
  138. package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.d.ts +3 -0
  139. package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.d.ts.map +1 -1
  140. package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.js +7 -2
  141. package/dist/builtin-extensions/pi-subagents/src/runs/shared/pi-args.js.map +1 -1
  142. package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.d.ts.map +1 -1
  143. package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.js +13 -3
  144. package/dist/builtin-extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.js.map +1 -1
  145. package/dist/builtin-extensions/pi-subagents/src/runs/shared/task-intent.d.ts +2 -2
  146. package/dist/builtin-extensions/pi-subagents/src/runs/shared/task-intent.d.ts.map +1 -1
  147. package/dist/builtin-extensions/pi-subagents/src/runs/shared/task-intent.js +5 -10
  148. package/dist/builtin-extensions/pi-subagents/src/runs/shared/task-intent.js.map +1 -1
  149. package/dist/builtin-extensions/pi-subagents/src/shared/async-guidance.d.ts +2 -0
  150. package/dist/builtin-extensions/pi-subagents/src/shared/async-guidance.d.ts.map +1 -0
  151. package/dist/builtin-extensions/pi-subagents/src/shared/async-guidance.js +3 -0
  152. package/dist/builtin-extensions/pi-subagents/src/shared/async-guidance.js.map +1 -0
  153. package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.d.ts +3 -0
  154. package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.d.ts.map +1 -1
  155. package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.js +68 -11
  156. package/dist/builtin-extensions/pi-subagents/src/shared/child-spec.js.map +1 -1
  157. package/dist/builtin-extensions/pi-subagents/src/shared/formatters.d.ts +12 -1
  158. package/dist/builtin-extensions/pi-subagents/src/shared/formatters.d.ts.map +1 -1
  159. package/dist/builtin-extensions/pi-subagents/src/shared/formatters.js +21 -2
  160. package/dist/builtin-extensions/pi-subagents/src/shared/formatters.js.map +1 -1
  161. package/dist/builtin-extensions/pi-subagents/src/shared/types.d.ts +21 -4
  162. package/dist/builtin-extensions/pi-subagents/src/shared/types.d.ts.map +1 -1
  163. package/dist/builtin-extensions/pi-subagents/src/shared/types.js +1 -1
  164. package/dist/builtin-extensions/pi-subagents/src/shared/types.js.map +1 -1
  165. package/dist/builtin-extensions/pi-subagents/src/slash/delegation-adapters.d.ts.map +1 -1
  166. package/dist/builtin-extensions/pi-subagents/src/slash/delegation-adapters.js.map +1 -1
  167. package/dist/builtin-extensions/pi-subagents/src/slash/prompt-workflows.d.ts +7 -0
  168. package/dist/builtin-extensions/pi-subagents/src/slash/prompt-workflows.d.ts.map +1 -1
  169. package/dist/builtin-extensions/pi-subagents/src/slash/prompt-workflows.js +11 -7
  170. package/dist/builtin-extensions/pi-subagents/src/slash/prompt-workflows.js.map +1 -1
  171. package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.d.ts +6 -0
  172. package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.d.ts.map +1 -1
  173. package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.js +46 -29
  174. package/dist/builtin-extensions/pi-subagents/src/slash/slash-commands.js.map +1 -1
  175. package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts +47 -4
  176. package/dist/builtin-extensions/pi-subagents/src/tui/render.d.ts.map +1 -1
  177. package/dist/builtin-extensions/pi-subagents/src/tui/render.js +428 -431
  178. package/dist/builtin-extensions/pi-subagents/src/tui/render.js.map +1 -1
  179. package/dist/builtin-extensions/pi-subagents/src/watchdog/register-main.d.ts.map +1 -1
  180. package/dist/builtin-extensions/pi-subagents/src/watchdog/register-main.js +1 -1
  181. package/dist/builtin-extensions/pi-subagents/src/watchdog/register-main.js.map +1 -1
  182. package/dist/builtin-extensions/pi-subagents/src/watchdog/tool-actions.d.ts +2 -13
  183. package/dist/builtin-extensions/pi-subagents/src/watchdog/tool-actions.d.ts.map +1 -1
  184. package/dist/builtin-extensions/pi-subagents/src/watchdog/tool-actions.js +5 -91
  185. package/dist/builtin-extensions/pi-subagents/src/watchdog/tool-actions.js.map +1 -1
  186. package/dist/builtin-extensions/pi-web-access/index.d.ts.map +1 -1
  187. package/dist/builtin-extensions/pi-web-access/index.js +103 -102
  188. package/dist/builtin-extensions/pi-web-access/index.js.map +1 -1
  189. package/dist/core/agent-session-services.d.ts.map +1 -1
  190. package/dist/core/agent-session-services.js +1 -1
  191. package/dist/core/agent-session-services.js.map +1 -1
  192. package/dist/core/computer-use/adapter.d.ts +23 -0
  193. package/dist/core/computer-use/adapter.d.ts.map +1 -0
  194. package/dist/core/computer-use/adapter.js +116 -0
  195. package/dist/core/computer-use/adapter.js.map +1 -0
  196. package/dist/core/computer-use/image.d.ts +26 -0
  197. package/dist/core/computer-use/image.d.ts.map +1 -0
  198. package/dist/core/computer-use/image.js +64 -0
  199. package/dist/core/computer-use/image.js.map +1 -0
  200. package/dist/core/computer-use/lease.d.ts +18 -0
  201. package/dist/core/computer-use/lease.d.ts.map +1 -0
  202. package/dist/core/computer-use/lease.js +129 -0
  203. package/dist/core/computer-use/lease.js.map +1 -0
  204. package/dist/core/computer-use/macos-runtime.d.ts +14 -0
  205. package/dist/core/computer-use/macos-runtime.d.ts.map +1 -0
  206. package/dist/core/computer-use/macos-runtime.js +148 -0
  207. package/dist/core/computer-use/macos-runtime.js.map +1 -0
  208. package/dist/core/computer-use/policy.d.ts +19 -0
  209. package/dist/core/computer-use/policy.d.ts.map +1 -0
  210. package/dist/core/computer-use/policy.js +62 -0
  211. package/dist/core/computer-use/policy.js.map +1 -0
  212. package/dist/core/computer-use/release.generated.d.ts +31 -0
  213. package/dist/core/computer-use/release.generated.d.ts.map +1 -0
  214. package/dist/core/computer-use/release.generated.js +36 -0
  215. package/dist/core/computer-use/release.generated.js.map +1 -0
  216. package/dist/core/computer-use/runtime.d.ts +13 -0
  217. package/dist/core/computer-use/runtime.d.ts.map +1 -0
  218. package/dist/core/computer-use/runtime.js +158 -0
  219. package/dist/core/computer-use/runtime.js.map +1 -0
  220. package/dist/core/computer-use/schemas.d.ts +91 -0
  221. package/dist/core/computer-use/schemas.d.ts.map +1 -0
  222. package/dist/core/computer-use/schemas.js +71 -0
  223. package/dist/core/computer-use/schemas.js.map +1 -0
  224. package/dist/core/computer-use/windows-desktop.d.ts +3 -0
  225. package/dist/core/computer-use/windows-desktop.d.ts.map +1 -0
  226. package/dist/core/computer-use/windows-desktop.js +48 -0
  227. package/dist/core/computer-use/windows-desktop.js.map +1 -0
  228. package/dist/core/computer-use/workflow.d.ts +32 -0
  229. package/dist/core/computer-use/workflow.d.ts.map +1 -0
  230. package/dist/core/computer-use/workflow.js +341 -0
  231. package/dist/core/computer-use/workflow.js.map +1 -0
  232. package/dist/core/customize.d.ts +2 -0
  233. package/dist/core/customize.d.ts.map +1 -1
  234. package/dist/core/customize.js +3 -0
  235. package/dist/core/customize.js.map +1 -1
  236. package/dist/core/keybindings.d.ts +2 -2
  237. package/dist/core/keybindings.d.ts.map +1 -1
  238. package/dist/core/keybindings.js +2 -2
  239. package/dist/core/keybindings.js.map +1 -1
  240. package/dist/core/model-runtime.d.ts +0 -3
  241. package/dist/core/model-runtime.d.ts.map +1 -1
  242. package/dist/core/model-runtime.js +1 -10
  243. package/dist/core/model-runtime.js.map +1 -1
  244. package/dist/core/package-manager.d.ts.map +1 -1
  245. package/dist/core/package-manager.js +1 -1
  246. package/dist/core/package-manager.js.map +1 -1
  247. package/dist/core/permissions.d.ts +2 -1
  248. package/dist/core/permissions.d.ts.map +1 -1
  249. package/dist/core/permissions.js +31 -11
  250. package/dist/core/permissions.js.map +1 -1
  251. package/dist/core/plan-mode.d.ts.map +1 -1
  252. package/dist/core/plan-mode.js +9 -5
  253. package/dist/core/plan-mode.js.map +1 -1
  254. package/dist/core/rollback.d.ts.map +1 -1
  255. package/dist/core/rollback.js +13 -90
  256. package/dist/core/rollback.js.map +1 -1
  257. package/dist/core/runtime-bridges.d.ts.map +1 -1
  258. package/dist/core/runtime-bridges.js +0 -2
  259. package/dist/core/runtime-bridges.js.map +1 -1
  260. package/dist/core/session-manager.d.ts +0 -1
  261. package/dist/core/session-manager.d.ts.map +1 -1
  262. package/dist/core/session-manager.js +21 -79
  263. package/dist/core/session-manager.js.map +1 -1
  264. package/dist/core/settings-manager.d.ts +10 -0
  265. package/dist/core/settings-manager.d.ts.map +1 -1
  266. package/dist/core/settings-manager.js +30 -0
  267. package/dist/core/settings-manager.js.map +1 -1
  268. package/dist/core/subagent-cancellation.d.ts +21 -0
  269. package/dist/core/subagent-cancellation.d.ts.map +1 -0
  270. package/dist/core/subagent-cancellation.js +53 -0
  271. package/dist/core/subagent-cancellation.js.map +1 -0
  272. package/dist/core/subagent-spinner-setting.d.ts +6 -0
  273. package/dist/core/subagent-spinner-setting.d.ts.map +1 -0
  274. package/dist/core/subagent-spinner-setting.js +12 -0
  275. package/dist/core/subagent-spinner-setting.js.map +1 -0
  276. package/dist/core/subagent-spinner.d.ts +4 -0
  277. package/dist/core/subagent-spinner.d.ts.map +1 -0
  278. package/dist/core/subagent-spinner.js +6 -0
  279. package/dist/core/subagent-spinner.js.map +1 -0
  280. package/dist/dev-cli.js +0 -0
  281. package/dist/gateway/agent-bridge.d.ts +6 -1
  282. package/dist/gateway/agent-bridge.d.ts.map +1 -1
  283. package/dist/gateway/agent-bridge.js +23 -6
  284. package/dist/gateway/agent-bridge.js.map +1 -1
  285. package/dist/gateway/cron.d.ts +1 -1
  286. package/dist/gateway/cron.d.ts.map +1 -1
  287. package/dist/gateway/cron.js +23 -7
  288. package/dist/gateway/cron.js.map +1 -1
  289. package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
  290. package/dist/modes/interactive/components/assistant-message.js +12 -18
  291. package/dist/modes/interactive/components/assistant-message.js.map +1 -1
  292. package/dist/modes/interactive/components/footer.d.ts +4 -2
  293. package/dist/modes/interactive/components/footer.d.ts.map +1 -1
  294. package/dist/modes/interactive/components/footer.js +23 -32
  295. package/dist/modes/interactive/components/footer.js.map +1 -1
  296. package/dist/modes/interactive/components/processes-selector.d.ts +2 -3
  297. package/dist/modes/interactive/components/processes-selector.d.ts.map +1 -1
  298. package/dist/modes/interactive/components/processes-selector.js +5 -10
  299. package/dist/modes/interactive/components/processes-selector.js.map +1 -1
  300. package/dist/modes/interactive/components/settings-selector.d.ts +8 -0
  301. package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
  302. package/dist/modes/interactive/components/settings-selector.js +93 -1
  303. package/dist/modes/interactive/components/settings-selector.js.map +1 -1
  304. package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
  305. package/dist/modes/interactive/components/tool-execution.js +12 -0
  306. package/dist/modes/interactive/components/tool-execution.js.map +1 -1
  307. package/dist/modes/interactive/extension-widget-order.d.ts +8 -0
  308. package/dist/modes/interactive/extension-widget-order.d.ts.map +1 -0
  309. package/dist/modes/interactive/extension-widget-order.js +37 -0
  310. package/dist/modes/interactive/extension-widget-order.js.map +1 -0
  311. package/dist/modes/interactive/interactive-mode.d.ts +1 -0
  312. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  313. package/dist/modes/interactive/interactive-mode.js +58 -26
  314. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  315. package/dist/modes/interactive/thinking-level-slash.d.ts +4 -0
  316. package/dist/modes/interactive/thinking-level-slash.d.ts.map +1 -0
  317. package/dist/modes/interactive/thinking-level-slash.js +23 -0
  318. package/dist/modes/interactive/thinking-level-slash.js.map +1 -0
  319. package/dist/node-runtime/adapter-AZMY335J.js +279 -0
  320. package/dist/node-runtime/{agent-session-services-IFJMSX7Z.js → agent-session-services-QANFGM2V.js} +15 -11
  321. package/dist/node-runtime/{builtin-extensions-LYZ3BFWQ.js → builtin-extensions-SRCYQPZ6.js} +5 -3
  322. package/dist/node-runtime/chunk-2IDTZAG5.js +1415 -0
  323. package/dist/node-runtime/chunk-3ONQTOMR.js +68 -0
  324. package/dist/node-runtime/{chunk-TQNSPERU.js → chunk-5SQDLSZJ.js} +1 -1
  325. package/dist/node-runtime/chunk-5ZH3ZFIZ.js +308 -0
  326. package/dist/node-runtime/{chunk-PBC2Y6GS.js → chunk-6UB6NKA3.js} +29 -72
  327. package/dist/node-runtime/{chunk-A2KQXUJD.js → chunk-7AFOFSDY.js} +1 -1
  328. package/dist/node-runtime/chunk-A3KMVBZV.js +60 -0
  329. package/dist/node-runtime/{chunk-N77MY65L.js → chunk-BJ6H7DPI.js} +25 -25
  330. package/dist/node-runtime/{chunk-PGAJ5MO5.js → chunk-BYQ2MOFI.js} +6 -6
  331. package/dist/node-runtime/{chunk-QH42CDX3.js → chunk-CZUBYPFP.js} +234 -124
  332. package/dist/node-runtime/{chunk-LZAW4ZX3.js → chunk-D466UAID.js} +34 -13
  333. package/dist/node-runtime/{chunk-ZKMFUD3Q.js → chunk-GT5F3OKM.js} +3 -3
  334. package/dist/node-runtime/chunk-H2BI7G7T.js +73 -0
  335. package/dist/node-runtime/{chunk-5P7PZMRU.js → chunk-HRS4HMDX.js} +1 -1
  336. package/dist/node-runtime/{chunk-IPA627GP.js → chunk-HXJS2PJM.js} +4 -4
  337. package/dist/node-runtime/chunk-JZHEUQRL.js +180 -0
  338. package/dist/node-runtime/chunk-LISUTZS3.js +19 -0
  339. package/dist/node-runtime/chunk-LOYUC2ID.js +2185 -0
  340. package/dist/node-runtime/{chunk-2QKLKMKC.js → chunk-LTXUQJI4.js} +1 -1
  341. package/dist/node-runtime/{chunk-YF63P5ZT.js → chunk-LTYWTR3V.js} +1 -426
  342. package/dist/node-runtime/{chunk-MKKH27PH.js → chunk-LWJXTA6Z.js} +274 -2416
  343. package/dist/node-runtime/chunk-MW2XJZIK.js +108 -0
  344. package/dist/node-runtime/{chunk-CDFZEWPU.js → chunk-N3PNL74S.js} +537 -262
  345. package/dist/node-runtime/{chunk-4TLO4PO2.js → chunk-U6C7VTR5.js} +7 -1401
  346. package/dist/node-runtime/chunk-URD2SLIT.js +1019 -0
  347. package/dist/node-runtime/{chunk-HQCKFM2O.js → chunk-VGYZ3APQ.js} +3 -0
  348. package/dist/node-runtime/{chunk-AJX357CL.js → chunk-VQ4UBWSA.js} +30 -1013
  349. package/dist/node-runtime/{chunk-F4VQFJI2.js → chunk-VTGEKB7R.js} +2 -2
  350. package/dist/node-runtime/{chunk-AD6VXAO7.js → chunk-VTPM5V35.js} +5 -100
  351. package/dist/node-runtime/chunk-W3SILANP.js +24 -0
  352. package/dist/node-runtime/{chunk-WOVTOV5P.js → chunk-XAUQOKYK.js} +421 -63
  353. package/dist/node-runtime/{chunk-ECD5L7YI.js → chunk-XSRCAQK2.js} +390 -16
  354. package/dist/node-runtime/{chunk-PCGNAY2O.js → chunk-ZOIIMEN6.js} +54 -433
  355. package/dist/node-runtime/{chunk-EDBJNRSM.js → chunk-ZVSORYRM.js} +1 -1
  356. package/dist/node-runtime/cli-runtime.js +1 -1
  357. package/dist/node-runtime/{command-L3LAHDIH.js → command-ZURZJDXF.js} +1 -1
  358. package/dist/node-runtime/{commands-RL5YBW5I.js → commands-BZGSLIP7.js} +4 -2
  359. package/dist/node-runtime/{customize-XEXL2DGQ.js → customize-LF5VST47.js} +1 -1
  360. package/dist/node-runtime/{direct-tool-executor-JVDXTO7A.js → direct-tool-executor-BSZDHIYR.js} +7 -4
  361. package/dist/node-runtime/{export-html-KR26FOUZ.js → export-html-E4DT6ZJQ.js} +1 -1
  362. package/dist/node-runtime/{gateway-X2TI5X7F.js → gateway-FWHRIBK5.js} +24 -369
  363. package/dist/node-runtime/index.js +49 -42
  364. package/dist/node-runtime/{init-NJV2T55N.js → init-DVJUAOUO.js} +4 -2
  365. package/dist/node-runtime/{interactive-mode-KOM35YF2.js → interactive-mode-BBASNWHN.js} +23 -17
  366. package/dist/node-runtime/{interactive-view-U6OILKF3.js → interactive-view-N6F4KUIT.js} +3 -5
  367. package/dist/node-runtime/lunr-computer-use-TJNDAMWM.js +135 -0
  368. package/dist/node-runtime/{lunr-cron-YJ5UHYRD.js → lunr-cron-J64I72C6.js} +7 -1
  369. package/dist/node-runtime/main.js +25 -20
  370. package/dist/node-runtime/{mcp-auth-flow-QIXHW6QN.js → mcp-auth-flow-YL6RWPYG.js} +2 -1
  371. package/dist/node-runtime/{package-manager-cli-TZZHJCVI.js → package-manager-cli-VMYX4Y2S.js} +10 -7
  372. package/dist/node-runtime/{pi-intercom-EEMBGQID.js → pi-intercom-NV2LW6X7.js} +108 -87
  373. package/dist/node-runtime/{pi-mcp-adapter-QFB37AVN.js → pi-mcp-adapter-JLB5YL2F.js} +31 -25
  374. package/dist/node-runtime/{pi-subagents-7XJ4H53P.js → pi-subagents-WEHV3W7H.js} +1321 -631
  375. package/dist/node-runtime/{pi-web-access-DPGAVKOA.js → pi-web-access-FN5YC5T6.js} +67 -64
  376. package/dist/node-runtime/{proxy-modes-HEEFK4KC.js → proxy-modes-OR7ISBXK.js} +7 -4
  377. package/dist/node-runtime/rpc-entry.js +25 -20
  378. package/dist/node-runtime/runtime-3SB5ATHQ.js +21 -0
  379. package/dist/node-runtime/{runtime-bridges-PPHNBFWL.js → runtime-bridges-2VQTLPOZ.js} +3 -5
  380. package/dist/node-runtime/{session-manager-MQNBYACL.js → session-manager-QEMZBMTM.js} +3 -5
  381. package/dist/node-runtime/{session-selector-5AZLJS6U.js → session-selector-URVJLOTK.js} +2 -2
  382. package/dist/node-runtime/{settings-manager-5LF2VQWC.js → settings-manager-3CCU326G.js} +4 -1
  383. package/dist/node-runtime/{src-Y7JSCK64.js → src-BPQFJR76.js} +27 -7
  384. package/dist/node-runtime/{subagent-executor-5RNDEPIJ.js → subagent-executor-CXKXQDHH.js} +189 -284
  385. package/dist/node-runtime/{update-cli-A253SZ7P.js → update-cli-NM7B4CKL.js} +4 -1
  386. package/dist/node-runtime/workflow-C26QCUTW.js +468 -0
  387. package/dist/rpc.d.ts +3 -0
  388. package/dist/rpc.d.ts.map +1 -0
  389. package/dist/rpc.js +18 -0
  390. package/dist/rpc.js.map +1 -0
  391. package/dist/startup/interactive-view.d.ts.map +1 -1
  392. package/dist/startup/interactive-view.js +1 -2
  393. package/dist/startup/interactive-view.js.map +1 -1
  394. package/docs/computer-use.md +242 -0
  395. package/docs/development.md +0 -32
  396. package/docs/features.md +24 -6
  397. package/docs/interactive-startup.md +10 -3
  398. package/docs/keybindings.md +5 -3
  399. package/docs/settings.md +3 -2
  400. package/docs/terminal-setup.md +1 -1
  401. package/docs/usage.md +1 -1
  402. package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  403. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  404. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  405. package/examples/extensions/gondolin/package-lock.json +2 -2
  406. package/examples/extensions/gondolin/package.json +1 -1
  407. package/examples/extensions/hidden-thinking-label.ts +1 -1
  408. package/examples/extensions/sandbox/package-lock.json +2 -2
  409. package/examples/extensions/sandbox/package.json +1 -1
  410. package/examples/extensions/with-deps/package-lock.json +2 -2
  411. package/examples/extensions/with-deps/package.json +1 -1
  412. package/install-lock/package-lock.json +3827 -0
  413. package/install-lock/package.json +18 -0
  414. package/native/computer-use/LICENSE.md +21 -0
  415. package/npm-shrinkwrap.json +3808 -0
  416. package/package.json +16 -10
  417. package/dist/builtin-extensions/lunr-settings-tools.d.ts +0 -4
  418. package/dist/builtin-extensions/lunr-settings-tools.d.ts.map +0 -1
  419. package/dist/builtin-extensions/lunr-settings-tools.js +0 -120
  420. package/dist/builtin-extensions/lunr-settings-tools.js.map +0 -1
  421. package/dist/core/settings-tools-bridge.d.ts +0 -35
  422. package/dist/core/settings-tools-bridge.d.ts.map +0 -1
  423. package/dist/core/settings-tools-bridge.js +0 -56
  424. package/dist/core/settings-tools-bridge.js.map +0 -1
  425. package/dist/node-runtime/chunk-AHSTJBIB.js +0 -64
  426. package/dist/startup/interactive-shell.d.ts +0 -55
  427. package/dist/startup/interactive-shell.d.ts.map +0 -1
  428. package/dist/startup/interactive-shell.js +0 -264
  429. package/dist/startup/interactive-shell.js.map +0 -1
  430. package/dist/node-runtime/{chunk-YSKSB3BJ.js → chunk-CH6OL6P2.js} +2 -2
@@ -2,29 +2,25 @@ import { createRequire as __lunrRequire } from "node:module"; const require = __
2
2
  import {
3
3
  getAgentPath
4
4
  } from "./chunk-4HXHDDCF.js";
5
+ import {
6
+ JSONRPCMessageSchema,
7
+ LATEST_PROTOCOL_VERSION,
8
+ isInitializedNotification,
9
+ isJSONRPCRequest,
10
+ isJSONRPCResultResponse
11
+ } from "./chunk-2IDTZAG5.js";
5
12
  import {
6
13
  NEVER,
7
14
  ZodIssueCode,
8
- _enum,
9
- _null,
10
15
  any,
11
16
  array,
12
17
  boolean,
13
18
  coerce_exports,
14
- custom,
15
- discriminatedUnion,
16
- intersection,
17
- iso_exports,
18
19
  literal,
19
20
  looseObject,
20
21
  number,
21
22
  object,
22
- optional,
23
- preprocess,
24
- record,
25
23
  string,
26
- union,
27
- unknown,
28
24
  url
29
25
  } from "./chunk-BI3DHYCN.js";
30
26
  import {
@@ -130,1346 +126,6 @@ async function pkceChallenge(length) {
130
126
  };
131
127
  }
132
128
 
133
- // node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
134
- var LATEST_PROTOCOL_VERSION = "2025-11-25";
135
- var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"], RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task", JSONRPC_VERSION = "2.0", AssertObjectSchema = custom((v) => v !== null && (typeof v == "object" || typeof v == "function")), ProgressTokenSchema = union([string(), number().int()]), CursorSchema = string(), TaskCreationParamsSchema = looseObject({
136
- /**
137
- * Requested duration in milliseconds to retain task from creation.
138
- */
139
- ttl: number().optional(),
140
- /**
141
- * Time in milliseconds to wait between task status requests.
142
- */
143
- pollInterval: number().optional()
144
- }), TaskMetadataSchema = object({
145
- ttl: number().optional()
146
- }), RelatedTaskMetadataSchema = object({
147
- taskId: string()
148
- }), RequestMetaSchema = looseObject({
149
- /**
150
- * If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
151
- */
152
- progressToken: ProgressTokenSchema.optional(),
153
- /**
154
- * If specified, this request is related to the provided task.
155
- */
156
- [RELATED_TASK_META_KEY]: RelatedTaskMetadataSchema.optional()
157
- }), BaseRequestParamsSchema = object({
158
- /**
159
- * See [General fields: `_meta`](/specification/draft/basic/index#meta) for notes on `_meta` usage.
160
- */
161
- _meta: RequestMetaSchema.optional()
162
- }), TaskAugmentedRequestParamsSchema = BaseRequestParamsSchema.extend({
163
- /**
164
- * If specified, the caller is requesting task-augmented execution for this request.
165
- * The request will return a CreateTaskResult immediately, and the actual result can be
166
- * retrieved later via tasks/result.
167
- *
168
- * Task augmentation is subject to capability negotiation - receivers MUST declare support
169
- * for task augmentation of specific request types in their capabilities.
170
- */
171
- task: TaskMetadataSchema.optional()
172
- }), isTaskAugmentedRequestParams = (value) => TaskAugmentedRequestParamsSchema.safeParse(value).success, RequestSchema = object({
173
- method: string(),
174
- params: BaseRequestParamsSchema.loose().optional()
175
- }), NotificationsParamsSchema = object({
176
- /**
177
- * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
178
- * for notes on _meta usage.
179
- */
180
- _meta: RequestMetaSchema.optional()
181
- }), NotificationSchema = object({
182
- method: string(),
183
- params: NotificationsParamsSchema.loose().optional()
184
- }), ResultSchema = looseObject({
185
- /**
186
- * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
187
- * for notes on _meta usage.
188
- */
189
- _meta: RequestMetaSchema.optional()
190
- }), RequestIdSchema = union([string(), number().int()]), JSONRPCRequestSchema = object({
191
- jsonrpc: literal(JSONRPC_VERSION),
192
- id: RequestIdSchema,
193
- ...RequestSchema.shape
194
- }).strict(), isJSONRPCRequest = (value) => JSONRPCRequestSchema.safeParse(value).success, JSONRPCNotificationSchema = object({
195
- jsonrpc: literal(JSONRPC_VERSION),
196
- ...NotificationSchema.shape
197
- }).strict(), isJSONRPCNotification = (value) => JSONRPCNotificationSchema.safeParse(value).success, JSONRPCResultResponseSchema = object({
198
- jsonrpc: literal(JSONRPC_VERSION),
199
- id: RequestIdSchema,
200
- result: ResultSchema
201
- }).strict(), isJSONRPCResultResponse = (value) => JSONRPCResultResponseSchema.safeParse(value).success;
202
- var ErrorCode;
203
- (function(ErrorCode2) {
204
- ErrorCode2[ErrorCode2.ConnectionClosed = -32e3] = "ConnectionClosed", ErrorCode2[ErrorCode2.RequestTimeout = -32001] = "RequestTimeout", ErrorCode2[ErrorCode2.ParseError = -32700] = "ParseError", ErrorCode2[ErrorCode2.InvalidRequest = -32600] = "InvalidRequest", ErrorCode2[ErrorCode2.MethodNotFound = -32601] = "MethodNotFound", ErrorCode2[ErrorCode2.InvalidParams = -32602] = "InvalidParams", ErrorCode2[ErrorCode2.InternalError = -32603] = "InternalError", ErrorCode2[ErrorCode2.UrlElicitationRequired = -32042] = "UrlElicitationRequired";
205
- })(ErrorCode || (ErrorCode = {}));
206
- var JSONRPCErrorResponseSchema = object({
207
- jsonrpc: literal(JSONRPC_VERSION),
208
- id: RequestIdSchema.optional(),
209
- error: object({
210
- /**
211
- * The error type that occurred.
212
- */
213
- code: number().int(),
214
- /**
215
- * A short description of the error. The message SHOULD be limited to a concise single sentence.
216
- */
217
- message: string(),
218
- /**
219
- * Additional information about the error. The value of this member is defined by the sender (e.g. detailed error information, nested errors etc.).
220
- */
221
- data: unknown().optional()
222
- })
223
- }).strict();
224
- var isJSONRPCErrorResponse = (value) => JSONRPCErrorResponseSchema.safeParse(value).success;
225
- var JSONRPCMessageSchema = union([
226
- JSONRPCRequestSchema,
227
- JSONRPCNotificationSchema,
228
- JSONRPCResultResponseSchema,
229
- JSONRPCErrorResponseSchema
230
- ]), JSONRPCResponseSchema = union([JSONRPCResultResponseSchema, JSONRPCErrorResponseSchema]), EmptyResultSchema = ResultSchema.strict(), CancelledNotificationParamsSchema = NotificationsParamsSchema.extend({
231
- /**
232
- * The ID of the request to cancel.
233
- *
234
- * This MUST correspond to the ID of a request previously issued in the same direction.
235
- */
236
- requestId: RequestIdSchema.optional(),
237
- /**
238
- * An optional string describing the reason for the cancellation. This MAY be logged or presented to the user.
239
- */
240
- reason: string().optional()
241
- }), CancelledNotificationSchema = NotificationSchema.extend({
242
- method: literal("notifications/cancelled"),
243
- params: CancelledNotificationParamsSchema
244
- }), IconSchema = object({
245
- /**
246
- * URL or data URI for the icon.
247
- */
248
- src: string(),
249
- /**
250
- * Optional MIME type for the icon.
251
- */
252
- mimeType: string().optional(),
253
- /**
254
- * Optional array of strings that specify sizes at which the icon can be used.
255
- * Each string should be in WxH format (e.g., `"48x48"`, `"96x96"`) or `"any"` for scalable formats like SVG.
256
- *
257
- * If not provided, the client should assume that the icon can be used at any size.
258
- */
259
- sizes: array(string()).optional(),
260
- /**
261
- * Optional specifier for the theme this icon is designed for. `light` indicates
262
- * the icon is designed to be used with a light background, and `dark` indicates
263
- * the icon is designed to be used with a dark background.
264
- *
265
- * If not provided, the client should assume the icon can be used with any theme.
266
- */
267
- theme: _enum(["light", "dark"]).optional()
268
- }), IconsSchema = object({
269
- /**
270
- * Optional set of sized icons that the client can display in a user interface.
271
- *
272
- * Clients that support rendering icons MUST support at least the following MIME types:
273
- * - `image/png` - PNG images (safe, universal compatibility)
274
- * - `image/jpeg` (and `image/jpg`) - JPEG images (safe, universal compatibility)
275
- *
276
- * Clients that support rendering icons SHOULD also support:
277
- * - `image/svg+xml` - SVG images (scalable but requires security precautions)
278
- * - `image/webp` - WebP images (modern, efficient format)
279
- */
280
- icons: array(IconSchema).optional()
281
- }), BaseMetadataSchema = object({
282
- /** Intended for programmatic or logical use, but used as a display name in past specs or fallback */
283
- name: string(),
284
- /**
285
- * Intended for UI and end-user contexts — optimized to be human-readable and easily understood,
286
- * even by those unfamiliar with domain-specific terminology.
287
- *
288
- * If not provided, the name should be used for display (except for Tool,
289
- * where `annotations.title` should be given precedence over using `name`,
290
- * if present).
291
- */
292
- title: string().optional()
293
- }), ImplementationSchema = BaseMetadataSchema.extend({
294
- ...BaseMetadataSchema.shape,
295
- ...IconsSchema.shape,
296
- version: string(),
297
- /**
298
- * An optional URL of the website for this implementation.
299
- */
300
- websiteUrl: string().optional(),
301
- /**
302
- * An optional human-readable description of what this implementation does.
303
- *
304
- * This can be used by clients or servers to provide context about their purpose
305
- * and capabilities. For example, a server might describe the types of resources
306
- * or tools it provides, while a client might describe its intended use case.
307
- */
308
- description: string().optional()
309
- }), FormElicitationCapabilitySchema = intersection(object({
310
- applyDefaults: boolean().optional()
311
- }), record(string(), unknown())), ElicitationCapabilitySchema = preprocess((value) => value && typeof value == "object" && !Array.isArray(value) && Object.keys(value).length === 0 ? { form: {} } : value, intersection(object({
312
- form: FormElicitationCapabilitySchema.optional(),
313
- url: AssertObjectSchema.optional()
314
- }), record(string(), unknown()).optional())), ClientTasksCapabilitySchema = looseObject({
315
- /**
316
- * Present if the client supports listing tasks.
317
- */
318
- list: AssertObjectSchema.optional(),
319
- /**
320
- * Present if the client supports cancelling tasks.
321
- */
322
- cancel: AssertObjectSchema.optional(),
323
- /**
324
- * Capabilities for task creation on specific request types.
325
- */
326
- requests: looseObject({
327
- /**
328
- * Task support for sampling requests.
329
- */
330
- sampling: looseObject({
331
- createMessage: AssertObjectSchema.optional()
332
- }).optional(),
333
- /**
334
- * Task support for elicitation requests.
335
- */
336
- elicitation: looseObject({
337
- create: AssertObjectSchema.optional()
338
- }).optional()
339
- }).optional()
340
- }), ServerTasksCapabilitySchema = looseObject({
341
- /**
342
- * Present if the server supports listing tasks.
343
- */
344
- list: AssertObjectSchema.optional(),
345
- /**
346
- * Present if the server supports cancelling tasks.
347
- */
348
- cancel: AssertObjectSchema.optional(),
349
- /**
350
- * Capabilities for task creation on specific request types.
351
- */
352
- requests: looseObject({
353
- /**
354
- * Task support for tool requests.
355
- */
356
- tools: looseObject({
357
- call: AssertObjectSchema.optional()
358
- }).optional()
359
- }).optional()
360
- }), ClientCapabilitiesSchema = object({
361
- /**
362
- * Experimental, non-standard capabilities that the client supports.
363
- */
364
- experimental: record(string(), AssertObjectSchema).optional(),
365
- /**
366
- * Present if the client supports sampling from an LLM.
367
- */
368
- sampling: object({
369
- /**
370
- * Present if the client supports context inclusion via includeContext parameter.
371
- * If not declared, servers SHOULD only use `includeContext: "none"` (or omit it).
372
- */
373
- context: AssertObjectSchema.optional(),
374
- /**
375
- * Present if the client supports tool use via tools and toolChoice parameters.
376
- */
377
- tools: AssertObjectSchema.optional()
378
- }).optional(),
379
- /**
380
- * Present if the client supports eliciting user input.
381
- */
382
- elicitation: ElicitationCapabilitySchema.optional(),
383
- /**
384
- * Present if the client supports listing roots.
385
- */
386
- roots: object({
387
- /**
388
- * Whether the client supports issuing notifications for changes to the roots list.
389
- */
390
- listChanged: boolean().optional()
391
- }).optional(),
392
- /**
393
- * Present if the client supports task creation.
394
- */
395
- tasks: ClientTasksCapabilitySchema.optional(),
396
- /**
397
- * Extensions that the client supports. Keys are extension identifiers (vendor-prefix/extension-name).
398
- */
399
- extensions: record(string(), AssertObjectSchema).optional()
400
- }), InitializeRequestParamsSchema = BaseRequestParamsSchema.extend({
401
- /**
402
- * The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well.
403
- */
404
- protocolVersion: string(),
405
- capabilities: ClientCapabilitiesSchema,
406
- clientInfo: ImplementationSchema
407
- }), InitializeRequestSchema = RequestSchema.extend({
408
- method: literal("initialize"),
409
- params: InitializeRequestParamsSchema
410
- });
411
- var ServerCapabilitiesSchema = object({
412
- /**
413
- * Experimental, non-standard capabilities that the server supports.
414
- */
415
- experimental: record(string(), AssertObjectSchema).optional(),
416
- /**
417
- * Present if the server supports sending log messages to the client.
418
- */
419
- logging: AssertObjectSchema.optional(),
420
- /**
421
- * Present if the server supports sending completions to the client.
422
- */
423
- completions: AssertObjectSchema.optional(),
424
- /**
425
- * Present if the server offers any prompt templates.
426
- */
427
- prompts: object({
428
- /**
429
- * Whether this server supports issuing notifications for changes to the prompt list.
430
- */
431
- listChanged: boolean().optional()
432
- }).optional(),
433
- /**
434
- * Present if the server offers any resources to read.
435
- */
436
- resources: object({
437
- /**
438
- * Whether this server supports clients subscribing to resource updates.
439
- */
440
- subscribe: boolean().optional(),
441
- /**
442
- * Whether this server supports issuing notifications for changes to the resource list.
443
- */
444
- listChanged: boolean().optional()
445
- }).optional(),
446
- /**
447
- * Present if the server offers any tools to call.
448
- */
449
- tools: object({
450
- /**
451
- * Whether this server supports issuing notifications for changes to the tool list.
452
- */
453
- listChanged: boolean().optional()
454
- }).optional(),
455
- /**
456
- * Present if the server supports task creation.
457
- */
458
- tasks: ServerTasksCapabilitySchema.optional(),
459
- /**
460
- * Extensions that the server supports. Keys are extension identifiers (vendor-prefix/extension-name).
461
- */
462
- extensions: record(string(), AssertObjectSchema).optional()
463
- }), InitializeResultSchema = ResultSchema.extend({
464
- /**
465
- * The version of the Model Context Protocol that the server wants to use. This may not match the version that the client requested. If the client cannot support this version, it MUST disconnect.
466
- */
467
- protocolVersion: string(),
468
- capabilities: ServerCapabilitiesSchema,
469
- serverInfo: ImplementationSchema,
470
- /**
471
- * Instructions describing how to use the server and its features.
472
- *
473
- * This can be used by clients to improve the LLM's understanding of available tools, resources, etc. It can be thought of like a "hint" to the model. For example, this information MAY be added to the system prompt.
474
- */
475
- instructions: string().optional()
476
- }), InitializedNotificationSchema = NotificationSchema.extend({
477
- method: literal("notifications/initialized"),
478
- params: NotificationsParamsSchema.optional()
479
- }), isInitializedNotification = (value) => InitializedNotificationSchema.safeParse(value).success, PingRequestSchema = RequestSchema.extend({
480
- method: literal("ping"),
481
- params: BaseRequestParamsSchema.optional()
482
- }), ProgressSchema = object({
483
- /**
484
- * The progress thus far. This should increase every time progress is made, even if the total is unknown.
485
- */
486
- progress: number(),
487
- /**
488
- * Total number of items to process (or total progress required), if known.
489
- */
490
- total: optional(number()),
491
- /**
492
- * An optional message describing the current progress.
493
- */
494
- message: optional(string())
495
- }), ProgressNotificationParamsSchema = object({
496
- ...NotificationsParamsSchema.shape,
497
- ...ProgressSchema.shape,
498
- /**
499
- * The progress token which was given in the initial request, used to associate this notification with the request that is proceeding.
500
- */
501
- progressToken: ProgressTokenSchema
502
- }), ProgressNotificationSchema = NotificationSchema.extend({
503
- method: literal("notifications/progress"),
504
- params: ProgressNotificationParamsSchema
505
- }), PaginatedRequestParamsSchema = BaseRequestParamsSchema.extend({
506
- /**
507
- * An opaque token representing the current pagination position.
508
- * If provided, the server should return results starting after this cursor.
509
- */
510
- cursor: CursorSchema.optional()
511
- }), PaginatedRequestSchema = RequestSchema.extend({
512
- params: PaginatedRequestParamsSchema.optional()
513
- }), PaginatedResultSchema = ResultSchema.extend({
514
- /**
515
- * An opaque token representing the pagination position after the last returned result.
516
- * If present, there may be more results available.
517
- */
518
- nextCursor: CursorSchema.optional()
519
- }), TaskStatusSchema = _enum(["working", "input_required", "completed", "failed", "cancelled"]), TaskSchema = object({
520
- taskId: string(),
521
- status: TaskStatusSchema,
522
- /**
523
- * Time in milliseconds to keep task results available after completion.
524
- * If null, the task has unlimited lifetime until manually cleaned up.
525
- */
526
- ttl: union([number(), _null()]),
527
- /**
528
- * ISO 8601 timestamp when the task was created.
529
- */
530
- createdAt: string(),
531
- /**
532
- * ISO 8601 timestamp when the task was last updated.
533
- */
534
- lastUpdatedAt: string(),
535
- pollInterval: optional(number()),
536
- /**
537
- * Optional diagnostic message for failed tasks or other status information.
538
- */
539
- statusMessage: optional(string())
540
- }), CreateTaskResultSchema = ResultSchema.extend({
541
- task: TaskSchema
542
- }), TaskStatusNotificationParamsSchema = NotificationsParamsSchema.merge(TaskSchema), TaskStatusNotificationSchema = NotificationSchema.extend({
543
- method: literal("notifications/tasks/status"),
544
- params: TaskStatusNotificationParamsSchema
545
- }), GetTaskRequestSchema = RequestSchema.extend({
546
- method: literal("tasks/get"),
547
- params: BaseRequestParamsSchema.extend({
548
- taskId: string()
549
- })
550
- }), GetTaskResultSchema = ResultSchema.merge(TaskSchema), GetTaskPayloadRequestSchema = RequestSchema.extend({
551
- method: literal("tasks/result"),
552
- params: BaseRequestParamsSchema.extend({
553
- taskId: string()
554
- })
555
- }), GetTaskPayloadResultSchema = ResultSchema.loose(), ListTasksRequestSchema = PaginatedRequestSchema.extend({
556
- method: literal("tasks/list")
557
- }), ListTasksResultSchema = PaginatedResultSchema.extend({
558
- tasks: array(TaskSchema)
559
- }), CancelTaskRequestSchema = RequestSchema.extend({
560
- method: literal("tasks/cancel"),
561
- params: BaseRequestParamsSchema.extend({
562
- taskId: string()
563
- })
564
- }), CancelTaskResultSchema = ResultSchema.merge(TaskSchema), ResourceContentsSchema = object({
565
- /**
566
- * The URI of this resource.
567
- */
568
- uri: string(),
569
- /**
570
- * The MIME type of this resource, if known.
571
- */
572
- mimeType: optional(string()),
573
- /**
574
- * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
575
- * for notes on _meta usage.
576
- */
577
- _meta: record(string(), unknown()).optional()
578
- }), TextResourceContentsSchema = ResourceContentsSchema.extend({
579
- /**
580
- * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
581
- */
582
- text: string()
583
- }), Base64Schema = string().refine((val) => {
584
- try {
585
- return atob(val), !0;
586
- } catch {
587
- return !1;
588
- }
589
- }, { message: "Invalid Base64 string" }), BlobResourceContentsSchema = ResourceContentsSchema.extend({
590
- /**
591
- * A base64-encoded string representing the binary data of the item.
592
- */
593
- blob: Base64Schema
594
- }), RoleSchema = _enum(["user", "assistant"]), AnnotationsSchema = object({
595
- /**
596
- * Intended audience(s) for the resource.
597
- */
598
- audience: array(RoleSchema).optional(),
599
- /**
600
- * Importance hint for the resource, from 0 (least) to 1 (most).
601
- */
602
- priority: number().min(0).max(1).optional(),
603
- /**
604
- * ISO 8601 timestamp for the most recent modification.
605
- */
606
- lastModified: iso_exports.datetime({ offset: !0 }).optional()
607
- }), ResourceSchema = object({
608
- ...BaseMetadataSchema.shape,
609
- ...IconsSchema.shape,
610
- /**
611
- * The URI of this resource.
612
- */
613
- uri: string(),
614
- /**
615
- * A description of what this resource represents.
616
- *
617
- * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
618
- */
619
- description: optional(string()),
620
- /**
621
- * The MIME type of this resource, if known.
622
- */
623
- mimeType: optional(string()),
624
- /**
625
- * The size of the raw resource content, in bytes (i.e., before base64 encoding or any tokenization), if known.
626
- *
627
- * This can be used by Hosts to display file sizes and estimate context window usage.
628
- */
629
- size: optional(number()),
630
- /**
631
- * Optional annotations for the client.
632
- */
633
- annotations: AnnotationsSchema.optional(),
634
- /**
635
- * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
636
- * for notes on _meta usage.
637
- */
638
- _meta: optional(looseObject({}))
639
- }), ResourceTemplateSchema = object({
640
- ...BaseMetadataSchema.shape,
641
- ...IconsSchema.shape,
642
- /**
643
- * A URI template (according to RFC 6570) that can be used to construct resource URIs.
644
- */
645
- uriTemplate: string(),
646
- /**
647
- * A description of what this template is for.
648
- *
649
- * This can be used by clients to improve the LLM's understanding of available resources. It can be thought of like a "hint" to the model.
650
- */
651
- description: optional(string()),
652
- /**
653
- * The MIME type for all resources that match this template. This should only be included if all resources matching this template have the same type.
654
- */
655
- mimeType: optional(string()),
656
- /**
657
- * Optional annotations for the client.
658
- */
659
- annotations: AnnotationsSchema.optional(),
660
- /**
661
- * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
662
- * for notes on _meta usage.
663
- */
664
- _meta: optional(looseObject({}))
665
- }), ListResourcesRequestSchema = PaginatedRequestSchema.extend({
666
- method: literal("resources/list")
667
- }), ListResourcesResultSchema = PaginatedResultSchema.extend({
668
- resources: array(ResourceSchema)
669
- }), ListResourceTemplatesRequestSchema = PaginatedRequestSchema.extend({
670
- method: literal("resources/templates/list")
671
- }), ListResourceTemplatesResultSchema = PaginatedResultSchema.extend({
672
- resourceTemplates: array(ResourceTemplateSchema)
673
- }), ResourceRequestParamsSchema = BaseRequestParamsSchema.extend({
674
- /**
675
- * The URI of the resource to read. The URI can use any protocol; it is up to the server how to interpret it.
676
- *
677
- * @format uri
678
- */
679
- uri: string()
680
- }), ReadResourceRequestParamsSchema = ResourceRequestParamsSchema, ReadResourceRequestSchema = RequestSchema.extend({
681
- method: literal("resources/read"),
682
- params: ReadResourceRequestParamsSchema
683
- }), ReadResourceResultSchema = ResultSchema.extend({
684
- contents: array(union([TextResourceContentsSchema, BlobResourceContentsSchema]))
685
- }), ResourceListChangedNotificationSchema = NotificationSchema.extend({
686
- method: literal("notifications/resources/list_changed"),
687
- params: NotificationsParamsSchema.optional()
688
- }), SubscribeRequestParamsSchema = ResourceRequestParamsSchema, SubscribeRequestSchema = RequestSchema.extend({
689
- method: literal("resources/subscribe"),
690
- params: SubscribeRequestParamsSchema
691
- }), UnsubscribeRequestParamsSchema = ResourceRequestParamsSchema, UnsubscribeRequestSchema = RequestSchema.extend({
692
- method: literal("resources/unsubscribe"),
693
- params: UnsubscribeRequestParamsSchema
694
- }), ResourceUpdatedNotificationParamsSchema = NotificationsParamsSchema.extend({
695
- /**
696
- * The URI of the resource that has been updated. This might be a sub-resource of the one that the client actually subscribed to.
697
- */
698
- uri: string()
699
- }), ResourceUpdatedNotificationSchema = NotificationSchema.extend({
700
- method: literal("notifications/resources/updated"),
701
- params: ResourceUpdatedNotificationParamsSchema
702
- }), PromptArgumentSchema = object({
703
- /**
704
- * The name of the argument.
705
- */
706
- name: string(),
707
- /**
708
- * A human-readable description of the argument.
709
- */
710
- description: optional(string()),
711
- /**
712
- * Whether this argument must be provided.
713
- */
714
- required: optional(boolean())
715
- }), PromptSchema = object({
716
- ...BaseMetadataSchema.shape,
717
- ...IconsSchema.shape,
718
- /**
719
- * An optional description of what this prompt provides
720
- */
721
- description: optional(string()),
722
- /**
723
- * A list of arguments to use for templating the prompt.
724
- */
725
- arguments: optional(array(PromptArgumentSchema)),
726
- /**
727
- * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
728
- * for notes on _meta usage.
729
- */
730
- _meta: optional(looseObject({}))
731
- }), ListPromptsRequestSchema = PaginatedRequestSchema.extend({
732
- method: literal("prompts/list")
733
- }), ListPromptsResultSchema = PaginatedResultSchema.extend({
734
- prompts: array(PromptSchema)
735
- }), GetPromptRequestParamsSchema = BaseRequestParamsSchema.extend({
736
- /**
737
- * The name of the prompt or prompt template.
738
- */
739
- name: string(),
740
- /**
741
- * Arguments to use for templating the prompt.
742
- */
743
- arguments: record(string(), string()).optional()
744
- }), GetPromptRequestSchema = RequestSchema.extend({
745
- method: literal("prompts/get"),
746
- params: GetPromptRequestParamsSchema
747
- }), TextContentSchema = object({
748
- type: literal("text"),
749
- /**
750
- * The text content of the message.
751
- */
752
- text: string(),
753
- /**
754
- * Optional annotations for the client.
755
- */
756
- annotations: AnnotationsSchema.optional(),
757
- /**
758
- * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
759
- * for notes on _meta usage.
760
- */
761
- _meta: record(string(), unknown()).optional()
762
- }), ImageContentSchema = object({
763
- type: literal("image"),
764
- /**
765
- * The base64-encoded image data.
766
- */
767
- data: Base64Schema,
768
- /**
769
- * The MIME type of the image. Different providers may support different image types.
770
- */
771
- mimeType: string(),
772
- /**
773
- * Optional annotations for the client.
774
- */
775
- annotations: AnnotationsSchema.optional(),
776
- /**
777
- * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
778
- * for notes on _meta usage.
779
- */
780
- _meta: record(string(), unknown()).optional()
781
- }), AudioContentSchema = object({
782
- type: literal("audio"),
783
- /**
784
- * The base64-encoded audio data.
785
- */
786
- data: Base64Schema,
787
- /**
788
- * The MIME type of the audio. Different providers may support different audio types.
789
- */
790
- mimeType: string(),
791
- /**
792
- * Optional annotations for the client.
793
- */
794
- annotations: AnnotationsSchema.optional(),
795
- /**
796
- * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
797
- * for notes on _meta usage.
798
- */
799
- _meta: record(string(), unknown()).optional()
800
- }), ToolUseContentSchema = object({
801
- type: literal("tool_use"),
802
- /**
803
- * The name of the tool to invoke.
804
- * Must match a tool name from the request's tools array.
805
- */
806
- name: string(),
807
- /**
808
- * Unique identifier for this tool call.
809
- * Used to correlate with ToolResultContent in subsequent messages.
810
- */
811
- id: string(),
812
- /**
813
- * Arguments to pass to the tool.
814
- * Must conform to the tool's inputSchema.
815
- */
816
- input: record(string(), unknown()),
817
- /**
818
- * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
819
- * for notes on _meta usage.
820
- */
821
- _meta: record(string(), unknown()).optional()
822
- }), EmbeddedResourceSchema = object({
823
- type: literal("resource"),
824
- resource: union([TextResourceContentsSchema, BlobResourceContentsSchema]),
825
- /**
826
- * Optional annotations for the client.
827
- */
828
- annotations: AnnotationsSchema.optional(),
829
- /**
830
- * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
831
- * for notes on _meta usage.
832
- */
833
- _meta: record(string(), unknown()).optional()
834
- }), ResourceLinkSchema = ResourceSchema.extend({
835
- type: literal("resource_link")
836
- }), ContentBlockSchema = union([
837
- TextContentSchema,
838
- ImageContentSchema,
839
- AudioContentSchema,
840
- ResourceLinkSchema,
841
- EmbeddedResourceSchema
842
- ]), PromptMessageSchema = object({
843
- role: RoleSchema,
844
- content: ContentBlockSchema
845
- }), GetPromptResultSchema = ResultSchema.extend({
846
- /**
847
- * An optional description for the prompt.
848
- */
849
- description: string().optional(),
850
- messages: array(PromptMessageSchema)
851
- }), PromptListChangedNotificationSchema = NotificationSchema.extend({
852
- method: literal("notifications/prompts/list_changed"),
853
- params: NotificationsParamsSchema.optional()
854
- }), ToolAnnotationsSchema = object({
855
- /**
856
- * A human-readable title for the tool.
857
- */
858
- title: string().optional(),
859
- /**
860
- * If true, the tool does not modify its environment.
861
- *
862
- * Default: false
863
- */
864
- readOnlyHint: boolean().optional(),
865
- /**
866
- * If true, the tool may perform destructive updates to its environment.
867
- * If false, the tool performs only additive updates.
868
- *
869
- * (This property is meaningful only when `readOnlyHint == false`)
870
- *
871
- * Default: true
872
- */
873
- destructiveHint: boolean().optional(),
874
- /**
875
- * If true, calling the tool repeatedly with the same arguments
876
- * will have no additional effect on the its environment.
877
- *
878
- * (This property is meaningful only when `readOnlyHint == false`)
879
- *
880
- * Default: false
881
- */
882
- idempotentHint: boolean().optional(),
883
- /**
884
- * If true, this tool may interact with an "open world" of external
885
- * entities. If false, the tool's domain of interaction is closed.
886
- * For example, the world of a web search tool is open, whereas that
887
- * of a memory tool is not.
888
- *
889
- * Default: true
890
- */
891
- openWorldHint: boolean().optional()
892
- }), ToolExecutionSchema = object({
893
- /**
894
- * Indicates the tool's preference for task-augmented execution.
895
- * - "required": Clients MUST invoke the tool as a task
896
- * - "optional": Clients MAY invoke the tool as a task or normal request
897
- * - "forbidden": Clients MUST NOT attempt to invoke the tool as a task
898
- *
899
- * If not present, defaults to "forbidden".
900
- */
901
- taskSupport: _enum(["required", "optional", "forbidden"]).optional()
902
- }), ToolSchema = object({
903
- ...BaseMetadataSchema.shape,
904
- ...IconsSchema.shape,
905
- /**
906
- * A human-readable description of the tool.
907
- */
908
- description: string().optional(),
909
- /**
910
- * A JSON Schema 2020-12 object defining the expected parameters for the tool.
911
- * Must have type: 'object' at the root level per MCP spec.
912
- */
913
- inputSchema: object({
914
- type: literal("object"),
915
- properties: record(string(), AssertObjectSchema).optional(),
916
- required: array(string()).optional()
917
- }).catchall(unknown()),
918
- /**
919
- * An optional JSON Schema 2020-12 object defining the structure of the tool's output
920
- * returned in the structuredContent field of a CallToolResult.
921
- * Must have type: 'object' at the root level per MCP spec.
922
- */
923
- outputSchema: object({
924
- type: literal("object"),
925
- properties: record(string(), AssertObjectSchema).optional(),
926
- required: array(string()).optional()
927
- }).catchall(unknown()).optional(),
928
- /**
929
- * Optional additional tool information.
930
- */
931
- annotations: ToolAnnotationsSchema.optional(),
932
- /**
933
- * Execution-related properties for this tool.
934
- */
935
- execution: ToolExecutionSchema.optional(),
936
- /**
937
- * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
938
- * for notes on _meta usage.
939
- */
940
- _meta: record(string(), unknown()).optional()
941
- }), ListToolsRequestSchema = PaginatedRequestSchema.extend({
942
- method: literal("tools/list")
943
- }), ListToolsResultSchema = PaginatedResultSchema.extend({
944
- tools: array(ToolSchema)
945
- }), CallToolResultSchema = ResultSchema.extend({
946
- /**
947
- * A list of content objects that represent the result of the tool call.
948
- *
949
- * If the Tool does not define an outputSchema, this field MUST be present in the result.
950
- * For backwards compatibility, this field is always present, but it may be empty.
951
- */
952
- content: array(ContentBlockSchema).default([]),
953
- /**
954
- * An object containing structured tool output.
955
- *
956
- * If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema.
957
- */
958
- structuredContent: record(string(), unknown()).optional(),
959
- /**
960
- * Whether the tool call ended in an error.
961
- *
962
- * If not set, this is assumed to be false (the call was successful).
963
- *
964
- * Any errors that originate from the tool SHOULD be reported inside the result
965
- * object, with `isError` set to true, _not_ as an MCP protocol-level error
966
- * response. Otherwise, the LLM would not be able to see that an error occurred
967
- * and self-correct.
968
- *
969
- * However, any errors in _finding_ the tool, an error indicating that the
970
- * server does not support tool calls, or any other exceptional conditions,
971
- * should be reported as an MCP error response.
972
- */
973
- isError: boolean().optional()
974
- }), CompatibilityCallToolResultSchema = CallToolResultSchema.or(ResultSchema.extend({
975
- toolResult: unknown()
976
- })), CallToolRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({
977
- /**
978
- * The name of the tool to call.
979
- */
980
- name: string(),
981
- /**
982
- * Arguments to pass to the tool.
983
- */
984
- arguments: record(string(), unknown()).optional()
985
- }), CallToolRequestSchema = RequestSchema.extend({
986
- method: literal("tools/call"),
987
- params: CallToolRequestParamsSchema
988
- }), ToolListChangedNotificationSchema = NotificationSchema.extend({
989
- method: literal("notifications/tools/list_changed"),
990
- params: NotificationsParamsSchema.optional()
991
- }), ListChangedOptionsBaseSchema = object({
992
- /**
993
- * If true, the list will be refreshed automatically when a list changed notification is received.
994
- * The callback will be called with the updated list.
995
- *
996
- * If false, the callback will be called with null items, allowing manual refresh.
997
- *
998
- * @default true
999
- */
1000
- autoRefresh: boolean().default(!0),
1001
- /**
1002
- * Debounce time in milliseconds for list changed notification processing.
1003
- *
1004
- * Multiple notifications received within this timeframe will only trigger one refresh.
1005
- * Set to 0 to disable debouncing.
1006
- *
1007
- * @default 300
1008
- */
1009
- debounceMs: number().int().nonnegative().default(300)
1010
- }), LoggingLevelSchema = _enum(["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]), SetLevelRequestParamsSchema = BaseRequestParamsSchema.extend({
1011
- /**
1012
- * The level of logging that the client wants to receive from the server. The server should send all logs at this level and higher (i.e., more severe) to the client as notifications/logging/message.
1013
- */
1014
- level: LoggingLevelSchema
1015
- }), SetLevelRequestSchema = RequestSchema.extend({
1016
- method: literal("logging/setLevel"),
1017
- params: SetLevelRequestParamsSchema
1018
- }), LoggingMessageNotificationParamsSchema = NotificationsParamsSchema.extend({
1019
- /**
1020
- * The severity of this log message.
1021
- */
1022
- level: LoggingLevelSchema,
1023
- /**
1024
- * An optional name of the logger issuing this message.
1025
- */
1026
- logger: string().optional(),
1027
- /**
1028
- * The data to be logged, such as a string message or an object. Any JSON serializable type is allowed here.
1029
- */
1030
- data: unknown()
1031
- }), LoggingMessageNotificationSchema = NotificationSchema.extend({
1032
- method: literal("notifications/message"),
1033
- params: LoggingMessageNotificationParamsSchema
1034
- }), ModelHintSchema = object({
1035
- /**
1036
- * A hint for a model name.
1037
- */
1038
- name: string().optional()
1039
- }), ModelPreferencesSchema = object({
1040
- /**
1041
- * Optional hints to use for model selection.
1042
- */
1043
- hints: array(ModelHintSchema).optional(),
1044
- /**
1045
- * How much to prioritize cost when selecting a model.
1046
- */
1047
- costPriority: number().min(0).max(1).optional(),
1048
- /**
1049
- * How much to prioritize sampling speed (latency) when selecting a model.
1050
- */
1051
- speedPriority: number().min(0).max(1).optional(),
1052
- /**
1053
- * How much to prioritize intelligence and capabilities when selecting a model.
1054
- */
1055
- intelligencePriority: number().min(0).max(1).optional()
1056
- }), ToolChoiceSchema = object({
1057
- /**
1058
- * Controls when tools are used:
1059
- * - "auto": Model decides whether to use tools (default)
1060
- * - "required": Model MUST use at least one tool before completing
1061
- * - "none": Model MUST NOT use any tools
1062
- */
1063
- mode: _enum(["auto", "required", "none"]).optional()
1064
- }), ToolResultContentSchema = object({
1065
- type: literal("tool_result"),
1066
- toolUseId: string().describe("The unique identifier for the corresponding tool call."),
1067
- content: array(ContentBlockSchema).default([]),
1068
- structuredContent: object({}).loose().optional(),
1069
- isError: boolean().optional(),
1070
- /**
1071
- * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1072
- * for notes on _meta usage.
1073
- */
1074
- _meta: record(string(), unknown()).optional()
1075
- }), SamplingContentSchema = discriminatedUnion("type", [TextContentSchema, ImageContentSchema, AudioContentSchema]), SamplingMessageContentBlockSchema = discriminatedUnion("type", [
1076
- TextContentSchema,
1077
- ImageContentSchema,
1078
- AudioContentSchema,
1079
- ToolUseContentSchema,
1080
- ToolResultContentSchema
1081
- ]), SamplingMessageSchema = object({
1082
- role: RoleSchema,
1083
- content: union([SamplingMessageContentBlockSchema, array(SamplingMessageContentBlockSchema)]),
1084
- /**
1085
- * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1086
- * for notes on _meta usage.
1087
- */
1088
- _meta: record(string(), unknown()).optional()
1089
- }), CreateMessageRequestParamsSchema = TaskAugmentedRequestParamsSchema.extend({
1090
- messages: array(SamplingMessageSchema),
1091
- /**
1092
- * The server's preferences for which model to select. The client MAY modify or omit this request.
1093
- */
1094
- modelPreferences: ModelPreferencesSchema.optional(),
1095
- /**
1096
- * An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt.
1097
- */
1098
- systemPrompt: string().optional(),
1099
- /**
1100
- * A request to include context from one or more MCP servers (including the caller), to be attached to the prompt.
1101
- * The client MAY ignore this request.
1102
- *
1103
- * Default is "none". Values "thisServer" and "allServers" are soft-deprecated. Servers SHOULD only use these values if the client
1104
- * declares ClientCapabilities.sampling.context. These values may be removed in future spec releases.
1105
- */
1106
- includeContext: _enum(["none", "thisServer", "allServers"]).optional(),
1107
- temperature: number().optional(),
1108
- /**
1109
- * The requested maximum number of tokens to sample (to prevent runaway completions).
1110
- *
1111
- * The client MAY choose to sample fewer tokens than the requested maximum.
1112
- */
1113
- maxTokens: number().int(),
1114
- stopSequences: array(string()).optional(),
1115
- /**
1116
- * Optional metadata to pass through to the LLM provider. The format of this metadata is provider-specific.
1117
- */
1118
- metadata: AssertObjectSchema.optional(),
1119
- /**
1120
- * Tools that the model may use during generation.
1121
- * The client MUST return an error if this field is provided but ClientCapabilities.sampling.tools is not declared.
1122
- */
1123
- tools: array(ToolSchema).optional(),
1124
- /**
1125
- * Controls how the model uses tools.
1126
- * The client MUST return an error if this field is provided but ClientCapabilities.sampling.tools is not declared.
1127
- * Default is `{ mode: "auto" }`.
1128
- */
1129
- toolChoice: ToolChoiceSchema.optional()
1130
- }), CreateMessageRequestSchema = RequestSchema.extend({
1131
- method: literal("sampling/createMessage"),
1132
- params: CreateMessageRequestParamsSchema
1133
- }), CreateMessageResultSchema = ResultSchema.extend({
1134
- /**
1135
- * The name of the model that generated the message.
1136
- */
1137
- model: string(),
1138
- /**
1139
- * The reason why sampling stopped, if known.
1140
- *
1141
- * Standard values:
1142
- * - "endTurn": Natural end of the assistant's turn
1143
- * - "stopSequence": A stop sequence was encountered
1144
- * - "maxTokens": Maximum token limit was reached
1145
- *
1146
- * This field is an open string to allow for provider-specific stop reasons.
1147
- */
1148
- stopReason: optional(_enum(["endTurn", "stopSequence", "maxTokens"]).or(string())),
1149
- role: RoleSchema,
1150
- /**
1151
- * Response content. Single content block (text, image, or audio).
1152
- */
1153
- content: SamplingContentSchema
1154
- }), CreateMessageResultWithToolsSchema = ResultSchema.extend({
1155
- /**
1156
- * The name of the model that generated the message.
1157
- */
1158
- model: string(),
1159
- /**
1160
- * The reason why sampling stopped, if known.
1161
- *
1162
- * Standard values:
1163
- * - "endTurn": Natural end of the assistant's turn
1164
- * - "stopSequence": A stop sequence was encountered
1165
- * - "maxTokens": Maximum token limit was reached
1166
- * - "toolUse": The model wants to use one or more tools
1167
- *
1168
- * This field is an open string to allow for provider-specific stop reasons.
1169
- */
1170
- stopReason: optional(_enum(["endTurn", "stopSequence", "maxTokens", "toolUse"]).or(string())),
1171
- role: RoleSchema,
1172
- /**
1173
- * Response content. May be a single block or array. May include ToolUseContent if stopReason is "toolUse".
1174
- */
1175
- content: union([SamplingMessageContentBlockSchema, array(SamplingMessageContentBlockSchema)])
1176
- }), BooleanSchemaSchema = object({
1177
- type: literal("boolean"),
1178
- title: string().optional(),
1179
- description: string().optional(),
1180
- default: boolean().optional()
1181
- }), StringSchemaSchema = object({
1182
- type: literal("string"),
1183
- title: string().optional(),
1184
- description: string().optional(),
1185
- minLength: number().optional(),
1186
- maxLength: number().optional(),
1187
- format: _enum(["email", "uri", "date", "date-time"]).optional(),
1188
- default: string().optional()
1189
- }), NumberSchemaSchema = object({
1190
- type: _enum(["number", "integer"]),
1191
- title: string().optional(),
1192
- description: string().optional(),
1193
- minimum: number().optional(),
1194
- maximum: number().optional(),
1195
- default: number().optional()
1196
- }), UntitledSingleSelectEnumSchemaSchema = object({
1197
- type: literal("string"),
1198
- title: string().optional(),
1199
- description: string().optional(),
1200
- enum: array(string()),
1201
- default: string().optional()
1202
- }), TitledSingleSelectEnumSchemaSchema = object({
1203
- type: literal("string"),
1204
- title: string().optional(),
1205
- description: string().optional(),
1206
- oneOf: array(object({
1207
- const: string(),
1208
- title: string()
1209
- })),
1210
- default: string().optional()
1211
- }), LegacyTitledEnumSchemaSchema = object({
1212
- type: literal("string"),
1213
- title: string().optional(),
1214
- description: string().optional(),
1215
- enum: array(string()),
1216
- enumNames: array(string()).optional(),
1217
- default: string().optional()
1218
- }), SingleSelectEnumSchemaSchema = union([UntitledSingleSelectEnumSchemaSchema, TitledSingleSelectEnumSchemaSchema]), UntitledMultiSelectEnumSchemaSchema = object({
1219
- type: literal("array"),
1220
- title: string().optional(),
1221
- description: string().optional(),
1222
- minItems: number().optional(),
1223
- maxItems: number().optional(),
1224
- items: object({
1225
- type: literal("string"),
1226
- enum: array(string())
1227
- }),
1228
- default: array(string()).optional()
1229
- }), TitledMultiSelectEnumSchemaSchema = object({
1230
- type: literal("array"),
1231
- title: string().optional(),
1232
- description: string().optional(),
1233
- minItems: number().optional(),
1234
- maxItems: number().optional(),
1235
- items: object({
1236
- anyOf: array(object({
1237
- const: string(),
1238
- title: string()
1239
- }))
1240
- }),
1241
- default: array(string()).optional()
1242
- }), MultiSelectEnumSchemaSchema = union([UntitledMultiSelectEnumSchemaSchema, TitledMultiSelectEnumSchemaSchema]), EnumSchemaSchema = union([LegacyTitledEnumSchemaSchema, SingleSelectEnumSchemaSchema, MultiSelectEnumSchemaSchema]), PrimitiveSchemaDefinitionSchema = union([EnumSchemaSchema, BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema]), ElicitRequestFormParamsSchema = TaskAugmentedRequestParamsSchema.extend({
1243
- /**
1244
- * The elicitation mode.
1245
- *
1246
- * Optional for backward compatibility. Clients MUST treat missing mode as "form".
1247
- */
1248
- mode: literal("form").optional(),
1249
- /**
1250
- * The message to present to the user describing what information is being requested.
1251
- */
1252
- message: string(),
1253
- /**
1254
- * A restricted subset of JSON Schema.
1255
- * Only top-level properties are allowed, without nesting.
1256
- */
1257
- requestedSchema: object({
1258
- type: literal("object"),
1259
- properties: record(string(), PrimitiveSchemaDefinitionSchema),
1260
- required: array(string()).optional()
1261
- })
1262
- }), ElicitRequestURLParamsSchema = TaskAugmentedRequestParamsSchema.extend({
1263
- /**
1264
- * The elicitation mode.
1265
- */
1266
- mode: literal("url"),
1267
- /**
1268
- * The message to present to the user explaining why the interaction is needed.
1269
- */
1270
- message: string(),
1271
- /**
1272
- * The ID of the elicitation, which must be unique within the context of the server.
1273
- * The client MUST treat this ID as an opaque value.
1274
- */
1275
- elicitationId: string(),
1276
- /**
1277
- * The URL that the user should navigate to.
1278
- */
1279
- url: string().url()
1280
- }), ElicitRequestParamsSchema = union([ElicitRequestFormParamsSchema, ElicitRequestURLParamsSchema]), ElicitRequestSchema = RequestSchema.extend({
1281
- method: literal("elicitation/create"),
1282
- params: ElicitRequestParamsSchema
1283
- }), ElicitationCompleteNotificationParamsSchema = NotificationsParamsSchema.extend({
1284
- /**
1285
- * The ID of the elicitation that completed.
1286
- */
1287
- elicitationId: string()
1288
- }), ElicitationCompleteNotificationSchema = NotificationSchema.extend({
1289
- method: literal("notifications/elicitation/complete"),
1290
- params: ElicitationCompleteNotificationParamsSchema
1291
- }), ElicitResultSchema = ResultSchema.extend({
1292
- /**
1293
- * The user action in response to the elicitation.
1294
- * - "accept": User submitted the form/confirmed the action
1295
- * - "decline": User explicitly decline the action
1296
- * - "cancel": User dismissed without making an explicit choice
1297
- */
1298
- action: _enum(["accept", "decline", "cancel"]),
1299
- /**
1300
- * The submitted form data, only present when action is "accept".
1301
- * Contains values matching the requested schema.
1302
- * Per MCP spec, content is "typically omitted" for decline/cancel actions.
1303
- * We normalize null to undefined for leniency while maintaining type compatibility.
1304
- */
1305
- content: preprocess((val) => val === null ? void 0 : val, record(string(), union([string(), number(), boolean(), array(string())])).optional())
1306
- }), ResourceTemplateReferenceSchema = object({
1307
- type: literal("ref/resource"),
1308
- /**
1309
- * The URI or URI template of the resource.
1310
- */
1311
- uri: string()
1312
- });
1313
- var PromptReferenceSchema = object({
1314
- type: literal("ref/prompt"),
1315
- /**
1316
- * The name of the prompt or prompt template
1317
- */
1318
- name: string()
1319
- }), CompleteRequestParamsSchema = BaseRequestParamsSchema.extend({
1320
- ref: union([PromptReferenceSchema, ResourceTemplateReferenceSchema]),
1321
- /**
1322
- * The argument's information
1323
- */
1324
- argument: object({
1325
- /**
1326
- * The name of the argument
1327
- */
1328
- name: string(),
1329
- /**
1330
- * The value of the argument to use for completion matching.
1331
- */
1332
- value: string()
1333
- }),
1334
- context: object({
1335
- /**
1336
- * Previously-resolved variables in a URI template or prompt.
1337
- */
1338
- arguments: record(string(), string()).optional()
1339
- }).optional()
1340
- }), CompleteRequestSchema = RequestSchema.extend({
1341
- method: literal("completion/complete"),
1342
- params: CompleteRequestParamsSchema
1343
- });
1344
- var CompleteResultSchema = ResultSchema.extend({
1345
- completion: looseObject({
1346
- /**
1347
- * An array of completion values. Must not exceed 100 items.
1348
- */
1349
- values: array(string()).max(100),
1350
- /**
1351
- * The total number of completion options available. This can exceed the number of values actually sent in the response.
1352
- */
1353
- total: optional(number().int()),
1354
- /**
1355
- * Indicates whether there are additional completion options beyond those provided in the current response, even if the exact total is unknown.
1356
- */
1357
- hasMore: optional(boolean())
1358
- })
1359
- }), RootSchema = object({
1360
- /**
1361
- * The URI identifying the root. This *must* start with file:// for now.
1362
- */
1363
- uri: string().startsWith("file://"),
1364
- /**
1365
- * An optional name for the root.
1366
- */
1367
- name: string().optional(),
1368
- /**
1369
- * See [MCP specification](https://github.com/modelcontextprotocol/modelcontextprotocol/blob/47339c03c143bb4ec01a26e721a1b8fe66634ebe/docs/specification/draft/basic/index.mdx#general-fields)
1370
- * for notes on _meta usage.
1371
- */
1372
- _meta: record(string(), unknown()).optional()
1373
- }), ListRootsRequestSchema = RequestSchema.extend({
1374
- method: literal("roots/list"),
1375
- params: BaseRequestParamsSchema.optional()
1376
- }), ListRootsResultSchema = ResultSchema.extend({
1377
- roots: array(RootSchema)
1378
- }), RootsListChangedNotificationSchema = NotificationSchema.extend({
1379
- method: literal("notifications/roots/list_changed"),
1380
- params: NotificationsParamsSchema.optional()
1381
- }), ClientRequestSchema = union([
1382
- PingRequestSchema,
1383
- InitializeRequestSchema,
1384
- CompleteRequestSchema,
1385
- SetLevelRequestSchema,
1386
- GetPromptRequestSchema,
1387
- ListPromptsRequestSchema,
1388
- ListResourcesRequestSchema,
1389
- ListResourceTemplatesRequestSchema,
1390
- ReadResourceRequestSchema,
1391
- SubscribeRequestSchema,
1392
- UnsubscribeRequestSchema,
1393
- CallToolRequestSchema,
1394
- ListToolsRequestSchema,
1395
- GetTaskRequestSchema,
1396
- GetTaskPayloadRequestSchema,
1397
- ListTasksRequestSchema,
1398
- CancelTaskRequestSchema
1399
- ]), ClientNotificationSchema = union([
1400
- CancelledNotificationSchema,
1401
- ProgressNotificationSchema,
1402
- InitializedNotificationSchema,
1403
- RootsListChangedNotificationSchema,
1404
- TaskStatusNotificationSchema
1405
- ]), ClientResultSchema = union([
1406
- EmptyResultSchema,
1407
- CreateMessageResultSchema,
1408
- CreateMessageResultWithToolsSchema,
1409
- ElicitResultSchema,
1410
- ListRootsResultSchema,
1411
- GetTaskResultSchema,
1412
- ListTasksResultSchema,
1413
- CreateTaskResultSchema
1414
- ]), ServerRequestSchema = union([
1415
- PingRequestSchema,
1416
- CreateMessageRequestSchema,
1417
- ElicitRequestSchema,
1418
- ListRootsRequestSchema,
1419
- GetTaskRequestSchema,
1420
- GetTaskPayloadRequestSchema,
1421
- ListTasksRequestSchema,
1422
- CancelTaskRequestSchema
1423
- ]), ServerNotificationSchema = union([
1424
- CancelledNotificationSchema,
1425
- ProgressNotificationSchema,
1426
- LoggingMessageNotificationSchema,
1427
- ResourceUpdatedNotificationSchema,
1428
- ResourceListChangedNotificationSchema,
1429
- ToolListChangedNotificationSchema,
1430
- PromptListChangedNotificationSchema,
1431
- TaskStatusNotificationSchema,
1432
- ElicitationCompleteNotificationSchema
1433
- ]), ServerResultSchema = union([
1434
- EmptyResultSchema,
1435
- InitializeResultSchema,
1436
- CompleteResultSchema,
1437
- GetPromptResultSchema,
1438
- ListPromptsResultSchema,
1439
- ListResourcesResultSchema,
1440
- ListResourceTemplatesResultSchema,
1441
- ReadResourceResultSchema,
1442
- CallToolResultSchema,
1443
- ListToolsResultSchema,
1444
- GetTaskResultSchema,
1445
- ListTasksResultSchema,
1446
- CreateTaskResultSchema
1447
- ]), McpError = class _McpError extends Error {
1448
- constructor(code, message, data) {
1449
- super(`MCP error ${code}: ${message}`), this.code = code, this.data = data, this.name = "McpError";
1450
- }
1451
- /**
1452
- * Factory method to create the appropriate error type based on the error code and data
1453
- */
1454
- static fromError(code, message, data) {
1455
- if (code === ErrorCode.UrlElicitationRequired && data) {
1456
- let errorData = data;
1457
- if (errorData.elicitations)
1458
- return new UrlElicitationRequiredError(errorData.elicitations, message);
1459
- }
1460
- return new _McpError(code, message, data);
1461
- }
1462
- }, UrlElicitationRequiredError = class extends McpError {
1463
- constructor(elicitations, message = `URL elicitation${elicitations.length > 1 ? "s" : ""} required`) {
1464
- super(ErrorCode.UrlElicitationRequired, message, {
1465
- elicitations
1466
- });
1467
- }
1468
- get elicitations() {
1469
- return this.data?.elicitations ?? [];
1470
- }
1471
- };
1472
-
1473
129
  // node_modules/@modelcontextprotocol/sdk/dist/esm/shared/auth.js
1474
130
  var SafeUrlSchema = url().superRefine((val, ctx) => {
1475
131
  if (!URL.canParse(val))
@@ -3344,56 +2000,6 @@ async function shutdownOAuth() {
3344
2000
  }
3345
2001
 
3346
2002
  export {
3347
- LATEST_PROTOCOL_VERSION,
3348
- SUPPORTED_PROTOCOL_VERSIONS,
3349
- RELATED_TASK_META_KEY,
3350
- isTaskAugmentedRequestParams,
3351
- RequestIdSchema,
3352
- isJSONRPCRequest,
3353
- isJSONRPCNotification,
3354
- isJSONRPCResultResponse,
3355
- ErrorCode,
3356
- isJSONRPCErrorResponse,
3357
- JSONRPCMessageSchema,
3358
- EmptyResultSchema,
3359
- CancelledNotificationSchema,
3360
- ImplementationSchema,
3361
- InitializeResultSchema,
3362
- PingRequestSchema,
3363
- ProgressNotificationSchema,
3364
- CreateTaskResultSchema,
3365
- TaskStatusNotificationSchema,
3366
- GetTaskRequestSchema,
3367
- GetTaskResultSchema,
3368
- GetTaskPayloadRequestSchema,
3369
- ListTasksRequestSchema,
3370
- ListTasksResultSchema,
3371
- CancelTaskRequestSchema,
3372
- CancelTaskResultSchema,
3373
- ListResourcesResultSchema,
3374
- ListResourceTemplatesResultSchema,
3375
- ReadResourceResultSchema,
3376
- ResourceListChangedNotificationSchema,
3377
- ListPromptsResultSchema,
3378
- EmbeddedResourceSchema,
3379
- ResourceLinkSchema,
3380
- ContentBlockSchema,
3381
- GetPromptResultSchema,
3382
- PromptListChangedNotificationSchema,
3383
- ToolSchema,
3384
- ListToolsResultSchema,
3385
- CallToolResultSchema,
3386
- ToolListChangedNotificationSchema,
3387
- ListChangedOptionsBaseSchema,
3388
- CreateMessageRequestSchema,
3389
- CreateMessageResultSchema,
3390
- CreateMessageResultWithToolsSchema,
3391
- ElicitRequestSchema,
3392
- ElicitationCompleteNotificationSchema,
3393
- ElicitResultSchema,
3394
- CompleteResultSchema,
3395
- McpError,
3396
- UrlElicitationRequiredError,
3397
2003
  normalizeHeaders,
3398
2004
  createFetchWithInit,
3399
2005
  UnauthorizedError,