veryfront 0.0.3 → 0.0.5

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/package.json CHANGED
@@ -1,21 +1,70 @@
1
1
  {
2
2
  "name": "veryfront",
3
- "version": "0.0.3",
4
- "description": "React meta-framework with AI-native capabilities",
3
+ "version": "0.0.5",
4
+ "description": "Zero-config React meta-framework for building agentic AI applications",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.js",
8
+ "bin": {
9
+ "veryfront": "./bin/veryfront.js"
10
+ },
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/index.js"
14
+ },
15
+ "./components": {
16
+ "import": "./dist/components.js"
17
+ },
18
+ "./data": {
19
+ "import": "./dist/data.js"
20
+ },
21
+ "./config": {
22
+ "import": "./dist/config.js"
23
+ },
24
+ "./ai": {
25
+ "import": "./dist/ai/index.js"
26
+ },
27
+ "./ai/client": {
28
+ "import": "./dist/ai/client.js"
29
+ },
30
+ "./ai/react": {
31
+ "import": "./dist/ai/react.js"
32
+ },
33
+ "./ai/primitives": {
34
+ "import": "./dist/ai/primitives.js"
35
+ },
36
+ "./ai/components": {
37
+ "import": "./dist/ai/components.js"
38
+ },
39
+ "./ai/production": {
40
+ "import": "./dist/ai/production.js"
41
+ },
42
+ "./ai/dev": {
43
+ "import": "./dist/ai/dev.js"
44
+ }
45
+ },
46
+ "files": [
47
+ "bin",
48
+ "dist",
49
+ "README.md",
50
+ "LICENSE"
51
+ ],
5
52
  "keywords": [
6
- "deno",
7
- "framework",
8
53
  "react",
9
- "rsc",
10
- "server-components",
54
+ "framework",
11
55
  "ai",
12
56
  "agents",
13
57
  "mcp",
14
58
  "llm",
15
59
  "anthropic",
16
- "openai"
60
+ "openai",
61
+ "ssr",
62
+ "rsc",
63
+ "server-components",
64
+ "typescript"
17
65
  ],
18
- "homepage": "https://github.com/veryfront/veryfront#readme",
66
+ "license": "MIT",
67
+ "author": "Veryfront",
19
68
  "repository": {
20
69
  "type": "git",
21
70
  "url": "git+https://github.com/veryfront/veryfront.git"
@@ -23,28 +72,63 @@
23
72
  "bugs": {
24
73
  "url": "https://github.com/veryfront/veryfront/issues"
25
74
  },
26
- "license": "MIT",
27
- "author": "Veryfront",
28
- "bin": {
29
- "veryfront": "./bin/veryfront"
75
+ "homepage": "https://veryfront.com",
76
+ "engines": {
77
+ "node": ">=18.0.0"
30
78
  },
31
- "files": [
32
- "scripts/postinstall.js",
33
- "bin/"
34
- ],
35
- "scripts": {
36
- "postinstall": "node scripts/postinstall.js"
79
+ "peerDependencies": {
80
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
81
+ "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
82
+ "zod": "^3.22.0",
83
+ "ai": "^5.0.0",
84
+ "@ai-sdk/react": "^2.0.0"
37
85
  },
38
- "engines": {
39
- "node": ">=16.0.0"
86
+ "peerDependenciesMeta": {
87
+ "zod": {
88
+ "optional": false
89
+ },
90
+ "ai": {
91
+ "optional": false
92
+ },
93
+ "@ai-sdk/react": {
94
+ "optional": true
95
+ },
96
+ "@ai-sdk/openai": {
97
+ "optional": true
98
+ },
99
+ "@ai-sdk/anthropic": {
100
+ "optional": true
101
+ }
40
102
  },
41
- "os": [
42
- "darwin",
43
- "linux",
44
- "win32"
45
- ],
46
- "cpu": [
47
- "x64",
48
- "arm64"
49
- ]
50
- }
103
+ "dependencies": {
104
+ "esbuild": "^0.20.0",
105
+ "@mdx-js/mdx": "^3.0.0",
106
+ "@mdx-js/react": "^3.0.0",
107
+ "mime-types": "^2.1.35",
108
+ "unified": "^11.0.0",
109
+ "remark-gfm": "^4.0.0",
110
+ "remark-frontmatter": "^5.0.0",
111
+ "rehype-highlight": "^7.0.0",
112
+ "rehype-slug": "^6.0.0",
113
+ "github-slugger": "^2.0.0",
114
+ "picocolors": "^1.1.0",
115
+ "mri": "^1.2.0",
116
+ "yaml": "^2.3.0",
117
+ "gray-matter": "^4.0.3",
118
+ "ws": "^8.18.0",
119
+ "lightningcss": "^1.22.0",
120
+ "@unocss/core": "^0.59.0",
121
+ "@unocss/preset-wind": "^0.59.0",
122
+ "glob": "^11.0.0"
123
+ },
124
+ "optionalDependencies": {
125
+ "@ai-sdk/openai": "^2.0.0",
126
+ "@ai-sdk/anthropic": "^2.0.0"
127
+ },
128
+ "devDependencies": {
129
+ "@types/react": "^18.2.0",
130
+ "@types/react-dom": "^18.2.0",
131
+ "@types/node": "^20.0.0",
132
+ "typescript": "^5.0.0"
133
+ }
134
+ }
package/bin/veryfront DELETED
Binary file
@@ -1,109 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- /**
4
- * Post-install script for Veryfront CLI
5
- * Downloads the correct pre-compiled binary for the user's platform
6
- */
7
-
8
- const os = require('os');
9
- const fs = require('fs');
10
- const path = require('path');
11
- const https = require('https');
12
- const { execSync } = require('child_process');
13
-
14
- const platform = os.platform();
15
- const arch = os.arch();
16
- const version = require('../package.json').version;
17
-
18
- // Map platform/arch to binary names
19
- const binaryMap = {
20
- 'darwin-x64': 'veryfront-macos-x64',
21
- 'darwin-arm64': 'veryfront-macos-arm64',
22
- 'linux-x64': 'veryfront-linux-x64',
23
- 'linux-arm64': 'veryfront-linux-arm64',
24
- 'win32-x64': 'veryfront-windows-x64.exe',
25
- };
26
-
27
- const platformKey = `${platform}-${arch}`;
28
- const binaryName = binaryMap[platformKey];
29
-
30
- if (!binaryName) {
31
- console.error(`āŒ Unsupported platform: ${platform}-${arch}`);
32
- console.error('Supported platforms:', Object.keys(binaryMap).join(', '));
33
- process.exit(1);
34
- }
35
-
36
- const binDir = path.join(__dirname, '..', 'bin');
37
- const binPath = path.join(binDir, platform === 'win32' ? 'veryfront.exe' : 'veryfront');
38
-
39
- // Create bin directory if it doesn't exist
40
- if (!fs.existsSync(binDir)) {
41
- fs.mkdirSync(binDir, { recursive: true });
42
- }
43
-
44
- // GitHub release URL (update with your org/repo)
45
- const baseUrl = `https://github.com/veryfront/veryfront/releases/download/v${version}`;
46
- const url = `${baseUrl}/${binaryName}`;
47
-
48
- console.log('šŸ“¦ Installing Veryfront CLI...');
49
- console.log(` Platform: ${platform}-${arch}`);
50
- console.log(` Version: ${version}`);
51
-
52
- function downloadBinary(url, dest) {
53
- return new Promise((resolve, reject) => {
54
- const file = fs.createWriteStream(dest);
55
-
56
- https.get(url, (response) => {
57
- if (response.statusCode === 302 || response.statusCode === 301) {
58
- // Follow redirect
59
- https.get(response.headers.location, (redirectResponse) => {
60
- redirectResponse.pipe(file);
61
- file.on('finish', () => {
62
- file.close();
63
- resolve();
64
- });
65
- }).on('error', reject);
66
- } else if (response.statusCode === 200) {
67
- response.pipe(file);
68
- file.on('finish', () => {
69
- file.close();
70
- resolve();
71
- });
72
- } else {
73
- reject(new Error(`Failed to download: ${response.statusCode} ${response.statusMessage}`));
74
- }
75
- }).on('error', reject);
76
-
77
- file.on('error', (err) => {
78
- fs.unlinkSync(dest);
79
- reject(err);
80
- });
81
- });
82
- }
83
-
84
- async function install() {
85
- try {
86
- console.log(`ā¬‡ļø Downloading binary from ${url}...`);
87
- await downloadBinary(url, binPath);
88
-
89
- // Make binary executable (Unix systems)
90
- if (platform !== 'win32') {
91
- fs.chmodSync(binPath, 0o755);
92
- }
93
-
94
- console.log('āœ… Veryfront CLI installed successfully!');
95
- console.log('\nšŸš€ Get started:');
96
- console.log(' npx veryfront --help');
97
- console.log(' npx veryfront create my-app');
98
-
99
- } catch (error) {
100
- console.error('āŒ Installation failed:', error.message);
101
- console.error('\nšŸ“ Manual installation:');
102
- console.error(' 1. Download the binary from GitHub releases');
103
- console.error(' 2. Place it in your PATH as "veryfront"');
104
- console.error(` 3. URL: ${url}`);
105
- process.exit(1);
106
- }
107
- }
108
-
109
- install();