@elizaos/cli 1.5.4 → 1.5.5-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 (36) hide show
  1. package/dist/commands/create/types.d.ts +2 -2
  2. package/dist/commands/scenario/src/MockEngine.d.ts +5 -5
  3. package/dist/commands/scenario/src/schema.d.ts +66 -66
  4. package/dist/index.js +9211 -9312
  5. package/dist/index.js.map +8 -7
  6. package/dist/scripts/generate-version.d.ts +7 -0
  7. package/dist/scripts/generate-version.d.ts.map +1 -0
  8. package/dist/templates/plugin-quick-starter/package.json +2 -2
  9. package/dist/templates/plugin-starter/package.json +2 -2
  10. package/dist/templates/project-starter/.dockerignore +183 -0
  11. package/dist/templates/project-starter/.env.example +4 -1
  12. package/dist/templates/project-starter/Dockerfile +61 -0
  13. package/dist/templates/project-starter/docker-compose.yaml +72 -0
  14. package/dist/templates/project-starter/package.json +4 -4
  15. package/dist/templates/project-tee-starter/.env.example +3 -0
  16. package/dist/templates/project-tee-starter/README.md +1 -1
  17. package/dist/templates/project-tee-starter/docker-compose.yaml +32 -13
  18. package/dist/templates/project-tee-starter/package.json +4 -4
  19. package/dist/utils/copy-template.d.ts.map +1 -1
  20. package/dist/utils/display-banner.d.ts.map +1 -1
  21. package/dist/utils/user-environment.d.ts.map +1 -1
  22. package/dist/version.d.ts +19 -0
  23. package/dist/version.d.ts.map +1 -0
  24. package/dist/version.js +22 -0
  25. package/package.json +10 -11
  26. package/templates/plugin-quick-starter/package.json +2 -2
  27. package/templates/plugin-starter/package.json +2 -2
  28. package/templates/project-starter/.dockerignore +183 -0
  29. package/templates/project-starter/.env.example +4 -1
  30. package/templates/project-starter/Dockerfile +61 -0
  31. package/templates/project-starter/docker-compose.yaml +72 -0
  32. package/templates/project-starter/package.json +4 -4
  33. package/templates/project-tee-starter/.env.example +3 -0
  34. package/templates/project-tee-starter/README.md +1 -1
  35. package/templates/project-tee-starter/docker-compose.yaml +32 -13
  36. package/templates/project-tee-starter/package.json +4 -4
@@ -6,10 +6,10 @@ export declare const initOptionsSchema: z.ZodObject<{
6
6
  yes: z.ZodDefault<z.ZodBoolean>;
7
7
  type: z.ZodDefault<z.ZodEnum<["project", "plugin", "agent", "tee"]>>;
8
8
  }, "strip", z.ZodTypeAny, {
9
- type: "tee" | "agent" | "plugin" | "project";
9
+ type: "plugin" | "project" | "agent" | "tee";
10
10
  yes: boolean;
11
11
  }, {
12
- type?: "tee" | "agent" | "plugin" | "project" | undefined;
12
+ type?: "plugin" | "project" | "agent" | "tee" | undefined;
13
13
  yes?: boolean | undefined;
14
14
  }>;
15
15
  export type CreateOptions = z.infer<typeof initOptionsSchema>;
@@ -20,16 +20,15 @@ export declare class MockEngine {
20
20
  revertMocks(): void;
21
21
  getMockRegistry(): Map<string, {
22
22
  method: string;
23
- metadata?: {
24
- delay?: number | undefined;
25
- probability?: number | undefined;
26
- } | undefined;
27
23
  error?: {
28
24
  message: string;
29
25
  code: string;
30
26
  status?: number | undefined;
31
27
  } | undefined;
32
- response?: any;
28
+ metadata?: {
29
+ delay?: number | undefined;
30
+ probability?: number | undefined;
31
+ } | undefined;
33
32
  service?: string | undefined;
34
33
  when?: {
35
34
  context?: Record<string, any> | undefined;
@@ -38,6 +37,7 @@ export declare class MockEngine {
38
37
  matcher?: string | undefined;
39
38
  partialArgs?: any[] | undefined;
40
39
  } | undefined;
40
+ response?: any;
41
41
  responseFn?: string | undefined;
42
42
  }[]>;
43
43
  /**
@@ -80,12 +80,12 @@ export declare const EvaluationSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
80
80
  value: z.ZodString;
81
81
  case_sensitive: z.ZodOptional<z.ZodBoolean>;
82
82
  }>, "strip", z.ZodTypeAny, {
83
- type: "string_contains";
84
83
  value: string;
84
+ type: "string_contains";
85
85
  case_sensitive?: boolean | undefined;
86
86
  }, {
87
- type: "string_contains";
88
87
  value: string;
88
+ type: "string_contains";
89
89
  case_sensitive?: boolean | undefined;
90
90
  }>, z.ZodObject<z.objectUtil.extendShape<{
91
91
  type: z.ZodString;
@@ -104,11 +104,11 @@ export declare const EvaluationSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
104
104
  type: z.ZodLiteral<"file_exists">;
105
105
  path: z.ZodString;
106
106
  }>, "strip", z.ZodTypeAny, {
107
- type: "file_exists";
108
107
  path: string;
109
- }, {
110
108
  type: "file_exists";
109
+ }, {
111
110
  path: string;
111
+ type: "file_exists";
112
112
  }>, z.ZodObject<z.objectUtil.extendShape<{
113
113
  type: z.ZodString;
114
114
  }, {
@@ -134,16 +134,16 @@ export declare const EvaluationSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
134
134
  type: "llm_judge";
135
135
  expected: string;
136
136
  prompt: string;
137
- temperature?: number | undefined;
138
137
  model_type?: string | undefined;
138
+ temperature?: number | undefined;
139
139
  json_schema?: Record<string, any> | undefined;
140
140
  capabilities?: string[] | undefined;
141
141
  }, {
142
142
  type: "llm_judge";
143
143
  expected: string;
144
144
  prompt: string;
145
- temperature?: number | undefined;
146
145
  model_type?: string | undefined;
146
+ temperature?: number | undefined;
147
147
  json_schema?: Record<string, any> | undefined;
148
148
  capabilities?: string[] | undefined;
149
149
  }>, z.ZodObject<z.objectUtil.extendShape<{
@@ -272,16 +272,15 @@ export declare const ScenarioSchema: z.ZodObject<{
272
272
  }>>;
273
273
  }, "strip", z.ZodTypeAny, {
274
274
  method: string;
275
- metadata?: {
276
- delay?: number | undefined;
277
- probability?: number | undefined;
278
- } | undefined;
279
275
  error?: {
280
276
  message: string;
281
277
  code: string;
282
278
  status?: number | undefined;
283
279
  } | undefined;
284
- response?: any;
280
+ metadata?: {
281
+ delay?: number | undefined;
282
+ probability?: number | undefined;
283
+ } | undefined;
285
284
  service?: string | undefined;
286
285
  when?: {
287
286
  context?: Record<string, any> | undefined;
@@ -290,19 +289,19 @@ export declare const ScenarioSchema: z.ZodObject<{
290
289
  matcher?: string | undefined;
291
290
  partialArgs?: any[] | undefined;
292
291
  } | undefined;
292
+ response?: any;
293
293
  responseFn?: string | undefined;
294
294
  }, {
295
295
  method: string;
296
- metadata?: {
297
- delay?: number | undefined;
298
- probability?: number | undefined;
299
- } | undefined;
300
296
  error?: {
301
297
  message: string;
302
298
  code: string;
303
299
  status?: number | undefined;
304
300
  } | undefined;
305
- response?: any;
301
+ metadata?: {
302
+ delay?: number | undefined;
303
+ probability?: number | undefined;
304
+ } | undefined;
306
305
  service?: string | undefined;
307
306
  when?: {
308
307
  context?: Record<string, any> | undefined;
@@ -311,22 +310,22 @@ export declare const ScenarioSchema: z.ZodObject<{
311
310
  matcher?: string | undefined;
312
311
  partialArgs?: any[] | undefined;
313
312
  } | undefined;
313
+ response?: any;
314
314
  responseFn?: string | undefined;
315
315
  }>, "many">>;
316
316
  virtual_fs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
317
317
  }, "strip", z.ZodTypeAny, {
318
318
  mocks?: {
319
319
  method: string;
320
- metadata?: {
321
- delay?: number | undefined;
322
- probability?: number | undefined;
323
- } | undefined;
324
320
  error?: {
325
321
  message: string;
326
322
  code: string;
327
323
  status?: number | undefined;
328
324
  } | undefined;
329
- response?: any;
325
+ metadata?: {
326
+ delay?: number | undefined;
327
+ probability?: number | undefined;
328
+ } | undefined;
330
329
  service?: string | undefined;
331
330
  when?: {
332
331
  context?: Record<string, any> | undefined;
@@ -335,22 +334,22 @@ export declare const ScenarioSchema: z.ZodObject<{
335
334
  matcher?: string | undefined;
336
335
  partialArgs?: any[] | undefined;
337
336
  } | undefined;
337
+ response?: any;
338
338
  responseFn?: string | undefined;
339
339
  }[] | undefined;
340
340
  virtual_fs?: Record<string, string> | undefined;
341
341
  }, {
342
342
  mocks?: {
343
343
  method: string;
344
- metadata?: {
345
- delay?: number | undefined;
346
- probability?: number | undefined;
347
- } | undefined;
348
344
  error?: {
349
345
  message: string;
350
346
  code: string;
351
347
  status?: number | undefined;
352
348
  } | undefined;
353
- response?: any;
349
+ metadata?: {
350
+ delay?: number | undefined;
351
+ probability?: number | undefined;
352
+ } | undefined;
354
353
  service?: string | undefined;
355
354
  when?: {
356
355
  context?: Record<string, any> | undefined;
@@ -359,6 +358,7 @@ export declare const ScenarioSchema: z.ZodObject<{
359
358
  matcher?: string | undefined;
360
359
  partialArgs?: any[] | undefined;
361
360
  } | undefined;
361
+ response?: any;
362
362
  responseFn?: string | undefined;
363
363
  }[] | undefined;
364
364
  virtual_fs?: Record<string, string> | undefined;
@@ -375,12 +375,12 @@ export declare const ScenarioSchema: z.ZodObject<{
375
375
  value: z.ZodString;
376
376
  case_sensitive: z.ZodOptional<z.ZodBoolean>;
377
377
  }>, "strip", z.ZodTypeAny, {
378
- type: "string_contains";
379
378
  value: string;
379
+ type: "string_contains";
380
380
  case_sensitive?: boolean | undefined;
381
381
  }, {
382
- type: "string_contains";
383
382
  value: string;
383
+ type: "string_contains";
384
384
  case_sensitive?: boolean | undefined;
385
385
  }>, z.ZodObject<z.objectUtil.extendShape<{
386
386
  type: z.ZodString;
@@ -399,11 +399,11 @@ export declare const ScenarioSchema: z.ZodObject<{
399
399
  type: z.ZodLiteral<"file_exists">;
400
400
  path: z.ZodString;
401
401
  }>, "strip", z.ZodTypeAny, {
402
- type: "file_exists";
403
402
  path: string;
404
- }, {
405
403
  type: "file_exists";
404
+ }, {
406
405
  path: string;
406
+ type: "file_exists";
407
407
  }>, z.ZodObject<z.objectUtil.extendShape<{
408
408
  type: z.ZodString;
409
409
  }, {
@@ -429,16 +429,16 @@ export declare const ScenarioSchema: z.ZodObject<{
429
429
  type: "llm_judge";
430
430
  expected: string;
431
431
  prompt: string;
432
- temperature?: number | undefined;
433
432
  model_type?: string | undefined;
433
+ temperature?: number | undefined;
434
434
  json_schema?: Record<string, any> | undefined;
435
435
  capabilities?: string[] | undefined;
436
436
  }, {
437
437
  type: "llm_judge";
438
438
  expected: string;
439
439
  prompt: string;
440
- temperature?: number | undefined;
441
440
  model_type?: string | undefined;
441
+ temperature?: number | undefined;
442
442
  json_schema?: Record<string, any> | undefined;
443
443
  capabilities?: string[] | undefined;
444
444
  }>, z.ZodObject<z.objectUtil.extendShape<{
@@ -461,15 +461,15 @@ export declare const ScenarioSchema: z.ZodObject<{
461
461
  }>]>, "many">;
462
462
  }, "strip", z.ZodTypeAny, {
463
463
  evaluations: ({
464
- type: "string_contains";
465
464
  value: string;
465
+ type: "string_contains";
466
466
  case_sensitive?: boolean | undefined;
467
467
  } | {
468
468
  type: "regex_match";
469
469
  pattern: string;
470
470
  } | {
471
- type: "file_exists";
472
471
  path: string;
472
+ type: "file_exists";
473
473
  } | {
474
474
  type: "trajectory_contains_action";
475
475
  action: string;
@@ -477,8 +477,8 @@ export declare const ScenarioSchema: z.ZodObject<{
477
477
  type: "llm_judge";
478
478
  expected: string;
479
479
  prompt: string;
480
- temperature?: number | undefined;
481
480
  model_type?: string | undefined;
481
+ temperature?: number | undefined;
482
482
  json_schema?: Record<string, any> | undefined;
483
483
  capabilities?: string[] | undefined;
484
484
  } | {
@@ -493,15 +493,15 @@ export declare const ScenarioSchema: z.ZodObject<{
493
493
  lang?: string | undefined;
494
494
  }, {
495
495
  evaluations: ({
496
- type: "string_contains";
497
496
  value: string;
497
+ type: "string_contains";
498
498
  case_sensitive?: boolean | undefined;
499
499
  } | {
500
500
  type: "regex_match";
501
501
  pattern: string;
502
502
  } | {
503
- type: "file_exists";
504
503
  path: string;
504
+ type: "file_exists";
505
505
  } | {
506
506
  type: "trajectory_contains_action";
507
507
  action: string;
@@ -509,8 +509,8 @@ export declare const ScenarioSchema: z.ZodObject<{
509
509
  type: "llm_judge";
510
510
  expected: string;
511
511
  prompt: string;
512
- temperature?: number | undefined;
513
512
  model_type?: string | undefined;
513
+ temperature?: number | undefined;
514
514
  json_schema?: Record<string, any> | undefined;
515
515
  capabilities?: string[] | undefined;
516
516
  } | {
@@ -532,22 +532,18 @@ export declare const ScenarioSchema: z.ZodObject<{
532
532
  strategy: "all_pass" | "any_pass";
533
533
  }>;
534
534
  }, "strip", z.ZodTypeAny, {
535
- description: string;
536
535
  name: string;
537
- environment: {
538
- type: "local" | "e2b";
539
- };
540
536
  run: {
541
537
  evaluations: ({
542
- type: "string_contains";
543
538
  value: string;
539
+ type: "string_contains";
544
540
  case_sensitive?: boolean | undefined;
545
541
  } | {
546
542
  type: "regex_match";
547
543
  pattern: string;
548
544
  } | {
549
- type: "file_exists";
550
545
  path: string;
546
+ type: "file_exists";
551
547
  } | {
552
548
  type: "trajectory_contains_action";
553
549
  action: string;
@@ -555,8 +551,8 @@ export declare const ScenarioSchema: z.ZodObject<{
555
551
  type: "llm_judge";
556
552
  expected: string;
557
553
  prompt: string;
558
- temperature?: number | undefined;
559
554
  model_type?: string | undefined;
555
+ temperature?: number | undefined;
560
556
  json_schema?: Record<string, any> | undefined;
561
557
  capabilities?: string[] | undefined;
562
558
  } | {
@@ -570,6 +566,10 @@ export declare const ScenarioSchema: z.ZodObject<{
570
566
  input?: string | undefined;
571
567
  lang?: string | undefined;
572
568
  }[];
569
+ description: string;
570
+ environment: {
571
+ type: "local" | "e2b";
572
+ };
573
573
  judgment: {
574
574
  strategy: "all_pass" | "any_pass";
575
575
  };
@@ -582,16 +582,15 @@ export declare const ScenarioSchema: z.ZodObject<{
582
582
  setup?: {
583
583
  mocks?: {
584
584
  method: string;
585
- metadata?: {
586
- delay?: number | undefined;
587
- probability?: number | undefined;
588
- } | undefined;
589
585
  error?: {
590
586
  message: string;
591
587
  code: string;
592
588
  status?: number | undefined;
593
589
  } | undefined;
594
- response?: any;
590
+ metadata?: {
591
+ delay?: number | undefined;
592
+ probability?: number | undefined;
593
+ } | undefined;
595
594
  service?: string | undefined;
596
595
  when?: {
597
596
  context?: Record<string, any> | undefined;
@@ -600,27 +599,24 @@ export declare const ScenarioSchema: z.ZodObject<{
600
599
  matcher?: string | undefined;
601
600
  partialArgs?: any[] | undefined;
602
601
  } | undefined;
602
+ response?: any;
603
603
  responseFn?: string | undefined;
604
604
  }[] | undefined;
605
605
  virtual_fs?: Record<string, string> | undefined;
606
606
  } | undefined;
607
607
  }, {
608
- description: string;
609
608
  name: string;
610
- environment: {
611
- type: "local" | "e2b";
612
- };
613
609
  run: {
614
610
  evaluations: ({
615
- type: "string_contains";
616
611
  value: string;
612
+ type: "string_contains";
617
613
  case_sensitive?: boolean | undefined;
618
614
  } | {
619
615
  type: "regex_match";
620
616
  pattern: string;
621
617
  } | {
622
- type: "file_exists";
623
618
  path: string;
619
+ type: "file_exists";
624
620
  } | {
625
621
  type: "trajectory_contains_action";
626
622
  action: string;
@@ -628,8 +624,8 @@ export declare const ScenarioSchema: z.ZodObject<{
628
624
  type: "llm_judge";
629
625
  expected: string;
630
626
  prompt: string;
631
- temperature?: number | undefined;
632
627
  model_type?: string | undefined;
628
+ temperature?: number | undefined;
633
629
  json_schema?: Record<string, any> | undefined;
634
630
  capabilities?: string[] | undefined;
635
631
  } | {
@@ -643,6 +639,10 @@ export declare const ScenarioSchema: z.ZodObject<{
643
639
  input?: string | undefined;
644
640
  lang?: string | undefined;
645
641
  }[];
642
+ description: string;
643
+ environment: {
644
+ type: "local" | "e2b";
645
+ };
646
646
  judgment: {
647
647
  strategy: "all_pass" | "any_pass";
648
648
  };
@@ -655,16 +655,15 @@ export declare const ScenarioSchema: z.ZodObject<{
655
655
  setup?: {
656
656
  mocks?: {
657
657
  method: string;
658
- metadata?: {
659
- delay?: number | undefined;
660
- probability?: number | undefined;
661
- } | undefined;
662
658
  error?: {
663
659
  message: string;
664
660
  code: string;
665
661
  status?: number | undefined;
666
662
  } | undefined;
667
- response?: any;
663
+ metadata?: {
664
+ delay?: number | undefined;
665
+ probability?: number | undefined;
666
+ } | undefined;
668
667
  service?: string | undefined;
669
668
  when?: {
670
669
  context?: Record<string, any> | undefined;
@@ -673,6 +672,7 @@ export declare const ScenarioSchema: z.ZodObject<{
673
672
  matcher?: string | undefined;
674
673
  partialArgs?: any[] | undefined;
675
674
  } | undefined;
675
+ response?: any;
676
676
  responseFn?: string | undefined;
677
677
  }[] | undefined;
678
678
  virtual_fs?: Record<string, string> | undefined;
@@ -771,11 +771,11 @@ export declare const ScenarioRunResultSchema: z.ZodObject<{
771
771
  timestamp: z.ZodEffects<z.ZodString, string, string>;
772
772
  content: z.ZodAny;
773
773
  }, "strip", z.ZodTypeAny, {
774
- type: "thought" | "action" | "observation";
774
+ type: "action" | "thought" | "observation";
775
775
  timestamp: string;
776
776
  content?: any;
777
777
  }, {
778
- type: "thought" | "action" | "observation";
778
+ type: "action" | "thought" | "observation";
779
779
  timestamp: string;
780
780
  content?: any;
781
781
  }>, "many">;
@@ -799,7 +799,7 @@ export declare const ScenarioRunResultSchema: z.ZodObject<{
799
799
  [k: string]: number;
800
800
  };
801
801
  trajectory: {
802
- type: "thought" | "action" | "observation";
802
+ type: "action" | "thought" | "observation";
803
803
  timestamp: string;
804
804
  content?: any;
805
805
  }[];
@@ -823,7 +823,7 @@ export declare const ScenarioRunResultSchema: z.ZodObject<{
823
823
  [k: string]: number;
824
824
  };
825
825
  trajectory: {
826
- type: "thought" | "action" | "observation";
826
+ type: "action" | "thought" | "observation";
827
827
  timestamp: string;
828
828
  content?: any;
829
829
  }[];