@composio/mastra 0.8.1 → 0.9.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/dist/index.cjs +2 -2
- package/dist/index.mjs +3 -3
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -56,12 +56,12 @@ var MastraProvider = class extends _composio_core.BaseAgenticProvider {
|
|
|
56
56
|
wrapTool(tool, executeTool) {
|
|
57
57
|
const inputParams = tool.inputParameters;
|
|
58
58
|
const inputSchema = (0, _mastra_schema_compat.applyCompatLayer)({
|
|
59
|
-
schema: (this.strict && inputParams?.type === "object" ? (0, _composio_core.removeNonRequiredProperties)(inputParams) : inputParams) ?? {},
|
|
59
|
+
schema: (0, _composio_core.dereferenceJsonSchema)((this.strict && inputParams?.type === "object" ? (0, _composio_core.removeNonRequiredProperties)(inputParams) : inputParams) ?? {}),
|
|
60
60
|
compatLayers: [],
|
|
61
61
|
mode: "jsonSchema"
|
|
62
62
|
});
|
|
63
63
|
const outputSchema = (0, _mastra_schema_compat.applyCompatLayer)({
|
|
64
|
-
schema: tool.outputParameters ?? {},
|
|
64
|
+
schema: (0, _composio_core.dereferenceJsonSchema)(tool.outputParameters ?? {}),
|
|
65
65
|
compatLayers: [],
|
|
66
66
|
mode: "jsonSchema"
|
|
67
67
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseAgenticProvider, removeNonRequiredProperties } from "@composio/core";
|
|
1
|
+
import { BaseAgenticProvider, dereferenceJsonSchema, removeNonRequiredProperties } from "@composio/core";
|
|
2
2
|
import { applyCompatLayer } from "@mastra/schema-compat";
|
|
3
3
|
import { createTool } from "@mastra/core/tools";
|
|
4
4
|
|
|
@@ -56,12 +56,12 @@ var MastraProvider = class extends BaseAgenticProvider {
|
|
|
56
56
|
wrapTool(tool, executeTool) {
|
|
57
57
|
const inputParams = tool.inputParameters;
|
|
58
58
|
const inputSchema = applyCompatLayer({
|
|
59
|
-
schema: (this.strict && inputParams?.type === "object" ? removeNonRequiredProperties(inputParams) : inputParams) ?? {},
|
|
59
|
+
schema: dereferenceJsonSchema((this.strict && inputParams?.type === "object" ? removeNonRequiredProperties(inputParams) : inputParams) ?? {}),
|
|
60
60
|
compatLayers: [],
|
|
61
61
|
mode: "jsonSchema"
|
|
62
62
|
});
|
|
63
63
|
const outputSchema = applyCompatLayer({
|
|
64
|
-
schema: tool.outputParameters ?? {},
|
|
64
|
+
schema: dereferenceJsonSchema(tool.outputParameters ?? {}),
|
|
65
65
|
compatLayers: [],
|
|
66
66
|
mode: "jsonSchema"
|
|
67
67
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@composio/mastra",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Agentic Provider for mastra in Composio SDK",
|
|
5
5
|
"main": "dist/index.mjs",
|
|
6
6
|
"publishConfig": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"author": "",
|
|
35
35
|
"license": "ISC",
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@composio/core": "0.
|
|
37
|
+
"@composio/core": "0.9.0",
|
|
38
38
|
"@mastra/core": "^1.0.4",
|
|
39
39
|
"zod": "^3.25 || ^4"
|
|
40
40
|
},
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"typescript": "^5.9.2",
|
|
45
45
|
"vitest": "^3.1.4",
|
|
46
46
|
"zod": "^4.1.0",
|
|
47
|
-
"@composio/core": "0.
|
|
47
|
+
"@composio/core": "0.9.0"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@mastra/schema-compat": "^1.
|
|
50
|
+
"@mastra/schema-compat": "^1.2.9"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"clean": "git clean -xdf node_modules",
|