@elizaos/cli 1.5.7 → 1.6.0-alpha.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/dist/index.js +17 -27
- package/dist/index.js.map +4 -4
- package/dist/templates/plugin-quick-starter/build.ts +29 -46
- package/dist/templates/plugin-quick-starter/package.json +2 -2
- package/dist/templates/plugin-starter/build.ts +29 -46
- package/dist/templates/plugin-starter/package.json +2 -2
- package/dist/templates/project-starter/build.ts +40 -57
- package/dist/templates/project-starter/package.json +6 -6
- package/dist/templates/project-tee-starter/build.ts +40 -57
- package/dist/templates/project-tee-starter/package.json +4 -4
- package/dist/version.d.ts +2 -2
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +2 -2
- package/package.json +7 -7
- package/templates/plugin-quick-starter/build.ts +29 -46
- package/templates/plugin-quick-starter/package.json +2 -2
- package/templates/plugin-starter/build.ts +29 -46
- package/templates/plugin-starter/package.json +2 -2
- package/templates/project-starter/build.ts +40 -57
- package/templates/project-starter/package.json +6 -6
- package/templates/project-tee-starter/build.ts +40 -57
- package/templates/project-tee-starter/package.json +4 -4
|
@@ -22,55 +22,38 @@ async function build() {
|
|
|
22
22
|
// Clean previous build
|
|
23
23
|
await cleanBuild('dist');
|
|
24
24
|
|
|
25
|
-
//
|
|
26
|
-
console.log('
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
external: ['dotenv', 'node:*', '@elizaos/core', '@elizaos/cli', 'zod'],
|
|
40
|
-
naming: {
|
|
41
|
-
entry: '[dir]/[name].[ext]',
|
|
42
|
-
},
|
|
43
|
-
});
|
|
25
|
+
// Build with Bun
|
|
26
|
+
console.log('Bundling with Bun...');
|
|
27
|
+
const result = await Bun.build({
|
|
28
|
+
entrypoints: ['./src/index.ts'],
|
|
29
|
+
outdir: './dist',
|
|
30
|
+
target: 'node',
|
|
31
|
+
format: 'esm',
|
|
32
|
+
sourcemap: true,
|
|
33
|
+
minify: false,
|
|
34
|
+
external: ['dotenv', 'node:*', '@elizaos/core', '@elizaos/cli', 'zod'],
|
|
35
|
+
naming: {
|
|
36
|
+
entry: '[dir]/[name].[ext]',
|
|
37
|
+
},
|
|
38
|
+
});
|
|
44
39
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
40
|
+
if (!result.success) {
|
|
41
|
+
console.error('✗ Build failed:', result.logs);
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
49
44
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
return result;
|
|
55
|
-
})(),
|
|
56
|
-
|
|
57
|
-
// Task 2: Generate TypeScript declarations
|
|
58
|
-
(async () => {
|
|
59
|
-
console.log('📝 Generating TypeScript declarations...');
|
|
60
|
-
try {
|
|
61
|
-
await $`tsc --emitDeclarationOnly --incremental --project ./tsconfig.build.json`.quiet();
|
|
62
|
-
console.log('✓ TypeScript declarations generated');
|
|
63
|
-
return { success: true };
|
|
64
|
-
} catch (error) {
|
|
65
|
-
console.warn('⚠ Failed to generate TypeScript declarations');
|
|
66
|
-
console.warn(' This is usually due to test files or type errors.');
|
|
67
|
-
return { success: false };
|
|
68
|
-
}
|
|
69
|
-
})()
|
|
70
|
-
]);
|
|
45
|
+
const totalSize = result.outputs.reduce((sum, output) => sum + output.size, 0);
|
|
46
|
+
const sizeMB = (totalSize / 1024 / 1024).toFixed(2);
|
|
47
|
+
console.log(`✓ Built ${result.outputs.length} file(s) - ${sizeMB}MB`);
|
|
71
48
|
|
|
72
|
-
|
|
73
|
-
|
|
49
|
+
// Generate TypeScript declarations
|
|
50
|
+
console.log('\nGenerating TypeScript declarations...');
|
|
51
|
+
try {
|
|
52
|
+
await $`tsc --emitDeclarationOnly --incremental --project ./tsconfig.build.json`.quiet();
|
|
53
|
+
console.log('✓ TypeScript declarations generated');
|
|
54
|
+
} catch (error) {
|
|
55
|
+
console.warn('⚠ Failed to generate TypeScript declarations');
|
|
56
|
+
console.warn(' This is usually due to test files or type errors.');
|
|
74
57
|
}
|
|
75
58
|
|
|
76
59
|
const elapsed = ((performance.now() - start) / 1000).toFixed(2);
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"package.json"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@elizaos/core": "1.
|
|
42
|
+
"@elizaos/core": "1.6.0-alpha.0",
|
|
43
43
|
"@tanstack/react-query": "^5.80.7",
|
|
44
44
|
"clsx": "^2.1.1",
|
|
45
45
|
"tailwind-merge": "^3.3.1",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"zod": "3.24.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@elizaos/cli": "1.
|
|
51
|
+
"@elizaos/cli": "1.6.0-alpha.0",
|
|
52
52
|
"@tailwindcss/vite": "^4.1.10",
|
|
53
53
|
"@vitejs/plugin-react-swc": "^3.10.2",
|
|
54
54
|
"dotenv": "16.4.5",
|
|
@@ -22,66 +22,49 @@ async function build() {
|
|
|
22
22
|
// Clean previous build
|
|
23
23
|
await cleanBuild('dist');
|
|
24
24
|
|
|
25
|
-
//
|
|
26
|
-
console.log('
|
|
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
|
-
naming: {
|
|
52
|
-
entry: '[dir]/[name].[ext]',
|
|
53
|
-
},
|
|
54
|
-
});
|
|
25
|
+
// Build with Bun
|
|
26
|
+
console.log('Bundling with Bun...');
|
|
27
|
+
const result = await Bun.build({
|
|
28
|
+
entrypoints: ['./src/index.ts'],
|
|
29
|
+
outdir: './dist',
|
|
30
|
+
target: 'node',
|
|
31
|
+
format: 'esm',
|
|
32
|
+
sourcemap: true,
|
|
33
|
+
minify: false,
|
|
34
|
+
external: [
|
|
35
|
+
'dotenv',
|
|
36
|
+
'fs',
|
|
37
|
+
'path',
|
|
38
|
+
'https',
|
|
39
|
+
'node:*',
|
|
40
|
+
'@elizaos/core',
|
|
41
|
+
'@elizaos/plugin-bootstrap',
|
|
42
|
+
'@elizaos/plugin-sql',
|
|
43
|
+
'@elizaos/cli',
|
|
44
|
+
'zod',
|
|
45
|
+
],
|
|
46
|
+
naming: {
|
|
47
|
+
entry: '[dir]/[name].[ext]',
|
|
48
|
+
},
|
|
49
|
+
});
|
|
55
50
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
51
|
+
if (!result.success) {
|
|
52
|
+
console.error('✗ Build failed:', result.logs);
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
60
55
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
return result;
|
|
66
|
-
})(),
|
|
67
|
-
|
|
68
|
-
// Task 2: Generate TypeScript declarations
|
|
69
|
-
(async () => {
|
|
70
|
-
console.log('📝 Generating TypeScript declarations...');
|
|
71
|
-
try {
|
|
72
|
-
await $`tsc --emitDeclarationOnly --incremental --project ./tsconfig.build.json`.quiet();
|
|
73
|
-
console.log('✓ TypeScript declarations generated');
|
|
74
|
-
return { success: true };
|
|
75
|
-
} catch (error) {
|
|
76
|
-
console.warn('⚠ Failed to generate TypeScript declarations');
|
|
77
|
-
console.warn(' This is usually due to test files or type errors.');
|
|
78
|
-
return { success: false };
|
|
79
|
-
}
|
|
80
|
-
})()
|
|
81
|
-
]);
|
|
56
|
+
const totalSize = result.outputs.reduce((sum, output) => sum + output.size, 0);
|
|
57
|
+
const sizeMB = (totalSize / 1024 / 1024).toFixed(2);
|
|
58
|
+
console.log(`✓ Built ${result.outputs.length} file(s) - ${sizeMB}MB`);
|
|
82
59
|
|
|
83
|
-
|
|
84
|
-
|
|
60
|
+
// Generate TypeScript declarations
|
|
61
|
+
console.log('\nGenerating TypeScript declarations...');
|
|
62
|
+
try {
|
|
63
|
+
await $`tsc --emitDeclarationOnly --incremental --project ./tsconfig.build.json`.quiet();
|
|
64
|
+
console.log('✓ TypeScript declarations generated');
|
|
65
|
+
} catch (error) {
|
|
66
|
+
console.warn('⚠ Failed to generate TypeScript declarations');
|
|
67
|
+
console.warn(' This is usually due to test files or type errors.');
|
|
85
68
|
}
|
|
86
69
|
|
|
87
70
|
const elapsed = ((performance.now() - start) / 1000).toFixed(2);
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@elizaos/cli": "1.
|
|
31
|
-
"@elizaos/client": "1.
|
|
32
|
-
"@elizaos/core": "1.
|
|
33
|
-
"@elizaos/plugin-bootstrap": "1.
|
|
34
|
-
"@elizaos/plugin-sql": "1.
|
|
35
|
-
"@elizaos/server": "1.
|
|
30
|
+
"@elizaos/cli": "1.6.0-alpha.0",
|
|
31
|
+
"@elizaos/client": "1.6.0-alpha.0",
|
|
32
|
+
"@elizaos/core": "1.6.0-alpha.0",
|
|
33
|
+
"@elizaos/plugin-bootstrap": "1.6.0-alpha.0",
|
|
34
|
+
"@elizaos/plugin-sql": "1.6.0-alpha.0",
|
|
35
|
+
"@elizaos/server": "1.6.0-alpha.0",
|
|
36
36
|
"@tanstack/react-query": "^5.29.0",
|
|
37
37
|
"clsx": "^2.1.1",
|
|
38
38
|
"react": "^18.3.1",
|
|
@@ -22,66 +22,49 @@ async function build() {
|
|
|
22
22
|
// Clean previous build
|
|
23
23
|
await cleanBuild('dist');
|
|
24
24
|
|
|
25
|
-
//
|
|
26
|
-
console.log('
|
|
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
|
-
naming: {
|
|
52
|
-
entry: '[dir]/[name].[ext]',
|
|
53
|
-
},
|
|
54
|
-
});
|
|
25
|
+
// Build with Bun
|
|
26
|
+
console.log('Bundling with Bun...');
|
|
27
|
+
const result = await Bun.build({
|
|
28
|
+
entrypoints: ['./src/index.ts'],
|
|
29
|
+
outdir: './dist',
|
|
30
|
+
target: 'node',
|
|
31
|
+
format: 'esm',
|
|
32
|
+
sourcemap: true,
|
|
33
|
+
minify: false,
|
|
34
|
+
external: [
|
|
35
|
+
'dotenv',
|
|
36
|
+
'fs',
|
|
37
|
+
'path',
|
|
38
|
+
'https',
|
|
39
|
+
'node:*',
|
|
40
|
+
'@elizaos/core',
|
|
41
|
+
'@elizaos/plugin-bootstrap',
|
|
42
|
+
'@elizaos/plugin-sql',
|
|
43
|
+
'@elizaos/cli',
|
|
44
|
+
'zod',
|
|
45
|
+
],
|
|
46
|
+
naming: {
|
|
47
|
+
entry: '[dir]/[name].[ext]',
|
|
48
|
+
},
|
|
49
|
+
});
|
|
55
50
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
51
|
+
if (!result.success) {
|
|
52
|
+
console.error('✗ Build failed:', result.logs);
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
60
55
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
return result;
|
|
66
|
-
})(),
|
|
67
|
-
|
|
68
|
-
// Task 2: Generate TypeScript declarations
|
|
69
|
-
(async () => {
|
|
70
|
-
console.log('📝 Generating TypeScript declarations...');
|
|
71
|
-
try {
|
|
72
|
-
await $`tsc --emitDeclarationOnly --incremental --project ./tsconfig.build.json`.quiet();
|
|
73
|
-
console.log('✓ TypeScript declarations generated');
|
|
74
|
-
return { success: true };
|
|
75
|
-
} catch (error) {
|
|
76
|
-
console.warn('⚠ Failed to generate TypeScript declarations');
|
|
77
|
-
console.warn(' This is usually due to test files or type errors.');
|
|
78
|
-
return { success: false };
|
|
79
|
-
}
|
|
80
|
-
})()
|
|
81
|
-
]);
|
|
56
|
+
const totalSize = result.outputs.reduce((sum, output) => sum + output.size, 0);
|
|
57
|
+
const sizeMB = (totalSize / 1024 / 1024).toFixed(2);
|
|
58
|
+
console.log(`✓ Built ${result.outputs.length} file(s) - ${sizeMB}MB`);
|
|
82
59
|
|
|
83
|
-
|
|
84
|
-
|
|
60
|
+
// Generate TypeScript declarations
|
|
61
|
+
console.log('\nGenerating TypeScript declarations...');
|
|
62
|
+
try {
|
|
63
|
+
await $`tsc --emitDeclarationOnly --incremental --project ./tsconfig.build.json`.quiet();
|
|
64
|
+
console.log('✓ TypeScript declarations generated');
|
|
65
|
+
} catch (error) {
|
|
66
|
+
console.warn('⚠ Failed to generate TypeScript declarations');
|
|
67
|
+
console.warn(' This is usually due to test files or type errors.');
|
|
85
68
|
}
|
|
86
69
|
|
|
87
70
|
const elapsed = ((performance.now() - start) / 1000).toFixed(2);
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"GUIDE.md"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@elizaos/cli": "1.
|
|
36
|
-
"@elizaos/core": "1.
|
|
37
|
-
"@elizaos/plugin-bootstrap": "1.
|
|
35
|
+
"@elizaos/cli": "1.6.0-alpha.0",
|
|
36
|
+
"@elizaos/core": "1.6.0-alpha.0",
|
|
37
|
+
"@elizaos/plugin-bootstrap": "1.6.0-alpha.0",
|
|
38
38
|
"@elizaos/plugin-redpill": "1.2.1",
|
|
39
|
-
"@elizaos/plugin-sql": "1.
|
|
39
|
+
"@elizaos/plugin-sql": "1.6.0-alpha.0",
|
|
40
40
|
"@phala/dstack-sdk": "0.1.11",
|
|
41
41
|
"@solana/web3.js": "1.98.2",
|
|
42
42
|
"@tanstack/react-query": "^5.29.0",
|