create-mastra 0.0.0-revert-schema-20250416221206 → 0.0.0-scorers-ui-refactored-20250916094952

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.
@@ -5,9 +5,14 @@ import { AvailableHooks, registerHook } from '@mastra/core/hooks';
5
5
  import { TABLE_EVALS } from '@mastra/core/storage';
6
6
  import { checkEvalStorageFields } from '@mastra/core/utils';
7
7
  import { mastra } from '#mastra';
8
- import { createNodeServer } from '#server';
8
+ import { createNodeServer, getToolExports } from '#server';
9
+ import { tools } from '#tools';
9
10
  // @ts-ignore
10
- await createNodeServer(mastra, { playground: true, swaggerUI: true });
11
+ await createNodeServer(mastra, {
12
+ playground: true,
13
+ isDev: true,
14
+ tools: getToolExports(tools),
15
+ });
11
16
 
12
17
  registerHook(AvailableHooks.ON_GENERATION, ({ input, output, metric, runId, agentName, instructions }) => {
13
18
  evaluate({
@@ -21,11 +26,6 @@ registerHook(AvailableHooks.ON_GENERATION, ({ input, output, metric, runId, agen
21
26
  });
22
27
  });
23
28
 
24
- if (mastra.getStorage()) {
25
- // start storage init in the background
26
- mastra.getStorage().init();
27
- }
28
-
29
29
  registerHook(AvailableHooks.ON_EVALUATION, async traceObject => {
30
30
  const storage = mastra.getStorage();
31
31
  if (storage) {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "create-mastra",
3
- "version": "0.0.0-revert-schema-20250416221206",
3
+ "version": "0.0.0-scorers-ui-refactored-20250916094952",
4
4
  "description": "Create Mastra apps with one command",
5
- "license": "Elastic-2.0",
5
+ "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "bin": {
@@ -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",
@@ -32,32 +31,41 @@
32
31
  ],
33
32
  "dependencies": {
34
33
  "commander": "^12.1.0",
35
- "execa": "^9.5.2",
36
- "fs-extra": "^11.3.0",
37
- "pino": "^9.6.0",
34
+ "execa": "^9.6.0",
35
+ "fs-extra": "^11.3.1",
36
+ "pino": "^9.7.0",
38
37
  "pino-pretty": "^13.0.0",
39
- "posthog-node": "^4.10.1",
40
- "prettier": "^3.5.3"
38
+ "posthog-node": "^4.18.0",
39
+ "prettier": "^3.6.2"
41
40
  },
42
41
  "devDependencies": {
43
- "@microsoft/api-extractor": "^7.52.1",
44
- "@rollup/plugin-commonjs": "^28.0.3",
42
+ "@microsoft/api-extractor": "^7.52.8",
43
+ "@rollup/plugin-commonjs": "^28.0.6",
45
44
  "@rollup/plugin-json": "^6.1.0",
46
- "@rollup/plugin-node-resolve": "^16.0.0",
45
+ "@rollup/plugin-node-resolve": "^16.0.1",
47
46
  "@types/fs-extra": "^11.0.4",
48
- "@types/node": "^20.17.27",
49
- "esbuild": "^0.25.0",
50
- "eslint": "^9.23.0",
51
- "rollup": "^4.35.0",
47
+ "@types/node": "^20.19.0",
48
+ "esbuild": "^0.25.9",
49
+ "eslint": "^9.30.1",
50
+ "rollup": "^4.42.0",
52
51
  "rollup-plugin-esbuild": "^6.2.1",
53
- "rollup-plugin-node-externals": "^8.0.0",
54
- "typescript": "^5.8.2",
55
- "@internal/lint": "0.0.2",
56
- "mastra": "0.0.0-revert-schema-20250416221206"
52
+ "rollup-plugin-node-externals": "^8.0.1",
53
+ "typescript": "^5.8.3",
54
+ "@internal/lint": "0.0.0-scorers-ui-refactored-20250916094952",
55
+ "mastra": "0.0.0-scorers-ui-refactored-20250916094952"
57
56
  },
58
57
  "engines": {
59
58
  "node": ">=20"
60
59
  },
60
+ "homepage": "https://mastra.ai",
61
+ "repository": {
62
+ "type": "git",
63
+ "url": "git+https://github.com/mastra-ai/mastra.git",
64
+ "directory": "packages/create-mastra"
65
+ },
66
+ "bugs": {
67
+ "url": "https://github.com/mastra-ai/mastra/issues"
68
+ },
61
69
  "scripts": {
62
70
  "build": "rollup -c",
63
71
  "lint": "eslint .",
@@ -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: