@mastra/server 1.0.0-beta.2 → 1.0.0-beta.3
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 +9 -0
- package/dist/{chunk-ID6JYDNL.cjs → chunk-7HVY3D64.cjs} +19 -139
- package/dist/chunk-7HVY3D64.cjs.map +1 -0
- package/dist/{chunk-A2NPD5N6.cjs → chunk-U7GLIXYO.cjs} +26 -9
- package/dist/chunk-U7GLIXYO.cjs.map +1 -0
- package/dist/{chunk-4JF5WXPL.js → chunk-V6JYJS7O.js} +26 -10
- package/dist/chunk-V6JYJS7O.js.map +1 -0
- package/dist/{chunk-2IS5WICF.js → chunk-VEVU6EUO.js} +19 -139
- package/dist/chunk-VEVU6EUO.js.map +1 -0
- package/dist/server/handlers/agent-builder.cjs +19 -19
- package/dist/server/handlers/agent-builder.js +1 -1
- package/dist/server/handlers/memory.cjs +18 -14
- package/dist/server/handlers/memory.d.ts +2 -1
- package/dist/server/handlers/memory.d.ts.map +1 -1
- package/dist/server/handlers/memory.js +1 -1
- package/dist/server/handlers.cjs +4 -4
- package/dist/server/handlers.js +2 -2
- package/package.json +9 -7
- package/dist/chunk-2IS5WICF.js.map +0 -1
- package/dist/chunk-4JF5WXPL.js.map +0 -1
- package/dist/chunk-A2NPD5N6.cjs.map +0 -1
- package/dist/chunk-ID6JYDNL.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/server
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix semantic search endpoint to return results in the correct format. Also fix the delete messages endpoint to properly normalize ids in the expected format. ([#10032](https://github.com/mastra-ai/mastra/pull/10032))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`2319326`](https://github.com/mastra-ai/mastra/commit/2319326f8c64e503a09bbcf14be2dd65405445e0), [`d629361`](https://github.com/mastra-ai/mastra/commit/d629361a60f6565b5bfb11976fdaf7308af858e2), [`08c31c1`](https://github.com/mastra-ai/mastra/commit/08c31c188ebccd598acaf55e888b6397d01f7eae), [`fd3d338`](https://github.com/mastra-ai/mastra/commit/fd3d338a2c362174ed5b383f1f011ad9fb0302aa), [`c30400a`](https://github.com/mastra-ai/mastra/commit/c30400a49b994b1b97256fe785eb6c906fc2b232), [`69e0a87`](https://github.com/mastra-ai/mastra/commit/69e0a878896a2da9494945d86e056a5f8f05b851), [`01f8878`](https://github.com/mastra-ai/mastra/commit/01f88783de25e4de048c1c8aace43e26373c6ea5), [`4c77209`](https://github.com/mastra-ai/mastra/commit/4c77209e6c11678808b365d545845918c40045c8), [`d827d08`](https://github.com/mastra-ai/mastra/commit/d827d0808ffe1f3553a84e975806cc989b9735dd), [`23c10a1`](https://github.com/mastra-ai/mastra/commit/23c10a1efdd9a693c405511ab2dc8a1236603162), [`676ccc7`](https://github.com/mastra-ai/mastra/commit/676ccc7fe92468d2d45d39c31a87825c89fd1ea0), [`c10398d`](https://github.com/mastra-ai/mastra/commit/c10398d5b88f1d4af556f4267ff06f1d11e89179), [`00c2387`](https://github.com/mastra-ai/mastra/commit/00c2387f5f04a365316f851e58666ac43f8c4edf), [`ad6250d`](https://github.com/mastra-ai/mastra/commit/ad6250dbdaad927e29f74a27b83f6c468b50a705), [`3a73998`](https://github.com/mastra-ai/mastra/commit/3a73998fa4ebeb7f3dc9301afe78095fc63e7999), [`e16d553`](https://github.com/mastra-ai/mastra/commit/e16d55338403c7553531cc568125c63d53653dff), [`4d59f58`](https://github.com/mastra-ai/mastra/commit/4d59f58de2d90d6e2810a19d4518e38ddddb9038), [`e1bb9c9`](https://github.com/mastra-ai/mastra/commit/e1bb9c94b4eb68b019ae275981be3feb769b5365), [`351a11f`](https://github.com/mastra-ai/mastra/commit/351a11fcaf2ed1008977fa9b9a489fc422e51cd4)]:
|
|
10
|
+
- @mastra/core@1.0.0-beta.3
|
|
11
|
+
|
|
3
12
|
## 1.0.0-beta.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -14932,7 +14932,11 @@ function filter2(obj) {
|
|
|
14932
14932
|
}
|
|
14933
14933
|
function secureJsonParse2(text5) {
|
|
14934
14934
|
const { stackTraceLimit } = Error;
|
|
14935
|
-
|
|
14935
|
+
try {
|
|
14936
|
+
Error.stackTraceLimit = 0;
|
|
14937
|
+
} catch (e2) {
|
|
14938
|
+
return _parse2(text5);
|
|
14939
|
+
}
|
|
14936
14940
|
try {
|
|
14937
14941
|
return _parse2(text5);
|
|
14938
14942
|
} finally {
|
|
@@ -16161,13 +16165,13 @@ function asSchema4(schema) {
|
|
|
16161
16165
|
}
|
|
16162
16166
|
var __defProp5 = Object.defineProperty;
|
|
16163
16167
|
var __export5 = (target, all) => {
|
|
16164
|
-
for (var
|
|
16165
|
-
__defProp5(target,
|
|
16168
|
+
for (var name163 in all)
|
|
16169
|
+
__defProp5(target, name163, { get: all[name163], enumerable: true });
|
|
16166
16170
|
};
|
|
16167
|
-
var
|
|
16168
|
-
var
|
|
16169
|
-
var
|
|
16170
|
-
var
|
|
16171
|
+
var name66 = "AI_NoObjectGeneratedError";
|
|
16172
|
+
var marker65 = `vercel.ai.error.${name66}`;
|
|
16173
|
+
var symbol65 = Symbol.for(marker65);
|
|
16174
|
+
var _a65;
|
|
16171
16175
|
var NoObjectGeneratedError4 = class extends AISDKError2 {
|
|
16172
16176
|
constructor({
|
|
16173
16177
|
message = "No object generated.",
|
|
@@ -16177,18 +16181,18 @@ var NoObjectGeneratedError4 = class extends AISDKError2 {
|
|
|
16177
16181
|
usage,
|
|
16178
16182
|
finishReason
|
|
16179
16183
|
}) {
|
|
16180
|
-
super({ name:
|
|
16181
|
-
this[
|
|
16184
|
+
super({ name: name66, message, cause });
|
|
16185
|
+
this[_a65] = true;
|
|
16182
16186
|
this.text = text22;
|
|
16183
16187
|
this.response = response;
|
|
16184
16188
|
this.usage = usage;
|
|
16185
16189
|
this.finishReason = finishReason;
|
|
16186
16190
|
}
|
|
16187
16191
|
static isInstance(error) {
|
|
16188
|
-
return AISDKError2.hasMarker(error,
|
|
16192
|
+
return AISDKError2.hasMarker(error, marker65);
|
|
16189
16193
|
}
|
|
16190
16194
|
};
|
|
16191
|
-
|
|
16195
|
+
_a65 = symbol65;
|
|
16192
16196
|
var dataContentSchema4 = z42.z.union([
|
|
16193
16197
|
z42.z.string(),
|
|
16194
16198
|
z42.z.instanceof(Uint8Array),
|
|
@@ -16196,8 +16200,8 @@ var dataContentSchema4 = z42.z.union([
|
|
|
16196
16200
|
z42.z.custom(
|
|
16197
16201
|
// Buffer might not be available in some environments such as CloudFlare:
|
|
16198
16202
|
(value) => {
|
|
16199
|
-
var
|
|
16200
|
-
return (_b8 = (
|
|
16203
|
+
var _a163, _b8;
|
|
16204
|
+
return (_b8 = (_a163 = globalThis.Buffer) == null ? void 0 : _a163.isBuffer(value)) != null ? _b8 : false;
|
|
16201
16205
|
},
|
|
16202
16206
|
{ message: "Must be a Buffer" }
|
|
16203
16207
|
)
|
|
@@ -16746,130 +16750,6 @@ var object4 = ({
|
|
|
16746
16750
|
}
|
|
16747
16751
|
};
|
|
16748
16752
|
};
|
|
16749
|
-
var ClientOrServerImplementationSchema4 = z42.z.looseObject({
|
|
16750
|
-
name: z42.z.string(),
|
|
16751
|
-
version: z42.z.string()
|
|
16752
|
-
});
|
|
16753
|
-
var BaseParamsSchema4 = z42.z.looseObject({
|
|
16754
|
-
_meta: z42.z.optional(z42.z.object({}).loose())
|
|
16755
|
-
});
|
|
16756
|
-
var ResultSchema4 = BaseParamsSchema4;
|
|
16757
|
-
var RequestSchema4 = z42.z.object({
|
|
16758
|
-
method: z42.z.string(),
|
|
16759
|
-
params: z42.z.optional(BaseParamsSchema4)
|
|
16760
|
-
});
|
|
16761
|
-
var ServerCapabilitiesSchema4 = z42.z.looseObject({
|
|
16762
|
-
experimental: z42.z.optional(z42.z.object({}).loose()),
|
|
16763
|
-
logging: z42.z.optional(z42.z.object({}).loose()),
|
|
16764
|
-
prompts: z42.z.optional(
|
|
16765
|
-
z42.z.looseObject({
|
|
16766
|
-
listChanged: z42.z.optional(z42.z.boolean())
|
|
16767
|
-
})
|
|
16768
|
-
),
|
|
16769
|
-
resources: z42.z.optional(
|
|
16770
|
-
z42.z.looseObject({
|
|
16771
|
-
subscribe: z42.z.optional(z42.z.boolean()),
|
|
16772
|
-
listChanged: z42.z.optional(z42.z.boolean())
|
|
16773
|
-
})
|
|
16774
|
-
),
|
|
16775
|
-
tools: z42.z.optional(
|
|
16776
|
-
z42.z.looseObject({
|
|
16777
|
-
listChanged: z42.z.optional(z42.z.boolean())
|
|
16778
|
-
})
|
|
16779
|
-
)
|
|
16780
|
-
});
|
|
16781
|
-
ResultSchema4.extend({
|
|
16782
|
-
protocolVersion: z42.z.string(),
|
|
16783
|
-
capabilities: ServerCapabilitiesSchema4,
|
|
16784
|
-
serverInfo: ClientOrServerImplementationSchema4,
|
|
16785
|
-
instructions: z42.z.optional(z42.z.string())
|
|
16786
|
-
});
|
|
16787
|
-
var PaginatedResultSchema4 = ResultSchema4.extend({
|
|
16788
|
-
nextCursor: z42.z.optional(z42.z.string())
|
|
16789
|
-
});
|
|
16790
|
-
var ToolSchema4 = z42.z.object({
|
|
16791
|
-
name: z42.z.string(),
|
|
16792
|
-
description: z42.z.optional(z42.z.string()),
|
|
16793
|
-
inputSchema: z42.z.object({
|
|
16794
|
-
type: z42.z.literal("object"),
|
|
16795
|
-
properties: z42.z.optional(z42.z.object({}).loose())
|
|
16796
|
-
}).loose()
|
|
16797
|
-
}).loose();
|
|
16798
|
-
PaginatedResultSchema4.extend({
|
|
16799
|
-
tools: z42.z.array(ToolSchema4)
|
|
16800
|
-
});
|
|
16801
|
-
var TextContentSchema4 = z42.z.object({
|
|
16802
|
-
type: z42.z.literal("text"),
|
|
16803
|
-
text: z42.z.string()
|
|
16804
|
-
}).loose();
|
|
16805
|
-
var ImageContentSchema4 = z42.z.object({
|
|
16806
|
-
type: z42.z.literal("image"),
|
|
16807
|
-
data: z42.z.base64(),
|
|
16808
|
-
mimeType: z42.z.string()
|
|
16809
|
-
}).loose();
|
|
16810
|
-
var ResourceContentsSchema4 = z42.z.object({
|
|
16811
|
-
/**
|
|
16812
|
-
* The URI of this resource.
|
|
16813
|
-
*/
|
|
16814
|
-
uri: z42.z.string(),
|
|
16815
|
-
/**
|
|
16816
|
-
* The MIME type of this resource, if known.
|
|
16817
|
-
*/
|
|
16818
|
-
mimeType: z42.z.optional(z42.z.string())
|
|
16819
|
-
}).loose();
|
|
16820
|
-
var TextResourceContentsSchema4 = ResourceContentsSchema4.extend({
|
|
16821
|
-
text: z42.z.string()
|
|
16822
|
-
});
|
|
16823
|
-
var BlobResourceContentsSchema4 = ResourceContentsSchema4.extend({
|
|
16824
|
-
blob: z42.z.base64()
|
|
16825
|
-
});
|
|
16826
|
-
var EmbeddedResourceSchema4 = z42.z.object({
|
|
16827
|
-
type: z42.z.literal("resource"),
|
|
16828
|
-
resource: z42.z.union([TextResourceContentsSchema4, BlobResourceContentsSchema4])
|
|
16829
|
-
}).loose();
|
|
16830
|
-
ResultSchema4.extend({
|
|
16831
|
-
content: z42.z.array(
|
|
16832
|
-
z42.z.union([TextContentSchema4, ImageContentSchema4, EmbeddedResourceSchema4])
|
|
16833
|
-
),
|
|
16834
|
-
isError: z42.z.boolean().default(false).optional()
|
|
16835
|
-
}).or(
|
|
16836
|
-
ResultSchema4.extend({
|
|
16837
|
-
toolResult: z42.z.unknown()
|
|
16838
|
-
})
|
|
16839
|
-
);
|
|
16840
|
-
var JSONRPC_VERSION4 = "2.0";
|
|
16841
|
-
var JSONRPCRequestSchema4 = z42.z.object({
|
|
16842
|
-
jsonrpc: z42.z.literal(JSONRPC_VERSION4),
|
|
16843
|
-
id: z42.z.union([z42.z.string(), z42.z.number().int()])
|
|
16844
|
-
}).merge(RequestSchema4).strict();
|
|
16845
|
-
var JSONRPCResponseSchema4 = z42.z.object({
|
|
16846
|
-
jsonrpc: z42.z.literal(JSONRPC_VERSION4),
|
|
16847
|
-
id: z42.z.union([z42.z.string(), z42.z.number().int()]),
|
|
16848
|
-
result: ResultSchema4
|
|
16849
|
-
}).strict();
|
|
16850
|
-
var JSONRPCErrorSchema4 = z42.z.object({
|
|
16851
|
-
jsonrpc: z42.z.literal(JSONRPC_VERSION4),
|
|
16852
|
-
id: z42.z.union([z42.z.string(), z42.z.number().int()]),
|
|
16853
|
-
error: z42.z.object({
|
|
16854
|
-
code: z42.z.number().int(),
|
|
16855
|
-
message: z42.z.string(),
|
|
16856
|
-
data: z42.z.optional(z42.z.unknown())
|
|
16857
|
-
})
|
|
16858
|
-
}).strict();
|
|
16859
|
-
var JSONRPCNotificationSchema4 = z42.z.object({
|
|
16860
|
-
jsonrpc: z42.z.literal(JSONRPC_VERSION4)
|
|
16861
|
-
}).merge(
|
|
16862
|
-
z42.z.object({
|
|
16863
|
-
method: z42.z.string(),
|
|
16864
|
-
params: z42.z.optional(BaseParamsSchema4)
|
|
16865
|
-
})
|
|
16866
|
-
).strict();
|
|
16867
|
-
z42.z.union([
|
|
16868
|
-
JSONRPCRequestSchema4,
|
|
16869
|
-
JSONRPCNotificationSchema4,
|
|
16870
|
-
JSONRPCResponseSchema4,
|
|
16871
|
-
JSONRPCErrorSchema4
|
|
16872
|
-
]);
|
|
16873
16753
|
|
|
16874
16754
|
// ../agent-builder/dist/index.js
|
|
16875
16755
|
var UNIT_KINDS = ["mcp-server", "tool", "workflow", "agent", "integration", "network", "other"];
|
|
@@ -23071,5 +22951,5 @@ exports.startAsyncAgentBuilderActionHandler = startAsyncAgentBuilderActionHandle
|
|
|
23071
22951
|
exports.streamAgentBuilderActionHandler = streamAgentBuilderActionHandler;
|
|
23072
22952
|
exports.streamLegacyAgentBuilderActionHandler = streamLegacyAgentBuilderActionHandler;
|
|
23073
22953
|
exports.streamVNextAgentBuilderActionHandler = streamVNextAgentBuilderActionHandler;
|
|
23074
|
-
//# sourceMappingURL=chunk-
|
|
23075
|
-
//# sourceMappingURL=chunk-
|
|
22954
|
+
//# sourceMappingURL=chunk-7HVY3D64.cjs.map
|
|
22955
|
+
//# sourceMappingURL=chunk-7HVY3D64.cjs.map
|