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 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
- "name": "mastra",
3
- "version": "0.0.2",
4
- "license": "MIT",
5
- "bin": "dist/cli.js",
6
- "type": "module",
7
- "engines": {
8
- "node": ">=16"
9
- },
10
- "scripts": {
11
- "build": "tsc",
12
- "dev": "tsc --watch",
13
- "test": "prettier --check . && xo && ava"
14
- },
15
- "files": [
16
- "dist"
17
- ],
18
- "dependencies": {
19
- "@types/fs-extra": "^11.0.4",
20
- "fs-extra": "^11.2.0",
21
- "ink": "^4.1.0",
22
- "pastel": "^2.0.0",
23
- "react": "^18.2.0",
24
- "zod": "^3.21.4"
25
- },
26
- "devDependencies": {
27
- "@sindresorhus/tsconfig": "^3.0.1",
28
- "@types/react": "^18.0.32",
29
- "@vdemedes/prettier-config": "^2.0.1",
30
- "ava": "^5.2.0",
31
- "chalk": "^5.2.0",
32
- "eslint-config-xo-react": "^0.27.0",
33
- "eslint-plugin-react": "^7.32.2",
34
- "eslint-plugin-react-hooks": "^4.6.0",
35
- "ink-testing-library": "^3.0.0",
36
- "prettier": "^2.8.7",
37
- "ts-node": "^10.9.1",
38
- "typescript": "^5.0.3",
39
- "xo": "^0.54.2"
40
- },
41
- "ava": {
42
- "extensions": {
43
- "ts": "module",
44
- "tsx": "module"
45
- },
46
- "nodeArguments": [
47
- "--loader=ts-node/esm"
48
- ]
49
- },
50
- "xo": {
51
- "extends": "xo-react",
52
- "prettier": true,
53
- "rules": {
54
- "react/prop-types": "off"
55
- }
56
- },
57
- "prettier": "@vdemedes/prettier-config"
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
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
package/dist/cli.js DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env node
2
- import Pastel from 'pastel';
3
- const app = new Pastel({
4
- importMeta: import.meta,
5
- });
6
- await app.run();
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export default function Login(): React.JSX.Element;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { Text } from 'ink';
3
- export default function Login() {
4
- return React.createElement(Text, null, "This should open up the Next.js dev server on port 3456");
5
- }
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export default function Init(): React.JSX.Element;
@@ -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
- ```