create-mastra 0.0.0-taofeeq-fix-tool-call-showing-after-message-20250806184630 → 0.0.0-testing-cloud-studios-20260114234039

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.
@@ -35,8 +35,8 @@ export const weatherTool = createTool({
35
35
  conditions: z.string(),
36
36
  location: z.string(),
37
37
  }),
38
- execute: async ({ context }) => {
39
- return await getWeather(context.location);
38
+ execute: async (inputData) => {
39
+ return await getWeather(inputData.location);
40
40
  },
41
41
  });
42
42
 
@@ -1,9 +1,5 @@
1
1
  // @ts-ignore
2
- // @ts-ignore
3
- import { evaluate } from '@mastra/core/eval';
4
- import { AvailableHooks, registerHook } from '@mastra/core/hooks';
5
- import { TABLE_EVALS } from '@mastra/core/storage';
6
- import { checkEvalStorageFields } from '@mastra/core/utils';
2
+ import { scoreTracesWorkflow } from '@mastra/core/evals/scoreTraces';
7
3
  import { mastra } from '#mastra';
8
4
  import { createNodeServer, getToolExports } from '#server';
9
5
  import { tools } from '#tools';
@@ -14,40 +10,6 @@ await createNodeServer(mastra, {
14
10
  tools: getToolExports(tools),
15
11
  });
16
12
 
17
- registerHook(AvailableHooks.ON_GENERATION, ({ input, output, metric, runId, agentName, instructions }) => {
18
- evaluate({
19
- agentName,
20
- input,
21
- metric,
22
- output,
23
- runId,
24
- globalRunId: runId,
25
- instructions,
26
- });
27
- });
28
-
29
- registerHook(AvailableHooks.ON_EVALUATION, async traceObject => {
30
- const storage = mastra.getStorage();
31
- if (storage) {
32
- // Check for required fields
33
- const logger = mastra?.getLogger();
34
- const areFieldsValid = checkEvalStorageFields(traceObject, logger);
35
- if (!areFieldsValid) return;
36
-
37
- await storage.insert({
38
- tableName: TABLE_EVALS,
39
- record: {
40
- input: traceObject.input,
41
- output: traceObject.output,
42
- result: JSON.stringify(traceObject.result || {}),
43
- agent_name: traceObject.agentName,
44
- metric_name: traceObject.metricName,
45
- instructions: traceObject.instructions,
46
- test_info: null,
47
- global_run_id: traceObject.globalRunId,
48
- run_id: traceObject.runId,
49
- created_at: new Date().toISOString(),
50
- },
51
- });
52
- }
53
- });
13
+ if (mastra.getStorage()) {
14
+ mastra.__registerInternalWorkflow(scoreTracesWorkflow);
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-mastra",
3
- "version": "0.0.0-taofeeq-fix-tool-call-showing-after-message-20250806184630",
3
+ "version": "0.0.0-testing-cloud-studios-20260114234039",
4
4
  "description": "Create Mastra apps with one command",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -10,8 +10,7 @@
10
10
  },
11
11
  "files": [
12
12
  "dist",
13
- "starter-files",
14
- "templates"
13
+ "CHANGELOG.md"
15
14
  ],
16
15
  "keywords": [
17
16
  "mastra",
@@ -31,32 +30,40 @@
31
30
  "project"
32
31
  ],
33
32
  "dependencies": {
34
- "commander": "^12.1.0",
35
- "execa": "^9.6.0",
36
- "fs-extra": "^11.3.0",
37
- "pino": "^9.7.0",
38
- "pino-pretty": "^13.0.0",
39
- "posthog-node": "^4.18.0",
40
- "prettier": "^3.6.2"
33
+ "commander": "^14.0.2",
34
+ "execa": "^9.6.1",
35
+ "fs-extra": "^11.3.3",
36
+ "pino": "^10.1.0",
37
+ "pino-pretty": "^13.1.3",
38
+ "posthog-node": "^5.17.2",
39
+ "prettier": "^3.7.4"
41
40
  },
42
41
  "devDependencies": {
43
- "@microsoft/api-extractor": "^7.52.8",
44
- "@rollup/plugin-commonjs": "^28.0.6",
45
- "@rollup/plugin-json": "^6.1.0",
46
- "@rollup/plugin-node-resolve": "^16.0.1",
42
+ "@rollup/plugin-commonjs": "29.0.0",
43
+ "@rollup/plugin-json": "6.1.0",
44
+ "@rollup/plugin-node-resolve": "16.0.3",
47
45
  "@types/fs-extra": "^11.0.4",
48
- "@types/node": "^20.19.0",
49
- "esbuild": "^0.25.8",
50
- "eslint": "^9.30.1",
51
- "rollup": "^4.42.0",
46
+ "@types/node": "22.13.17",
47
+ "esbuild": "^0.27.1",
48
+ "eslint": "^9.39.2",
49
+ "rollup": "^4.50.2",
52
50
  "rollup-plugin-esbuild": "^6.2.1",
53
- "rollup-plugin-node-externals": "^8.0.1",
54
- "typescript": "^5.8.3",
55
- "@internal/lint": "0.0.0-taofeeq-fix-tool-call-showing-after-message-20250806184630",
56
- "mastra": "0.0.0-taofeeq-fix-tool-call-showing-after-message-20250806184630"
51
+ "rollup-plugin-node-externals": "^8.1.2",
52
+ "typescript": "^5.9.3",
53
+ "@internal/lint": "0.0.0-testing-cloud-studios-20260114234039",
54
+ "mastra": "0.0.0-testing-cloud-studios-20260114234039"
57
55
  },
58
56
  "engines": {
59
- "node": ">=20"
57
+ "node": ">=22.13.0"
58
+ },
59
+ "homepage": "https://mastra.ai",
60
+ "repository": {
61
+ "type": "git",
62
+ "url": "git+https://github.com/mastra-ai/mastra.git",
63
+ "directory": "packages/create-mastra"
64
+ },
65
+ "bugs": {
66
+ "url": "https://github.com/mastra-ai/mastra/issues"
60
67
  },
61
68
  "scripts": {
62
69
  "build": "rollup -c",
@@ -1,26 +0,0 @@
1
- export declare const config: {
2
- readonly name: "PROJECT_NAME";
3
- readonly integrations: readonly [];
4
- readonly db: {
5
- readonly provider: "postgres";
6
- readonly uri: string;
7
- };
8
- readonly runner: {
9
- readonly provider: "inngest";
10
- readonly uri: string;
11
- readonly signingKey: string;
12
- readonly eventKey: string;
13
- };
14
- readonly workflows: {
15
- readonly blueprintDirPath: "/mastra/blueprints";
16
- readonly systemEvents: {};
17
- readonly systemApis: readonly [];
18
- };
19
- readonly agents: {
20
- readonly agentDirPath: "/mastra/agents";
21
- readonly vectorProvider: readonly [];
22
- };
23
- readonly systemHostURL: string;
24
- readonly routeRegistrationPath: "/api/mastra";
25
- };
26
- //# sourceMappingURL=config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/starter-files/config.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;CAwBT,CAAC"}
@@ -1,25 +0,0 @@
1
- export const config = {
2
- name: 'PROJECT_NAME',
3
- integrations: [],
4
- db: {
5
- provider: 'postgres',
6
- uri: process.env.DB_URL!,
7
- },
8
- runner: {
9
- provider: 'inngest',
10
- uri: process.env.INNGEST_URL!,
11
- signingKey: process.env.INNGEST_SIGNING_KEY!,
12
- eventKey: process.env.INNGEST_EVENT_KEY!,
13
- },
14
- workflows: {
15
- blueprintDirPath: '/mastra/blueprints',
16
- systemEvents: {},
17
- systemApis: [],
18
- },
19
- agents: {
20
- agentDirPath: '/mastra/agents',
21
- vectorProvider: [],
22
- },
23
- systemHostURL: process.env.APP_URL!,
24
- routeRegistrationPath: '/api/mastra',
25
- } as const;
@@ -1,15 +0,0 @@
1
- services:
2
- db:
3
- image: pgvector/pgvector:pg16
4
- container_name: 'REPLACE_PROJECT_NAME-db'
5
- ports:
6
- - 'REPLACE_DB_PORT:5432'
7
- environment:
8
- POSTGRES_USER: ${POSTGRES_USER:-postgres}
9
- POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
10
- POSTGRES_DB: ${POSTGRES_DB:-mastra}
11
- volumes:
12
- - pgdata:/var/lib/postgresql/data
13
-
14
- volumes:
15
- pgdata:
@@ -1,79 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const weatherTool: import("@mastra/core/tools").Tool<z.ZodObject<{
3
- location: z.ZodString;
4
- }, "strip", z.ZodTypeAny, {
5
- location: string;
6
- }, {
7
- location: string;
8
- }>, z.ZodObject<{
9
- temperature: z.ZodNumber;
10
- feelsLike: z.ZodNumber;
11
- humidity: z.ZodNumber;
12
- windSpeed: z.ZodNumber;
13
- windGust: z.ZodNumber;
14
- conditions: z.ZodString;
15
- location: z.ZodString;
16
- }, "strip", z.ZodTypeAny, {
17
- location: string;
18
- temperature: number;
19
- feelsLike: number;
20
- humidity: number;
21
- windSpeed: number;
22
- windGust: number;
23
- conditions: string;
24
- }, {
25
- location: string;
26
- temperature: number;
27
- feelsLike: number;
28
- humidity: number;
29
- windSpeed: number;
30
- windGust: number;
31
- conditions: string;
32
- }>, import("@mastra/core").ToolExecutionContext<z.ZodObject<{
33
- location: z.ZodString;
34
- }, "strip", z.ZodTypeAny, {
35
- location: string;
36
- }, {
37
- location: string;
38
- }>>> & {
39
- inputSchema: z.ZodObject<{
40
- location: z.ZodString;
41
- }, "strip", z.ZodTypeAny, {
42
- location: string;
43
- }, {
44
- location: string;
45
- }>;
46
- outputSchema: z.ZodObject<{
47
- temperature: z.ZodNumber;
48
- feelsLike: z.ZodNumber;
49
- humidity: z.ZodNumber;
50
- windSpeed: z.ZodNumber;
51
- windGust: z.ZodNumber;
52
- conditions: z.ZodString;
53
- location: z.ZodString;
54
- }, "strip", z.ZodTypeAny, {
55
- location: string;
56
- temperature: number;
57
- feelsLike: number;
58
- humidity: number;
59
- windSpeed: number;
60
- windGust: number;
61
- conditions: string;
62
- }, {
63
- location: string;
64
- temperature: number;
65
- feelsLike: number;
66
- humidity: number;
67
- windSpeed: number;
68
- windGust: number;
69
- conditions: string;
70
- }>;
71
- execute: (context: import("@mastra/core").ToolExecutionContext<z.ZodObject<{
72
- location: z.ZodString;
73
- }, "strip", z.ZodTypeAny, {
74
- location: string;
75
- }, {
76
- location: string;
77
- }>>) => Promise<any>;
78
- };
79
- //# sourceMappingURL=tools.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/starter-files/tools.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBtB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=dev.entry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dev.entry.d.ts","sourceRoot":"","sources":["../../src/templates/dev.entry.js"],"names":[],"mappings":""}