create-mastra 0.0.0-trigger-playground-ui-package-20250506151043 → 0.0.0-unified-sidebar-20251010130811
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 +1991 -0
- package/LICENSE.md +11 -42
- package/README.md +2 -9
- package/dist/index.js +1255 -564
- package/dist/index.js.map +1 -1
- package/dist/templates/dev.entry.js +9 -4
- package/package.json +28 -20
- package/dist/starter-files/config.ts +0 -25
- package/dist/starter-files/mastra-pg.docker-compose.yaml +0 -15
|
@@ -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, {
|
|
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({
|
|
@@ -22,8 +28,7 @@ registerHook(AvailableHooks.ON_GENERATION, ({ input, output, metric, runId, agen
|
|
|
22
28
|
});
|
|
23
29
|
|
|
24
30
|
if (mastra.getStorage()) {
|
|
25
|
-
|
|
26
|
-
mastra.getStorage().init();
|
|
31
|
+
mastra.__registerInternalWorkflow(scoreTracesWorkflow);
|
|
27
32
|
}
|
|
28
33
|
|
|
29
34
|
registerHook(AvailableHooks.ON_EVALUATION, async traceObject => {
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-mastra",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-unified-sidebar-20251010130811",
|
|
4
4
|
"description": "Create Mastra apps with one command",
|
|
5
|
-
"license": "
|
|
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
|
-
"
|
|
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.
|
|
36
|
-
"fs-extra": "^11.3.
|
|
37
|
-
"pino": "^9.
|
|
34
|
+
"execa": "^9.6.0",
|
|
35
|
+
"fs-extra": "^11.3.2",
|
|
36
|
+
"pino": "^9.7.0",
|
|
38
37
|
"pino-pretty": "^13.0.0",
|
|
39
|
-
"posthog-node": "^4.
|
|
40
|
-
"prettier": "^3.
|
|
38
|
+
"posthog-node": "^4.18.0",
|
|
39
|
+
"prettier": "^3.6.2"
|
|
41
40
|
},
|
|
42
41
|
"devDependencies": {
|
|
43
|
-
"@microsoft/api-extractor": "^7.52.
|
|
44
|
-
"@rollup/plugin-commonjs": "^28.0.
|
|
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.
|
|
45
|
+
"@rollup/plugin-node-resolve": "^16.0.2",
|
|
47
46
|
"@types/fs-extra": "^11.0.4",
|
|
48
|
-
"@types/node": "^20.
|
|
49
|
-
"esbuild": "^0.25.
|
|
50
|
-
"eslint": "^9.
|
|
51
|
-
"rollup": "^4.
|
|
47
|
+
"@types/node": "^20.19.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
|
-
"rollup-plugin-node-externals": "^8.0.
|
|
54
|
-
"typescript": "^5.8.
|
|
55
|
-
"
|
|
56
|
-
"
|
|
52
|
+
"rollup-plugin-node-externals": "^8.0.1",
|
|
53
|
+
"typescript": "^5.8.3",
|
|
54
|
+
"mastra": "0.0.0-unified-sidebar-20251010130811",
|
|
55
|
+
"@internal/lint": "0.0.0-unified-sidebar-20251010130811"
|
|
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:
|