@elizaos/cli 1.6.2-alpha.17 → 1.6.2-alpha.19
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/commands/deploy/actions/deploy-ecs.d.ts +10 -0
- package/dist/commands/deploy/actions/deploy-ecs.d.ts.map +1 -0
- package/dist/commands/deploy/actions/deploy.d.ts +1 -1
- package/dist/commands/deploy/index.d.ts +1 -1
- package/dist/commands/deploy/index.d.ts.map +1 -1
- package/dist/commands/deploy/types.d.ts +36 -71
- package/dist/commands/deploy/types.d.ts.map +1 -1
- package/dist/commands/deploy/utils/api-client.d.ts +7 -5
- package/dist/commands/deploy/utils/api-client.d.ts.map +1 -1
- package/dist/commands/deploy/utils/docker-build.d.ts +58 -0
- package/dist/commands/deploy/utils/docker-build.d.ts.map +1 -0
- package/dist/index.js +38921 -39114
- package/dist/index.js.map +161 -57
- package/dist/templates/plugin-quick-starter/package.json +2 -2
- package/dist/templates/plugin-quick-starter/src/__tests__/plugin.test.ts +54 -0
- package/dist/templates/plugin-quick-starter/src/plugin.ts +6 -5
- package/dist/templates/plugin-starter/package.json +2 -2
- package/dist/templates/plugin-starter/src/plugin.ts +6 -4
- package/dist/templates/project-starter/package.json +6 -6
- package/dist/templates/project-starter/src/plugin.ts +6 -4
- package/dist/templates/project-tee-starter/package.json +4 -4
- package/dist/version.d.ts +2 -2
- package/dist/version.js +2 -2
- package/package.json +8 -7
- package/templates/plugin-quick-starter/package.json +2 -2
- package/templates/plugin-quick-starter/src/__tests__/plugin.test.ts +54 -0
- package/templates/plugin-quick-starter/src/plugin.ts +6 -5
- package/templates/plugin-starter/package.json +2 -2
- package/templates/plugin-starter/src/plugin.ts +6 -4
- package/templates/project-starter/package.json +6 -6
- package/templates/project-starter/src/plugin.ts +6 -4
- package/templates/project-tee-starter/package.json +4 -4
- package/dist/commands/deploy/actions/deploy-bootstrapper.d.ts +0 -10
- package/dist/commands/deploy/actions/deploy-bootstrapper.d.ts.map +0 -1
- package/dist/commands/deploy/utils/artifact.d.ts +0 -48
- package/dist/commands/deploy/utils/artifact.d.ts.map +0 -1
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"package.json"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@elizaos/core": "1.6.2-alpha.
|
|
42
|
+
"@elizaos/core": "1.6.2-alpha.19",
|
|
43
43
|
"zod": "4.1.11"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@elizaos/cli": "1.6.2-alpha.
|
|
46
|
+
"@elizaos/cli": "1.6.2-alpha.19",
|
|
47
47
|
"dotenv": "16.4.5",
|
|
48
48
|
"prettier": "3.5.3",
|
|
49
49
|
"typescript": "5.8.2"
|
|
@@ -117,6 +117,60 @@ describe('Plugin Configuration', () => {
|
|
|
117
117
|
);
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
|
+
|
|
121
|
+
it('should handle ZodError with issues array correctly', async () => {
|
|
122
|
+
const runtime = createMockRuntime();
|
|
123
|
+
const invalidConfig = { EXAMPLE_PLUGIN_VARIABLE: '' }; // Empty string violates min(1)
|
|
124
|
+
|
|
125
|
+
if (starterPlugin.init) {
|
|
126
|
+
try {
|
|
127
|
+
await starterPlugin.init(invalidConfig, runtime);
|
|
128
|
+
throw new Error('Should have thrown error');
|
|
129
|
+
} catch (error) {
|
|
130
|
+
expect(error).toBeInstanceOf(Error);
|
|
131
|
+
const errorMessage = (error as Error).message;
|
|
132
|
+
expect(errorMessage).toContain('Invalid plugin configuration');
|
|
133
|
+
// Should use error.issues, not error.errors
|
|
134
|
+
expect(errorMessage).toContain('Example plugin variable is not provided');
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
it('should handle ZodError with fallback for undefined issues', async () => {
|
|
140
|
+
const runtime = createMockRuntime();
|
|
141
|
+
// Test that the error handling doesn't crash if issues is somehow undefined
|
|
142
|
+
const invalidConfig = { EXAMPLE_PLUGIN_VARIABLE: null };
|
|
143
|
+
|
|
144
|
+
if (starterPlugin.init) {
|
|
145
|
+
try {
|
|
146
|
+
await starterPlugin.init(invalidConfig as any, runtime);
|
|
147
|
+
throw new Error('Should have thrown error');
|
|
148
|
+
} catch (error) {
|
|
149
|
+
expect(error).toBeInstanceOf(Error);
|
|
150
|
+
const errorMessage = (error as Error).message;
|
|
151
|
+
// Should either show specific error or fallback message
|
|
152
|
+
expect(errorMessage).toContain('Invalid plugin configuration');
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
it('should handle non-ZodError exceptions', async () => {
|
|
158
|
+
const runtime = createMockRuntime();
|
|
159
|
+
// Pass a config that will cause validation but won't be a ZodError
|
|
160
|
+
const config = { EXAMPLE_PLUGIN_VARIABLE: 'valid-value' };
|
|
161
|
+
|
|
162
|
+
if (starterPlugin.init) {
|
|
163
|
+
// This should succeed without throwing
|
|
164
|
+
let error: Error | null = null;
|
|
165
|
+
try {
|
|
166
|
+
await starterPlugin.init(config, runtime);
|
|
167
|
+
} catch (e) {
|
|
168
|
+
error = e as Error;
|
|
169
|
+
}
|
|
170
|
+
expect(error).toBeNull();
|
|
171
|
+
expect(process.env.EXAMPLE_PLUGIN_VARIABLE).toBe('valid-value');
|
|
172
|
+
}
|
|
173
|
+
});
|
|
120
174
|
});
|
|
121
175
|
|
|
122
176
|
describe('Hello World Action', () => {
|
|
@@ -2,7 +2,6 @@ import type { Plugin } from '@elizaos/core';
|
|
|
2
2
|
import {
|
|
3
3
|
type Action,
|
|
4
4
|
type ActionResult,
|
|
5
|
-
type Content,
|
|
6
5
|
type GenerateTextParams,
|
|
7
6
|
type HandlerCallback,
|
|
8
7
|
type IAgentRuntime,
|
|
@@ -189,11 +188,13 @@ export const starterPlugin: Plugin = {
|
|
|
189
188
|
}
|
|
190
189
|
} catch (error) {
|
|
191
190
|
if (error instanceof z.ZodError) {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
);
|
|
191
|
+
const errorMessages =
|
|
192
|
+
error.issues?.map((e) => e.message)?.join(', ') || 'Unknown validation error';
|
|
193
|
+
throw new Error(`Invalid plugin configuration: ${errorMessages}`);
|
|
195
194
|
}
|
|
196
|
-
throw
|
|
195
|
+
throw new Error(
|
|
196
|
+
`Invalid plugin configuration: ${error instanceof Error ? error.message : String(error)}`
|
|
197
|
+
);
|
|
197
198
|
}
|
|
198
199
|
},
|
|
199
200
|
models: {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"package.json"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@elizaos/core": "1.6.2-alpha.
|
|
42
|
+
"@elizaos/core": "1.6.2-alpha.19",
|
|
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": "4.1.11"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@elizaos/cli": "1.6.2-alpha.
|
|
51
|
+
"@elizaos/cli": "1.6.2-alpha.19",
|
|
52
52
|
"@tailwindcss/vite": "^4.1.10",
|
|
53
53
|
"@vitejs/plugin-react-swc": "^3.10.2",
|
|
54
54
|
"dotenv": "16.4.5",
|
|
@@ -183,11 +183,13 @@ export const starterPlugin: Plugin = {
|
|
|
183
183
|
}
|
|
184
184
|
} catch (error) {
|
|
185
185
|
if (error instanceof z.ZodError) {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
);
|
|
186
|
+
const errorMessages =
|
|
187
|
+
error.issues?.map((e) => e.message)?.join(', ') || 'Unknown validation error';
|
|
188
|
+
throw new Error(`Invalid plugin configuration: ${errorMessages}`);
|
|
189
189
|
}
|
|
190
|
-
throw
|
|
190
|
+
throw new Error(
|
|
191
|
+
`Invalid plugin configuration: ${error instanceof Error ? error.message : String(error)}`
|
|
192
|
+
);
|
|
191
193
|
}
|
|
192
194
|
},
|
|
193
195
|
models: {
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@elizaos/cli": "1.6.2-alpha.
|
|
31
|
-
"@elizaos/client": "1.6.2-alpha.
|
|
32
|
-
"@elizaos/core": "1.6.2-alpha.
|
|
33
|
-
"@elizaos/plugin-bootstrap": "1.6.2-alpha.
|
|
34
|
-
"@elizaos/plugin-sql": "1.6.2-alpha.
|
|
35
|
-
"@elizaos/server": "1.6.2-alpha.
|
|
30
|
+
"@elizaos/cli": "1.6.2-alpha.19",
|
|
31
|
+
"@elizaos/client": "1.6.2-alpha.19",
|
|
32
|
+
"@elizaos/core": "1.6.2-alpha.19",
|
|
33
|
+
"@elizaos/plugin-bootstrap": "1.6.2-alpha.19",
|
|
34
|
+
"@elizaos/plugin-sql": "1.6.2-alpha.19",
|
|
35
|
+
"@elizaos/server": "1.6.2-alpha.19",
|
|
36
36
|
"@tanstack/react-query": "^5.29.0",
|
|
37
37
|
"clsx": "^2.1.1",
|
|
38
38
|
"react": "^18.3.1",
|
|
@@ -202,11 +202,13 @@ const plugin: Plugin = {
|
|
|
202
202
|
}
|
|
203
203
|
} catch (error) {
|
|
204
204
|
if (error instanceof z.ZodError) {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
);
|
|
205
|
+
const errorMessages =
|
|
206
|
+
error.issues?.map((e) => e.message)?.join(', ') || 'Unknown validation error';
|
|
207
|
+
throw new Error(`Invalid plugin configuration: ${errorMessages}`);
|
|
208
208
|
}
|
|
209
|
-
throw
|
|
209
|
+
throw new Error(
|
|
210
|
+
`Invalid plugin configuration: ${error instanceof Error ? error.message : String(error)}`
|
|
211
|
+
);
|
|
210
212
|
}
|
|
211
213
|
},
|
|
212
214
|
models: {
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"GUIDE.md"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@elizaos/cli": "1.6.2-alpha.
|
|
36
|
-
"@elizaos/core": "1.6.2-alpha.
|
|
37
|
-
"@elizaos/plugin-bootstrap": "1.6.2-alpha.
|
|
35
|
+
"@elizaos/cli": "1.6.2-alpha.19",
|
|
36
|
+
"@elizaos/core": "1.6.2-alpha.19",
|
|
37
|
+
"@elizaos/plugin-bootstrap": "1.6.2-alpha.19",
|
|
38
38
|
"@elizaos/plugin-redpill": "1.2.1",
|
|
39
|
-
"@elizaos/plugin-sql": "1.6.2-alpha.
|
|
39
|
+
"@elizaos/plugin-sql": "1.6.2-alpha.19",
|
|
40
40
|
"@phala/dstack-sdk": "0.1.11",
|
|
41
41
|
"@solana/web3.js": "1.98.2",
|
|
42
42
|
"@tanstack/react-query": "^5.29.0",
|
package/dist/version.d.ts
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Generated at build time by generate-version.ts
|
|
4
4
|
* This file contains build-time constants to avoid runtime package.json resolution
|
|
5
5
|
*/
|
|
6
|
-
export declare const CLI_VERSION = "1.6.2-alpha.
|
|
6
|
+
export declare const CLI_VERSION = "1.6.2-alpha.19";
|
|
7
7
|
export declare const CLI_NAME = "@elizaos/cli";
|
|
8
8
|
export declare const CLI_DESCRIPTION = "elizaOS CLI - Manage your AI agents and plugins";
|
|
9
|
-
export declare const BUILD_TIME = "2025-10-
|
|
9
|
+
export declare const BUILD_TIME = "2025-10-17T10:50:11.166Z";
|
|
10
10
|
export declare const BUILD_ENV = "production";
|
|
11
11
|
declare const _default: {
|
|
12
12
|
version: string;
|
package/dist/version.js
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* This file contains build-time constants to avoid runtime package.json resolution
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
export const CLI_VERSION = '1.6.2-alpha.
|
|
7
|
+
export const CLI_VERSION = '1.6.2-alpha.19';
|
|
8
8
|
export const CLI_NAME = '@elizaos/cli';
|
|
9
9
|
export const CLI_DESCRIPTION = 'elizaOS CLI - Manage your AI agents and plugins';
|
|
10
10
|
|
|
11
11
|
// Build metadata
|
|
12
|
-
export const BUILD_TIME = '2025-10-
|
|
12
|
+
export const BUILD_TIME = '2025-10-17T10:50:11.166Z';
|
|
13
13
|
export const BUILD_ENV = 'production';
|
|
14
14
|
|
|
15
15
|
// Export as default for convenience
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/cli",
|
|
3
|
-
"version": "1.6.2-alpha.
|
|
3
|
+
"version": "1.6.2-alpha.19",
|
|
4
4
|
"description": "elizaOS CLI - Manage your AI agents and plugins",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -75,22 +75,23 @@
|
|
|
75
75
|
"typescript": "5.9.2",
|
|
76
76
|
"vite": "^7.1.7"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "8a3177f8e189bfebccbe54d4c1dcf756cc4d1c72",
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"@anthropic-ai/claude-code": "^2.0.1",
|
|
81
81
|
"@anthropic-ai/sdk": "^0.65.0",
|
|
82
82
|
"@clack/prompts": "^0.11.0",
|
|
83
|
-
"@elizaos/api-client": "1.6.2-alpha.
|
|
84
|
-
"@elizaos/core": "1.6.2-alpha.
|
|
85
|
-
"@elizaos/plugin-bootstrap": "1.6.2-alpha.
|
|
83
|
+
"@elizaos/api-client": "1.6.2-alpha.19",
|
|
84
|
+
"@elizaos/core": "1.6.2-alpha.19",
|
|
85
|
+
"@elizaos/plugin-bootstrap": "1.6.2-alpha.19",
|
|
86
86
|
"@elizaos/plugin-openai": "1.5.15",
|
|
87
|
-
"@elizaos/plugin-sql": "1.6.2-alpha.
|
|
88
|
-
"@elizaos/server": "1.6.2-alpha.
|
|
87
|
+
"@elizaos/plugin-sql": "1.6.2-alpha.19",
|
|
88
|
+
"@elizaos/server": "1.6.2-alpha.19",
|
|
89
89
|
"bun": "^1.2.21",
|
|
90
90
|
"chalk": "^5.4.1",
|
|
91
91
|
"chokidar": "^4.0.3",
|
|
92
92
|
"commander": "^14.0.0",
|
|
93
93
|
"dotenv": "^17.2.3",
|
|
94
|
+
"execa": "^9.6.0",
|
|
94
95
|
"form-data": "^4.0.0",
|
|
95
96
|
"fs-extra": "^11.1.0",
|
|
96
97
|
"globby": "^15.0.0",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"package.json"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@elizaos/core": "1.6.2-alpha.
|
|
42
|
+
"@elizaos/core": "1.6.2-alpha.19",
|
|
43
43
|
"zod": "4.1.11"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@elizaos/cli": "1.6.2-alpha.
|
|
46
|
+
"@elizaos/cli": "1.6.2-alpha.19",
|
|
47
47
|
"dotenv": "16.4.5",
|
|
48
48
|
"prettier": "3.5.3",
|
|
49
49
|
"typescript": "5.8.2"
|
|
@@ -117,6 +117,60 @@ describe('Plugin Configuration', () => {
|
|
|
117
117
|
);
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
|
+
|
|
121
|
+
it('should handle ZodError with issues array correctly', async () => {
|
|
122
|
+
const runtime = createMockRuntime();
|
|
123
|
+
const invalidConfig = { EXAMPLE_PLUGIN_VARIABLE: '' }; // Empty string violates min(1)
|
|
124
|
+
|
|
125
|
+
if (starterPlugin.init) {
|
|
126
|
+
try {
|
|
127
|
+
await starterPlugin.init(invalidConfig, runtime);
|
|
128
|
+
throw new Error('Should have thrown error');
|
|
129
|
+
} catch (error) {
|
|
130
|
+
expect(error).toBeInstanceOf(Error);
|
|
131
|
+
const errorMessage = (error as Error).message;
|
|
132
|
+
expect(errorMessage).toContain('Invalid plugin configuration');
|
|
133
|
+
// Should use error.issues, not error.errors
|
|
134
|
+
expect(errorMessage).toContain('Example plugin variable is not provided');
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
it('should handle ZodError with fallback for undefined issues', async () => {
|
|
140
|
+
const runtime = createMockRuntime();
|
|
141
|
+
// Test that the error handling doesn't crash if issues is somehow undefined
|
|
142
|
+
const invalidConfig = { EXAMPLE_PLUGIN_VARIABLE: null };
|
|
143
|
+
|
|
144
|
+
if (starterPlugin.init) {
|
|
145
|
+
try {
|
|
146
|
+
await starterPlugin.init(invalidConfig as any, runtime);
|
|
147
|
+
throw new Error('Should have thrown error');
|
|
148
|
+
} catch (error) {
|
|
149
|
+
expect(error).toBeInstanceOf(Error);
|
|
150
|
+
const errorMessage = (error as Error).message;
|
|
151
|
+
// Should either show specific error or fallback message
|
|
152
|
+
expect(errorMessage).toContain('Invalid plugin configuration');
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
it('should handle non-ZodError exceptions', async () => {
|
|
158
|
+
const runtime = createMockRuntime();
|
|
159
|
+
// Pass a config that will cause validation but won't be a ZodError
|
|
160
|
+
const config = { EXAMPLE_PLUGIN_VARIABLE: 'valid-value' };
|
|
161
|
+
|
|
162
|
+
if (starterPlugin.init) {
|
|
163
|
+
// This should succeed without throwing
|
|
164
|
+
let error: Error | null = null;
|
|
165
|
+
try {
|
|
166
|
+
await starterPlugin.init(config, runtime);
|
|
167
|
+
} catch (e) {
|
|
168
|
+
error = e as Error;
|
|
169
|
+
}
|
|
170
|
+
expect(error).toBeNull();
|
|
171
|
+
expect(process.env.EXAMPLE_PLUGIN_VARIABLE).toBe('valid-value');
|
|
172
|
+
}
|
|
173
|
+
});
|
|
120
174
|
});
|
|
121
175
|
|
|
122
176
|
describe('Hello World Action', () => {
|
|
@@ -2,7 +2,6 @@ import type { Plugin } from '@elizaos/core';
|
|
|
2
2
|
import {
|
|
3
3
|
type Action,
|
|
4
4
|
type ActionResult,
|
|
5
|
-
type Content,
|
|
6
5
|
type GenerateTextParams,
|
|
7
6
|
type HandlerCallback,
|
|
8
7
|
type IAgentRuntime,
|
|
@@ -189,11 +188,13 @@ export const starterPlugin: Plugin = {
|
|
|
189
188
|
}
|
|
190
189
|
} catch (error) {
|
|
191
190
|
if (error instanceof z.ZodError) {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
);
|
|
191
|
+
const errorMessages =
|
|
192
|
+
error.issues?.map((e) => e.message)?.join(', ') || 'Unknown validation error';
|
|
193
|
+
throw new Error(`Invalid plugin configuration: ${errorMessages}`);
|
|
195
194
|
}
|
|
196
|
-
throw
|
|
195
|
+
throw new Error(
|
|
196
|
+
`Invalid plugin configuration: ${error instanceof Error ? error.message : String(error)}`
|
|
197
|
+
);
|
|
197
198
|
}
|
|
198
199
|
},
|
|
199
200
|
models: {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"package.json"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@elizaos/core": "1.6.2-alpha.
|
|
42
|
+
"@elizaos/core": "1.6.2-alpha.19",
|
|
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": "4.1.11"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@elizaos/cli": "1.6.2-alpha.
|
|
51
|
+
"@elizaos/cli": "1.6.2-alpha.19",
|
|
52
52
|
"@tailwindcss/vite": "^4.1.10",
|
|
53
53
|
"@vitejs/plugin-react-swc": "^3.10.2",
|
|
54
54
|
"dotenv": "16.4.5",
|
|
@@ -183,11 +183,13 @@ export const starterPlugin: Plugin = {
|
|
|
183
183
|
}
|
|
184
184
|
} catch (error) {
|
|
185
185
|
if (error instanceof z.ZodError) {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
);
|
|
186
|
+
const errorMessages =
|
|
187
|
+
error.issues?.map((e) => e.message)?.join(', ') || 'Unknown validation error';
|
|
188
|
+
throw new Error(`Invalid plugin configuration: ${errorMessages}`);
|
|
189
189
|
}
|
|
190
|
-
throw
|
|
190
|
+
throw new Error(
|
|
191
|
+
`Invalid plugin configuration: ${error instanceof Error ? error.message : String(error)}`
|
|
192
|
+
);
|
|
191
193
|
}
|
|
192
194
|
},
|
|
193
195
|
models: {
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@elizaos/cli": "1.6.2-alpha.
|
|
31
|
-
"@elizaos/client": "1.6.2-alpha.
|
|
32
|
-
"@elizaos/core": "1.6.2-alpha.
|
|
33
|
-
"@elizaos/plugin-bootstrap": "1.6.2-alpha.
|
|
34
|
-
"@elizaos/plugin-sql": "1.6.2-alpha.
|
|
35
|
-
"@elizaos/server": "1.6.2-alpha.
|
|
30
|
+
"@elizaos/cli": "1.6.2-alpha.19",
|
|
31
|
+
"@elizaos/client": "1.6.2-alpha.19",
|
|
32
|
+
"@elizaos/core": "1.6.2-alpha.19",
|
|
33
|
+
"@elizaos/plugin-bootstrap": "1.6.2-alpha.19",
|
|
34
|
+
"@elizaos/plugin-sql": "1.6.2-alpha.19",
|
|
35
|
+
"@elizaos/server": "1.6.2-alpha.19",
|
|
36
36
|
"@tanstack/react-query": "^5.29.0",
|
|
37
37
|
"clsx": "^2.1.1",
|
|
38
38
|
"react": "^18.3.1",
|
|
@@ -202,11 +202,13 @@ const plugin: Plugin = {
|
|
|
202
202
|
}
|
|
203
203
|
} catch (error) {
|
|
204
204
|
if (error instanceof z.ZodError) {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
);
|
|
205
|
+
const errorMessages =
|
|
206
|
+
error.issues?.map((e) => e.message)?.join(', ') || 'Unknown validation error';
|
|
207
|
+
throw new Error(`Invalid plugin configuration: ${errorMessages}`);
|
|
208
208
|
}
|
|
209
|
-
throw
|
|
209
|
+
throw new Error(
|
|
210
|
+
`Invalid plugin configuration: ${error instanceof Error ? error.message : String(error)}`
|
|
211
|
+
);
|
|
210
212
|
}
|
|
211
213
|
},
|
|
212
214
|
models: {
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"GUIDE.md"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@elizaos/cli": "1.6.2-alpha.
|
|
36
|
-
"@elizaos/core": "1.6.2-alpha.
|
|
37
|
-
"@elizaos/plugin-bootstrap": "1.6.2-alpha.
|
|
35
|
+
"@elizaos/cli": "1.6.2-alpha.19",
|
|
36
|
+
"@elizaos/core": "1.6.2-alpha.19",
|
|
37
|
+
"@elizaos/plugin-bootstrap": "1.6.2-alpha.19",
|
|
38
38
|
"@elizaos/plugin-redpill": "1.2.1",
|
|
39
|
-
"@elizaos/plugin-sql": "1.6.2-alpha.
|
|
39
|
+
"@elizaos/plugin-sql": "1.6.2-alpha.19",
|
|
40
40
|
"@phala/dstack-sdk": "0.1.11",
|
|
41
41
|
"@solana/web3.js": "1.98.2",
|
|
42
42
|
"@tanstack/react-query": "^5.29.0",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deploy Action with Bootstrapper Architecture
|
|
3
|
-
* Deploys ElizaOS projects using artifact-based deployment
|
|
4
|
-
*/
|
|
5
|
-
import type { DeployOptions, DeploymentResult } from "../types";
|
|
6
|
-
/**
|
|
7
|
-
* Deploy project using bootstrapper architecture
|
|
8
|
-
*/
|
|
9
|
-
export declare function deployWithBootstrapper(options: DeployOptions): Promise<DeploymentResult>;
|
|
10
|
-
//# sourceMappingURL=deploy-bootstrapper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-bootstrapper.d.ts","sourceRoot":"","sources":["../../../../src/commands/deploy/actions/deploy-bootstrapper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAIjB,MAAM,UAAU,CAAC;AAQlB;;GAEG;AACH,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,gBAAgB,CAAC,CAkU3B"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Artifact utilities for ElizaOS deployment
|
|
3
|
-
* Handles creating, compressing, and managing project artifacts
|
|
4
|
-
*/
|
|
5
|
-
export interface ArtifactOptions {
|
|
6
|
-
projectPath: string;
|
|
7
|
-
outputPath?: string;
|
|
8
|
-
excludePatterns?: string[];
|
|
9
|
-
includeEnv?: boolean;
|
|
10
|
-
deterministic?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface ArtifactResult {
|
|
13
|
-
success: boolean;
|
|
14
|
-
artifactPath?: string;
|
|
15
|
-
checksum?: string;
|
|
16
|
-
size?: number;
|
|
17
|
-
fileCount?: number;
|
|
18
|
-
error?: string;
|
|
19
|
-
}
|
|
20
|
-
export interface ArtifactMetadata {
|
|
21
|
-
version: string;
|
|
22
|
-
createdAt: string;
|
|
23
|
-
checksum: string;
|
|
24
|
-
files: string[];
|
|
25
|
-
dependencies?: Record<string, string>;
|
|
26
|
-
elizaVersion?: string;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Create a deployment artifact from a project directory
|
|
30
|
-
*/
|
|
31
|
-
export declare function createArtifact(options: ArtifactOptions): Promise<ArtifactResult>;
|
|
32
|
-
/**
|
|
33
|
-
* Calculate SHA256 checksum of a file
|
|
34
|
-
*/
|
|
35
|
-
export declare function calculateChecksum(filePath: string): Promise<string>;
|
|
36
|
-
/**
|
|
37
|
-
* Extract an artifact to a directory
|
|
38
|
-
*/
|
|
39
|
-
export declare function extractArtifact(artifactPath: string, outputDir: string): Promise<void>;
|
|
40
|
-
/**
|
|
41
|
-
* Validate an artifact's integrity
|
|
42
|
-
*/
|
|
43
|
-
export declare function validateArtifact(artifactPath: string, expectedChecksum?: string): Promise<boolean>;
|
|
44
|
-
/**
|
|
45
|
-
* Clean up old artifacts
|
|
46
|
-
*/
|
|
47
|
-
export declare function cleanupArtifacts(artifactDir: string, keepCount?: number): Promise<void>;
|
|
48
|
-
//# sourceMappingURL=artifact.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"artifact.d.ts","sourceRoot":"","sources":["../../../../src/commands/deploy/utils/artifact.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAuDD;;GAEG;AACH,wBAAsB,cAAc,CAClC,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,cAAc,CAAC,CAgGzB;AAyGD;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CASzE;AAED;;GAEG;AACH,wBAAsB,eAAe,CACnC,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,IAAI,CAAC,CAef;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,YAAY,EAAE,MAAM,EACpB,gBAAgB,CAAC,EAAE,MAAM,GACxB,OAAO,CAAC,OAAO,CAAC,CA8BlB;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,WAAW,EAAE,MAAM,EACnB,SAAS,SAAI,GACZ,OAAO,CAAC,IAAI,CAAC,CAmCf"}
|