create-mastra 0.0.0-tsconfig-compile-20250703214351 → 0.0.0-usechat-duplicate-20251016110554

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.
@@ -3,11 +3,17 @@
3
3
  import { evaluate } from '@mastra/core/eval';
4
4
  import { AvailableHooks, registerHook } from '@mastra/core/hooks';
5
5
  import { TABLE_EVALS } from '@mastra/core/storage';
6
+ import { scoreTracesWorkflow } from '@mastra/core/scores/scoreTraces';
6
7
  import { checkEvalStorageFields } from '@mastra/core/utils';
7
8
  import { mastra } from '#mastra';
8
- import { createNodeServer } from '#server';
9
+ import { createNodeServer, getToolExports } from '#server';
10
+ import { tools } from '#tools';
9
11
  // @ts-ignore
10
- await createNodeServer(mastra, { playground: true, isDev: true });
12
+ await createNodeServer(mastra, {
13
+ playground: true,
14
+ isDev: true,
15
+ tools: getToolExports(tools),
16
+ });
11
17
 
12
18
  registerHook(AvailableHooks.ON_GENERATION, ({ input, output, metric, runId, agentName, instructions }) => {
13
19
  evaluate({
@@ -21,6 +27,10 @@ registerHook(AvailableHooks.ON_GENERATION, ({ input, output, metric, runId, agen
21
27
  });
22
28
  });
23
29
 
30
+ if (mastra.getStorage()) {
31
+ mastra.__registerInternalWorkflow(scoreTracesWorkflow);
32
+ }
33
+
24
34
  registerHook(AvailableHooks.ON_EVALUATION, async traceObject => {
25
35
  const storage = mastra.getStorage();
26
36
  if (storage) {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "create-mastra",
3
- "version": "0.0.0-tsconfig-compile-20250703214351",
3
+ "version": "0.0.0-usechat-duplicate-20251016110554",
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",
@@ -33,31 +32,40 @@
33
32
  "dependencies": {
34
33
  "commander": "^12.1.0",
35
34
  "execa": "^9.6.0",
36
- "fs-extra": "^11.3.0",
35
+ "fs-extra": "^11.3.2",
37
36
  "pino": "^9.7.0",
38
37
  "pino-pretty": "^13.0.0",
39
38
  "posthog-node": "^4.18.0",
40
- "prettier": "^3.5.3"
39
+ "prettier": "^3.6.2"
41
40
  },
42
41
  "devDependencies": {
43
42
  "@microsoft/api-extractor": "^7.52.8",
44
43
  "@rollup/plugin-commonjs": "^28.0.6",
45
44
  "@rollup/plugin-json": "^6.1.0",
46
- "@rollup/plugin-node-resolve": "^16.0.1",
45
+ "@rollup/plugin-node-resolve": "^16.0.2",
47
46
  "@types/fs-extra": "^11.0.4",
48
47
  "@types/node": "^20.19.0",
49
- "esbuild": "^0.25.5",
50
- "eslint": "^9.29.0",
51
- "rollup": "^4.42.0",
48
+ "esbuild": "^0.25.10",
49
+ "eslint": "^9.36.0",
50
+ "rollup": "^4.50.2",
52
51
  "rollup-plugin-esbuild": "^6.2.1",
53
52
  "rollup-plugin-node-externals": "^8.0.1",
54
53
  "typescript": "^5.8.3",
55
- "@internal/lint": "0.0.0-tsconfig-compile-20250703214351",
56
- "mastra": "0.0.0-tsconfig-compile-20250703214351"
54
+ "@internal/lint": "0.0.0-usechat-duplicate-20251016110554",
55
+ "mastra": "0.0.0-usechat-duplicate-20251016110554"
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: