@frontmcp/sdk 0.6.2 → 0.7.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 (798) hide show
  1. package/adapter/adapter.instance.d.ts +3 -1
  2. package/adapter/adapter.instance.d.ts.map +1 -0
  3. package/adapter/adapter.regsitry.d.ts +1 -0
  4. package/adapter/adapter.regsitry.d.ts.map +1 -0
  5. package/adapter/adapter.utils.d.ts +3 -1
  6. package/adapter/adapter.utils.d.ts.map +1 -0
  7. package/agent/adapters/adapter.factory.d.ts +105 -0
  8. package/agent/adapters/adapter.factory.d.ts.map +1 -0
  9. package/agent/adapters/base.adapter.d.ts +116 -0
  10. package/agent/adapters/base.adapter.d.ts.map +1 -0
  11. package/agent/adapters/index.d.ts +47 -0
  12. package/agent/adapters/index.d.ts.map +1 -0
  13. package/agent/adapters/langchain.adapter.d.ts +178 -0
  14. package/agent/adapters/langchain.adapter.d.ts.map +1 -0
  15. package/agent/adapters/providers/index.d.ts +36 -0
  16. package/agent/adapters/providers/index.d.ts.map +1 -0
  17. package/agent/adapters/providers/types.d.ts +15 -0
  18. package/agent/adapters/providers/types.d.ts.map +1 -0
  19. package/agent/agent-execution-loop.d.ts +209 -0
  20. package/agent/agent-execution-loop.d.ts.map +1 -0
  21. package/agent/agent.events.d.ts +149 -0
  22. package/agent/agent.events.d.ts.map +1 -0
  23. package/agent/agent.instance.d.ts +201 -0
  24. package/agent/agent.instance.d.ts.map +1 -0
  25. package/agent/agent.registry.d.ts +137 -0
  26. package/agent/agent.registry.d.ts.map +1 -0
  27. package/agent/agent.scope.d.ts +333 -0
  28. package/agent/agent.scope.d.ts.map +1 -0
  29. package/agent/agent.utils.d.ts +72 -0
  30. package/agent/agent.utils.d.ts.map +1 -0
  31. package/agent/flows/call-agent.flow.d.ts +306 -0
  32. package/agent/flows/call-agent.flow.d.ts.map +1 -0
  33. package/agent/flows/index.d.ts +2 -0
  34. package/agent/flows/index.d.ts.map +1 -0
  35. package/agent/hooks/agent.hooks.d.ts +52 -0
  36. package/agent/hooks/agent.hooks.d.ts.map +1 -0
  37. package/agent/hooks/index.d.ts +2 -0
  38. package/agent/hooks/index.d.ts.map +1 -0
  39. package/agent/index.d.ts +51 -0
  40. package/agent/index.d.ts.map +1 -0
  41. package/app/app.registry.d.ts +1 -0
  42. package/app/app.registry.d.ts.map +1 -0
  43. package/app/app.utils.d.ts +3 -1
  44. package/app/app.utils.d.ts.map +1 -0
  45. package/app/instances/app.local.instance.d.ts +4 -0
  46. package/app/instances/app.local.instance.d.ts.map +1 -0
  47. package/app/instances/app.remote.instance.d.ts +98 -0
  48. package/app/instances/app.remote.instance.d.ts.map +1 -0
  49. package/app/instances/index.d.ts +1 -0
  50. package/app/instances/index.d.ts.map +1 -0
  51. package/auth/auth.registry.d.ts +1 -0
  52. package/auth/auth.registry.d.ts.map +1 -0
  53. package/auth/auth.utils.d.ts +3 -1
  54. package/auth/auth.utils.d.ts.map +1 -0
  55. package/auth/authorization/authorization.class.d.ts +1 -0
  56. package/auth/authorization/authorization.class.d.ts.map +1 -0
  57. package/auth/authorization/authorization.types.d.ts +1 -0
  58. package/auth/authorization/authorization.types.d.ts.map +1 -0
  59. package/auth/authorization/index.d.ts +1 -0
  60. package/auth/authorization/index.d.ts.map +1 -0
  61. package/auth/authorization/orchestrated.authorization.d.ts +1 -0
  62. package/auth/authorization/orchestrated.authorization.d.ts.map +1 -0
  63. package/auth/authorization/public.authorization.d.ts +1 -0
  64. package/auth/authorization/public.authorization.d.ts.map +1 -0
  65. package/auth/authorization/transparent.authorization.d.ts +1 -0
  66. package/auth/authorization/transparent.authorization.d.ts.map +1 -0
  67. package/auth/consent/consent.types.d.ts +1 -0
  68. package/auth/consent/consent.types.d.ts.map +1 -0
  69. package/auth/consent/index.d.ts +1 -0
  70. package/auth/consent/index.d.ts.map +1 -0
  71. package/auth/detection/auth-provider-detection.d.ts +1 -0
  72. package/auth/detection/auth-provider-detection.d.ts.map +1 -0
  73. package/auth/detection/index.d.ts +1 -0
  74. package/auth/detection/index.d.ts.map +1 -0
  75. package/auth/flows/auth.verify.flow.d.ts +8 -2
  76. package/auth/flows/auth.verify.flow.d.ts.map +1 -0
  77. package/auth/flows/oauth.authorize.flow.d.ts +1 -0
  78. package/auth/flows/oauth.authorize.flow.d.ts.map +1 -0
  79. package/auth/flows/oauth.callback.flow.d.ts +1 -0
  80. package/auth/flows/oauth.callback.flow.d.ts.map +1 -0
  81. package/auth/flows/oauth.register.flow.d.ts +4 -3
  82. package/auth/flows/oauth.register.flow.d.ts.map +1 -0
  83. package/auth/flows/oauth.token.flow.d.ts +1 -0
  84. package/auth/flows/oauth.token.flow.d.ts.map +1 -0
  85. package/auth/flows/session.verify.flow.d.ts +12 -1
  86. package/auth/flows/session.verify.flow.d.ts.map +1 -0
  87. package/auth/flows/well-known.jwks.flow.d.ts +1 -0
  88. package/auth/flows/well-known.jwks.flow.d.ts.map +1 -0
  89. package/auth/flows/well-known.oauth-authorization-server.flow.d.ts +1 -0
  90. package/auth/flows/well-known.oauth-authorization-server.flow.d.ts.map +1 -0
  91. package/auth/flows/well-known.prm.flow.d.ts +1 -0
  92. package/auth/flows/well-known.prm.flow.d.ts.map +1 -0
  93. package/auth/instances/instance.local-primary-auth.d.ts +1 -0
  94. package/auth/instances/instance.local-primary-auth.d.ts.map +1 -0
  95. package/auth/instances/instance.remote-primary-auth.d.ts +1 -0
  96. package/auth/instances/instance.remote-primary-auth.d.ts.map +1 -0
  97. package/auth/jwks/dev-key-persistence.d.ts +1 -0
  98. package/auth/jwks/dev-key-persistence.d.ts.map +1 -0
  99. package/auth/jwks/index.d.ts +1 -0
  100. package/auth/jwks/index.d.ts.map +1 -0
  101. package/auth/jwks/jwks.service.d.ts +16 -2
  102. package/auth/jwks/jwks.service.d.ts.map +1 -0
  103. package/auth/jwks/jwks.types.d.ts +1 -0
  104. package/auth/jwks/jwks.types.d.ts.map +1 -0
  105. package/auth/jwks/jwks.utils.d.ts +1 -0
  106. package/auth/jwks/jwks.utils.d.ts.map +1 -0
  107. package/auth/machine-id.d.ts +1 -0
  108. package/auth/machine-id.d.ts.map +1 -0
  109. package/auth/oauth/flows/oauth.authorize.flow.d.ts +1 -0
  110. package/auth/oauth/flows/oauth.authorize.flow.d.ts.map +1 -0
  111. package/auth/oauth/flows/oauth.device-authorization.flow.d.ts +1 -0
  112. package/auth/oauth/flows/oauth.device-authorization.flow.d.ts.map +1 -0
  113. package/auth/oauth/flows/oauth.introspect.flow.d.ts +1 -0
  114. package/auth/oauth/flows/oauth.introspect.flow.d.ts.map +1 -0
  115. package/auth/oauth/flows/oauth.par.flow.d.ts +1 -0
  116. package/auth/oauth/flows/oauth.par.flow.d.ts.map +1 -0
  117. package/auth/oauth/flows/oauth.revoke.flow.d.ts +1 -0
  118. package/auth/oauth/flows/oauth.revoke.flow.d.ts.map +1 -0
  119. package/auth/oauth/flows/oauth.token.flow.d.ts +1 -0
  120. package/auth/oauth/flows/oauth.token.flow.d.ts.map +1 -0
  121. package/auth/oauth/flows/oauth.userinfo.flow.d.ts +1 -0
  122. package/auth/oauth/flows/oauth.userinfo.flow.d.ts.map +1 -0
  123. package/auth/oauth/flows/oidc.logout.flow.d.ts +1 -0
  124. package/auth/oauth/flows/oidc.logout.flow.d.ts.map +1 -0
  125. package/auth/session/authorization-vault.d.ts +5 -4
  126. package/auth/session/authorization-vault.d.ts.map +1 -0
  127. package/auth/session/authorization.store.d.ts +1 -0
  128. package/auth/session/authorization.store.d.ts.map +1 -0
  129. package/auth/session/encrypted-authorization-vault.d.ts +1 -0
  130. package/auth/session/encrypted-authorization-vault.d.ts.map +1 -0
  131. package/auth/session/index.d.ts +5 -2
  132. package/auth/session/index.d.ts.map +1 -0
  133. package/auth/session/record/session.base.d.ts +1 -0
  134. package/auth/session/record/session.base.d.ts.map +1 -0
  135. package/auth/session/record/session.stateful.d.ts +1 -0
  136. package/auth/session/record/session.stateful.d.ts.map +1 -0
  137. package/auth/session/record/session.stateless.d.ts +1 -0
  138. package/auth/session/record/session.stateless.d.ts.map +1 -0
  139. package/auth/session/record/session.transparent.d.ts +1 -0
  140. package/auth/session/record/session.transparent.d.ts.map +1 -0
  141. package/auth/session/redis-session.store.d.ts +27 -3
  142. package/auth/session/redis-session.store.d.ts.map +1 -0
  143. package/auth/session/session-crypto.d.ts +87 -0
  144. package/auth/session/session-crypto.d.ts.map +1 -0
  145. package/auth/session/session-rate-limiter.d.ts +114 -0
  146. package/auth/session/session-rate-limiter.d.ts.map +1 -0
  147. package/auth/session/session.crypto.d.ts +1 -0
  148. package/auth/session/session.crypto.d.ts.map +1 -0
  149. package/auth/session/session.schema.d.ts +1 -0
  150. package/auth/session/session.schema.d.ts.map +1 -0
  151. package/auth/session/session.service.d.ts +1 -0
  152. package/auth/session/session.service.d.ts.map +1 -0
  153. package/auth/session/session.transport.d.ts +1 -0
  154. package/auth/session/session.transport.d.ts.map +1 -0
  155. package/auth/session/session.types.d.ts +1 -0
  156. package/auth/session/session.types.d.ts.map +1 -0
  157. package/auth/session/token.refresh.d.ts +1 -0
  158. package/auth/session/token.refresh.d.ts.map +1 -0
  159. package/auth/session/token.store.d.ts +3 -2
  160. package/auth/session/token.store.d.ts.map +1 -0
  161. package/auth/session/token.vault.d.ts +1 -0
  162. package/auth/session/token.vault.d.ts.map +1 -0
  163. package/auth/session/transport-session.manager.d.ts +1 -0
  164. package/auth/session/transport-session.manager.d.ts.map +1 -0
  165. package/auth/session/transport-session.types.d.ts +60 -42
  166. package/auth/session/transport-session.types.d.ts.map +1 -0
  167. package/auth/session/utils/auth-token.utils.d.ts +1 -0
  168. package/auth/session/utils/auth-token.utils.d.ts.map +1 -0
  169. package/auth/session/utils/session-id.utils.d.ts +1 -0
  170. package/auth/session/utils/session-id.utils.d.ts.map +1 -0
  171. package/auth/session/utils/tiny-ttl-cache.d.ts +1 -0
  172. package/auth/session/utils/tiny-ttl-cache.d.ts.map +1 -0
  173. package/auth/session/vault-encryption.d.ts +1 -0
  174. package/auth/session/vault-encryption.d.ts.map +1 -0
  175. package/auth/session/vercel-kv-session.store.d.ts +23 -2
  176. package/auth/session/vercel-kv-session.store.d.ts.map +1 -0
  177. package/auth/ui/base-layout.d.ts +1 -0
  178. package/auth/ui/base-layout.d.ts.map +1 -0
  179. package/auth/ui/index.d.ts +1 -0
  180. package/auth/ui/index.d.ts.map +1 -0
  181. package/auth/ui/templates.d.ts +1 -0
  182. package/auth/ui/templates.d.ts.map +1 -0
  183. package/auth/utils/audience.validator.d.ts +1 -0
  184. package/auth/utils/audience.validator.d.ts.map +1 -0
  185. package/auth/utils/index.d.ts +1 -0
  186. package/auth/utils/index.d.ts.map +1 -0
  187. package/auth/utils/www-authenticate.utils.d.ts +1 -0
  188. package/auth/utils/www-authenticate.utils.d.ts.map +1 -0
  189. package/common/common.schema.d.ts +1 -0
  190. package/common/common.schema.d.ts.map +1 -0
  191. package/common/decorators/adapter.decorator.d.ts +1 -0
  192. package/common/decorators/adapter.decorator.d.ts.map +1 -0
  193. package/common/decorators/agent.decorator.d.ts +116 -0
  194. package/common/decorators/agent.decorator.d.ts.map +1 -0
  195. package/common/decorators/app.decorator.d.ts +1 -0
  196. package/common/decorators/app.decorator.d.ts.map +1 -0
  197. package/common/decorators/auth-provider.decorator.d.ts +1 -0
  198. package/common/decorators/auth-provider.decorator.d.ts.map +1 -0
  199. package/common/decorators/decorator-utils.d.ts +1 -0
  200. package/common/decorators/decorator-utils.d.ts.map +1 -0
  201. package/common/decorators/flow.decorator.d.ts +1 -0
  202. package/common/decorators/flow.decorator.d.ts.map +1 -0
  203. package/common/decorators/front-mcp.decorator.d.ts +1 -0
  204. package/common/decorators/front-mcp.decorator.d.ts.map +1 -0
  205. package/common/decorators/hook.decorator.d.ts +1 -0
  206. package/common/decorators/hook.decorator.d.ts.map +1 -0
  207. package/common/decorators/index.d.ts +2 -0
  208. package/common/decorators/index.d.ts.map +1 -0
  209. package/common/decorators/logger.decorator.d.ts +1 -0
  210. package/common/decorators/logger.decorator.d.ts.map +1 -0
  211. package/common/decorators/plugin.decorator.d.ts +1 -0
  212. package/common/decorators/plugin.decorator.d.ts.map +1 -0
  213. package/common/decorators/prompt.decorator.d.ts +8 -3
  214. package/common/decorators/prompt.decorator.d.ts.map +1 -0
  215. package/common/decorators/provider.decorator.d.ts +1 -0
  216. package/common/decorators/provider.decorator.d.ts.map +1 -0
  217. package/common/decorators/resource.decorator.d.ts +1 -0
  218. package/common/decorators/resource.decorator.d.ts.map +1 -0
  219. package/common/decorators/tool.decorator.d.ts +1 -0
  220. package/common/decorators/tool.decorator.d.ts.map +1 -0
  221. package/common/dynamic/dynamic.adapter.d.ts +1 -0
  222. package/common/dynamic/dynamic.adapter.d.ts.map +1 -0
  223. package/common/dynamic/dynamic.plugin.d.ts +3 -1
  224. package/common/dynamic/dynamic.plugin.d.ts.map +1 -0
  225. package/common/dynamic/dynamic.utils.d.ts +1 -0
  226. package/common/dynamic/dynamic.utils.d.ts.map +1 -0
  227. package/common/dynamic/index.d.ts +1 -0
  228. package/common/dynamic/index.d.ts.map +1 -0
  229. package/common/entries/adapter.entry.d.ts +1 -0
  230. package/common/entries/adapter.entry.d.ts.map +1 -0
  231. package/common/entries/agent.entry.d.ts +143 -0
  232. package/common/entries/agent.entry.d.ts.map +1 -0
  233. package/common/entries/app.entry.d.ts +8 -0
  234. package/common/entries/app.entry.d.ts.map +1 -0
  235. package/common/entries/auth-provider.entry.d.ts +1 -0
  236. package/common/entries/auth-provider.entry.d.ts.map +1 -0
  237. package/common/entries/base.entry.d.ts +3 -2
  238. package/common/entries/base.entry.d.ts.map +1 -0
  239. package/common/entries/flow.entry.d.ts +3 -1
  240. package/common/entries/flow.entry.d.ts.map +1 -0
  241. package/common/entries/hook.entry.d.ts +7 -5
  242. package/common/entries/hook.entry.d.ts.map +1 -0
  243. package/common/entries/index.d.ts +2 -0
  244. package/common/entries/index.d.ts.map +1 -0
  245. package/common/entries/logger.entry.d.ts +1 -0
  246. package/common/entries/logger.entry.d.ts.map +1 -0
  247. package/common/entries/plugin.entry.d.ts +3 -1
  248. package/common/entries/plugin.entry.d.ts.map +1 -0
  249. package/common/entries/prompt.entry.d.ts +13 -0
  250. package/common/entries/prompt.entry.d.ts.map +1 -0
  251. package/common/entries/provider.entry.d.ts +1 -0
  252. package/common/entries/provider.entry.d.ts.map +1 -0
  253. package/common/entries/resource.entry.d.ts +7 -0
  254. package/common/entries/resource.entry.d.ts.map +1 -0
  255. package/common/entries/scope.entry.d.ts +3 -1
  256. package/common/entries/scope.entry.d.ts.map +1 -0
  257. package/common/entries/tool.entry.d.ts +17 -0
  258. package/common/entries/tool.entry.d.ts.map +1 -0
  259. package/common/flow/flow.utils.d.ts +1 -0
  260. package/common/flow/flow.utils.d.ts.map +1 -0
  261. package/common/index.d.ts +1 -1
  262. package/common/index.d.ts.map +1 -0
  263. package/common/interfaces/adapter.interface.d.ts +2 -1
  264. package/common/interfaces/adapter.interface.d.ts.map +1 -0
  265. package/common/interfaces/agent.interface.d.ts +255 -0
  266. package/common/interfaces/agent.interface.d.ts.map +1 -0
  267. package/common/interfaces/app.interface.d.ts +5 -3
  268. package/common/interfaces/app.interface.d.ts.map +1 -0
  269. package/common/interfaces/auth-hook.interface.d.ts +1 -0
  270. package/common/interfaces/auth-hook.interface.d.ts.map +1 -0
  271. package/common/interfaces/auth-provider.interface.d.ts +2 -1
  272. package/common/interfaces/auth-provider.interface.d.ts.map +1 -0
  273. package/common/interfaces/base.interface.d.ts +2 -77
  274. package/common/interfaces/base.interface.d.ts.map +1 -0
  275. package/common/interfaces/execution-context.interface.d.ts +2 -1
  276. package/common/interfaces/execution-context.interface.d.ts.map +1 -0
  277. package/common/interfaces/flow.interface.d.ts +2 -1
  278. package/common/interfaces/flow.interface.d.ts.map +1 -0
  279. package/common/interfaces/front-mcp.interface.d.ts +1 -0
  280. package/common/interfaces/front-mcp.interface.d.ts.map +1 -0
  281. package/common/interfaces/hook.interface.d.ts +2 -1
  282. package/common/interfaces/hook.interface.d.ts.map +1 -0
  283. package/common/interfaces/index.d.ts +4 -0
  284. package/common/interfaces/index.d.ts.map +1 -0
  285. package/common/interfaces/internal/flow.utils.d.ts +1 -0
  286. package/common/interfaces/internal/flow.utils.d.ts.map +1 -0
  287. package/common/interfaces/internal/index.d.ts +1 -0
  288. package/common/interfaces/internal/index.d.ts.map +1 -0
  289. package/common/interfaces/internal/primary-auth-provider.interface.d.ts +1 -0
  290. package/common/interfaces/internal/primary-auth-provider.interface.d.ts.map +1 -0
  291. package/common/interfaces/internal/registry.interface.d.ts +13 -3
  292. package/common/interfaces/internal/registry.interface.d.ts.map +1 -0
  293. package/common/interfaces/llm-adapter.interface.d.ts +221 -0
  294. package/common/interfaces/llm-adapter.interface.d.ts.map +1 -0
  295. package/common/interfaces/logger.interface.d.ts +7 -6
  296. package/common/interfaces/logger.interface.d.ts.map +1 -0
  297. package/common/interfaces/plugin.interface.d.ts +2 -1
  298. package/common/interfaces/plugin.interface.d.ts.map +1 -0
  299. package/common/interfaces/prompt.interface.d.ts +10 -2
  300. package/common/interfaces/prompt.interface.d.ts.map +1 -0
  301. package/common/interfaces/provider.interface.d.ts +2 -1
  302. package/common/interfaces/provider.interface.d.ts.map +1 -0
  303. package/common/interfaces/resource.interface.d.ts +12 -2
  304. package/common/interfaces/resource.interface.d.ts.map +1 -0
  305. package/common/interfaces/scope.interface.d.ts +3 -2
  306. package/common/interfaces/scope.interface.d.ts.map +1 -0
  307. package/common/interfaces/server.interface.d.ts +1 -0
  308. package/common/interfaces/server.interface.d.ts.map +1 -0
  309. package/common/interfaces/session-hook.interface.d.ts +1 -0
  310. package/common/interfaces/session-hook.interface.d.ts.map +1 -0
  311. package/common/interfaces/tool-hook.interface.d.ts +1 -0
  312. package/common/interfaces/tool-hook.interface.d.ts.map +1 -0
  313. package/common/interfaces/tool.interface.d.ts +52 -2
  314. package/common/interfaces/tool.interface.d.ts.map +1 -0
  315. package/common/metadata/adapter.metadata.d.ts +1 -0
  316. package/common/metadata/adapter.metadata.d.ts.map +1 -0
  317. package/common/metadata/agent.metadata.d.ts +398 -0
  318. package/common/metadata/agent.metadata.d.ts.map +1 -0
  319. package/common/metadata/app.metadata.d.ts +162 -16
  320. package/common/metadata/app.metadata.d.ts.map +1 -0
  321. package/common/metadata/auth-provider.metadata.d.ts +1 -0
  322. package/common/metadata/auth-provider.metadata.d.ts.map +1 -0
  323. package/common/metadata/flow.metadata.d.ts +5 -3
  324. package/common/metadata/flow.metadata.d.ts.map +1 -0
  325. package/common/metadata/front-mcp.metadata.d.ts +138 -46
  326. package/common/metadata/front-mcp.metadata.d.ts.map +1 -0
  327. package/common/metadata/hook.metadata.d.ts +2 -1
  328. package/common/metadata/hook.metadata.d.ts.map +1 -0
  329. package/common/metadata/index.d.ts +3 -0
  330. package/common/metadata/index.d.ts.map +1 -0
  331. package/common/metadata/logger.metadata.d.ts +1 -0
  332. package/common/metadata/logger.metadata.d.ts.map +1 -0
  333. package/common/metadata/plugin.metadata.d.ts +74 -7
  334. package/common/metadata/plugin.metadata.d.ts.map +1 -0
  335. package/common/metadata/prompt.metadata.d.ts +1 -0
  336. package/common/metadata/prompt.metadata.d.ts.map +1 -0
  337. package/common/metadata/provider.metadata.d.ts +5 -30
  338. package/common/metadata/provider.metadata.d.ts.map +1 -0
  339. package/common/metadata/resource.metadata.d.ts +1 -0
  340. package/common/metadata/resource.metadata.d.ts.map +1 -0
  341. package/common/metadata/tool-ui.metadata.d.ts +1 -0
  342. package/common/metadata/tool-ui.metadata.d.ts.map +1 -0
  343. package/common/metadata/tool.metadata.d.ts +1 -0
  344. package/common/metadata/tool.metadata.d.ts.map +1 -0
  345. package/common/migrate/auth-transport.migrate.d.ts +1 -0
  346. package/common/migrate/auth-transport.migrate.d.ts.map +1 -0
  347. package/common/migrate/index.d.ts +1 -0
  348. package/common/migrate/index.d.ts.map +1 -0
  349. package/common/providers/base-config.provider.d.ts +1 -0
  350. package/common/providers/base-config.provider.d.ts.map +1 -0
  351. package/common/records/adapter.record.d.ts +2 -1
  352. package/common/records/adapter.record.d.ts.map +1 -0
  353. package/common/records/agent.record.d.ts +89 -0
  354. package/common/records/agent.record.d.ts.map +1 -0
  355. package/common/records/app.record.d.ts +2 -1
  356. package/common/records/app.record.d.ts.map +1 -0
  357. package/common/records/auth-provider.record.d.ts +3 -1
  358. package/common/records/auth-provider.record.d.ts.map +1 -0
  359. package/common/records/flow.record.d.ts +1 -0
  360. package/common/records/flow.record.d.ts.map +1 -0
  361. package/common/records/hook.record.d.ts +1 -0
  362. package/common/records/hook.record.d.ts.map +1 -0
  363. package/common/records/index.d.ts +3 -0
  364. package/common/records/index.d.ts.map +1 -0
  365. package/common/records/logger.record.d.ts +4 -2
  366. package/common/records/logger.record.d.ts.map +1 -0
  367. package/common/records/plugin.record.d.ts +3 -1
  368. package/common/records/plugin.record.d.ts.map +1 -0
  369. package/common/records/prompt.record.d.ts +2 -1
  370. package/common/records/prompt.record.d.ts.map +1 -0
  371. package/common/records/provider.record.d.ts +2 -36
  372. package/common/records/provider.record.d.ts.map +1 -0
  373. package/common/records/resource.record.d.ts +2 -1
  374. package/common/records/resource.record.d.ts.map +1 -0
  375. package/common/records/scope.record.d.ts +2 -1
  376. package/common/records/scope.record.d.ts.map +1 -0
  377. package/common/records/tool.record.d.ts +3 -1
  378. package/common/records/tool.record.d.ts.map +1 -0
  379. package/common/schemas/annotated-class.schema.d.ts +4 -1
  380. package/common/schemas/annotated-class.schema.d.ts.map +1 -0
  381. package/common/schemas/http-input.schema.d.ts +1 -0
  382. package/common/schemas/http-input.schema.d.ts.map +1 -0
  383. package/common/schemas/http-output.schema.d.ts +1 -0
  384. package/common/schemas/http-output.schema.d.ts.map +1 -0
  385. package/common/schemas/index.d.ts +1 -0
  386. package/common/schemas/index.d.ts.map +1 -0
  387. package/common/schemas/session-header.schema.d.ts +1 -0
  388. package/common/schemas/session-header.schema.d.ts.map +1 -0
  389. package/common/tokens/adapter.tokens.d.ts +1 -0
  390. package/common/tokens/adapter.tokens.d.ts.map +1 -0
  391. package/common/tokens/agent.tokens.d.ts +33 -0
  392. package/common/tokens/agent.tokens.d.ts.map +1 -0
  393. package/common/tokens/app.tokens.d.ts +1 -0
  394. package/common/tokens/app.tokens.d.ts.map +1 -0
  395. package/common/tokens/auth-provider.tokens.d.ts +1 -0
  396. package/common/tokens/auth-provider.tokens.d.ts.map +1 -0
  397. package/common/tokens/base.tokens.d.ts +6 -4
  398. package/common/tokens/base.tokens.d.ts.map +1 -0
  399. package/common/tokens/flow-hook.tokens.d.ts +1 -0
  400. package/common/tokens/flow-hook.tokens.d.ts.map +1 -0
  401. package/common/tokens/flow.tokens.d.ts +1 -0
  402. package/common/tokens/flow.tokens.d.ts.map +1 -0
  403. package/common/tokens/front-mcp.tokens.d.ts +1 -0
  404. package/common/tokens/front-mcp.tokens.d.ts.map +1 -0
  405. package/common/tokens/index.d.ts +2 -0
  406. package/common/tokens/index.d.ts.map +1 -0
  407. package/common/tokens/logger.tokens.d.ts +1 -0
  408. package/common/tokens/logger.tokens.d.ts.map +1 -0
  409. package/common/tokens/plugin.tokens.d.ts +3 -0
  410. package/common/tokens/plugin.tokens.d.ts.map +1 -0
  411. package/common/tokens/prompt.tokens.d.ts +1 -0
  412. package/common/tokens/prompt.tokens.d.ts.map +1 -0
  413. package/common/tokens/provider.tokens.d.ts +1 -0
  414. package/common/tokens/provider.tokens.d.ts.map +1 -0
  415. package/common/tokens/resource.tokens.d.ts +1 -0
  416. package/common/tokens/resource.tokens.d.ts.map +1 -0
  417. package/common/tokens/server.tokens.d.ts +1 -0
  418. package/common/tokens/server.tokens.d.ts.map +1 -0
  419. package/common/tokens/tool.tokens.d.ts +1 -0
  420. package/common/tokens/tool.tokens.d.ts.map +1 -0
  421. package/common/types/auth/index.d.ts +1 -0
  422. package/common/types/auth/index.d.ts.map +1 -0
  423. package/common/types/auth/jwt.types.d.ts +1 -0
  424. package/common/types/auth/jwt.types.d.ts.map +1 -0
  425. package/common/types/auth/session.types.d.ts +1 -0
  426. package/common/types/auth/session.types.d.ts.map +1 -0
  427. package/common/types/common.types.d.ts +1 -0
  428. package/common/types/common.types.d.ts.map +1 -0
  429. package/common/types/index.d.ts +1 -0
  430. package/common/types/index.d.ts.map +1 -0
  431. package/common/types/options/auth/app-auth.schema.d.ts +1 -0
  432. package/common/types/options/auth/app-auth.schema.d.ts.map +1 -0
  433. package/common/types/options/auth/auth.interfaces.d.ts +1 -0
  434. package/common/types/options/auth/auth.interfaces.d.ts.map +1 -0
  435. package/common/types/options/auth/auth.schema.d.ts +1 -0
  436. package/common/types/options/auth/auth.schema.d.ts.map +1 -0
  437. package/common/types/options/auth/auth.typecheck.d.ts +1 -0
  438. package/common/types/options/auth/auth.typecheck.d.ts.map +1 -0
  439. package/common/types/options/auth/auth.utils.d.ts +1 -0
  440. package/common/types/options/auth/auth.utils.d.ts.map +1 -0
  441. package/common/types/options/auth/index.d.ts +1 -0
  442. package/common/types/options/auth/index.d.ts.map +1 -0
  443. package/common/types/options/auth/orchestrated.schema.d.ts +1 -0
  444. package/common/types/options/auth/orchestrated.schema.d.ts.map +1 -0
  445. package/common/types/options/auth/public.schema.d.ts +1 -0
  446. package/common/types/options/auth/public.schema.d.ts.map +1 -0
  447. package/common/types/options/auth/shared.schemas.d.ts +1 -0
  448. package/common/types/options/auth/shared.schemas.d.ts.map +1 -0
  449. package/common/types/options/auth/transparent.schema.d.ts +1 -0
  450. package/common/types/options/auth/transparent.schema.d.ts.map +1 -0
  451. package/common/types/options/auth/transport.deprecated.d.ts +1 -0
  452. package/common/types/options/auth/transport.deprecated.d.ts.map +1 -0
  453. package/common/types/options/http.options.d.ts +1 -0
  454. package/common/types/options/http.options.d.ts.map +1 -0
  455. package/common/types/options/index.d.ts +1 -0
  456. package/common/types/options/index.d.ts.map +1 -0
  457. package/common/types/options/logging.options.d.ts +2 -5
  458. package/common/types/options/logging.options.d.ts.map +1 -0
  459. package/common/types/options/redis.options.d.ts +1 -0
  460. package/common/types/options/redis.options.d.ts.map +1 -0
  461. package/common/types/options/server-info.options.d.ts +1 -0
  462. package/common/types/options/server-info.options.d.ts.map +1 -0
  463. package/common/types/options/session.options.d.ts +1 -0
  464. package/common/types/options/session.options.d.ts.map +1 -0
  465. package/common/types/options/transport.options.d.ts +25 -0
  466. package/common/types/options/transport.options.d.ts.map +1 -0
  467. package/common/utils/decide-request-intent.utils.d.ts +1 -0
  468. package/common/utils/decide-request-intent.utils.d.ts.map +1 -0
  469. package/common/utils/global-config.utils.d.ts +1 -0
  470. package/common/utils/global-config.utils.d.ts.map +1 -0
  471. package/common/utils/index.d.ts +1 -0
  472. package/common/utils/index.d.ts.map +1 -0
  473. package/common/utils/path.utils.d.ts +3 -4
  474. package/common/utils/path.utils.d.ts.map +1 -0
  475. package/completion/flows/complete.flow.d.ts +1 -0
  476. package/completion/flows/complete.flow.d.ts.map +1 -0
  477. package/context/context-extension.d.ts +52 -0
  478. package/context/context-extension.d.ts.map +1 -0
  479. package/context/frontmcp-context-storage.d.ts +1 -0
  480. package/context/frontmcp-context-storage.d.ts.map +1 -0
  481. package/context/frontmcp-context.d.ts +1 -0
  482. package/context/frontmcp-context.d.ts.map +1 -0
  483. package/context/frontmcp-context.provider.d.ts +3 -2
  484. package/context/frontmcp-context.provider.d.ts.map +1 -0
  485. package/context/index.d.ts +1 -0
  486. package/context/index.d.ts.map +1 -0
  487. package/context/request-context-storage.d.ts +1 -0
  488. package/context/request-context-storage.d.ts.map +1 -0
  489. package/context/request-context.d.ts +1 -0
  490. package/context/request-context.d.ts.map +1 -0
  491. package/context/request-context.provider.d.ts +1 -0
  492. package/context/request-context.provider.d.ts.map +1 -0
  493. package/context/session-key.provider.d.ts +1 -0
  494. package/context/session-key.provider.d.ts.map +1 -0
  495. package/context/trace-context.d.ts +1 -0
  496. package/context/trace-context.d.ts.map +1 -0
  497. package/errors/agent.errors.d.ts +80 -0
  498. package/errors/agent.errors.d.ts.map +1 -0
  499. package/errors/authorization-required.error.d.ts +1 -0
  500. package/errors/authorization-required.error.d.ts.map +1 -0
  501. package/errors/error-handler.d.ts +1 -0
  502. package/errors/error-handler.d.ts.map +1 -0
  503. package/errors/index.d.ts +4 -1
  504. package/errors/index.d.ts.map +1 -0
  505. package/errors/mcp.error.d.ts +31 -0
  506. package/errors/mcp.error.d.ts.map +1 -0
  507. package/errors/remote.errors.d.ts +156 -0
  508. package/errors/remote.errors.d.ts.map +1 -0
  509. package/esm/index.mjs +18399 -10886
  510. package/esm/package.json +26 -18
  511. package/flows/flow.instance.d.ts +1 -0
  512. package/flows/flow.instance.d.ts.map +1 -0
  513. package/flows/flow.registry.d.ts +3 -1
  514. package/flows/flow.registry.d.ts.map +1 -0
  515. package/flows/flow.stages.d.ts +1 -0
  516. package/flows/flow.stages.d.ts.map +1 -0
  517. package/flows/flow.utils.d.ts +3 -1
  518. package/flows/flow.utils.d.ts.map +1 -0
  519. package/front-mcp/front-mcp.d.ts +21 -1
  520. package/front-mcp/front-mcp.d.ts.map +1 -0
  521. package/front-mcp/front-mcp.providers.d.ts +42 -21
  522. package/front-mcp/front-mcp.providers.d.ts.map +1 -0
  523. package/front-mcp/front-mcp.tokens.d.ts +3 -1
  524. package/front-mcp/front-mcp.tokens.d.ts.map +1 -0
  525. package/front-mcp/index.d.ts +1 -0
  526. package/front-mcp/index.d.ts.map +1 -0
  527. package/front-mcp/serverless-handler.d.ts +1 -0
  528. package/front-mcp/serverless-handler.d.ts.map +1 -0
  529. package/hooks/hook.instance.d.ts +1 -0
  530. package/hooks/hook.instance.d.ts.map +1 -0
  531. package/hooks/hook.registry.d.ts +1 -0
  532. package/hooks/hook.registry.d.ts.map +1 -0
  533. package/hooks/hooks.utils.d.ts +3 -1
  534. package/hooks/hooks.utils.d.ts.map +1 -0
  535. package/index.d.ts +29 -20
  536. package/index.d.ts.map +1 -0
  537. package/index.js +18589 -11006
  538. package/logger/instances/instance.console-logger.d.ts +1 -0
  539. package/logger/instances/instance.console-logger.d.ts.map +1 -0
  540. package/logger/instances/instance.logger.d.ts +1 -0
  541. package/logger/instances/instance.logger.d.ts.map +1 -0
  542. package/logger/logger.registry.d.ts +1 -0
  543. package/logger/logger.registry.d.ts.map +1 -0
  544. package/logger/logger.tokens.d.ts +1 -0
  545. package/logger/logger.tokens.d.ts.map +1 -0
  546. package/logger/logger.types.d.ts +1 -0
  547. package/logger/logger.types.d.ts.map +1 -0
  548. package/logger/logger.utils.d.ts +3 -1
  549. package/logger/logger.utils.d.ts.map +1 -0
  550. package/logging/flows/set-level.flow.d.ts +1 -0
  551. package/logging/flows/set-level.flow.d.ts.map +1 -0
  552. package/notification/index.d.ts +1 -0
  553. package/notification/index.d.ts.map +1 -0
  554. package/notification/notification.service.d.ts +17 -4
  555. package/notification/notification.service.d.ts.map +1 -0
  556. package/package.json +17 -7
  557. package/plugin/plugin.registry.d.ts +25 -6
  558. package/plugin/plugin.registry.d.ts.map +1 -0
  559. package/plugin/plugin.utils.d.ts +3 -1
  560. package/plugin/plugin.utils.d.ts.map +1 -0
  561. package/prompt/flows/get-prompt.flow.d.ts +8 -1
  562. package/prompt/flows/get-prompt.flow.d.ts.map +1 -0
  563. package/prompt/flows/prompts-list.flow.d.ts +8 -1
  564. package/prompt/flows/prompts-list.flow.d.ts.map +1 -0
  565. package/prompt/index.d.ts +1 -0
  566. package/prompt/index.d.ts.map +1 -0
  567. package/prompt/prompt.events.d.ts +3 -2
  568. package/prompt/prompt.events.d.ts.map +1 -0
  569. package/prompt/prompt.instance.d.ts +7 -1
  570. package/prompt/prompt.instance.d.ts.map +1 -0
  571. package/prompt/prompt.registry.d.ts +32 -7
  572. package/prompt/prompt.registry.d.ts.map +1 -0
  573. package/prompt/prompt.types.d.ts +5 -4
  574. package/prompt/prompt.types.d.ts.map +1 -0
  575. package/prompt/prompt.utils.d.ts +3 -3
  576. package/prompt/prompt.utils.d.ts.map +1 -0
  577. package/provider/flow-context-providers.d.ts +24 -0
  578. package/provider/flow-context-providers.d.ts.map +1 -0
  579. package/provider/provider.registry.d.ts +26 -4
  580. package/provider/provider.registry.d.ts.map +1 -0
  581. package/provider/provider.types.d.ts +2 -1
  582. package/provider/provider.types.d.ts.map +1 -0
  583. package/provider/provider.utils.d.ts +21 -2
  584. package/provider/provider.utils.d.ts.map +1 -0
  585. package/regsitry/index.d.ts +1 -0
  586. package/regsitry/index.d.ts.map +1 -0
  587. package/regsitry/registry.base.d.ts +3 -1
  588. package/regsitry/registry.base.d.ts.map +1 -0
  589. package/remote-mcp/cache/capability-cache.d.ts +87 -0
  590. package/remote-mcp/cache/capability-cache.d.ts.map +1 -0
  591. package/remote-mcp/cache/index.d.ts +6 -0
  592. package/remote-mcp/cache/index.d.ts.map +1 -0
  593. package/remote-mcp/factories/context-factories.d.ts +43 -0
  594. package/remote-mcp/factories/context-factories.d.ts.map +1 -0
  595. package/remote-mcp/factories/index.d.ts +12 -0
  596. package/remote-mcp/factories/index.d.ts.map +1 -0
  597. package/remote-mcp/factories/instance-factories.d.ts +81 -0
  598. package/remote-mcp/factories/instance-factories.d.ts.map +1 -0
  599. package/remote-mcp/factories/record-builders.d.ts +50 -0
  600. package/remote-mcp/factories/record-builders.d.ts.map +1 -0
  601. package/remote-mcp/index.d.ts +14 -0
  602. package/remote-mcp/index.d.ts.map +1 -0
  603. package/remote-mcp/mcp-client.service.d.ts +169 -0
  604. package/remote-mcp/mcp-client.service.d.ts.map +1 -0
  605. package/remote-mcp/mcp-client.types.d.ts +298 -0
  606. package/remote-mcp/mcp-client.types.d.ts.map +1 -0
  607. package/remote-mcp/resilience/circuit-breaker.d.ts +100 -0
  608. package/remote-mcp/resilience/circuit-breaker.d.ts.map +1 -0
  609. package/remote-mcp/resilience/health-check.d.ts +107 -0
  610. package/remote-mcp/resilience/health-check.d.ts.map +1 -0
  611. package/remote-mcp/resilience/index.d.ts +8 -0
  612. package/remote-mcp/resilience/index.d.ts.map +1 -0
  613. package/remote-mcp/resilience/retry.d.ts +37 -0
  614. package/remote-mcp/resilience/retry.d.ts.map +1 -0
  615. package/resource/flows/read-resource.flow.d.ts +8 -1
  616. package/resource/flows/read-resource.flow.d.ts.map +1 -0
  617. package/resource/flows/resource-templates-list.flow.d.ts +8 -1
  618. package/resource/flows/resource-templates-list.flow.d.ts.map +1 -0
  619. package/resource/flows/resources-list.flow.d.ts +8 -1
  620. package/resource/flows/resources-list.flow.d.ts.map +1 -0
  621. package/resource/flows/subscribe-resource.flow.d.ts +1 -0
  622. package/resource/flows/subscribe-resource.flow.d.ts.map +1 -0
  623. package/resource/flows/unsubscribe-resource.flow.d.ts +1 -0
  624. package/resource/flows/unsubscribe-resource.flow.d.ts.map +1 -0
  625. package/resource/index.d.ts +1 -0
  626. package/resource/index.d.ts.map +1 -0
  627. package/resource/resource.events.d.ts +3 -2
  628. package/resource/resource.events.d.ts.map +1 -0
  629. package/resource/resource.instance.d.ts +1 -0
  630. package/resource/resource.instance.d.ts.map +1 -0
  631. package/resource/resource.registry.d.ts +33 -8
  632. package/resource/resource.registry.d.ts.map +1 -0
  633. package/resource/resource.types.d.ts +5 -4
  634. package/resource/resource.types.d.ts.map +1 -0
  635. package/resource/resource.utils.d.ts +3 -5
  636. package/resource/resource.utils.d.ts.map +1 -0
  637. package/scope/flows/http.request.flow.d.ts +1 -0
  638. package/scope/flows/http.request.flow.d.ts.map +1 -0
  639. package/scope/index.d.ts +1 -0
  640. package/scope/index.d.ts.map +1 -0
  641. package/scope/scope.instance.d.ts +7 -0
  642. package/scope/scope.instance.d.ts.map +1 -0
  643. package/scope/scope.registry.d.ts +6 -0
  644. package/scope/scope.registry.d.ts.map +1 -0
  645. package/scope/scope.utils.d.ts +3 -1
  646. package/scope/scope.utils.d.ts.map +1 -0
  647. package/server/adapters/base.host.adapter.d.ts +1 -0
  648. package/server/adapters/base.host.adapter.d.ts.map +1 -0
  649. package/server/adapters/express.host.adapter.d.ts +1 -0
  650. package/server/adapters/express.host.adapter.d.ts.map +1 -0
  651. package/server/server.instance.d.ts +1 -0
  652. package/server/server.instance.d.ts.map +1 -0
  653. package/server/server.types.d.ts +1 -0
  654. package/server/server.types.d.ts.map +1 -0
  655. package/server/server.validation.d.ts +1 -0
  656. package/server/server.validation.d.ts.map +1 -0
  657. package/store/adapters/store.base.adapter.d.ts +1 -0
  658. package/store/adapters/store.base.adapter.d.ts.map +1 -0
  659. package/store/adapters/store.memory.adapter.d.ts +1 -0
  660. package/store/adapters/store.memory.adapter.d.ts.map +1 -0
  661. package/store/adapters/store.redis.adapter.d.ts +1 -0
  662. package/store/adapters/store.redis.adapter.d.ts.map +1 -0
  663. package/store/adapters/store.vercel-kv.adapter.d.ts +1 -0
  664. package/store/adapters/store.vercel-kv.adapter.d.ts.map +1 -0
  665. package/store/index.d.ts +1 -0
  666. package/store/index.d.ts.map +1 -0
  667. package/store/store.factory.d.ts +1 -0
  668. package/store/store.factory.d.ts.map +1 -0
  669. package/store/store.helpers.d.ts +1 -0
  670. package/store/store.helpers.d.ts.map +1 -0
  671. package/store/store.registry.d.ts +1 -0
  672. package/store/store.registry.d.ts.map +1 -0
  673. package/store/store.tokens.d.ts +1 -0
  674. package/store/store.tokens.d.ts.map +1 -0
  675. package/store/store.types.d.ts +1 -0
  676. package/store/store.types.d.ts.map +1 -0
  677. package/store/store.utils.d.ts +1 -0
  678. package/store/store.utils.d.ts.map +1 -0
  679. package/tool/flows/call-tool.flow.d.ts +9 -1
  680. package/tool/flows/call-tool.flow.d.ts.map +1 -0
  681. package/tool/flows/tools-list.flow.d.ts +8 -1
  682. package/tool/flows/tools-list.flow.d.ts.map +1 -0
  683. package/tool/tool.events.d.ts +3 -2
  684. package/tool/tool.events.d.ts.map +1 -0
  685. package/tool/tool.instance.d.ts +18 -1
  686. package/tool/tool.instance.d.ts.map +1 -0
  687. package/tool/tool.registry.d.ts +57 -5
  688. package/tool/tool.registry.d.ts.map +1 -0
  689. package/tool/tool.types.d.ts +5 -4
  690. package/tool/tool.types.d.ts.map +1 -0
  691. package/tool/tool.utils.d.ts +20 -3
  692. package/tool/tool.utils.d.ts.map +1 -0
  693. package/tool/ui/index.d.ts +1 -0
  694. package/tool/ui/index.d.ts.map +1 -0
  695. package/tool/ui/platform-adapters.d.ts +1 -0
  696. package/tool/ui/platform-adapters.d.ts.map +1 -0
  697. package/tool/ui/template-helpers.d.ts +1 -0
  698. package/tool/ui/template-helpers.d.ts.map +1 -0
  699. package/tool/ui/ui-resource-template.d.ts +1 -0
  700. package/tool/ui/ui-resource-template.d.ts.map +1 -0
  701. package/tool/ui/ui-resource.handler.d.ts +1 -0
  702. package/tool/ui/ui-resource.handler.d.ts.map +1 -0
  703. package/transport/adapters/sse-transport.d.ts +66 -0
  704. package/transport/adapters/sse-transport.d.ts.map +1 -0
  705. package/transport/adapters/streamable-http-transport.d.ts +96 -0
  706. package/transport/adapters/streamable-http-transport.d.ts.map +1 -0
  707. package/transport/adapters/transport.local.adapter.d.ts +27 -1
  708. package/transport/adapters/transport.local.adapter.d.ts.map +1 -0
  709. package/transport/adapters/transport.sse.adapter.d.ts +17 -3
  710. package/transport/adapters/transport.sse.adapter.d.ts.map +1 -0
  711. package/transport/adapters/transport.streamable-http.adapter.d.ts +13 -3
  712. package/transport/adapters/transport.streamable-http.adapter.d.ts.map +1 -0
  713. package/transport/flows/handle.sse.flow.d.ts +1 -0
  714. package/transport/flows/handle.sse.flow.d.ts.map +1 -0
  715. package/transport/flows/handle.stateless-http.flow.d.ts +1 -0
  716. package/transport/flows/handle.stateless-http.flow.d.ts.map +1 -0
  717. package/transport/flows/handle.streamable-http.flow.d.ts +1 -0
  718. package/transport/flows/handle.streamable-http.flow.d.ts.map +1 -0
  719. package/transport/index.d.ts +22 -0
  720. package/transport/index.d.ts.map +1 -0
  721. package/transport/legacy/legacy.sse.tranporter.d.ts +1 -0
  722. package/transport/legacy/legacy.sse.tranporter.d.ts.map +1 -0
  723. package/transport/mcp-handlers/Initialized-notification.hanlder.d.ts +1 -0
  724. package/transport/mcp-handlers/Initialized-notification.hanlder.d.ts.map +1 -0
  725. package/transport/mcp-handlers/call-tool-request.handler.d.ts +1 -0
  726. package/transport/mcp-handlers/call-tool-request.handler.d.ts.map +1 -0
  727. package/transport/mcp-handlers/complete-request.handler.d.ts +1 -0
  728. package/transport/mcp-handlers/complete-request.handler.d.ts.map +1 -0
  729. package/transport/mcp-handlers/get-prompt-request.handler.d.ts +1 -0
  730. package/transport/mcp-handlers/get-prompt-request.handler.d.ts.map +1 -0
  731. package/transport/mcp-handlers/index.d.ts +2 -1
  732. package/transport/mcp-handlers/index.d.ts.map +1 -0
  733. package/transport/mcp-handlers/initialize-request.handler.d.ts +1 -0
  734. package/transport/mcp-handlers/initialize-request.handler.d.ts.map +1 -0
  735. package/transport/mcp-handlers/list-prompts-request.handler.d.ts +1 -0
  736. package/transport/mcp-handlers/list-prompts-request.handler.d.ts.map +1 -0
  737. package/transport/mcp-handlers/list-resource-templates-request.handler.d.ts +1 -0
  738. package/transport/mcp-handlers/list-resource-templates-request.handler.d.ts.map +1 -0
  739. package/transport/mcp-handlers/list-resources-request.handler.d.ts +1 -0
  740. package/transport/mcp-handlers/list-resources-request.handler.d.ts.map +1 -0
  741. package/transport/mcp-handlers/list-tools-request.handler.d.ts +1 -0
  742. package/transport/mcp-handlers/list-tools-request.handler.d.ts.map +1 -0
  743. package/transport/mcp-handlers/logging-set-level-request.handler.d.ts +2 -1
  744. package/transport/mcp-handlers/logging-set-level-request.handler.d.ts.map +1 -0
  745. package/transport/mcp-handlers/mcp-handlers.types.d.ts +1 -0
  746. package/transport/mcp-handlers/mcp-handlers.types.d.ts.map +1 -0
  747. package/transport/mcp-handlers/read-resource-request.handler.d.ts +1 -0
  748. package/transport/mcp-handlers/read-resource-request.handler.d.ts.map +1 -0
  749. package/transport/mcp-handlers/roots-list-changed-notification.handler.d.ts +1 -0
  750. package/transport/mcp-handlers/roots-list-changed-notification.handler.d.ts.map +1 -0
  751. package/transport/mcp-handlers/subscribe-request.handler.d.ts +1 -0
  752. package/transport/mcp-handlers/subscribe-request.handler.d.ts.map +1 -0
  753. package/transport/mcp-handlers/unsubscribe-request.handler.d.ts +1 -0
  754. package/transport/mcp-handlers/unsubscribe-request.handler.d.ts.map +1 -0
  755. package/transport/transport.error.d.ts +1 -0
  756. package/transport/transport.error.d.ts.map +1 -0
  757. package/transport/transport.event-store.d.ts +1 -0
  758. package/transport/transport.event-store.d.ts.map +1 -0
  759. package/transport/transport.local.d.ts +7 -0
  760. package/transport/transport.local.d.ts.map +1 -0
  761. package/transport/transport.registry.d.ts +8 -1
  762. package/transport/transport.registry.d.ts.map +1 -0
  763. package/transport/transport.remote.d.ts +2 -0
  764. package/transport/transport.remote.d.ts.map +1 -0
  765. package/transport/transport.types.d.ts +8 -1
  766. package/transport/transport.types.d.ts.map +1 -0
  767. package/types/drinen-hooks.types.d.ts +1 -0
  768. package/types/drinen-hooks.types.d.ts.map +1 -0
  769. package/types/invoke.type.d.ts +1 -0
  770. package/types/invoke.type.d.ts.map +1 -0
  771. package/types/token.types.d.ts +1 -0
  772. package/types/token.types.d.ts.map +1 -0
  773. package/{utils/types.utils.d.ts → types/zod.types.d.ts} +1 -0
  774. package/types/zod.types.d.ts.map +1 -0
  775. package/utils/content.utils.d.ts +1 -19
  776. package/utils/content.utils.d.ts.map +1 -0
  777. package/utils/index.d.ts +3 -7
  778. package/utils/index.d.ts.map +1 -0
  779. package/utils/lineage.utils.d.ts +1 -0
  780. package/utils/lineage.utils.d.ts.map +1 -0
  781. package/utils/naming.utils.d.ts +2 -34
  782. package/utils/naming.utils.d.ts.map +1 -0
  783. package/common/constants.d.ts +0 -5
  784. package/esm/mcp-apps/index.mjs +0 -723
  785. package/exceptions/mcp-exceptions/session-missing.exception.d.ts +0 -3
  786. package/exceptions/mcp-exceptions/unsupported-client-version.exception.d.ts +0 -5
  787. package/mcp-apps/csp.d.ts +0 -111
  788. package/mcp-apps/index.d.ts +0 -23
  789. package/mcp-apps/index.js +0 -799
  790. package/mcp-apps/schemas.d.ts +0 -403
  791. package/mcp-apps/template.d.ts +0 -94
  792. package/mcp-apps/types.d.ts +0 -323
  793. package/utils/metadata.utils.d.ts +0 -5
  794. package/utils/server.utils.d.ts +0 -19
  795. package/utils/string.utils.d.ts +0 -1
  796. package/utils/token.utils.d.ts +0 -11
  797. package/utils/uri-template.utils.d.ts +0 -57
  798. package/utils/uri-validation.utils.d.ts +0 -40
@@ -85,3 +85,4 @@ export default class CompleteFlow extends FlowBase<typeof name> {
85
85
  finalize(): Promise<void>;
86
86
  }
87
87
  export {};
88
+ //# sourceMappingURL=complete.flow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"complete.flow.d.ts","sourceRoot":"","sources":["../../../src/completion/flows/complete.flow.ts"],"names":[],"mappings":"AAEA,OAAO,EAAQ,QAAQ,EAAyB,cAAc,EAAE,MAAM,cAAc,CAAC;AACrF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGf,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;;iBAAuB,CAAC;AAe1C,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;iBAOf,CAAC;AAEH,QAAA,MAAM,IAAI;;;;CAI2B,CAAC;AAEtC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,WAAW;QACnB,qBAAqB,EAAE,cAAc,CACnC,YAAY,EACZ,OAAO,IAAI,EACX,OAAO,WAAW,EAClB,OAAO,YAAY,EACnB,OAAO,WAAW,CACnB,CAAC;KACH;CACF;AAED,QAAA,MAAM,IAAI,EAAG,qBAA8B,CAAC;AAU5C,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,QAAQ,CAAC,OAAO,IAAI,CAAC;IAC7D,MAAM,wCAA0C;IAG1C,UAAU;IA0CV,QAAQ;IAqGR,QAAQ;CAMf"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Context Extension System
3
+ *
4
+ * Provides a mechanism for plugins to extend ExecutionContextBase with new properties.
5
+ * This is handled by the SDK during plugin registration - plugins should NOT directly
6
+ * modify ExecutionContextBase.
7
+ *
8
+ * @example
9
+ * ```typescript
10
+ * // In plugin metadata:
11
+ * @Plugin({
12
+ * name: 'remember',
13
+ * contextExtensions: [
14
+ * { property: 'remember', token: RememberAccessorToken },
15
+ * ],
16
+ * })
17
+ *
18
+ * // In tools (when plugin is installed):
19
+ * await this.remember.set('key', 'value');
20
+ * ```
21
+ *
22
+ * @internal
23
+ */
24
+ import type { ContextExtension } from '../common/metadata/plugin.metadata';
25
+ /**
26
+ * Install context extensions declared by a plugin.
27
+ * Called by the SDK during plugin registration.
28
+ *
29
+ * @param pluginName - Name of the plugin (for error messages)
30
+ * @param extensions - Array of context extensions to install
31
+ *
32
+ * @internal
33
+ */
34
+ export declare function installContextExtensions(pluginName: string, extensions: ContextExtension[]): void;
35
+ /**
36
+ * Check if a context extension property is installed.
37
+ *
38
+ * @param property - Property name to check
39
+ * @returns true if the property is installed
40
+ *
41
+ * @internal
42
+ */
43
+ export declare function isContextExtensionInstalled(property: string): boolean;
44
+ /**
45
+ * Get list of all installed context extension properties.
46
+ *
47
+ * @returns Array of installed property names
48
+ *
49
+ * @internal
50
+ */
51
+ export declare function getInstalledContextExtensions(): string[];
52
+ //# sourceMappingURL=context-extension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-extension.d.ts","sourceRoot":"","sources":["../../src/context/context-extension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAKH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAK3E;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAkDjG;AAED;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAErE;AAED;;;;;;GAMG;AACH,wBAAgB,6BAA6B,IAAI,MAAM,EAAE,CAExD"}
@@ -92,3 +92,4 @@ export declare class FrontMcpContextStorage {
92
92
  * @deprecated Use FrontMcpContextStorage instead
93
93
  */
94
94
  export { FrontMcpContextStorage as ContextStorage };
95
+ //# sourceMappingURL=frontmcp-context-storage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frontmcp-context-storage.d.ts","sourceRoot":"","sources":["../../src/context/frontmcp-context-storage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAmB,MAAM,oBAAoB,CAAC;AAE3F,OAAO,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAW1E;;;;;;GAMG;AACH,qBAKa,sBAAsB;IACjC;;;;;;OAMG;IACH,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAK3E;;;;;;;;;;OAUG;IACH,cAAc,CAAC,CAAC,EACd,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,IAAI,EAAE,IAAI,CAAC,mBAAmB,EAAE,cAAc,GAAG,UAAU,CAAC,EAC5D,EAAE,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GACvB,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAWjB;;;;;;;;OAQG;IACH,cAAc,CAAC,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAIrF;;;;OAIG;IACH,QAAQ,IAAI,eAAe,GAAG,SAAS;IAIvC;;;;OAIG;IACH,eAAe,IAAI,eAAe;IAUlC;;;;OAIG;IACH,UAAU,IAAI,OAAO;IAIrB;;;;;;;;;OASG;IACH,cAAc,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;CAKzF;AAiDD;;;GAGG;AACH,OAAO,EAAE,sBAAsB,IAAI,cAAc,EAAE,CAAC"}
@@ -267,3 +267,4 @@ export declare class FrontMcpContext {
267
267
  * Use when you want a shorter name.
268
268
  */
269
269
  export { FrontMcpContext as Context };
270
+ //# sourceMappingURL=frontmcp-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frontmcp-context.d.ts","sourceRoot":"","sources":["../../src/context/frontmcp-context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAwB,MAAM,iBAAiB,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGxD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0BAA0B;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mDAAmD;IACnD,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACvC;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,iEAAiE;IACjE,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,oEAAoE;IACpE,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,qEAAqE;IACrE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,sDAAsD;I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IAAI;IAQ/B;;;;;OAKG;IACH,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI;IAI5C;;;;;OAKG;IACH,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,CAAC,GAAG,SAAS;IAI3C;;;;;OAKG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO;IAIlC;;;;;OAKG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO;IAQrC;;;;OAIG;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAIxB;;;;;;OAMG;IACH,OAAO,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM;IAM3C;;;;OAIG;IACH,QAAQ,IAAI,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC;IAQvC;;;;;;;;OAQG;IACH,SAAS,CAAC,YAAY,EAAE,cAAc,GAAG,cAAc;IAKvD;;;;;;;OAOG;IACH,YAAY,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAiBvC;;;;;;;;;;;;OAYG;IACG,KAAK,CAAC,KAAK,EAAE,WAAW,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC;CAoC7E;AAED;;;GAGG;AACH,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,CAAC"}
@@ -36,8 +36,9 @@ export declare const REQUEST_CONTEXT: symbol;
36
36
  * Note: This provider will throw if called outside of a context scope
37
37
  * (i.e., without first calling FrontMcpContextStorage.run or runFromHeaders).
38
38
  */
39
- export declare const FrontMcpContextProvider: import("../common/interfaces/provider.interface").ProviderFactoryType<unknown, readonly (import("@frontmcp/sdk").Reference<any> | import("@frontmcp/sdk").ClassToken)[]>;
39
+ export declare const FrontMcpContextProvider: import("../common/interfaces/provider.interface").ProviderFactoryType<unknown, readonly (import("@frontmcp/di").ClassToken | import("@frontmcp/di").Reference<any>)[]>;
40
40
  /**
41
41
  * @deprecated Use FrontMcpContextProvider instead
42
42
  */
43
- export declare const RequestContextProvider: import("../common/interfaces/provider.interface").ProviderFactoryType<unknown, readonly (import("@frontmcp/sdk").Reference<any> | import("@frontmcp/sdk").ClassToken)[]>;
43
+ export declare const RequestContextProvider: import("../common/interfaces/provider.interface").ProviderFactoryType<unknown, readonly (import("@frontmcp/di").ClassToken | import("@frontmcp/di").Reference<any>)[]>;
44
+ //# sourceMappingURL=frontmcp-context.provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frontmcp-context.provider.d.ts","sourceRoot":"","sources":["../../src/context/frontmcp-context.provider.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,gBAAgB,eAAiC,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,eAAe,QAAmB,CAAC;AAEhD;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,wKAW3B,CAAC;AAEV;;GAEG;AACH,eAAO,MAAM,sBAAsB,wKAA0B,CAAC"}
@@ -32,3 +32,4 @@ export { RequestContextStorage } from './request-context-storage';
32
32
  * @deprecated SessionKey is no longer needed. Use ctx.sessionId directly.
33
33
  */
34
34
  export { SessionKey } from './session-key.provider';
35
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/context/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAOH,OAAO,EACL,eAAe,EACf,OAAO,EAAE,cAAc;AACvB,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EACf,iBAAiB,GAClB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAGpF,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EAEvB,eAAe,EACf,sBAAsB,GACvB,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAMhH;;GAEG;AACH,OAAO,EAAE,cAAc,EAAE,kBAAkB,IAAI,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAEnG;;GAEG;AACH,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC"}
@@ -87,3 +87,4 @@ export declare class RequestContextStorage {
87
87
  */
88
88
  updateAuthInfo<T>(authInfo: RequestContextArgs['authInfo'], fn: () => T | Promise<T>): T | Promise<T>;
89
89
  }
90
+ //# sourceMappingURL=request-context-storage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request-context-storage.d.ts","sourceRoot":"","sources":["../../src/context/request-context-storage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAKH,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAmB,MAAM,mBAAmB,CAAC;AAWxF;;;;;;GAMG;AACH,qBAKa,qBAAqB;IAChC;;;;;;OAMG;IACH,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAK1E;;;;;;;;;;OAUG;IACH,cAAc,CAAC,CAAC,EACd,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,IAAI,EAAE,IAAI,CAAC,kBAAkB,EAAE,cAAc,GAAG,UAAU,CAAC,EAC3D,EAAE,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GACvB,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAWjB;;;;;;;;OAQG;IACH,cAAc,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAIpF;;;;OAIG;IACH,QAAQ,IAAI,cAAc,GAAG,SAAS;IAItC;;;;OAIG;IACH,eAAe,IAAI,cAAc;IAQjC;;;;OAIG;IACH,UAAU,IAAI,OAAO;IAIrB;;;;;;;;;OASG;IACH,cAAc,CAAC,CAAC,EAAE,QAAQ,EAAE,kBAAkB,CAAC,UAAU,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;CAMtG"}
@@ -182,3 +182,4 @@ export declare class RequestContext {
182
182
  */
183
183
  toLogContext(): Record<string, unknown>;
184
184
  }
185
+ //# sourceMappingURL=request-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request-context.d.ts","sourceRoot":"","sources":["../../src/context/request-context.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAwB,MAAM,iBAAiB,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0BAA0B;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mDAAmD;IACnD,aAAa,EAAE,MAAM,C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AAgB,CAAC,CAAmB;IAE5C;;;;;;;OAOG;IACH,IAAI,eAAe,IAAI,gBAAgB,GAAG,SAAS,CAElD;IAED;;;;;;OAMG;IACH,qBAAqB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,IAAI;IAIvD;;;;;;;;OAQG;IACH,SAAS,CAAC,YAAY,EAAE,cAAc,GAAG,cAAc;IAMvD;;;;OAIG;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAIxB;;;;;;OAMG;IACH,OAAO,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM;IAM3C;;;;OAIG;IACH,QAAQ,IAAI,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC;IAIvC;;;;;OAKG;IACH,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI;IAI5C;;;;;OAKG;IACH,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,CAAC,GAAG,SAAS;IAI3C;;;;;OAKG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO;IAIlC;;;;;OAKG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO;IAIrC;;;;;;;OAOG;IACH,YAAY,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAYxC"}
@@ -35,3 +35,4 @@ export declare const REQUEST_CONTEXT: unique symbol;
35
35
  * (i.e., without first calling RequestContextStorage.run or runFromHeaders).
36
36
  */
37
37
  export declare const RequestContextProvider: ProviderFactoryType<RequestContext, readonly [typeof RequestContextStorage]>;
38
+ //# sourceMappingURL=request-context.provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request-context.provider.d.ts","sourceRoot":"","sources":["../../src/context/request-context.provider.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,eAAe,eAAyC,CAAC;AAEtE;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,EAAE,mBAAmB,CAAC,cAAc,EAAE,SAAS,CAAC,OAAO,qBAAqB,CAAC,CAWxG,CAAC"}
@@ -43,3 +43,4 @@ export declare class SessionKey {
43
43
  static validate(value: string): void;
44
44
  constructor(value: string);
45
45
  }
46
+ //# sourceMappingURL=session-key.provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session-key.provider.d.ts","sourceRoot":"","sources":["../../src/context/session-key.provider.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,UAAU;aAiCO,KAAK,EAAE,MAAM;IAhCzC,8CAA8C;IAC9C,MAAM,CAAC,QAAQ,CAAC,UAAU,QAAQ;IAElC;;;;;OAKG;IACH,MAAM,CAAC,QAAQ,CAAC,aAAa,SAAyB;IAEtD;;;;;;OAMG;IACH,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;gBAcR,KAAK,EAAE,MAAM;CAI1C"}
@@ -41,3 +41,4 @@ export declare function generateTraceContext(): TraceContext;
41
41
  * Generates a new parentId while preserving the traceId.
42
42
  */
43
43
  export declare function createChildSpanContext(parent: TraceContext): TraceContext;
44
+ //# sourceMappingURL=trace-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trace-context.d.ts","sourceRoot":"","sources":["../../src/context/trace-context.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAC;IAChB,mDAAmD;IACnD,QAAQ,EAAE,MAAM,CAAC;IACjB,yCAAyC;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,YAAY,CAsBhF;AA6DD;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,YAAY,CASnD;AAiBD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,YAAY,GAAG,YAAY,CAQzE"}
@@ -0,0 +1,80 @@
1
+ import { PublicMcpError, InternalMcpError } from './mcp.error';
2
+ /**
3
+ * Agent not found error.
4
+ */
5
+ export declare class AgentNotFoundError extends PublicMcpError {
6
+ readonly agentId: string;
7
+ constructor(agentId: string);
8
+ }
9
+ /**
10
+ * Agent execution error - wraps errors during agent execution.
11
+ */
12
+ export declare class AgentExecutionError extends InternalMcpError {
13
+ readonly agentId: string;
14
+ readonly originalError?: Error;
15
+ constructor(agentId: string, cause?: Error);
16
+ getInternalMessage(): string;
17
+ }
18
+ /**
19
+ * Agent loop exceeded error - thrown when an agent exceeds maximum iterations.
20
+ */
21
+ export declare class AgentLoopExceededError extends PublicMcpError {
22
+ readonly agentId: string;
23
+ readonly maxIterations: number;
24
+ readonly actualIterations: number;
25
+ constructor(agentId: string, maxIterations: number, actualIterations?: number);
26
+ }
27
+ /**
28
+ * Agent timeout error - thrown when an agent exceeds its timeout.
29
+ */
30
+ export declare class AgentTimeoutError extends PublicMcpError {
31
+ readonly agentId: string;
32
+ readonly timeoutMs: number;
33
+ constructor(agentId: string, timeoutMs: number);
34
+ }
35
+ /**
36
+ * Agent visibility error - thrown when an agent tries to invoke another
37
+ * agent it doesn't have visibility to.
38
+ */
39
+ export declare class AgentVisibilityError extends PublicMcpError {
40
+ readonly requestingAgentId: string;
41
+ readonly targetAgentId: string;
42
+ constructor(requestingAgentId: string, targetAgentId: string);
43
+ }
44
+ /**
45
+ * Agent LLM error - thrown when the LLM adapter fails.
46
+ */
47
+ export declare class AgentLlmError extends InternalMcpError {
48
+ readonly agentId: string;
49
+ readonly originalError?: Error;
50
+ constructor(agentId: string, cause?: Error);
51
+ getInternalMessage(): string;
52
+ }
53
+ /**
54
+ * Agent configuration error - thrown when an agent has invalid configuration.
55
+ */
56
+ export declare class AgentConfigurationError extends PublicMcpError {
57
+ readonly agentId?: string;
58
+ readonly configErrors: string[];
59
+ constructor(message: string, options?: {
60
+ agentId?: string;
61
+ errors?: string[];
62
+ });
63
+ }
64
+ /**
65
+ * Agent not configured error - thrown when an agent doesn't have an LLM adapter.
66
+ */
67
+ export declare class AgentNotConfiguredError extends InternalMcpError {
68
+ readonly agentName: string;
69
+ constructor(agentName: string);
70
+ }
71
+ /**
72
+ * Agent tool not found error - thrown when a tool is not found in the agent's scope.
73
+ */
74
+ export declare class AgentToolNotFoundError extends InternalMcpError {
75
+ readonly agentName: string;
76
+ readonly toolName: string;
77
+ readonly availableTools: string[];
78
+ constructor(agentName: string, toolName: string, availableTools: string[]);
79
+ }
80
+ //# sourceMappingURL=agent.errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent.errors.d.ts","sourceRoot":"","sources":["../../src/errors/agent.errors.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAM/D;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,cAAc;IACpD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;gBAEb,OAAO,EAAE,MAAM;CAI5B;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,gBAAgB;IACvD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,aAAa,CAAC,EAAE,KAAK,CAAC;gBAEnB,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;IASjC,kBAAk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,gBAAgB;IAC3D,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;gBAEf,SAAS,EAAE,MAAM;CAI9B;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,gBAAgB;IAC1D,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,cAAc,EAAE,MAAM,EAAE,CAAC;gBAEtB,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE;CAS1E"}
@@ -187,3 +187,4 @@ export declare class AuthorizationRequiredError extends PublicMcpError {
187
187
  */
188
188
  static getCancelledMessage(appId: string, toolId: string, authUrl?: string): string;
189
189
  }
190
+ //# sourceMappingURL=authorization-required.error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authorization-required.error.d.ts","sourceRoot":"","sources":["../../src/errors/authorization-required.error.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAM7C;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,WAAW,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;iBAW/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAMlE;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;iBAmB1C,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;iBAc5C,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;iBAa1C,CAAC;AAMH;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA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I;IAczC;;OAEG;IACH,qBAAqB,IAAI,OAAO;IAIhC;;;;OAIG;IACH,oBAAoB,IAAI,MAAM;IAO9B;;OAEG;IACH,MAAM,CAAC,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM;CAOpF"}
@@ -63,3 +63,4 @@ export declare function createErrorHandler(options?: ErrorHandlerOptions): Error
63
63
  * Helper to check if an error should stop execution
64
64
  */
65
65
  export declare function shouldStopExecution(error: any): boolean;
66
+ //# sourceMappingURL=error-handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-handler.d.ts","sourceRoot":"","sources":["../../src/errors/error-handler.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;QAC7C,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;KAC7C,CAAC;IAEF;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC;CACxC;AAED;;GAEG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,aAAa,CAAU;IAC/B,OAAO,CAAC,MAAM,CAAC,CAAgC;IAC/C,OAAO,CAAC,gBAAgB,CAAC,CAA0C;gBAEvD,OAAO,GAAE,mBAAwB;IAM7C;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE;;;;;;;;;;iBA4BQ,CAAC;;;IAjB9E;;OAEG;IACH,OAAO,CAAC,QAAQ;IAqBhB;;OAEG;IACH,IAAI,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAAE,EAAE,EAAE,CAAC,GAAG,CAAC;IAgBjD;;OAEG;IACH,OAAO,CAAC,mBAAmB;CAc5B;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,GAAE,mBAAwB,GAAG,YAAY,CAElF;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAKvD"}
package/errors/index.d.ts CHANGED
@@ -1,3 +1,6 @@
1
- export { McpError, PublicMcpError, InternalMcpError, ToolNotFoundError, ResourceNotFoundError, ResourceReadError, InvalidResourceUriError, InvalidInputError, InvalidOutputError, InvalidMethodError, ToolExecutionError, RateLimitError, QuotaExceededError, UnauthorizedError, GenericServerError, DependencyNotFoundError, InvalidHookFlowError, AuthConfigurationError, PromptNotFoundError, PromptExecutionError, GlobalConfigNotFoundError, isPublicError, toMcpError, formatMcpErrorResponse, MCP_ERROR_CODES, type McpErrorCode, } from './mcp.error';
1
+ export { McpError, PublicMcpError, InternalMcpError, ToolNotFoundError, ToolExecutionError, ResourceNotFoundError, ResourceReadError, InvalidResourceUriError, InvalidInputError, InvalidOutputError, InvalidMethodError, RateLimitError, QuotaExceededError, UnauthorizedError, SessionMissingError, UnsupportedClientVersionError, GenericServerError, DependencyNotFoundError, InvalidHookFlowError, InvalidPluginScopeError, RequestContextNotAvailableError, AuthConfigurationError, GlobalConfigNotFoundError, PromptNotFoundError, PromptExecutionError, isPublicError, toMcpError, formatMcpErrorResponse, MCP_ERROR_CODES, type McpErrorCode, } from './mcp.error';
2
2
  export { authorizationRequiredDataSchema, authorizationRequiredParamsSchema, authorizationRequiredMetaSchema, AuthorizationRequiredData, AuthorizationRequiredParams, AuthorizationRequiredMeta, AuthorizationRequiredError, } from './authorization-required.error';
3
3
  export { ErrorHandler, ErrorHandlerOptions, createErrorHandler, shouldStopExecution } from './error-handler';
4
+ export { AgentNotFoundError, AgentExecutionError, AgentLoopExceededError, AgentTimeoutError, AgentVisibilityError, AgentLlmError, AgentConfigurationError, AgentNotConfiguredError, AgentToolNotFoundError, } from './agent.errors';
5
+ export { RemoteConnectionError, RemoteDisconnectError, RemoteTimeoutError, RemoteToolNotFoundError, RemoteResourceNotFoundError, RemotePromptNotFoundError, RemoteAuthError, RemoteAuthorizationError, RemoteToolExecutionError, RemoteResourceReadError, RemotePromptGetError, RemoteTransportError, RemoteUnsupportedTransportError, RemoteCapabilityDiscoveryError, RemoteCapabilityNotSupportedError, RemoteConfigurationError, RemoteNotConnectedError, } from './remote.errors';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,QAAQ,EACR,cAAc,EACd,gBAAgB,EAEhB,iBAAiB,EACjB,kBAAkB,EAElB,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EAEvB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAElB,cAAc,EACd,kBAAkB,EAElB,iBAAiB,EAEjB,mBAAmB,EACnB,6BAA6B,EAE7B,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,+BAA+B,EAE/B,sBAAsB,EACtB,yBAAyB,EAEzB,mBAAmB,EACnB,oBAAoB,EAEpB,aAAa,EACb,UAAU,EACV,sBAAsB,EAEtB,eAAe,EACf,KAAK,YAAY,GAClB,MAAM,aAAa,CAAC;AAGrB,OAAO,EAEL,+BAA+B,EAC/B,iCAAiC,EACjC,+BAA+B,EAE/B,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,EAEzB,0BAA0B,GAC3B,MAAM,gCAAgC,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAG7G,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EACtB,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAEL,qBAAqB,EACrB,qBAAqB,EAErB,kBAAkB,EAElB,uBAAuB,EACvB,2BAA2B,EAC3B,yBAAyB,EAEzB,eAAe,EACf,wBAAwB,EAExB,wBAAwB,EACxB,uBAAuB,EACvB,oBAAoB,EAEpB,oBAAoB,EACpB,+BAA+B,EAE/B,8BAA8B,EAC9B,iCAAiC,EAEjC,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,iBAAiB,CAAC"}
@@ -3,8 +3,12 @@
3
3
  * These codes are used in the JSON-RPC error response format.
4
4
  */
5
5
  export declare const MCP_ERROR_CODES: {
6
+ /** Unauthorized - missing credentials (-32001) */
7
+ readonly UNAUTHORIZED: -32001;
6
8
  /** Resource not found (-32002) */
7
9
  readonly RESOURCE_NOT_FOUND: -32002;
10
+ /** Forbidden - invalid or insufficient credentials (-32003) */
11
+ readonly FORBIDDEN: -32003;
8
12
  /** Invalid request (-32600) */
9
13
  readonly INVALID_REQUEST: -32600;
10
14
  /** Method not found (-32601) */
@@ -202,6 +206,13 @@ export declare class DependencyNotFoundError extends InternalMcpError {
202
206
  export declare class InvalidHookFlowError extends InternalMcpError {
203
207
  constructor(message: string);
204
208
  }
209
+ /**
210
+ * Invalid plugin scope error - thrown when a plugin with scope='server'
211
+ * is used in a standalone app, which is not allowed.
212
+ */
213
+ export declare class InvalidPluginScopeError extends InternalMcpError {
214
+ constructor(message: string);
215
+ }
205
216
  /**
206
217
  * Request context not available error - thrown when code attempts to access
207
218
  * RequestContext outside of a request scope (i.e., without AsyncLocalStorage context).
@@ -237,6 +248,25 @@ export declare class PromptExecutionError extends InternalMcpError {
237
248
  constructor(promptName: string, cause?: Error);
238
249
  getInternalMessage(): string;
239
250
  }
251
+ /**
252
+ * Session missing error - thrown when a request is made without a valid session.
253
+ * This is a public error as the client needs to know they need to authenticate.
254
+ */
255
+ export declare class SessionMissingError extends PublicMcpError {
256
+ constructor(message?: string);
257
+ }
258
+ /**
259
+ * Unsupported client version error - thrown when a client connects with
260
+ * an unsupported protocol version.
261
+ */
262
+ export declare class UnsupportedClientVersionError extends PublicMcpError {
263
+ readonly clientVersion: string;
264
+ constructor(version: string);
265
+ /**
266
+ * Factory method for creating from a version string.
267
+ */
268
+ static fromVersion(version: string): UnsupportedClientVersionError;
269
+ }
240
270
  /**
241
271
  * Global configuration not found error - thrown when a plugin requires
242
272
  * global configuration that is not defined in @FrontMcp decorator.
@@ -270,3 +300,4 @@ export declare function formatMcpErrorResponse(error: any, isDevelopment?: boole
270
300
  stack?: string;
271
301
  };
272
302
  };
303
+ //# sourceMappingURL=mcp.error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcp.error.d.ts","sourceRoot":"","sources":["../../src/errors/mcp.error.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,eAAe;IAC1B,kDAAkD;;IAElD,kCAAkC;;IAElC,+DAA+D;;IAE/D,+BAA+B;;IAE/B,gCAAgC;;IAEhC,8BAA8B;;IAE9B,8BAA8B;;IAE9B,2BAA2B;;CAEnB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAElF;;GAEG;AACH,8BAAsB,QAAS,SAAQ,KAAK;IAC1C;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAEpC;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAErC;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAE/B,SAAS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,EAAE,KAAK,CAAC;gBAEnB,UAAU,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;IASpC,kBAAkB,IAAI,MAAM;CAMtC;AAMD;;;GAGG;AACH,qBAAa,mBAAoB,SAAQ,cAAc;gBACzC,OAAO,SAAkC;CAGtD;AAED;;;GAGG;AACH,qBAAa,6BAA8B,SAAQ,cAAc;IAC/D,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;gBAEnB,OAAO,EAAE,MAAM;IAK3B;;OAEG;IACH,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,6BAA6B;CAGnE;AAMD;;;GAGG;AACH,qBAAa,yBAA0B,SAAQ,cAAc;IAC3D,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;gBAEf,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;CAUlD;AAMD;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,cAAc,CAEjE;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,QAAQ,CAU/C;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,GAAG,EAAE,aAAa,GAAE,OAAkD;aAtcvG,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;aACrC,IAAI;YACL;QACN,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;EAkcJ"}
@@ -0,0 +1,156 @@
1
+ /**
2
+ * @file remote.errors.ts
3
+ * @description Error classes for remote MCP server connections and operations
4
+ */
5
+ import { PublicMcpError, InternalMcpError } from './mcp.error';
6
+ /**
7
+ * Error thrown when connection to a remote MCP server fails
8
+ */
9
+ export declare class RemoteConnectionError extends InternalMcpError {
10
+ readonly appId: string;
11
+ readonly url: string;
12
+ readonly originalError?: Error;
13
+ constructor(appId: string, url: string, originalError?: Error);
14
+ }
15
+ /**
16
+ * Error thrown when a remote MCP server disconnects unexpectedly
17
+ */
18
+ export declare class RemoteDisconnectError extends InternalMcpError {
19
+ readonly appId: string;
20
+ readonly reason?: string;
21
+ constructor(appId: string, reason?: string);
22
+ }
23
+ /**
24
+ * Error thrown when a remote MCP operation times out
25
+ */
26
+ export declare class RemoteTimeoutError extends PublicMcpError {
27
+ readonly appId: string;
28
+ readonly operation: string;
29
+ readonly timeoutMs: number;
30
+ readonly mcpErrorCode: -32603;
31
+ constructor(appId: string, operation: string, timeoutMs: number);
32
+ }
33
+ /**
34
+ * Error thrown when a tool is not found on the remote server
35
+ */
36
+ export declare class RemoteToolNotFoundError extends PublicMcpError {
37
+ readonly appId: string;
38
+ readonly toolName: string;
39
+ readonly mcpErrorCode: -32601;
40
+ constructor(appId: string, toolName: string);
41
+ }
42
+ /**
43
+ * Error thrown when a resource is not found on the remote server
44
+ */
45
+ export declare class RemoteResourceNotFoundError extends PublicMcpError {
46
+ readonly appId: string;
47
+ readonly uri: string;
48
+ readonly mcpErrorCode: -32002;
49
+ constructor(appId: string, uri: string);
50
+ }
51
+ /**
52
+ * Error thrown when a prompt is not found on the remote server
53
+ */
54
+ export declare class RemotePromptNotFoundError extends PublicMcpError {
55
+ readonly appId: string;
56
+ readonly promptName: string;
57
+ readonly mcpErrorCode: -32601;
58
+ constructor(appId: string, promptName: string);
59
+ }
60
+ /**
61
+ * Error thrown when authentication to a remote server fails (missing credentials)
62
+ */
63
+ export declare class RemoteAuthError extends PublicMcpError {
64
+ readonly appId: string;
65
+ readonly details?: string;
66
+ readonly mcpErrorCode: -32001;
67
+ constructor(appId: string, details?: string);
68
+ }
69
+ /**
70
+ * Error thrown when authorization to a remote resource/tool fails (invalid/insufficient credentials)
71
+ */
72
+ export declare class RemoteAuthorizationError extends PublicMcpError {
73
+ readonly appId: string;
74
+ readonly resource?: string;
75
+ readonly mcpErrorCode: -32003;
76
+ constructor(appId: string, resource?: string);
77
+ }
78
+ /**
79
+ * Error thrown when a remote tool execution fails
80
+ */
81
+ export declare class RemoteToolExecutionError extends PublicMcpError {
82
+ readonly appId: string;
83
+ readonly toolName: string;
84
+ readonly originalError?: Error;
85
+ readonly mcpErrorCode: -32603;
86
+ constructor(appId: string, toolName: string, originalError?: Error);
87
+ }
88
+ /**
89
+ * Error thrown when a remote resource read fails
90
+ */
91
+ export declare class RemoteResourceReadError extends PublicMcpError {
92
+ readonly appId: string;
93
+ readonly uri: string;
94
+ readonly originalError?: Error;
95
+ readonly mcpErrorCode: -32603;
96
+ constructor(appId: string, uri: string, originalError?: Error);
97
+ }
98
+ /**
99
+ * Error thrown when a remote prompt get fails
100
+ */
101
+ export declare class RemotePromptGetError extends PublicMcpError {
102
+ readonly appId: string;
103
+ readonly promptName: string;
104
+ readonly originalError?: Error;
105
+ readonly mcpErrorCode: -32603;
106
+ constructor(appId: string, promptName: string, originalError?: Error);
107
+ }
108
+ /**
109
+ * Error thrown when transport initialization fails
110
+ */
111
+ export declare class RemoteTransportError extends InternalMcpError {
112
+ readonly appId: string;
113
+ readonly transportType: string;
114
+ readonly originalError?: Error;
115
+ constructor(appId: string, transportType: string, originalError?: Error);
116
+ }
117
+ /**
118
+ * Error thrown when transport type is not supported
119
+ */
120
+ export declare class RemoteUnsupportedTransportError extends PublicMcpError {
121
+ readonly transportType: string;
122
+ constructor(transportType: string);
123
+ }
124
+ /**
125
+ * Error thrown when capability discovery fails
126
+ */
127
+ export declare class RemoteCapabilityDiscoveryError extends InternalMcpError {
128
+ readonly appId: string;
129
+ readonly originalError?: Error;
130
+ constructor(appId: string, originalError?: Error);
131
+ }
132
+ /**
133
+ * Error thrown when remote server doesn't support required capability
134
+ */
135
+ export declare class RemoteCapabilityNotSupportedError extends PublicMcpError {
136
+ readonly appId: string;
137
+ readonly capability: string;
138
+ constructor(appId: string, capability: string);
139
+ }
140
+ /**
141
+ * Error thrown when remote app configuration is invalid
142
+ */
143
+ export declare class RemoteConfigurationError extends PublicMcpError {
144
+ readonly appId: string;
145
+ readonly configField?: string;
146
+ readonly details?: string;
147
+ constructor(appId: string, configField?: string, details?: string);
148
+ }
149
+ /**
150
+ * Error thrown when remote app is not connected
151
+ */
152
+ export declare class RemoteNotConnectedError extends PublicMcpError {
153
+ readonly appId: string;
154
+ constructor(appId: string);
155
+ }
156
+ //# sourceMappingURL=remote.errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote.errors.d.ts","sourceRoot":"","sources":["../../src/errors/remote.errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAmB,MAAM,aAAa,CAAC;AAMhF;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,gBAAgB;IACzD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,aAAa,CAAC,EAAE,KAAK,CAAC;gBAEnB,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,KAAK;CAS9D;AAED;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,gBAAgB;IACzD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;gBAEb,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM;CAQ3C;AAMD;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,cAAc;IACpD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,YAAY,SAAkC;gBAE3C,KAAK,EAAE,M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