mastra 0.2.0-alpha.140 → 0.2.0-alpha.145
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/README.md +0 -20
- package/dist/{chunk-EY6ROB2P.js → chunk-AKW5JN32.js} +14 -5
- package/dist/commands/create/create.js +1 -1
- package/dist/index.js +63 -473
- package/dist/starter-files/workflow.ts +1 -1
- package/package.json +3 -4
- package/src/playground/dist/assets/{index-B1SaM1BM.js → index-4_HS8ieP.js} +22 -22
- package/src/playground/dist/assets/{index-XeYLCLqy.js → index-Cn_fLtyS.js} +1 -1
- package/src/playground/dist/index.html +1 -1
package/README.md
CHANGED
|
@@ -43,26 +43,6 @@ project-root/
|
|
|
43
43
|
└── index.ts
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
### Engine
|
|
47
|
-
|
|
48
|
-
`mastra engine add`
|
|
49
|
-
|
|
50
|
-
This installs the `@mastra/engine` dependency to your project.
|
|
51
|
-
|
|
52
|
-
`mastra engine generate`
|
|
53
|
-
|
|
54
|
-
Generates the Drizzle database client and TypeScript types.
|
|
55
|
-
|
|
56
|
-
`mastra engine migrate`
|
|
57
|
-
|
|
58
|
-
This migrates the database forward. You might need to run this after updating mastra.
|
|
59
|
-
|
|
60
|
-
`mastra engine up`
|
|
61
|
-
|
|
62
|
-
This is a shortcut that runs the `docker-compose up` command using the `mastra-pg.docker-compose.yaml` file. This will spin up any local docker containers that mastra needs.
|
|
63
|
-
|
|
64
|
-
It is useful for cases where you don't have a dockerized `postgres` db setup.
|
|
65
|
-
|
|
66
46
|
### Dev
|
|
67
47
|
|
|
68
48
|
`mastra dev`
|
|
@@ -238,6 +238,7 @@ async function writeAgentSample(llmProvider, destPath, addExampleTool) {
|
|
|
238
238
|
|
|
239
239
|
Your primary function is to help users get weather details for specific locations. When responding:
|
|
240
240
|
- Always ask for a location if none is provided
|
|
241
|
+
- If giving a location with multiple parts (e.g. "New York, NY"), use the most relevant part (e.g. "New York")
|
|
241
242
|
- Include relevant details like humidity, wind conditions, and precipitation
|
|
242
243
|
- Keep responses concise but informative
|
|
243
244
|
|
|
@@ -564,6 +565,7 @@ var createMastraProject = async () => {
|
|
|
564
565
|
process.chdir(projectName);
|
|
565
566
|
s2.message("Creating project");
|
|
566
567
|
await exec2(`npm init -y`);
|
|
568
|
+
await exec2(`npm pkg set type="module"`);
|
|
567
569
|
const depsService = new DepsService();
|
|
568
570
|
await depsService.addScriptsToPackageJson({
|
|
569
571
|
dev: "mastra dev"
|
|
@@ -574,17 +576,24 @@ var createMastraProject = async () => {
|
|
|
574
576
|
await exec2(`npm i typescript tsx @types/node --save-dev`);
|
|
575
577
|
await exec2(`echo '{
|
|
576
578
|
"compilerOptions": {
|
|
577
|
-
"target": "
|
|
578
|
-
"module": "
|
|
579
|
+
"target": "ES2022",
|
|
580
|
+
"module": "ES2022",
|
|
581
|
+
"moduleResolution": "bundler",
|
|
579
582
|
"esModuleInterop": true,
|
|
580
583
|
"forceConsistentCasingInFileNames": true,
|
|
581
584
|
"strict": true,
|
|
582
585
|
"skipLibCheck": true,
|
|
583
586
|
"outDir": "dist"
|
|
584
587
|
},
|
|
585
|
-
"include": [
|
|
586
|
-
|
|
587
|
-
|
|
588
|
+
"include": [
|
|
589
|
+
"src/**/*"
|
|
590
|
+
],
|
|
591
|
+
"exclude": [
|
|
592
|
+
"node_modules",
|
|
593
|
+
"dist",
|
|
594
|
+
".mastra"
|
|
595
|
+
]
|
|
596
|
+
}' > tsconfig.json`);
|
|
588
597
|
s2.stop("NPM dependencies installed");
|
|
589
598
|
s2.start("Installing mastra");
|
|
590
599
|
await exec2(`npm i -D mastra`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { create } from '../../chunk-
|
|
1
|
+
export { create } from '../../chunk-AKW5JN32.js';
|