mastra 0.0.2 → 0.1.0
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 +23 -0
- package/package.json +72 -57
- package/dist/cli.d.ts +0 -2
- package/dist/cli.js +0 -6
- package/dist/commands/dev.d.ts +0 -2
- package/dist/commands/dev.js +0 -5
- package/dist/commands/index.d.ts +0 -2
- package/dist/commands/index.js +0 -2
- package/dist/commands/init.d.ts +0 -2
- package/dist/commands/init.js +0 -19
- package/readme.md +0 -25
package/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
## Installation
|
|
2
|
+
|
|
3
|
+
`npm install -g kpl`
|
|
4
|
+
|
|
5
|
+
## Commands:
|
|
6
|
+
|
|
7
|
+
`kpl init`
|
|
8
|
+
|
|
9
|
+
Initializes a new project.
|
|
10
|
+
|
|
11
|
+
Run this from the root of the Next.js app you want to add Mastra to. This will create a `mastra.config.ts` file in the root of your project, a `docker-compose.yml` file in the root of your project, and a `.env` file in the root of your project.
|
|
12
|
+
|
|
13
|
+
`kpl admin`
|
|
14
|
+
|
|
15
|
+
Starts the admin server
|
|
16
|
+
|
|
17
|
+
`kpl generate`
|
|
18
|
+
|
|
19
|
+
Generates types
|
|
20
|
+
|
|
21
|
+
`kpl migrate`
|
|
22
|
+
|
|
23
|
+
Migrate the mastra database forward
|
package/package.json
CHANGED
|
@@ -1,58 +1,73 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
2
|
+
"name": "mastra",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"keywords": [],
|
|
11
|
+
"author": "",
|
|
12
|
+
"type": "module",
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"commander": "^12.1.0",
|
|
15
|
+
"execa": "^9.3.1",
|
|
16
|
+
"figlet": "^1.7.0",
|
|
17
|
+
"fs-extra": "^11.2.0",
|
|
18
|
+
"is-port-reachable": "^4.0.0",
|
|
19
|
+
"prompt": "^1.3.0",
|
|
20
|
+
"tcp-port-used": "^1.0.2",
|
|
21
|
+
"@mastra/admin": "0.1.2",
|
|
22
|
+
"@mastra/core": "0.1.0"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@types/fs-extra": "^11.0.4",
|
|
26
|
+
"@types/jest": "^29.5.12",
|
|
27
|
+
"@types/node": "^22.5.0",
|
|
28
|
+
"@types/prompt": "^1.1.8",
|
|
29
|
+
"@types/react": "^18",
|
|
30
|
+
"@types/tcp-port-used": "^1.0.4",
|
|
31
|
+
"dotenv": "^16.3.1",
|
|
32
|
+
"jest": "^29.7.0",
|
|
33
|
+
"ts-jest": "^29.2.4",
|
|
34
|
+
"typescript": "^5.5.4"
|
|
35
|
+
},
|
|
36
|
+
"jest": {
|
|
37
|
+
"preset": "ts-jest/presets/default-esm",
|
|
38
|
+
"moduleNameMapper": {
|
|
39
|
+
"^(\\.{1,2}/.*)\\.js$": "$1"
|
|
40
|
+
},
|
|
41
|
+
"transform": {
|
|
42
|
+
"^.+\\.tsx?$": [
|
|
43
|
+
"ts-jest",
|
|
44
|
+
{
|
|
45
|
+
"useESM": true,
|
|
46
|
+
"tsconfig": {
|
|
47
|
+
"target": "es2021",
|
|
48
|
+
"module": "NodeNext"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"extensionsToTreatAsEsm": [
|
|
54
|
+
".ts"
|
|
55
|
+
],
|
|
56
|
+
"moduleFileExtensions": [
|
|
57
|
+
"ts",
|
|
58
|
+
"tsx",
|
|
59
|
+
"js",
|
|
60
|
+
"jsx",
|
|
61
|
+
"json",
|
|
62
|
+
"node"
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"scripts": {
|
|
66
|
+
"build": "npx tsc",
|
|
67
|
+
"build:dev": "npx tsc --watch",
|
|
68
|
+
"init": "npx tsx src/index.ts init",
|
|
69
|
+
"dev": "npx tsx src/index.ts dev",
|
|
70
|
+
"test": "pnpm jest",
|
|
71
|
+
"typecheck": "tsc --noEmit --incremental"
|
|
72
|
+
}
|
|
73
|
+
}
|
package/dist/cli.d.ts
DELETED
package/dist/cli.js
DELETED
package/dist/commands/dev.d.ts
DELETED
package/dist/commands/dev.js
DELETED
package/dist/commands/index.d.ts
DELETED
package/dist/commands/index.js
DELETED
package/dist/commands/init.d.ts
DELETED
package/dist/commands/init.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import fs from 'fs-extra';
|
|
2
|
-
import path from 'node:path';
|
|
3
|
-
import process from 'process';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { Text } from 'ink';
|
|
6
|
-
async function init(f) {
|
|
7
|
-
try {
|
|
8
|
-
await fs.outputJson(f, { config: '' });
|
|
9
|
-
// const data = await fs.readJson(f)
|
|
10
|
-
console.log(`writing bfconfig.json`); // => JP
|
|
11
|
-
}
|
|
12
|
-
catch (err) {
|
|
13
|
-
console.error(err);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
export default function Init() {
|
|
17
|
-
init(path.join(process.cwd(), 'bfconfig.json'));
|
|
18
|
-
return React.createElement(Text, null, "This should write to bfconfig.json");
|
|
19
|
-
}
|
package/readme.md
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# bellefond
|
|
2
|
-
|
|
3
|
-
> This readme is automatically generated by [create-pastel-app](https://github.com/vadimdemedes/create-pastel-app)
|
|
4
|
-
|
|
5
|
-
## Install
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
$ npm install --global bellefond
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## CLI
|
|
12
|
-
|
|
13
|
-
```
|
|
14
|
-
$ bellefond --help
|
|
15
|
-
|
|
16
|
-
Usage
|
|
17
|
-
$ bellefond
|
|
18
|
-
|
|
19
|
-
Options
|
|
20
|
-
--name Your name
|
|
21
|
-
|
|
22
|
-
Examples
|
|
23
|
-
$ bellefond2 --name=Jane
|
|
24
|
-
Hello, Jane
|
|
25
|
-
```
|