@mastra/server-adapters-test-suite 0.1.2 → 0.1.3-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @mastra/server-adapters-test-suite
2
2
 
3
+ ## 0.1.3-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Bump for npm ([#27221](https://github.com/mastra-ai/mastra/pull/27221))
8
+
9
+ - Updated dependencies [[`9b60f12`](https://github.com/mastra-ai/mastra/commit/9b60f12b13b28c9664a839aef435e6d10898644d), [`f885386`](https://github.com/mastra-ai/mastra/commit/f885386b79be0e4d784067b0e26608971e0cc788), [`f6a9762`](https://github.com/mastra-ai/mastra/commit/f6a9762b12ae9dad6a154f73ed3099a2ee472d0c), [`370f159`](https://github.com/mastra-ai/mastra/commit/370f159e96f1e630cd51d06a9e3a7a0a6659c465), [`fae54c5`](https://github.com/mastra-ai/mastra/commit/fae54c57917cd1f527937ca42b5ab7dfe1d55a2a)]:
10
+ - @mastra/core@1.78.1-alpha.0
11
+ - @mastra/server@1.78.1-alpha.0
12
+ - @mastra/mcp@2.4.2-alpha.0
13
+
3
14
  ## 0.1.2
4
15
 
5
16
  ### Patch Changes
package/dist/index.js CHANGED
@@ -57,6 +57,10 @@ function getRouteSpecificSchemaDefaults(route) {
57
57
  predicateScope: "trace",
58
58
  path: "entityName"
59
59
  } };
60
+ if (route.path === "/datasets/:datasetId/compare") return { body: {
61
+ experimentIds: ["test-experiment-a", "test-experiment-b"],
62
+ baselineId: "test-experiment-a"
63
+ } };
60
64
  return {};
61
65
  }
62
66
  /**
@@ -616,6 +620,17 @@ function mockAgentMethods(agent) {
616
620
  signal: createdSignal
617
621
  };
618
622
  });
623
+ vi.spyOn(agent, "queueSignal").mockImplementation((signal, target) => {
624
+ const createdSignal = createSignal(signal);
625
+ const runId = target?.runId ?? "test-run";
626
+ return {
627
+ accepted: Promise.resolve({
628
+ action: "deliver",
629
+ runId
630
+ }),
631
+ signal: createdSignal
632
+ };
633
+ });
619
634
  vi.spyOn(agent, "subscribeToThread").mockResolvedValue({
620
635
  stream: (async function* () {
621
636
  yield {