@elizaos/cli 1.5.12 → 1.5.13-alpha.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.
Files changed (56) hide show
  1. package/dist/commands/agent/utils/validation.d.ts +3 -31
  2. package/dist/commands/agent/utils/validation.d.ts.map +1 -1
  3. package/dist/commands/create/actions/setup.d.ts.map +1 -1
  4. package/dist/commands/create/types.d.ts +7 -8
  5. package/dist/commands/create/types.d.ts.map +1 -1
  6. package/dist/commands/create/utils/validation.d.ts +2 -2
  7. package/dist/commands/create/utils/validation.d.ts.map +1 -1
  8. package/dist/commands/dev/actions/dev-server.d.ts.map +1 -1
  9. package/dist/commands/report/src/report-schema.d.ts +11 -167
  10. package/dist/commands/report/src/report-schema.d.ts.map +1 -1
  11. package/dist/commands/scenario/src/MockEngine.d.ts +11 -11
  12. package/dist/commands/scenario/src/matrix-schema.d.ts +5 -70
  13. package/dist/commands/scenario/src/matrix-schema.d.ts.map +1 -1
  14. package/dist/commands/scenario/src/plugin-parser.d.ts +6 -31
  15. package/dist/commands/scenario/src/plugin-parser.d.ts.map +1 -1
  16. package/dist/commands/scenario/src/runtime-factory.d.ts.map +1 -1
  17. package/dist/commands/scenario/src/schema.d.ts +175 -2007
  18. package/dist/commands/scenario/src/schema.d.ts.map +1 -1
  19. package/dist/commands/start/index.d.ts +0 -5
  20. package/dist/commands/start/index.d.ts.map +1 -1
  21. package/dist/commands/test/actions/e2e-tests.d.ts.map +1 -1
  22. package/dist/index.js +25142 -16759
  23. package/dist/index.js.map +92 -30
  24. package/dist/templates/plugin-quick-starter/package.json +4 -4
  25. package/dist/templates/plugin-starter/package.json +4 -4
  26. package/dist/templates/project-starter/package.json +7 -7
  27. package/dist/templates/project-tee-starter/package.json +5 -5
  28. package/dist/templates/project-tee-starter/src/__tests__/config.test.ts +1 -1
  29. package/dist/templates/project-tee-starter/src/__tests__/tee-validation.test.ts +60 -4
  30. package/dist/templates/project-tee-starter/src/plugin.ts +66 -25
  31. package/dist/utils/get-config.d.ts +27 -194
  32. package/dist/utils/get-config.d.ts.map +1 -1
  33. package/dist/utils/local-cli-delegation.d.ts.map +1 -1
  34. package/dist/version.d.ts +2 -2
  35. package/dist/version.d.ts.map +1 -1
  36. package/dist/version.js +2 -2
  37. package/package.json +9 -8
  38. package/templates/plugin-quick-starter/package.json +4 -4
  39. package/templates/plugin-starter/package.json +4 -4
  40. package/templates/project-starter/package.json +7 -7
  41. package/templates/project-tee-starter/package.json +5 -5
  42. package/templates/project-tee-starter/src/__tests__/config.test.ts +1 -1
  43. package/templates/project-tee-starter/src/__tests__/tee-validation.test.ts +60 -4
  44. package/templates/project-tee-starter/src/plugin.ts +66 -25
  45. package/dist/commands/start/actions/agent-start.d.ts +0 -14
  46. package/dist/commands/start/actions/agent-start.d.ts.map +0 -1
  47. package/dist/commands/start/actions/server-start.d.ts +0 -17
  48. package/dist/commands/start/actions/server-start.d.ts.map +0 -1
  49. package/dist/commands/start/utils/config-utils.d.ts +0 -30
  50. package/dist/commands/start/utils/config-utils.d.ts.map +0 -1
  51. package/dist/commands/start/utils/dependency-resolver.d.ts +0 -8
  52. package/dist/commands/start/utils/dependency-resolver.d.ts.map +0 -1
  53. package/dist/commands/start/utils/loader.d.ts +0 -68
  54. package/dist/commands/start/utils/loader.d.ts.map +0 -1
  55. package/dist/commands/start/utils/plugin-utils.d.ts +0 -17
  56. package/dist/commands/start/utils/plugin-utils.d.ts.map +0 -1
@@ -39,11 +39,11 @@
39
39
  "package.json"
40
40
  ],
41
41
  "dependencies": {
42
- "@elizaos/core": "1.5.12",
43
- "zod": "^3.24.4"
42
+ "@elizaos/core": "1.5.13-alpha.2",
43
+ "zod": "4.1.11"
44
44
  },
45
45
  "devDependencies": {
46
- "@elizaos/cli": "1.5.12",
46
+ "@elizaos/cli": "1.5.13-alpha.2",
47
47
  "dotenv": "16.4.5",
48
48
  "prettier": "3.5.3",
49
49
  "typescript": "5.8.2"
@@ -62,7 +62,7 @@
62
62
  },
63
63
  "resolutions": {
64
64
  "// Note": "langchain 0.3.30 fixes @langchain/core zod/v3 import issues",
65
- "zod": "^3.24.4",
65
+ "zod": "4.1.11",
66
66
  "langchain": "0.3.30",
67
67
  "@langchain/core": "0.3.30"
68
68
  },
@@ -39,16 +39,16 @@
39
39
  "package.json"
40
40
  ],
41
41
  "dependencies": {
42
- "@elizaos/core": "1.5.12",
42
+ "@elizaos/core": "1.5.13-alpha.2",
43
43
  "@tanstack/react-query": "^5.80.7",
44
44
  "clsx": "^2.1.1",
45
45
  "tailwind-merge": "^3.3.1",
46
46
  "tailwindcss": "^4.1.10",
47
47
  "vite": "^6.3.5",
48
- "zod": "3.24.2"
48
+ "zod": "4.1.11"
49
49
  },
50
50
  "devDependencies": {
51
- "@elizaos/cli": "1.5.12",
51
+ "@elizaos/cli": "1.5.13-alpha.2",
52
52
  "@tailwindcss/vite": "^4.1.10",
53
53
  "@vitejs/plugin-react-swc": "^3.10.2",
54
54
  "dotenv": "16.4.5",
@@ -77,7 +77,7 @@
77
77
  },
78
78
  "resolutions": {
79
79
  "// Note": "langchain 0.3.30 fixes @langchain/core zod/v3 import issues",
80
- "zod": "3.24.2",
80
+ "zod": "4.1.11",
81
81
  "langchain": "0.3.30",
82
82
  "@langchain/core": "0.3.30"
83
83
  },
@@ -27,19 +27,19 @@
27
27
  "dist"
28
28
  ],
29
29
  "dependencies": {
30
- "@elizaos/cli": "1.5.12",
31
- "@elizaos/client": "1.5.12",
32
- "@elizaos/core": "1.5.12",
33
- "@elizaos/plugin-bootstrap": "1.5.12",
34
- "@elizaos/plugin-sql": "1.5.12",
35
- "@elizaos/server": "1.5.12",
30
+ "@elizaos/cli": "1.5.13-alpha.2",
31
+ "@elizaos/client": "1.5.13-alpha.2",
32
+ "@elizaos/core": "1.5.13-alpha.2",
33
+ "@elizaos/plugin-bootstrap": "1.5.13-alpha.2",
34
+ "@elizaos/plugin-sql": "1.5.13-alpha.2",
35
+ "@elizaos/server": "1.5.13-alpha.2",
36
36
  "@tanstack/react-query": "^5.29.0",
37
37
  "clsx": "^2.1.1",
38
38
  "react": "^18.3.1",
39
39
  "react-dom": "^18.3.1",
40
40
  "tailwind-merge": "^2.6.0",
41
41
  "tailwindcss": "^4.1.10",
42
- "zod": "3.24.2"
42
+ "zod": "4.1.11"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/react": "^18.3.3",
@@ -32,11 +32,11 @@
32
32
  "GUIDE.md"
33
33
  ],
34
34
  "dependencies": {
35
- "@elizaos/cli": "1.5.12",
36
- "@elizaos/core": "1.5.12",
37
- "@elizaos/plugin-bootstrap": "1.5.12",
35
+ "@elizaos/cli": "1.5.13-alpha.2",
36
+ "@elizaos/core": "1.5.13-alpha.2",
37
+ "@elizaos/plugin-bootstrap": "1.5.13-alpha.2",
38
38
  "@elizaos/plugin-redpill": "1.2.1",
39
- "@elizaos/plugin-sql": "1.5.12",
39
+ "@elizaos/plugin-sql": "1.5.13-alpha.2",
40
40
  "@phala/dstack-sdk": "0.1.11",
41
41
  "@solana/web3.js": "1.98.2",
42
42
  "@tanstack/react-query": "^5.29.0",
@@ -46,7 +46,7 @@
46
46
  "tailwind-merge": "^2.6.0",
47
47
  "tailwindcss": "^4.1.10",
48
48
  "viem": "2.30.1",
49
- "zod": "3.24.2"
49
+ "zod": "4.1.11"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/jsdom": "^21.1.7",
@@ -48,7 +48,7 @@ describe('Plugin Configuration', () => {
48
48
  // Test with invalid config should fail validation during init
49
49
  const invalidConfig = { TEE_MODE: 'INVALID_MODE' };
50
50
  await expect(teeStarterPlugin.init(invalidConfig, mockRuntime)).rejects.toThrow(
51
- 'Invalid plugin configuration'
51
+ 'TEE_MODE must be one of: OFF, LOCAL, DOCKER, PRODUCTION'
52
52
  );
53
53
  } finally {
54
54
  // Restore original environment
@@ -154,7 +154,9 @@ describe('TEE Environment Validation', () => {
154
154
  try {
155
155
  await expect(async () => {
156
156
  await teeStarterPlugin.init?.({}, mockRuntime);
157
- }).toThrow('Wallet secret salt must be at least 8 characters long for security');
157
+ }).toThrow(
158
+ 'Wallet secret salt must be at least 8 characters long for security (excluding whitespace)'
159
+ );
158
160
  } finally {
159
161
  // Restore original argv
160
162
  process.argv = originalArgv;
@@ -189,7 +191,60 @@ describe('TEE Environment Validation', () => {
189
191
 
190
192
  await expect(async () => {
191
193
  await teeStarterPlugin.init?.({}, mockRuntime);
192
- }).toThrow('Wallet secret salt must not exceed 128 characters');
194
+ }).toThrow('Wallet secret salt must not exceed 128 characters (excluding whitespace)');
195
+ });
196
+
197
+ test('should reject whitespace-only salt', async () => {
198
+ // Test various whitespace-only values
199
+ const whitespaceSalts = [' ', '\t\t\t\t', ' \t ', '\n\n\n\n\n\n\n\n'];
200
+
201
+ for (const salt of whitespaceSalts) {
202
+ // Remove argv test detection temporarily to test validation
203
+ const originalArgv = process.argv;
204
+ process.argv = ['node', 'script.js']; // Remove test from argv
205
+
206
+ process.env.NODE_ENV = 'production';
207
+ process.env.TEE_MODE = 'OFF';
208
+ process.env.TEE_VENDOR = 'phala';
209
+ process.env.WALLET_SECRET_SALT = salt;
210
+
211
+ try {
212
+ await expect(async () => {
213
+ await teeStarterPlugin.init?.({}, mockRuntime);
214
+ }).toThrow(
215
+ 'Wallet secret salt must be at least 8 characters long for security (excluding whitespace)'
216
+ );
217
+ } finally {
218
+ // Restore original argv
219
+ process.argv = originalArgv;
220
+ }
221
+ }
222
+ });
223
+
224
+ test('should trim salt and accept if valid after trimming', async () => {
225
+ // Test values with leading/trailing whitespace that are valid after trimming
226
+ const paddedSalts = [
227
+ ' valid_salt_123 ',
228
+ '\tvalid_salt_123\t',
229
+ '\n\nvalid_salt_123\n\n',
230
+ ' valid_salt_123 ',
231
+ ];
232
+
233
+ for (const salt of paddedSalts) {
234
+ process.env.NODE_ENV = 'production';
235
+ process.env.TEE_MODE = 'OFF';
236
+ process.env.TEE_VENDOR = 'phala';
237
+ process.env.WALLET_SECRET_SALT = salt;
238
+
239
+ let error = null;
240
+ try {
241
+ await teeStarterPlugin.init?.({}, mockRuntime);
242
+ } catch (e) {
243
+ error = e;
244
+ }
245
+ // Should not throw error since trimmed value is valid
246
+ expect(error).toBeNull();
247
+ }
193
248
  });
194
249
  });
195
250
 
@@ -281,10 +336,11 @@ describe('TEE Environment Validation', () => {
281
336
  process.env.TEE_VENDOR = ' phala '; // Whitespace around valid value
282
337
  process.env.WALLET_SECRET_SALT = ' test_salt_123 '; // Whitespace around valid value
283
338
 
284
- // Whitespace should cause validation failure (no auto-trim)
339
+ // TEE_MODE and TEE_VENDOR whitespace should cause validation failure
340
+ // But WALLET_SECRET_SALT is now trimmed and should pass if length is valid after trimming
285
341
  await expect(async () => {
286
342
  await teeStarterPlugin.init?.({}, mockRuntime);
287
- }).toThrow();
343
+ }).toThrow(); // Will throw due to TEE_MODE/TEE_VENDOR whitespace
288
344
  } finally {
289
345
  // Restore original values
290
346
  process.argv = originalArgv;
@@ -28,10 +28,13 @@ const configSchema = z.object({
28
28
  }
29
29
  return val;
30
30
  })
31
- .refine((val) => {
32
- if (!val) return true; // Allow undefined in non-test environments
33
- return ['OFF', 'LOCAL', 'DOCKER', 'PRODUCTION'].includes(val);
34
- }, 'TEE_MODE must be one of: OFF, LOCAL, DOCKER, PRODUCTION'),
31
+ .refine(
32
+ (val) => {
33
+ if (!val) return true; // Allow undefined in non-test environments
34
+ return ['OFF', 'LOCAL', 'DOCKER', 'PRODUCTION'].includes(val);
35
+ },
36
+ { message: 'TEE_MODE must be one of: OFF, LOCAL, DOCKER, PRODUCTION' }
37
+ ),
35
38
 
36
39
  TEE_VENDOR: z
37
40
  .string()
@@ -43,10 +46,13 @@ const configSchema = z.object({
43
46
  }
44
47
  return val;
45
48
  })
46
- .refine((val) => {
47
- if (!val) return true; // Allow undefined in non-test environments
48
- return val === 'phala';
49
- }, 'TEE_VENDOR must be: phala'),
49
+ .refine(
50
+ (val) => {
51
+ if (!val) return true; // Allow undefined in non-test environments
52
+ return val === 'phala';
53
+ },
54
+ { message: 'TEE_VENDOR must be: phala' }
55
+ ),
50
56
 
51
57
  WALLET_SECRET_SALT: z
52
58
  .string()
@@ -60,26 +66,33 @@ const configSchema = z.object({
60
66
  }
61
67
  if (!val) {
62
68
  logger.warn('Warning: Wallet secret salt is not provided');
69
+ return val;
63
70
  }
64
- return val;
71
+ // Trim whitespace to prevent security bypass
72
+ return val.trim();
65
73
  })
66
74
  .refine(
67
75
  (val) => {
68
- if (!val) return true; // Allow undefined in non-test environments
69
- const trimmedVal = val.trim();
70
- return trimmedVal.length >= 8 && trimmedVal.length <= 128;
76
+ if (val === undefined) return true; // Allow undefined in non-test environments
77
+ // Empty string after trimming is not allowed (reject whitespace-only values)
78
+ if (!val || val.length === 0) return false;
79
+ // Check trimmed length for security (val is already trimmed from transform)
80
+ return val.length >= 8;
71
81
  },
72
- (val) => {
73
- if (!val) return { message: 'Wallet secret salt is required' };
74
- const trimmedVal = val.trim();
75
- if (trimmedVal.length < 8) {
76
- return { message: 'Wallet secret salt must be at least 8 characters long for security' };
77
- }
78
- if (trimmedVal.length > 128) {
79
- return { message: 'Wallet secret salt must not exceed 128 characters' };
80
- }
81
- return { message: 'Invalid wallet secret salt' };
82
+ {
83
+ message:
84
+ 'Wallet secret salt must be at least 8 characters long for security (excluding whitespace)',
82
85
  }
86
+ )
87
+ .refine(
88
+ (val) => {
89
+ if (val === undefined) return true; // Allow undefined in non-test environments
90
+ // Empty strings not allowed (already checked in previous refine, but be consistent)
91
+ if (!val || val.length === 0) return false;
92
+ // Check trimmed length (val is already trimmed from transform)
93
+ return val.length <= 128;
94
+ },
95
+ { message: 'Wallet secret salt must not exceed 128 characters (excluding whitespace)' }
83
96
  ),
84
97
  });
85
98
 
@@ -95,7 +108,8 @@ type TeeServiceConfig = {
95
108
  */
96
109
  const createTeeServiceConfig = (runtime: IAgentRuntime): TeeServiceConfig => ({
97
110
  teeClient: new TappdClient(),
98
- secretSalt: process.env.WALLET_SECRET_SALT || 'secret_salt',
111
+ // Ensure salt is trimmed to match validation behavior
112
+ secretSalt: (process.env.WALLET_SECRET_SALT || 'secret_salt').trim(),
99
113
  runtime,
100
114
  });
101
115
 
@@ -260,9 +274,36 @@ const teeStarterPlugin: Plugin = {
260
274
  }
261
275
  } catch (error) {
262
276
  if (error instanceof z.ZodError) {
263
- throw new Error(
264
- `Invalid plugin configuration: ${error.errors.map((e) => e.message).join(', ')}`
277
+ // Check if this is validation with an invalid TEE_MODE from the test
278
+ const hasInvalidMode = error.issues.some(
279
+ (e) => e.path[0] === 'TEE_MODE' && e.message.includes('TEE_MODE must be')
265
280
  );
281
+ if (hasInvalidMode) {
282
+ // Throw the specific validation error for TEE_MODE
283
+ const teeError = error.issues.find((e) => e.path[0] === 'TEE_MODE');
284
+ throw new Error(
285
+ teeError?.message || 'TEE_MODE must be one of: OFF, LOCAL, DOCKER, PRODUCTION'
286
+ );
287
+ }
288
+
289
+ // Check if this is validation with an invalid TEE_VENDOR from the test
290
+ const hasInvalidVendor = error.issues.some(
291
+ (e) => e.path[0] === 'TEE_VENDOR' && e.message.includes('TEE_VENDOR must be')
292
+ );
293
+ if (hasInvalidVendor) {
294
+ const vendorError = error.issues.find((e) => e.path[0] === 'TEE_VENDOR');
295
+ throw new Error(vendorError?.message || 'TEE_VENDOR must be: phala');
296
+ }
297
+
298
+ // Check if this is validation with an invalid WALLET_SECRET_SALT from the test
299
+ const hasSaltError = error.issues.some((e) => e.path[0] === 'WALLET_SECRET_SALT');
300
+ if (hasSaltError) {
301
+ const saltError = error.issues.find((e) => e.path[0] === 'WALLET_SECRET_SALT');
302
+ throw new Error(saltError?.message || 'Invalid wallet secret salt');
303
+ }
304
+
305
+ // Generic invalid configuration error
306
+ throw new Error('Invalid plugin configuration');
266
307
  }
267
308
  throw error;
268
309
  }
@@ -182,220 +182,53 @@ export declare function configureDatabaseSettings(reconfigure?: boolean): Promis
182
182
  */
183
183
  export declare const rawConfigSchema: z.ZodObject<{
184
184
  $schema: z.ZodOptional<z.ZodString>;
185
- database: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
185
+ database: z.ZodDiscriminatedUnion<[z.ZodObject<{
186
186
  type: z.ZodLiteral<"postgres">;
187
187
  config: z.ZodObject<{
188
188
  url: z.ZodOptional<z.ZodString>;
189
- }, "strip", z.ZodTypeAny, {
190
- url?: string | undefined;
191
- }, {
192
- url?: string | undefined;
193
- }>;
194
- }, "strip", z.ZodTypeAny, {
195
- type: "postgres";
196
- config: {
197
- url?: string | undefined;
198
- };
199
- }, {
200
- type: "postgres";
201
- config: {
202
- url?: string | undefined;
203
- };
204
- }>, z.ZodObject<{
189
+ }, z.core.$strip>;
190
+ }, z.core.$strip>, z.ZodObject<{
205
191
  type: z.ZodLiteral<"pglite">;
206
192
  config: z.ZodObject<{
207
193
  dataDir: z.ZodString;
208
- }, "strip", z.ZodTypeAny, {
209
- dataDir: string;
210
- }, {
211
- dataDir: string;
212
- }>;
213
- }, "strip", z.ZodTypeAny, {
214
- type: "pglite";
215
- config: {
216
- dataDir: string;
217
- };
218
- }, {
219
- type: "pglite";
220
- config: {
221
- dataDir: string;
222
- };
223
- }>]>;
194
+ }, z.core.$strip>;
195
+ }, z.core.$strip>], "type">;
224
196
  plugins: z.ZodObject<{
225
197
  registry: z.ZodString;
226
- installed: z.ZodArray<z.ZodString, "many">;
227
- }, "strip", z.ZodTypeAny, {
228
- registry: string;
229
- installed: string[];
230
- }, {
231
- registry: string;
232
- installed: string[];
233
- }>;
198
+ installed: z.ZodArray<z.ZodString>;
199
+ }, z.core.$strip>;
234
200
  paths: z.ZodObject<{
235
201
  knowledge: z.ZodString;
236
- }, "strip", z.ZodTypeAny, {
237
- knowledge: string;
238
- }, {
239
- knowledge: string;
240
- }>;
241
- }, "strict", z.ZodTypeAny, {
242
- plugins: {
243
- registry: string;
244
- installed: string[];
245
- };
246
- paths: {
247
- knowledge: string;
248
- };
249
- database: {
250
- type: "postgres";
251
- config: {
252
- url?: string | undefined;
253
- };
254
- } | {
255
- type: "pglite";
256
- config: {
257
- dataDir: string;
258
- };
259
- };
260
- $schema?: string | undefined;
261
- }, {
262
- plugins: {
263
- registry: string;
264
- installed: string[];
265
- };
266
- paths: {
267
- knowledge: string;
268
- };
269
- database: {
270
- type: "postgres";
271
- config: {
272
- url?: string | undefined;
273
- };
274
- } | {
275
- type: "pglite";
276
- config: {
277
- dataDir: string;
278
- };
279
- };
280
- $schema?: string | undefined;
281
- }>;
202
+ }, z.core.$strip>;
203
+ }, z.core.$strict>;
282
204
  /**
283
205
  * Type definition for the inferred type of the raw config schema.
284
206
  */
285
207
  export type RawConfig = z.infer<typeof rawConfigSchema>;
286
- export declare const configSchema: z.ZodObject<z.objectUtil.extendShape<{
208
+ export declare const configSchema: z.ZodObject<{
287
209
  $schema: z.ZodOptional<z.ZodString>;
288
- database: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
210
+ database: z.ZodDiscriminatedUnion<[z.ZodObject<{
289
211
  type: z.ZodLiteral<"postgres">;
290
212
  config: z.ZodObject<{
291
213
  url: z.ZodOptional<z.ZodString>;
292
- }, "strip", z.ZodTypeAny, {
293
- url?: string | undefined;
294
- }, {
295
- url?: string | undefined;
296
- }>;
297
- }, "strip", z.ZodTypeAny, {
298
- type: "postgres";
299
- config: {
300
- url?: string | undefined;
301
- };
302
- }, {
303
- type: "postgres";
304
- config: {
305
- url?: string | undefined;
306
- };
307
- }>, z.ZodObject<{
214
+ }, z.core.$strip>;
215
+ }, z.core.$strip>, z.ZodObject<{
308
216
  type: z.ZodLiteral<"pglite">;
309
217
  config: z.ZodObject<{
310
218
  dataDir: z.ZodString;
311
- }, "strip", z.ZodTypeAny, {
312
- dataDir: string;
313
- }, {
314
- dataDir: string;
315
- }>;
316
- }, "strip", z.ZodTypeAny, {
317
- type: "pglite";
318
- config: {
319
- dataDir: string;
320
- };
321
- }, {
322
- type: "pglite";
323
- config: {
324
- dataDir: string;
325
- };
326
- }>]>;
219
+ }, z.core.$strip>;
220
+ }, z.core.$strip>], "type">;
327
221
  plugins: z.ZodObject<{
328
222
  registry: z.ZodString;
329
- installed: z.ZodArray<z.ZodString, "many">;
330
- }, "strip", z.ZodTypeAny, {
331
- registry: string;
332
- installed: string[];
333
- }, {
334
- registry: string;
335
- installed: string[];
336
- }>;
223
+ installed: z.ZodArray<z.ZodString>;
224
+ }, z.core.$strip>;
337
225
  paths: z.ZodObject<{
338
226
  knowledge: z.ZodString;
339
- }, "strip", z.ZodTypeAny, {
340
- knowledge: string;
341
- }, {
342
- knowledge: string;
343
- }>;
344
- }, {
227
+ }, z.core.$strip>;
345
228
  resolvedPaths: z.ZodObject<{
346
229
  knowledge: z.ZodString;
347
- }, "strip", z.ZodTypeAny, {
348
- knowledge: string;
349
- }, {
350
- knowledge: string;
351
- }>;
352
- }>, "strict", z.ZodTypeAny, {
353
- plugins: {
354
- registry: string;
355
- installed: string[];
356
- };
357
- paths: {
358
- knowledge: string;
359
- };
360
- database: {
361
- type: "postgres";
362
- config: {
363
- url?: string | undefined;
364
- };
365
- } | {
366
- type: "pglite";
367
- config: {
368
- dataDir: string;
369
- };
370
- };
371
- resolvedPaths: {
372
- knowledge: string;
373
- };
374
- $schema?: string | undefined;
375
- }, {
376
- plugins: {
377
- registry: string;
378
- installed: string[];
379
- };
380
- paths: {
381
- knowledge: string;
382
- };
383
- database: {
384
- type: "postgres";
385
- config: {
386
- url?: string | undefined;
387
- };
388
- } | {
389
- type: "pglite";
390
- config: {
391
- dataDir: string;
392
- };
393
- };
394
- resolvedPaths: {
395
- knowledge: string;
396
- };
397
- $schema?: string | undefined;
398
- }>;
230
+ }, z.core.$strip>;
231
+ }, z.core.$strict>;
399
232
  /**
400
233
  * Define the type `Config` as the inferred type from the `configSchema`.
401
234
  */
@@ -407,13 +240,6 @@ export type Config = z.infer<typeof configSchema>;
407
240
  * @returns {Promise<Config>} The resolved configuration object with updated paths.
408
241
  */
409
242
  export declare function resolveConfigPaths(cwd: string, config: RawConfig): Promise<{
410
- plugins: {
411
- registry: string;
412
- installed: string[];
413
- };
414
- paths: {
415
- knowledge: string;
416
- };
417
243
  database: {
418
244
  type: "postgres";
419
245
  config: {
@@ -425,6 +251,13 @@ export declare function resolveConfigPaths(cwd: string, config: RawConfig): Prom
425
251
  dataDir: string;
426
252
  };
427
253
  };
254
+ plugins: {
255
+ registry: string;
256
+ installed: string[];
257
+ };
258
+ paths: {
259
+ knowledge: string;
260
+ };
428
261
  resolvedPaths: {
429
262
  knowledge: string;
430
263
  };
@@ -1 +1 @@
1
- {"version":3,"file":"get-config.d.ts","sourceRoot":"","sources":["../../src/utils/get-config.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA0GxB;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAsBvD;AAED;;;;GAIG;AACH,wBAAsB,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM;;;;GAkBlE;AAaD;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAmCrE;AAED;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,gBAAgB,CAAC,EAAE,MAAM;;;;GAmB7D;AAED;;;;GAIG;AACH,wBAAsB,WAAW,CAC/B,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,gBAAgB,CAAC,EAAE,MAAM,GACxB,OAAO,CAAC,IAAI,CAAC,CA4Bf;AAED;;;;;;;;;GASG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA0BtF;AAED;;;;;;;;;GASG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAsB5F;AAED;;;GAGG;AACH,wBAAsB,yBAAyB,CAAC,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;;;;;;;;;;;;;;;;GAetE;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,UAAU,GAAE,MAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,CAKvF"}
@@ -1 +1 @@
1
- {"version":3,"file":"local-cli-delegation.d.ts","sourceRoot":"","sources":["../../src/utils/local-cli-delegation.ts"],"names":[],"mappings":"AAkMA;;;;;GAKG;AACH,wBAAsB,qBAAqB,IAAI,OAAO,CAAC,OAAO,CAAC,CAyD9D;AAED;;;GAGG;AACH,wBAAgB,WAAW,IAAI,OAAO,CAErC;AAED;;;GAGG;AACH,wBAAgB,aAAa,IAAI;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;CACrB,CAOA"}
1
+ {"version":3,"file":"local-cli-delegation.d.ts","sourceRoot":"","sources":["../../src/utils/local-cli-delegation.ts"],"names":[],"mappings":"AAoMA;;;;;GAKG;AACH,wBAAsB,qBAAqB,IAAI,OAAO,CAAC,OAAO,CAAC,CAyD9D;AAED;;;GAGG;AACH,wBAAgB,WAAW,IAAI,OAAO,CAErC;AAED;;;GAGG;AACH,wBAAgB,aAAa,IAAI;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;CACrB,CAOA"}
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.5.12";
6
+ export declare const CLI_VERSION = "1.5.13-alpha.2";
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-09-26T03:07:37.478Z";
9
+ export declare const BUILD_TIME = "2025-09-26T05:05:18.679Z";
10
10
  export declare const BUILD_ENV = "production";
11
11
  declare const _default: {
12
12
  version: string;
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,WAAW,WAAW,CAAC;AACpC,eAAO,MAAM,QAAQ,iBAAiB,CAAC;AACvC,eAAO,MAAM,eAAe,oDAAoD,CAAC;AAGjF,eAAO,MAAM,UAAU,6BAA6B,CAAC;AACrD,eAAO,MAAM,SAAS,eAAe,CAAC;;;;;;;;AAGtC,wBAME"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,WAAW,mBAAmB,CAAC;AAC5C,eAAO,MAAM,QAAQ,iBAAiB,CAAC;AACvC,eAAO,MAAM,eAAe,oDAAoD,CAAC;AAGjF,eAAO,MAAM,UAAU,6BAA6B,CAAC;AACrD,eAAO,MAAM,SAAS,eAAe,CAAC;;;;;;;;AAGtC,wBAME"}
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.5.12';
7
+ export const CLI_VERSION = '1.5.13-alpha.2';
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-09-26T03:07:37.478Z';
12
+ export const BUILD_TIME = '2025-09-26T05:05:18.679Z';
13
13
  export const BUILD_ENV = 'production';
14
14
 
15
15
  // Export as default for convenience