@mastra/mcp 1.18.1-alpha.2 → 2.0.0-alpha.4

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 (90) hide show
  1. package/dist/client/actions/resource.d.ts +9 -59
  2. package/dist/client/actions/resource.d.ts.map +1 -1
  3. package/dist/client/client.d.ts +71 -124
  4. package/dist/client/client.d.ts.map +1 -1
  5. package/dist/client/configuration.d.ts +30 -120
  6. package/dist/client/configuration.d.ts.map +1 -1
  7. package/dist/client/error-utils.d.ts +9 -0
  8. package/dist/client/error-utils.d.ts.map +1 -1
  9. package/dist/client/index.d.ts +2 -1
  10. package/dist/client/index.d.ts.map +1 -1
  11. package/dist/client/oauth-callback-server.d.ts +8 -4
  12. package/dist/client/oauth-callback-server.d.ts.map +1 -1
  13. package/dist/client/oauth-provider.d.ts +91 -45
  14. package/dist/client/oauth-provider.d.ts.map +1 -1
  15. package/dist/client/server-proxy.d.ts +26 -46
  16. package/dist/client/server-proxy.d.ts.map +1 -1
  17. package/dist/client/types.d.ts +106 -143
  18. package/dist/client/types.d.ts.map +1 -1
  19. package/dist/conformance/fixture.d.ts +3 -0
  20. package/dist/conformance/fixture.d.ts.map +1 -0
  21. package/dist/conformance/run.d.ts +2 -0
  22. package/dist/conformance/run.d.ts.map +1 -0
  23. package/dist/conformance/stdio-server.d.ts +2 -0
  24. package/dist/conformance/stdio-server.d.ts.map +1 -0
  25. package/dist/docs/SKILL.md +2 -1
  26. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  27. package/dist/docs/references/reference-migrations-mcp-v2.md +268 -0
  28. package/dist/docs/references/reference-tools-mcp-client.md +36 -14
  29. package/dist/docs/references/reference-tools-mcp-server.md +24 -83
  30. package/dist/index.cjs +1532 -3284
  31. package/dist/index.cjs.map +1 -1
  32. package/dist/index.js +1535 -3288
  33. package/dist/index.js.map +1 -1
  34. package/dist/server/actions.d.ts +34 -0
  35. package/dist/server/actions.d.ts.map +1 -0
  36. package/dist/server/oauth-middleware.d.ts +1 -1
  37. package/dist/server/request.d.ts +54 -0
  38. package/dist/server/request.d.ts.map +1 -0
  39. package/dist/server/server.d.ts +112 -808
  40. package/dist/server/server.d.ts.map +1 -1
  41. package/dist/server/types.d.ts +82 -138
  42. package/dist/server/types.d.ts.map +1 -1
  43. package/dist/shared/index.d.ts +1 -0
  44. package/dist/shared/index.d.ts.map +1 -1
  45. package/dist/shared/oauth-types.d.ts +3 -3
  46. package/dist/shared/oauth-types.d.ts.map +1 -1
  47. package/dist/shared/trace-context.d.ts +20 -0
  48. package/dist/shared/trace-context.d.ts.map +1 -0
  49. package/package.json +12 -17
  50. package/dist/_types/hono/dist/types/client/client.d.ts +0 -4
  51. package/dist/_types/hono/dist/types/client/fetch-result-please.d.ts +0 -35
  52. package/dist/_types/hono/dist/types/client/index.d.ts +0 -7
  53. package/dist/_types/hono/dist/types/client/types.d.ts +0 -229
  54. package/dist/_types/hono/dist/types/client/utils.d.ts +0 -18
  55. package/dist/_types/hono/dist/types/context.d.ts +0 -455
  56. package/dist/_types/hono/dist/types/helper/streaming/index.d.ts +0 -8
  57. package/dist/_types/hono/dist/types/helper/streaming/sse.d.ts +0 -13
  58. package/dist/_types/hono/dist/types/helper/streaming/stream.d.ts +0 -3
  59. package/dist/_types/hono/dist/types/helper/streaming/text.d.ts +0 -3
  60. package/dist/_types/hono/dist/types/hono-base.d.ts +0 -220
  61. package/dist/_types/hono/dist/types/hono.d.ts +0 -19
  62. package/dist/_types/hono/dist/types/index.d.ts +0 -37
  63. package/dist/_types/hono/dist/types/request/constants.d.ts +0 -1
  64. package/dist/_types/hono/dist/types/request.d.ts +0 -324
  65. package/dist/_types/hono/dist/types/router.d.ts +0 -97
  66. package/dist/_types/hono/dist/types/types.d.ts +0 -573
  67. package/dist/_types/hono/dist/types/utils/body.d.ts +0 -79
  68. package/dist/_types/hono/dist/types/utils/headers.d.ts +0 -8
  69. package/dist/_types/hono/dist/types/utils/http-status.d.ts +0 -32
  70. package/dist/_types/hono/dist/types/utils/mime.d.ts +0 -70
  71. package/dist/_types/hono/dist/types/utils/stream.d.ts +0 -31
  72. package/dist/_types/hono/dist/types/utils/types.d.ts +0 -74
  73. package/dist/_types/hono/package.json +0 -1
  74. package/dist/_types/hono-mcp-server-sse-transport/build/index.d.ts +0 -1
  75. package/dist/_types/hono-mcp-server-sse-transport/build/sse.d.ts +0 -25
  76. package/dist/_types/hono-mcp-server-sse-transport/package.json +0 -1
  77. package/dist/client/actions/elicitation.d.ts +0 -63
  78. package/dist/client/actions/elicitation.d.ts.map +0 -1
  79. package/dist/server/__tests__/mock-extra.d.ts +0 -15
  80. package/dist/server/__tests__/mock-extra.d.ts.map +0 -1
  81. package/dist/server/mrtrElicitation.d.ts +0 -39
  82. package/dist/server/mrtrElicitation.d.ts.map +0 -1
  83. package/dist/server/notificationBroadcast.d.ts +0 -24
  84. package/dist/server/notificationBroadcast.d.ts.map +0 -1
  85. package/dist/server/promptActions.d.ts +0 -49
  86. package/dist/server/promptActions.d.ts.map +0 -1
  87. package/dist/server/resourceActions.d.ts +0 -72
  88. package/dist/server/resourceActions.d.ts.map +0 -1
  89. package/dist/server/toolActions.d.ts +0 -84
  90. package/dist/server/toolActions.d.ts.map +0 -1
@@ -1,79 +0,0 @@
1
- /**
2
- * @module
3
- * Body utility.
4
- */
5
- import type { HonoRequest } from '../request';
6
- type BodyDataValueDot = {
7
- [x: string]: string | File | BodyDataValueDot;
8
- };
9
- type BodyDataValueDotAll = {
10
- [x: string]: string | File | (string | File)[] | BodyDataValueDotAll;
11
- };
12
- type SimplifyBodyData<T> = {
13
- [K in keyof T]: string | File | (string | File)[] | BodyDataValueDotAll extends T[K] ? string | File | (string | File)[] | BodyDataValueDotAll : string | File | BodyDataValueDot extends T[K] ? string | File | BodyDataValueDot : string | File | (string | File)[] extends T[K] ? string | File | (string | File)[] : string | File;
14
- } & {};
15
- type BodyDataValueComponent<T> = string | File | (T extends {
16
- all: false;
17
- } ? never : T extends {
18
- all: true;
19
- } | {
20
- all: boolean;
21
- } ? (string | File)[] : never);
22
- type BodyDataValueObject<T> = {
23
- [key: string]: BodyDataValueComponent<T> | BodyDataValueObject<T>;
24
- };
25
- type BodyDataValue<T> = BodyDataValueComponent<T> | (T extends {
26
- dot: false;
27
- } ? never : T extends {
28
- dot: true;
29
- } | {
30
- dot: boolean;
31
- } ? BodyDataValueObject<T> : never);
32
- export type BodyData<T extends Partial<ParseBodyOptions> = {}> = SimplifyBodyData<Record<string, BodyDataValue<T>>>;
33
- export type ParseBodyOptions = {
34
- /**
35
- * Determines whether all fields with multiple values should be parsed as arrays.
36
- * @default false
37
- * @example
38
- * const data = new FormData()
39
- * data.append('file', 'aaa')
40
- * data.append('file', 'bbb')
41
- * data.append('message', 'hello')
42
- *
43
- * If all is false:
44
- * parseBody should return { file: 'bbb', message: 'hello' }
45
- *
46
- * If all is true:
47
- * parseBody should return { file: ['aaa', 'bbb'], message: 'hello' }
48
- */
49
- all: boolean;
50
- /**
51
- * Determines whether all fields with dot notation should be parsed as nested objects.
52
- * @default false
53
- * @example
54
- * const data = new FormData()
55
- * data.append('obj.key1', 'value1')
56
- * data.append('obj.key2', 'value2')
57
- *
58
- * If dot is false:
59
- * parseBody should return { 'obj.key1': 'value1', 'obj.key2': 'value2' }
60
- *
61
- * If dot is true:
62
- * parseBody should return { obj: { key1: 'value1', key2: 'value2' } }
63
- */
64
- dot: boolean;
65
- };
66
- /**
67
- * Parses the body of a request based on the provided options.
68
- *
69
- * @template T - The type of the parsed body data.
70
- * @param {HonoRequest | Request} request - The request object to parse.
71
- * @param {Partial<ParseBodyOptions>} [options] - Options for parsing the body.
72
- * @returns {Promise<T>} The parsed body data.
73
- */
74
- interface ParseBody {
75
- <Options extends Partial<ParseBodyOptions>, T extends BodyData<Options>>(request: HonoRequest | Request, options?: Options): Promise<T>;
76
- <T extends BodyData>(request: HonoRequest | Request, options?: Partial<ParseBodyOptions>): Promise<T>;
77
- }
78
- export declare const parseBody: ParseBody;
79
- export {};
@@ -1,8 +0,0 @@
1
- /**
2
- * @module
3
- * HTTP Headers utility.
4
- */
5
- export type RequestHeader = 'A-IM' | 'Accept' | 'Accept-Additions' | 'Accept-CH' | 'Accept-Charset' | 'Accept-Datetime' | 'Accept-Encoding' | 'Accept-Features' | 'Accept-Language' | 'Accept-Patch' | 'Accept-Post' | 'Accept-Ranges' | 'Accept-Signature' | 'Access-Control' | 'Access-Control-Allow-Credentials' | 'Access-Control-Allow-Headers' | 'Access-Control-Allow-Methods' | 'Access-Control-Allow-Origin' | 'Access-Control-Expose-Headers' | 'Access-Control-Max-Age' | 'Access-Control-Request-Headers' | 'Access-Control-Request-Method' | 'Age' | 'Allow' | 'ALPN' | 'Alt-Svc' | 'Alt-Used' | 'Alternates' | 'AMP-Cache-Transform' | 'Apply-To-Redirect-Ref' | 'Authentication-Control' | 'Authentication-Info' | 'Authorization' | 'Available-Dictionary' | 'C-Ext' | 'C-Man' | 'C-Opt' | 'C-PEP' | 'C-PEP-Info' | 'Cache-Control' | 'Cache-Status' | 'Cal-Managed-ID' | 'CalDAV-Timezones' | 'Capsule-Protocol' | 'CDN-Cache-Control' | 'CDN-Loop' | 'Cert-Not-After' | 'Cert-Not-Before' | 'Clear-Site-Data' | 'Client-Cert' | 'Client-Cert-Chain' | 'Close' | 'CMCD-Object' | 'CMCD-Request' | 'CMCD-Session' | 'CMCD-Status' | 'CMSD-Dynamic' | 'CMSD-Static' | 'Concealed-Auth-Export' | 'Configuration-Context' | 'Connection' | 'Content-Base' | 'Content-Digest' | 'Content-Disposition' | 'Content-Encoding' | 'Content-ID' | 'Content-Language' | 'Content-Length' | 'Content-Location' | 'Content-MD5' | 'Content-Range' | 'Content-Script-Type' | 'Content-Security-Policy' | 'Content-Security-Policy-Report-Only' | 'Content-Style-Type' | 'Content-Type' | 'Content-Version' | 'Cookie' | 'Cookie2' | 'Cross-Origin-Embedder-Policy' | 'Cross-Origin-Embedder-Policy-Report-Only' | 'Cross-Origin-Opener-Policy' | 'Cross-Origin-Opener-Policy-Report-Only' | 'Cross-Origin-Resource-Policy' | 'CTA-Common-Access-Token' | 'DASL' | 'Date' | 'DAV' | 'Default-Style' | 'Delta-Base' | 'Deprecation' | 'Depth' | 'Derived-From' | 'Destination' | 'Differential-ID' | 'Dictionary-ID' | 'Digest' | 'DPoP' | 'DPoP-Nonce' | 'Early-Data' | 'EDIINT-Features' | 'ETag' | 'Expect' | 'Expect-CT' | 'Expires' | 'Ext' | 'Forwarded' | 'From' | 'GetProfile' | 'Hobareg' | 'Host' | 'HTTP2-Settings' | 'If' | 'If-Match' | 'If-Modified-Since' | 'If-None-Match' | 'If-Range' | 'If-Schedule-Tag-Match' | 'If-Unmodified-Since' | 'IM' | 'Include-Referred-Token-Binding-ID' | 'Isolation' | 'Keep-Alive' | 'Label' | 'Last-Event-ID' | 'Last-Modified' | 'Link' | 'Link-Template' | 'Location' | 'Lock-Token' | 'Man' | 'Max-Forwards' | 'Memento-Datetime' | 'Meter' | 'Method-Check' | 'Method-Check-Expires' | 'MIME-Version' | 'Negotiate' | 'NEL' | 'OData-EntityId' | 'OData-Isolation' | 'OData-MaxVersion' | 'OData-Version' | 'Opt' | 'Optional-WWW-Authenticate' | 'Ordering-Type' | 'Origin' | 'Origin-Agent-Cluster' | 'OSCORE' | 'OSLC-Core-Version' | 'Overwrite' | 'P3P' | 'PEP' | 'PEP-Info' | 'Permissions-Policy' | 'PICS-Label' | 'Ping-From' | 'Ping-To' | 'Position' | 'Pragma' | 'Prefer' | 'Preference-Applied' | 'Priority' | 'ProfileObject' | 'Protocol' | 'Protocol-Info' | 'Protocol-Query' | 'Protocol-Request' | 'Proxy-Authenticate' | 'Proxy-Authentication-Info' | 'Proxy-Authorization' | 'Proxy-Features' | 'Proxy-Instruction' | 'Proxy-Status' | 'Public' | 'Public-Key-Pins' | 'Public-Key-Pins-Report-Only' | 'Range' | 'Redirect-Ref' | 'Referer' | 'Referer-Root' | 'Referrer-Policy' | 'Refresh' | 'Repeatability-Client-ID' | 'Repeatability-First-Sent' | 'Repeatability-Request-ID' | 'Repeatability-Result' | 'Replay-Nonce' | 'Reporting-Endpoints' | 'Repr-Digest' | 'Retry-After' | 'Safe' | 'Schedule-Reply' | 'Schedule-Tag' | 'Sec-GPC' | 'Sec-Purpose' | 'Sec-Token-Binding' | 'Sec-WebSocket-Accept' | 'Sec-WebSocket-Extensions' | 'Sec-WebSocket-Key' | 'Sec-WebSocket-Protocol' | 'Sec-WebSocket-Version' | 'Security-Scheme' | 'Server' | 'Server-Timing' | 'Set-Cookie' | 'Set-Cookie2' | 'SetProfile' | 'Signature' | 'Signature-Input' | 'SLUG' | 'SoapAction' | 'Status-URI' | 'Strict-Transport-Security' | 'Sunset' | 'Surrogate-Capability' | 'Surrogate-Control' | 'TCN' | 'TE' | 'Timeout' | 'Timing-Allow-Origin' | 'Topic' | 'Traceparent' | 'Tracestate' | 'Trailer' | 'Transfer-Encoding' | 'TTL' | 'Upgrade' | 'Urgency' | 'URI' | 'Use-As-Dictionary' | 'User-Agent' | 'Variant-Vary' | 'Vary' | 'Via' | 'Want-Content-Digest' | 'Want-Digest' | 'Want-Repr-Digest' | 'Warning' | 'WWW-Authenticate' | 'X-Content-Type-Options' | 'X-Frame-Options';
6
- export type ResponseHeader = 'Access-Control-Allow-Credentials' | 'Access-Control-Allow-Headers' | 'Access-Control-Allow-Methods' | 'Access-Control-Allow-Origin' | 'Access-Control-Expose-Headers' | 'Access-Control-Max-Age' | 'Age' | 'Allow' | 'Cache-Control' | 'Clear-Site-Data' | 'Content-Disposition' | 'Content-Encoding' | 'Content-Language' | 'Content-Length' | 'Content-Location' | 'Content-Range' | 'Content-Security-Policy' | 'Content-Security-Policy-Report-Only' | 'Content-Type' | 'Cookie' | 'Cross-Origin-Embedder-Policy' | 'Cross-Origin-Opener-Policy' | 'Cross-Origin-Resource-Policy' | 'Date' | 'ETag' | 'Expires' | 'Last-Modified' | 'Location' | 'Permissions-Policy' | 'Pragma' | 'Retry-After' | 'Save-Data' | 'Sec-CH-Prefers-Color-Scheme' | 'Sec-CH-Prefers-Reduced-Motion' | 'Sec-CH-UA' | 'Sec-CH-UA-Arch' | 'Sec-CH-UA-Bitness' | 'Sec-CH-UA-Form-Factor' | 'Sec-CH-UA-Full-Version' | 'Sec-CH-UA-Full-Version-List' | 'Sec-CH-UA-Mobile' | 'Sec-CH-UA-Model' | 'Sec-CH-UA-Platform' | 'Sec-CH-UA-Platform-Version' | 'Sec-CH-UA-WoW64' | 'Sec-Fetch-Dest' | 'Sec-Fetch-Mode' | 'Sec-Fetch-Site' | 'Sec-Fetch-User' | 'Sec-GPC' | 'Server' | 'Server-Timing' | 'Service-Worker-Navigation-Preload' | 'Set-Cookie' | 'Strict-Transport-Security' | 'Timing-Allow-Origin' | 'Trailer' | 'Transfer-Encoding' | 'Upgrade' | 'Vary' | 'WWW-Authenticate' | 'Warning' | 'X-Content-Type-Options' | 'X-DNS-Prefetch-Control' | 'X-Frame-Options' | 'X-Permitted-Cross-Domain-Policies' | 'X-Powered-By' | 'X-Robots-Tag' | 'X-XSS-Protection';
7
- export type AcceptHeader = 'Accept' | 'Accept-Charset' | 'Accept-Encoding' | 'Accept-Language' | 'Accept-Patch' | 'Accept-Post' | 'Accept-Ranges';
8
- export type CustomHeader = string & {};
@@ -1,32 +0,0 @@
1
- /**
2
- * @module
3
- * HTTP Status utility.
4
- */
5
- export type InfoStatusCode = 100 | 101 | 102 | 103;
6
- export type SuccessStatusCode = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226;
7
- export type DeprecatedStatusCode = 305 | 306;
8
- export type RedirectStatusCode = 300 | 301 | 302 | 303 | 304 | DeprecatedStatusCode | 307 | 308;
9
- export type ClientErrorStatusCode = 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451;
10
- export type ServerErrorStatusCode = 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511;
11
- /**
12
- * `UnofficialStatusCode` can be used to specify an unofficial status code.
13
- * @example
14
- *
15
- * ```ts
16
- * app.get('/unknown', (c) => {
17
- * return c.text("Unknown Error", 520 as UnofficialStatusCode)
18
- * })
19
- * ```
20
- */
21
- export type UnofficialStatusCode = -1;
22
- /**
23
- * @deprecated
24
- * Use `UnofficialStatusCode` instead.
25
- */
26
- export type UnOfficalStatusCode = UnofficialStatusCode;
27
- /**
28
- * If you want to use an unofficial status, use `UnofficialStatusCode`.
29
- */
30
- export type StatusCode = InfoStatusCode | SuccessStatusCode | RedirectStatusCode | ClientErrorStatusCode | ServerErrorStatusCode | UnofficialStatusCode;
31
- export type ContentlessStatusCode = 101 | 204 | 205 | 304;
32
- export type ContentfulStatusCode = Exclude<StatusCode, ContentlessStatusCode>;
@@ -1,70 +0,0 @@
1
- /**
2
- * @module
3
- * MIME utility.
4
- */
5
- export declare const getMimeType: (filename: string, mimes?: Record<string, string>) => string | undefined;
6
- export declare const getExtension: (mimeType: string) => string | undefined;
7
- export { baseMimes as mimes };
8
- /**
9
- * Union types for BaseMime
10
- */
11
- export type BaseMime = (typeof _baseMimes)[keyof typeof _baseMimes];
12
- declare const _baseMimes: {
13
- readonly aac: "audio/aac";
14
- readonly avi: "video/x-msvideo";
15
- readonly avif: "image/avif";
16
- readonly av1: "video/av1";
17
- readonly bin: "application/octet-stream";
18
- readonly bmp: "image/bmp";
19
- readonly css: "text/css; charset=utf-8";
20
- readonly csv: "text/csv; charset=utf-8";
21
- readonly eot: "application/vnd.ms-fontobject";
22
- readonly epub: "application/epub+zip";
23
- readonly gif: "image/gif";
24
- readonly gz: "application/gzip";
25
- readonly htm: "text/html; charset=utf-8";
26
- readonly html: "text/html; charset=utf-8";
27
- readonly ico: "image/x-icon";
28
- readonly ics: "text/calendar; charset=utf-8";
29
- readonly jpeg: "image/jpeg";
30
- readonly jpg: "image/jpeg";
31
- readonly js: "text/javascript; charset=utf-8";
32
- readonly json: "application/json";
33
- readonly jsonld: "application/ld+json";
34
- readonly map: "application/json";
35
- readonly mid: "audio/x-midi";
36
- readonly midi: "audio/x-midi";
37
- readonly mjs: "text/javascript; charset=utf-8";
38
- readonly mp3: "audio/mpeg";
39
- readonly mp4: "video/mp4";
40
- readonly mpeg: "video/mpeg";
41
- readonly oga: "audio/ogg";
42
- readonly ogv: "video/ogg";
43
- readonly ogx: "application/ogg";
44
- readonly opus: "audio/opus";
45
- readonly otf: "font/otf";
46
- readonly pdf: "application/pdf";
47
- readonly png: "image/png";
48
- readonly rtf: "application/rtf";
49
- readonly svg: "image/svg+xml; charset=utf-8";
50
- readonly tif: "image/tiff";
51
- readonly tiff: "image/tiff";
52
- readonly ts: "video/mp2t";
53
- readonly ttf: "font/ttf";
54
- readonly txt: "text/plain; charset=utf-8";
55
- readonly wasm: "application/wasm";
56
- readonly webm: "video/webm";
57
- readonly weba: "audio/webm";
58
- readonly webmanifest: "application/manifest+json";
59
- readonly webp: "image/webp";
60
- readonly woff: "font/woff";
61
- readonly woff2: "font/woff2";
62
- readonly xhtml: "application/xhtml+xml; charset=utf-8";
63
- readonly xml: "application/xml; charset=utf-8";
64
- readonly zip: "application/zip";
65
- readonly '3gp': "video/3gpp";
66
- readonly '3g2': "video/3gpp2";
67
- readonly gltf: "model/gltf+json";
68
- readonly glb: "model/gltf-binary";
69
- };
70
- declare const baseMimes: Record<string, BaseMime>;
@@ -1,31 +0,0 @@
1
- /**
2
- * @module
3
- * Stream utility.
4
- */
5
- export declare class StreamingApi {
6
- private writer;
7
- private encoder;
8
- private writable;
9
- private abortSubscribers;
10
- responseReadable: ReadableStream;
11
- /**
12
- * Whether the stream has been aborted.
13
- */
14
- aborted: boolean;
15
- /**
16
- * Whether the stream has been closed normally.
17
- */
18
- closed: boolean;
19
- constructor(writable: WritableStream, _readable: ReadableStream);
20
- write(input: Uint8Array | string): Promise<StreamingApi>;
21
- writeln(input: string): Promise<StreamingApi>;
22
- sleep(ms: number): Promise<unknown>;
23
- close(): Promise<void>;
24
- pipe(body: ReadableStream): Promise<void>;
25
- onAbort(listener: () => void | Promise<void>): void;
26
- /**
27
- * Abort the stream.
28
- * You can call this method when stream is aborted by external event.
29
- */
30
- abort(): void;
31
- }
@@ -1,74 +0,0 @@
1
- /**
2
- * @module
3
- * Types utility.
4
- */
5
- export type Expect<T extends true> = T;
6
- export type Equal<X, Y> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? true : false;
7
- export type NotEqual<X, Y> = true extends Equal<X, Y> ? false : true;
8
- export type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
9
- export type RemoveBlankRecord<T> = T extends Record<infer K, unknown> ? (K extends string ? T : never) : never;
10
- export type IfAnyThenEmptyObject<T> = 0 extends 1 & T ? {} : T;
11
- export type JSONPrimitive = string | boolean | number | null;
12
- export type JSONArray = (JSONPrimitive | JSONObject | JSONArray)[];
13
- export type JSONObject = {
14
- [key: string]: JSONPrimitive | JSONArray | JSONObject | object | InvalidJSONValue;
15
- };
16
- export type InvalidJSONValue = undefined | symbol | ((...args: unknown[]) => unknown);
17
- type InvalidToNull<T> = T extends InvalidJSONValue ? null : T;
18
- type IsInvalid<T> = T extends InvalidJSONValue ? true : false;
19
- /**
20
- * symbol keys are omitted through `JSON.stringify`
21
- */
22
- type OmitSymbolKeys<T> = {
23
- [K in keyof T as K extends symbol ? never : K]: T[K];
24
- };
25
- export type JSONValue = JSONObject | JSONArray | JSONPrimitive;
26
- /**
27
- * Convert a type to a JSON-compatible type.
28
- *
29
- * Non-JSON values such as `Date` implement `.toJSON()`,
30
- * so they can be transformed to a value assignable to `JSONObject`
31
- *
32
- * `JSON.stringify()` throws a `TypeError` when it encounters a `bigint` value,
33
- * unless a custom `replacer` function or `.toJSON()` method is provided.
34
- *
35
- * This behaviour can be controlled by the `TError` generic type parameter,
36
- * which defaults to `bigint | ReadonlyArray<bigint>`.
37
- * You can set it to `never` to disable this check.
38
- */
39
- export type JSONParsed<T, TError = bigint | ReadonlyArray<bigint>> = T extends {
40
- toJSON(): infer J;
41
- } ? (() => J) extends () => JSONPrimitive ? J : (() => J) extends () => {
42
- toJSON(): unknown;
43
- } ? {} : JSONParsed<J, TError> : T extends JSONPrimitive ? T : T extends InvalidJSONValue ? never : T extends ReadonlyArray<unknown> ? {
44
- [K in keyof T]: JSONParsed<InvalidToNull<T[K]>, TError>;
45
- } extends infer A ? A extends ReadonlyArray<unknown> ? A : JSONParsed<InvalidToNull<T[number]>, TError>[] : never : T extends Set<unknown> | Map<unknown, unknown> | Record<string, never> ? {} : T extends object ? T[keyof T] extends TError ? never : {
46
- [K in keyof OmitSymbolKeys<T> as IsInvalid<T[K]> extends true ? never : K]: boolean extends IsInvalid<T[K]> ? JSONParsed<T[K], TError> | undefined : JSONParsed<T[K], TError>;
47
- } : T extends unknown ? T extends TError ? never : JSONValue : never;
48
- /**
49
- * Useful to flatten the type output to improve type hints shown in editors. And also to transform an interface into a type to aide with assignability.
50
- * @copyright from sindresorhus/type-fest
51
- */
52
- export type Simplify<T> = {
53
- [KeyType in keyof T]: T[KeyType];
54
- } & {};
55
- /**
56
- * A simple extension of Simplify that will deeply traverse array elements.
57
- */
58
- export type SimplifyDeepArray<T> = T extends any[] ? {
59
- [E in keyof T]: SimplifyDeepArray<T[E]>;
60
- } : Simplify<T>;
61
- export type InterfaceToType<T> = T extends Function ? T : {
62
- [K in keyof T]: InterfaceToType<T[K]>;
63
- };
64
- export type RequiredKeysOf<BaseType extends object> = Exclude<{
65
- [Key in keyof BaseType]: BaseType extends Record<Key, BaseType[Key]> ? Key : never;
66
- }[keyof BaseType], undefined>;
67
- export type HasRequiredKeys<BaseType extends object> = RequiredKeysOf<BaseType> extends never ? false : true;
68
- export type IsAny<T> = boolean extends (T extends never ? true : false) ? true : false;
69
- /**
70
- * String literal types with auto-completion
71
- * @see https://github.com/Microsoft/TypeScript/issues/29729
72
- */
73
- export type StringLiteralUnion<T> = T | (string & Record<never, never>);
74
- export {};
@@ -1 +0,0 @@
1
- {"type":"module"}
@@ -1 +0,0 @@
1
- export * from './sse.js';
@@ -1,25 +0,0 @@
1
- import type { Transport } from '@modelcontextprotocol/sdk/shared/transport.js';
2
- import { JSONRPCMessage } from '@modelcontextprotocol/sdk/types.js';
3
- import type { Context } from '../../hono/dist/types/index.js';
4
- import type { SSEStreamingApi } from '../../hono/dist/types/helper/streaming/index.js';
5
- export declare class SSETransport implements Transport {
6
- private messageUrl;
7
- private stream;
8
- private _sessionId;
9
- onclose?: () => void;
10
- onerror?: (error: Error) => void;
11
- onmessage?: (message: JSONRPCMessage) => void;
12
- /**
13
- * Creates a new SSETransport, which will direct the MPC client to POST messages to messageUrl
14
- */
15
- constructor(messageUrl: string, stream: SSEStreamingApi);
16
- get sessionId(): string;
17
- start(): Promise<void>;
18
- handlePostMessage(context: Context): Promise<Response>;
19
- /**
20
- * Handle a client message, regardless of how it arrived. This can be used to inform the server of messages that arrive via a means different than HTTP POST.
21
- */
22
- handleMessage(message: unknown): Promise<void>;
23
- close(): Promise<void>;
24
- send(message: JSONRPCMessage): Promise<void>;
25
- }
@@ -1 +0,0 @@
1
- {"type":"module"}
@@ -1,63 +0,0 @@
1
- import type { IMastraLogger } from '@mastra/core/logger';
2
- import type { ElicitRequest, ElicitResult } from '@modelcontextprotocol/client';
3
- import type { InternalMastraMCPClient } from '../client.js';
4
- interface ElicitationClientActionsConfig {
5
- client: InternalMastraMCPClient;
6
- logger: IMastraLogger;
7
- }
8
- /**
9
- * Client-side elicitation actions for handling interactive user input requests.
10
- *
11
- * Elicitation allows MCP servers to request structured information from users during
12
- * tool execution. The client provides a handler that collects user input and returns
13
- * it to the server.
14
- */
15
- export declare class ElicitationClientActions {
16
- private readonly client;
17
- private readonly logger;
18
- /**
19
- * @internal
20
- */
21
- constructor({ client, logger }: ElicitationClientActionsConfig);
22
- /**
23
- * Sets a handler function for processing elicitation requests from the server.
24
- *
25
- * The handler is called when the server needs to collect user input during tool execution.
26
- * The handler must return a response with action ('accept', 'decline', or 'cancel') and
27
- * optional content matching the requested schema.
28
- *
29
- * @param handler - Callback function to handle elicitation requests
30
- *
31
- * @example
32
- * ```typescript
33
- * client.elicitation.onRequest(async (request) => {
34
- * console.log('Server message:', request.message);
35
- * console.log('Requested schema:', request.requestedSchema);
36
- *
37
- * // Collect user input (e.g., via CLI prompt or UI form)
38
- * const userInput = await collectUserInput(request.requestedSchema);
39
- *
40
- * return {
41
- * action: 'accept',
42
- * content: userInput
43
- * };
44
- * });
45
- * ```
46
- *
47
- * @example
48
- * ```typescript
49
- * // Declining an elicitation request
50
- * client.elicitation.onRequest(async (request) => {
51
- * if (!shouldAcceptRequest(request)) {
52
- * return { action: 'decline' };
53
- * }
54
- *
55
- * const input = await getInput();
56
- * return { action: 'accept', content: input };
57
- * });
58
- * ```
59
- */
60
- onRequest(handler: (request: ElicitRequest['params']) => Promise<ElicitResult>): void;
61
- }
62
- export {};
63
- //# sourceMappingURL=elicitation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"elicitation.d.ts","sourceRoot":"","sources":["../../../src/client/actions/elicitation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAEzD,UAAU,8BAA8B;IACtC,MAAM,EAAE,uBAAuB,CAAC;IAChC,MAAM,EAAE,aAAa,CAAC;CACvB;AAED;;;;;;GAMG;AACH,qBAAa,wBAAwB;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IACjD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IAEvC;;OAEG;IACH,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,8BAA8B,EAG7D;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACI,SAAS,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC,QAAQ,CAAC,KAAK,OAAO,CAAC,YAAY,CAAC,GAAG,IAAI,CAE3F;CACF"}
@@ -1,15 +0,0 @@
1
- import type { MCPRequestHandlerExtra } from '../types.js';
2
- /**
3
- * Builds a ServerContext-shaped `extra` for invoking SDK request handlers
4
- * directly in tests. The MCP 2.0 SDK wraps tools/call, prompts/get and
5
- * resources/read handlers with a seam that reads `ctx.mcpReq` (e.g.
6
- * `requestState()`), so handler mocks must carry a real `mcpReq` envelope.
7
- * The flattened fields mirror what `toMCPRequestHandlerExtra` derives so
8
- * test assertions can keep referencing the mock object directly.
9
- */
10
- export declare const makeMockExtra: ({ sessionId, authInfo, requestId, }?: {
11
- sessionId?: string;
12
- authInfo?: Record<string, unknown>;
13
- requestId?: string;
14
- }) => MCPRequestHandlerExtra;
15
- //# sourceMappingURL=mock-extra.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mock-extra.d.ts","sourceRoot":"","sources":["../../../src/server/__tests__/mock-extra.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAEvD;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,yCAIvB;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,KAAQ,sBAmBR,CAAC"}
@@ -1,39 +0,0 @@
1
- import type { MCPServerContext } from '@mastra/core/tools';
2
- import type { ElicitRequest, ElicitResult, InputRequiredResult } from '@modelcontextprotocol/server';
3
- import type { ElicitationActions } from './types.js';
4
- /**
5
- * Thrown by the replay-based `sendRequest` when the current round carries no
6
- * answer for the elicitation. Never surfaces to tools or clients: the
7
- * `tools/call` handler converts it into an `input_required` result.
8
- */
9
- export declare class ElicitationReplayInterrupt extends Error {
10
- readonly key: string;
11
- readonly params: ElicitRequest['params'];
12
- readonly answered: Record<string, ElicitResult>;
13
- constructor(key: string, params: ElicitRequest['params'], answered: Record<string, ElicitResult>);
14
- }
15
- /**
16
- * Whether this request is served on the 2026-07-28 era. Modern clients always
17
- * attach the reserved per-request `_meta` envelope (the 2026 codec enforces the
18
- * required keys at dispatch); legacy requests never carry it.
19
- */
20
- export declare const isModernEraRequest: (extra: MCPServerContext) => boolean;
21
- /**
22
- * Builds the replay-based {@link ElicitationActions} for one modern-era tool
23
- * execution. Answers already provided by the client resolve immediately; the
24
- * first unanswered elicitation throws {@link ElicitationReplayInterrupt}.
25
- *
26
- * The interrupt is also reported through `onInterrupt` before it is thrown:
27
- * tool wrappers (e.g. Mastra's tool builder) re-wrap thrown errors, so the
28
- * `tools/call` handler cannot rely on `instanceof` on whatever escapes the
29
- * tool — the out-of-band capture is the authoritative signal.
30
- */
31
- export declare const createReplayElicitation: (extra: MCPServerContext, onInterrupt: (interrupt: ElicitationReplayInterrupt) => void) => ElicitationActions;
32
- /**
33
- * Converts a caught {@link ElicitationReplayInterrupt} into the
34
- * `input_required` result the `tools/call` handler returns to the client.
35
- * Prior answers travel in `requestState` because each retry only carries the
36
- * current round's `inputResponses`.
37
- */
38
- export declare const replayInterruptToInputRequired: (interrupt: ElicitationReplayInterrupt) => InputRequiredResult;
39
- //# sourceMappingURL=mrtrElicitation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mrtrElicitation.d.ts","sourceRoot":"","sources":["../../src/server/mrtrElicitation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAErG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AA6BlD;;;;GAIG;AACH,qBAAa,0BAA2B,SAAQ,KAAK;aAEjC,GAAG,EAAE,MAAM;aACX,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC;aAC/B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC;IAHxD,YACkB,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,EAC/B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,EAIvD;CACF;AAyCD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,UAAW,gBAAgB,KAAG,OAA8C,CAAC;AAE5G;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,UAC3B,gBAAgB,eACV,CAAC,SAAS,EAAE,0BAA0B,KAAK,IAAI,KAC3D,kBAgBF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,cAAe,0BAA0B,KAAG,mBAStF,CAAC"}
@@ -1,24 +0,0 @@
1
- import type { IMastraLogger } from '@mastra/core/logger';
2
- import type { Server } from '@modelcontextprotocol/server';
3
- /**
4
- * Sends a notification to every active server instance (the main stdio/SSE
5
- * instance plus each streamable HTTP session instance).
6
- *
7
- * Failures are aggregated: if only some instances fail, the failure is logged
8
- * and the broadcast is considered best-effort. A `MastraError` is thrown only
9
- * when every send fails.
10
- *
11
- * Note: clients connected in stateless/serverless mode cannot receive
12
- * notifications because each request uses a transient server instance.
13
- *
14
- * @internal
15
- */
16
- export declare function broadcastNotification({ servers, send, logger, errorId, errorText, errorDetails, }: {
17
- servers: Server[];
18
- send: (server: Server) => Promise<void>;
19
- logger: IMastraLogger;
20
- errorId: Uppercase<string>;
21
- errorText: string;
22
- errorDetails?: Record<string, string | number>;
23
- }): Promise<void>;
24
- //# sourceMappingURL=notificationBroadcast.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notificationBroadcast.d.ts","sourceRoot":"","sources":["../../src/server/notificationBroadcast.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAE3D;;;;;;;;;;;;GAYG;AACH,wBAAsB,qBAAqB,CAAC,EAC1C,OAAO,EACP,IAAI,EACJ,MAAM,EACN,OAAO,EACP,SAAS,EACT,YAAY,GACb,EAAE;IACD,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC,MAAM,EAAE,aAAa,CAAC;IACtB,OAAO,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;CAChD,GAAG,OAAO,CAAC,IAAI,CAAC,CAgChB"}
@@ -1,49 +0,0 @@
1
- import type { IMastraLogger } from '@mastra/core/logger';
2
- import type { Server, ServerNotifier } from '@modelcontextprotocol/server';
3
- interface ServerPromptActionsDependencies {
4
- getLogger: () => IMastraLogger;
5
- getSdkServers: () => Server[];
6
- /**
7
- * Publish-side facade of the 2026-07-28 handler's subscription bus, when the
8
- * server is pinned to that revision and the handler exists. Modern clients
9
- * receive change events via `subscriptions/listen` instead of server push.
10
- */
11
- getModernEraNotifier?: () => ServerNotifier | undefined;
12
- }
13
- /**
14
- * Server-side prompt actions for notifying clients about prompt changes.
15
- *
16
- * This class provides methods for MCP servers to notify connected clients when
17
- * the list of available prompts changes.
18
- *
19
- * Notifications are broadcast to every active server instance (the main
20
- * stdio/SSE instance plus each streamable HTTP session). Clients connected in
21
- * stateless/serverless mode cannot receive notifications because each request
22
- * uses a transient server instance.
23
- */
24
- export declare class ServerPromptActions {
25
- private readonly getLogger;
26
- private readonly getSdkServers;
27
- private readonly getModernEraNotifier?;
28
- /**
29
- * @internal
30
- */
31
- constructor(dependencies: ServerPromptActionsDependencies);
32
- /**
33
- * Notifies clients that the overall list of available prompts has changed.
34
- *
35
- * This sends a `notifications/prompts/list_changed` message to all clients,
36
- * prompting them to re-fetch the prompt list.
37
- *
38
- * @throws {MastraError} If sending the notification fails on all server instances
39
- *
40
- * @example
41
- * ```typescript
42
- * // After adding or modifying prompts
43
- * await server.prompts.notifyListChanged();
44
- * ```
45
- */
46
- notifyListChanged(): Promise<void>;
47
- }
48
- export {};
49
- //# sourceMappingURL=promptActions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"promptActions.d.ts","sourceRoot":"","sources":["../../src/server/promptActions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAG3E,UAAU,+BAA+B;IACvC,SAAS,EAAE,MAAM,aAAa,CAAC;IAC/B,aAAa,EAAE,MAAM,MAAM,EAAE,CAAC;IAC9B;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,cAAc,GAAG,SAAS,CAAC;CACzD;AAED;;;;;;;;;;GAUG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAsB;IAChD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAiB;IAC/C,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAmC;IAEzE;;OAEG;IACH,YAAY,YAAY,EAAE,+BAA+B,EAIxD;IAED;;;;;;;;;;;;;OAaG;IACU,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,CAW9C;CACF"}
@@ -1,72 +0,0 @@
1
- import type { IMastraLogger } from '@mastra/core/logger';
2
- import type { Server, ServerNotifier } from '@modelcontextprotocol/server';
3
- interface ServerResourceActionsDependencies {
4
- getSubscribedServers: (uri: string) => Server[];
5
- getLogger: () => IMastraLogger;
6
- getSdkServers: () => Server[];
7
- /**
8
- * Publish-side facade of the 2026-07-28 handler's subscription bus, when the
9
- * server is pinned to that revision and the handler exists. Modern clients
10
- * receive change events via `subscriptions/listen` instead of server push.
11
- */
12
- getModernEraNotifier?: () => ServerNotifier | undefined;
13
- }
14
- /**
15
- * Server-side resource actions for notifying clients about resource changes.
16
- *
17
- * This class provides methods for MCP servers to notify connected clients when
18
- * resources are updated or when the resource list changes.
19
- *
20
- * Notifications are broadcast to every active server instance (the main
21
- * stdio/SSE instance plus each streamable HTTP session). Clients connected in
22
- * stateless/serverless mode cannot receive notifications because each request
23
- * uses a transient server instance.
24
- */
25
- export declare class ServerResourceActions {
26
- private readonly getSubscribedServers;
27
- private readonly getLogger;
28
- private readonly getSdkServers;
29
- private readonly getModernEraNotifier?;
30
- /**
31
- * @internal
32
- */
33
- constructor(dependencies: ServerResourceActionsDependencies);
34
- /**
35
- * Notifies subscribed clients that a specific resource has been updated.
36
- *
37
- * Only clients that subscribed to the resource URI (via `resources/subscribe`)
38
- * receive a `notifications/resources/updated` message prompting them to
39
- * re-fetch the resource content.
40
- *
41
- * @param params - Notification parameters
42
- * @param params.uri - URI of the resource that was updated
43
- * @throws {MastraError} If sending the notification fails on all subscribed server instances
44
- *
45
- * @example
46
- * ```typescript
47
- * // After updating a file resource
48
- * await server.resources.notifyUpdated({ uri: 'file://data.txt' });
49
- * ```
50
- */
51
- notifyUpdated({ uri }: {
52
- uri: string;
53
- }): Promise<void>;
54
- /**
55
- * Notifies clients that the overall list of available resources has changed.
56
- *
57
- * This sends a `notifications/resources/list_changed` message to all clients, prompting
58
- * them to re-fetch the resource list. Resource lists and templates are always evaluated
59
- * per request, so there is no server-side cache to clear.
60
- *
61
- * @throws {MastraError} If sending the notification fails on all server instances
62
- *
63
- * @example
64
- * ```typescript
65
- * // After adding a new resource to your resource handler
66
- * await server.resources.notifyListChanged();
67
- * ```
68
- */
69
- notifyListChanged(): Promise<void>;
70
- }
71
- export {};
72
- //# sourceMappingURL=resourceActions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resourceActions.d.ts","sourceRoot":"","sources":["../../src/server/resourceActions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAG3E,UAAU,iCAAiC;IACzC,oBAAoB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,EAAE,CAAC;IAChD,SAAS,EAAE,MAAM,aAAa,CAAC;IAC/B,aAAa,EAAE,MAAM,MAAM,EAAE,CAAC;IAC9B;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,cAAc,GAAG,SAAS,CAAC;CACzD;AAED;;;;;;;;;;GAUG;AACH,qBAAa,qBAAqB;IAChC,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAA4B;IACjE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAsB;IAChD,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAiB;IAC/C,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAmC;IAEzE;;OAEG;IACH,YAAY,YAAY,EAAE,iCAAiC,EAK1D;IAED;;;;;;;;;;;;;;;;OAgBG;IACU,aAAa,CAAC,EAAE,GAAG,EAAE,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAkBlE;IAED;;;;;;;;;;;;;;OAcG;IACU,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,CAW9C;CACF"}