@mastra/server-adapters-test-suite 0.2.2-alpha.0 → 0.3.0-alpha.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"route-adapter-test-suite.d.ts","sourceRoot":"","sources":["../src/route-adapter-test-suite.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAsB,sBAAsB,EAA6B,MAAM,gBAAgB,CAAC;AAE5G;;;;;;;;;;;GAWG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,sBAAsB,QAi/CzE"}
1
+ {"version":3,"file":"route-adapter-test-suite.d.ts","sourceRoot":"","sources":["../src/route-adapter-test-suite.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAsB,sBAAsB,EAA6B,MAAM,gBAAgB,CAAC;AAE5G;;;;;;;;;;;GAWG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,sBAAsB,QA2/CzE"}
@@ -0,0 +1,24 @@
1
+ import type { ServerRoute } from '@mastra/server/server-adapter';
2
+ export interface StreamDisconnectTestConfig {
3
+ /**
4
+ * Serves `route` over real HTTP with no prefix and returns the route's absolute URL. When `beforeContext` is
5
+ * given, run it as async middleware (or the framework's request hook) before the adapter's context middleware.
6
+ * When `compress` is set, gzip responses with the framework's usual compression middleware.
7
+ */
8
+ startServer: (route: ServerRoute<any, any, any>, options?: {
9
+ beforeContext?: () => Promise<void>;
10
+ compress?: boolean;
11
+ }) => Promise<{
12
+ url: string;
13
+ close: () => Promise<void>;
14
+ }>;
15
+ /** Set when `startServer` supports `compress`, to run the compressed-response cases. */
16
+ supportsCompression?: boolean;
17
+ }
18
+ /**
19
+ * Covers what happens to the stream a route returns when the client goes away (#29634, #29640). The adapter has
20
+ * to cancel the upstream stream once the client is gone; for agents with resumable streams that cancel is the only
21
+ * signal that the HTTP observer left, and without it the upstream keeps being read into a dead socket.
22
+ */
23
+ export declare function createStreamDisconnectTestSuite(config: StreamDisconnectTestConfig): void;
24
+ //# sourceMappingURL=stream-disconnect-test-suite.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stream-disconnect-test-suite.d.ts","sourceRoot":"","sources":["../src/stream-disconnect-test-suite.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAGjE,MAAM,WAAW,0BAA0B;IACzC;;;;OAIG;IACH,WAAW,EAAE,CACX,KAAK,EAAE,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EACjC,OAAO,CAAC,EAAE;QAAE,aAAa,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,KAClE,OAAO,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;KAAE,CAAC,CAAC;IAC1D,wFAAwF;IACxF,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAYD;;;;GAIG;AACH,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,0BAA0B,QAqOjF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/server-adapters-test-suite",
3
- "version": "0.2.2-alpha.0",
3
+ "version": "0.3.0-alpha.2",
4
4
  "description": "Reusable conformance test suite for Mastra server adapters",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -21,11 +21,11 @@
21
21
  "typescript": "^7.0.2",
22
22
  "vitest": "5.1.0",
23
23
  "zod": "^4.6.7",
24
- "@internal/types-builder": "0.0.123",
24
+ "@mastra/core": "1.83.0-alpha.5",
25
+ "@mastra/mcp": "2.9.0-alpha.2",
26
+ "@mastra/server": "1.83.0-alpha.5",
25
27
  "@internal/lint": "0.0.148",
26
- "@mastra/mcp": "2.9.0-alpha.1",
27
- "@mastra/core": "1.83.0-alpha.1",
28
- "@mastra/server": "1.83.0-alpha.1"
28
+ "@internal/types-builder": "0.0.123"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "@mastra/core": ">=1.64.0-0 <2.0.0-0",