mastra 0.0.2

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/dist/cli.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
package/dist/cli.js ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env node
2
+ import Pastel from 'pastel';
3
+ const app = new Pastel({
4
+ importMeta: import.meta,
5
+ });
6
+ await app.run();
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function Login(): React.JSX.Element;
@@ -0,0 +1,5 @@
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
+ }
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export default function Init(): React.JSX.Element;
@@ -0,0 +1,19 @@
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/package.json ADDED
@@ -0,0 +1,58 @@
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
+ }
package/readme.md ADDED
@@ -0,0 +1,25 @@
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
+ ```