@lov3kaizen/agentsea-cli 0.4.0 → 0.5.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 (54) hide show
  1. package/dist/cli.js +815 -39
  2. package/dist/cli.js.map +1 -1
  3. package/dist/commands/agent.js.map +1 -1
  4. package/dist/commands/costs.d.ts +19 -0
  5. package/dist/commands/costs.d.ts.map +1 -0
  6. package/dist/commands/costs.js +290 -0
  7. package/dist/commands/costs.js.map +1 -0
  8. package/dist/commands/crews.d.ts +16 -0
  9. package/dist/commands/crews.d.ts.map +1 -0
  10. package/dist/commands/crews.js +266 -0
  11. package/dist/commands/crews.js.map +1 -0
  12. package/dist/commands/embeddings.d.ts +19 -0
  13. package/dist/commands/embeddings.d.ts.map +1 -0
  14. package/dist/commands/embeddings.js +332 -0
  15. package/dist/commands/embeddings.js.map +1 -0
  16. package/dist/commands/evaluate.d.ts +18 -0
  17. package/dist/commands/evaluate.d.ts.map +1 -0
  18. package/dist/commands/evaluate.js +284 -0
  19. package/dist/commands/evaluate.js.map +1 -0
  20. package/dist/commands/gateway.d.ts +27 -0
  21. package/dist/commands/gateway.d.ts.map +1 -0
  22. package/dist/commands/gateway.js +256 -0
  23. package/dist/commands/gateway.js.map +1 -0
  24. package/dist/commands/guardrails.d.ts +17 -0
  25. package/dist/commands/guardrails.d.ts.map +1 -0
  26. package/dist/commands/guardrails.js +280 -0
  27. package/dist/commands/guardrails.js.map +1 -0
  28. package/dist/commands/ingest.d.ts +22 -0
  29. package/dist/commands/ingest.d.ts.map +1 -0
  30. package/dist/commands/ingest.js +317 -0
  31. package/dist/commands/ingest.js.map +1 -0
  32. package/dist/commands/init.d.ts.map +1 -1
  33. package/dist/commands/init.js.map +1 -1
  34. package/dist/commands/memory.d.ts +16 -0
  35. package/dist/commands/memory.d.ts.map +1 -0
  36. package/dist/commands/memory.js +280 -0
  37. package/dist/commands/memory.js.map +1 -0
  38. package/dist/commands/prompts.d.ts +22 -0
  39. package/dist/commands/prompts.d.ts.map +1 -0
  40. package/dist/commands/prompts.js +274 -0
  41. package/dist/commands/prompts.js.map +1 -0
  42. package/dist/commands/provider.js.map +1 -1
  43. package/dist/commands/surf.d.ts +16 -0
  44. package/dist/commands/surf.d.ts.map +1 -0
  45. package/dist/commands/surf.js +259 -0
  46. package/dist/commands/surf.js.map +1 -0
  47. package/dist/config/manager.d.ts +11 -0
  48. package/dist/config/manager.d.ts.map +1 -1
  49. package/dist/config/manager.js +13 -0
  50. package/dist/config/manager.js.map +1 -1
  51. package/dist/utils/logger.d.ts +1 -1
  52. package/dist/utils/logger.d.ts.map +1 -1
  53. package/dist/utils/logger.js.map +1 -1
  54. package/package.json +3 -3
package/dist/cli.js CHANGED
@@ -4,19 +4,29 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  const commander_1 = require("commander");
5
5
  const agent_1 = require("./commands/agent");
6
6
  const chat_1 = require("./commands/chat");
7
+ const costs_1 = require("./commands/costs");
8
+ const crews_1 = require("./commands/crews");
9
+ const embeddings_1 = require("./commands/embeddings");
10
+ const evaluate_1 = require("./commands/evaluate");
11
+ const gateway_1 = require("./commands/gateway");
12
+ const guardrails_1 = require("./commands/guardrails");
13
+ const ingest_1 = require("./commands/ingest");
7
14
  const init_1 = require("./commands/init");
15
+ const memory_1 = require("./commands/memory");
8
16
  const model_1 = require("./commands/model");
17
+ const mcp_1 = require("./commands/mcp");
18
+ const prompts_1 = require("./commands/prompts");
9
19
  const provider_1 = require("./commands/provider");
20
+ const surf_1 = require("./commands/surf");
10
21
  const tool_1 = require("./commands/tool");
11
- const mcp_1 = require("./commands/mcp");
12
22
  const workflow_1 = require("./commands/workflow");
13
23
  const manager_1 = require("./config/manager");
14
24
  const logger_1 = require("./utils/logger");
15
25
  const program = new commander_1.Command();
16
26
  program
17
27
  .name('sea')
18
- .description('AgentSea CLI - Build and orchestrate AI agents with voice, formatting, MCP, and workflows')
19
- .version('0.1.0');
28
+ .description('AgentSea CLI - Build and orchestrate AI agents with crews, guardrails, memory, and more')
29
+ .version('0.4.0');
20
30
  program
21
31
  .command('init')
22
32
  .description('Initialize AgentSea CLI configuration')
@@ -387,6 +397,780 @@ workflowCommand
387
397
  process.exit(1);
388
398
  }
389
399
  });
400
+ const crewsCommand = program
401
+ .command('crews')
402
+ .description('Manage multi-agent crews');
403
+ crewsCommand
404
+ .command('create')
405
+ .description('Create a new crew')
406
+ .action(async () => {
407
+ try {
408
+ await (0, crews_1.createCrewCommand)();
409
+ }
410
+ catch (error) {
411
+ logger_1.logger.error('Create crew failed', error);
412
+ process.exit(1);
413
+ }
414
+ });
415
+ crewsCommand
416
+ .command('list')
417
+ .description('List all crews')
418
+ .action(() => {
419
+ try {
420
+ (0, crews_1.listCrewsCommand)();
421
+ }
422
+ catch (error) {
423
+ logger_1.logger.error('List crews failed', error);
424
+ process.exit(1);
425
+ }
426
+ });
427
+ crewsCommand
428
+ .command('get <name>')
429
+ .description('Get crew details')
430
+ .action((name) => {
431
+ try {
432
+ (0, crews_1.getCrewCommand)(name);
433
+ }
434
+ catch (error) {
435
+ logger_1.logger.error('Get crew failed', error);
436
+ process.exit(1);
437
+ }
438
+ });
439
+ crewsCommand
440
+ .command('delete <name>')
441
+ .description('Delete a crew')
442
+ .action(async (name) => {
443
+ try {
444
+ await (0, crews_1.deleteCrewCommand)(name);
445
+ }
446
+ catch (error) {
447
+ logger_1.logger.error('Delete crew failed', error);
448
+ process.exit(1);
449
+ }
450
+ });
451
+ crewsCommand
452
+ .command('templates')
453
+ .description('Show available crew templates')
454
+ .action(() => {
455
+ try {
456
+ (0, crews_1.showCrewTemplatesCommand)();
457
+ }
458
+ catch (error) {
459
+ logger_1.logger.error('Show templates failed', error);
460
+ process.exit(1);
461
+ }
462
+ });
463
+ crewsCommand
464
+ .command('strategies')
465
+ .description('Show delegation strategies')
466
+ .action(() => {
467
+ try {
468
+ (0, crews_1.showStrategiesCommand)();
469
+ }
470
+ catch (error) {
471
+ logger_1.logger.error('Show strategies failed', error);
472
+ process.exit(1);
473
+ }
474
+ });
475
+ const guardrailsCommand = program
476
+ .command('guardrails')
477
+ .description('Manage safety guardrails');
478
+ guardrailsCommand
479
+ .command('guards')
480
+ .description('List available guards')
481
+ .action(() => {
482
+ try {
483
+ (0, guardrails_1.listGuardsCommand)();
484
+ }
485
+ catch (error) {
486
+ logger_1.logger.error('List guards failed', error);
487
+ process.exit(1);
488
+ }
489
+ });
490
+ guardrailsCommand
491
+ .command('create')
492
+ .description('Create a guardrail pipeline')
493
+ .action(async () => {
494
+ try {
495
+ await (0, guardrails_1.createGuardrailCommand)();
496
+ }
497
+ catch (error) {
498
+ logger_1.logger.error('Create guardrail failed', error);
499
+ process.exit(1);
500
+ }
501
+ });
502
+ guardrailsCommand
503
+ .command('list')
504
+ .description('List guardrail pipelines')
505
+ .action(() => {
506
+ try {
507
+ (0, guardrails_1.listGuardrailsCommand)();
508
+ }
509
+ catch (error) {
510
+ logger_1.logger.error('List guardrails failed', error);
511
+ process.exit(1);
512
+ }
513
+ });
514
+ guardrailsCommand
515
+ .command('get <name>')
516
+ .description('Get guardrail pipeline details')
517
+ .action((name) => {
518
+ try {
519
+ (0, guardrails_1.getGuardrailCommand)(name);
520
+ }
521
+ catch (error) {
522
+ logger_1.logger.error('Get guardrail failed', error);
523
+ process.exit(1);
524
+ }
525
+ });
526
+ guardrailsCommand
527
+ .command('delete <name>')
528
+ .description('Delete a guardrail pipeline')
529
+ .action(async (name) => {
530
+ try {
531
+ await (0, guardrails_1.deleteGuardrailCommand)(name);
532
+ }
533
+ catch (error) {
534
+ logger_1.logger.error('Delete guardrail failed', error);
535
+ process.exit(1);
536
+ }
537
+ });
538
+ guardrailsCommand
539
+ .command('test [pipeline]')
540
+ .description('Test input against a guardrail pipeline')
541
+ .action(async (pipeline) => {
542
+ try {
543
+ await (0, guardrails_1.testGuardrailCommand)(pipeline);
544
+ }
545
+ catch (error) {
546
+ logger_1.logger.error('Test guardrail failed', error);
547
+ process.exit(1);
548
+ }
549
+ });
550
+ const memoryCommand = program
551
+ .command('memory')
552
+ .description('Manage memory stores');
553
+ memoryCommand
554
+ .command('create')
555
+ .description('Create a memory store')
556
+ .action(async () => {
557
+ try {
558
+ await (0, memory_1.createMemoryStoreCommand)();
559
+ }
560
+ catch (error) {
561
+ logger_1.logger.error('Create memory store failed', error);
562
+ process.exit(1);
563
+ }
564
+ });
565
+ memoryCommand
566
+ .command('list')
567
+ .description('List memory stores')
568
+ .action(() => {
569
+ try {
570
+ (0, memory_1.listMemoryStoresCommand)();
571
+ }
572
+ catch (error) {
573
+ logger_1.logger.error('List memory stores failed', error);
574
+ process.exit(1);
575
+ }
576
+ });
577
+ memoryCommand
578
+ .command('get <name>')
579
+ .description('Get memory store details')
580
+ .action((name) => {
581
+ try {
582
+ (0, memory_1.getMemoryStoreCommand)(name);
583
+ }
584
+ catch (error) {
585
+ logger_1.logger.error('Get memory store failed', error);
586
+ process.exit(1);
587
+ }
588
+ });
589
+ memoryCommand
590
+ .command('delete <name>')
591
+ .description('Delete a memory store')
592
+ .action(async (name) => {
593
+ try {
594
+ await (0, memory_1.deleteMemoryStoreCommand)(name);
595
+ }
596
+ catch (error) {
597
+ logger_1.logger.error('Delete memory store failed', error);
598
+ process.exit(1);
599
+ }
600
+ });
601
+ memoryCommand
602
+ .command('stores')
603
+ .description('Show available store types')
604
+ .action(() => {
605
+ try {
606
+ (0, memory_1.showStoreTypesCommand)();
607
+ }
608
+ catch (error) {
609
+ logger_1.logger.error('Show store types failed', error);
610
+ process.exit(1);
611
+ }
612
+ });
613
+ memoryCommand
614
+ .command('structures')
615
+ .description('Show memory structures')
616
+ .action(() => {
617
+ try {
618
+ (0, memory_1.showStructuresCommand)();
619
+ }
620
+ catch (error) {
621
+ logger_1.logger.error('Show structures failed', error);
622
+ process.exit(1);
623
+ }
624
+ });
625
+ memoryCommand
626
+ .command('retrieval')
627
+ .description('Show retrieval strategies')
628
+ .action(() => {
629
+ try {
630
+ (0, memory_1.showRetrievalStrategiesCommand)();
631
+ }
632
+ catch (error) {
633
+ logger_1.logger.error('Show retrieval strategies failed', error);
634
+ process.exit(1);
635
+ }
636
+ });
637
+ const promptsCommand = program
638
+ .command('prompts')
639
+ .description('Manage prompt templates');
640
+ promptsCommand
641
+ .command('create')
642
+ .description('Create a prompt template')
643
+ .action(async () => {
644
+ try {
645
+ await (0, prompts_1.createPromptCommand)();
646
+ }
647
+ catch (error) {
648
+ logger_1.logger.error('Create prompt failed', error);
649
+ process.exit(1);
650
+ }
651
+ });
652
+ promptsCommand
653
+ .command('list')
654
+ .description('List prompt templates')
655
+ .action(() => {
656
+ try {
657
+ (0, prompts_1.listPromptsCommand)();
658
+ }
659
+ catch (error) {
660
+ logger_1.logger.error('List prompts failed', error);
661
+ process.exit(1);
662
+ }
663
+ });
664
+ promptsCommand
665
+ .command('get <name>')
666
+ .description('Get prompt details')
667
+ .action((name) => {
668
+ try {
669
+ (0, prompts_1.getPromptCommand)(name);
670
+ }
671
+ catch (error) {
672
+ logger_1.logger.error('Get prompt failed', error);
673
+ process.exit(1);
674
+ }
675
+ });
676
+ promptsCommand
677
+ .command('delete <name>')
678
+ .description('Delete a prompt template')
679
+ .action(async (name) => {
680
+ try {
681
+ await (0, prompts_1.deletePromptCommand)(name);
682
+ }
683
+ catch (error) {
684
+ logger_1.logger.error('Delete prompt failed', error);
685
+ process.exit(1);
686
+ }
687
+ });
688
+ promptsCommand
689
+ .command('render <name>')
690
+ .description('Render a prompt with variables')
691
+ .action(async (name) => {
692
+ try {
693
+ await (0, prompts_1.renderPromptCommand)(name);
694
+ }
695
+ catch (error) {
696
+ logger_1.logger.error('Render prompt failed', error);
697
+ process.exit(1);
698
+ }
699
+ });
700
+ promptsCommand
701
+ .command('promote <name>')
702
+ .description('Promote a prompt to a higher environment')
703
+ .action(async (name) => {
704
+ try {
705
+ await (0, prompts_1.promotePromptCommand)(name);
706
+ }
707
+ catch (error) {
708
+ logger_1.logger.error('Promote prompt failed', error);
709
+ process.exit(1);
710
+ }
711
+ });
712
+ promptsCommand
713
+ .command('version <name>')
714
+ .description('Bump prompt version')
715
+ .action(async (name) => {
716
+ try {
717
+ await (0, prompts_1.versionPromptCommand)(name);
718
+ }
719
+ catch (error) {
720
+ logger_1.logger.error('Version prompt failed', error);
721
+ process.exit(1);
722
+ }
723
+ });
724
+ const surfCommand = program
725
+ .command('surf')
726
+ .description('Manage computer-use (surf) configurations');
727
+ surfCommand
728
+ .command('create')
729
+ .description('Create a surf configuration')
730
+ .action(async () => {
731
+ try {
732
+ await (0, surf_1.createSurfConfigCommand)();
733
+ }
734
+ catch (error) {
735
+ logger_1.logger.error('Create surf config failed', error);
736
+ process.exit(1);
737
+ }
738
+ });
739
+ surfCommand
740
+ .command('list')
741
+ .description('List surf configurations')
742
+ .action(() => {
743
+ try {
744
+ (0, surf_1.listSurfConfigsCommand)();
745
+ }
746
+ catch (error) {
747
+ logger_1.logger.error('List surf configs failed', error);
748
+ process.exit(1);
749
+ }
750
+ });
751
+ surfCommand
752
+ .command('get <name>')
753
+ .description('Get surf configuration details')
754
+ .action((name) => {
755
+ try {
756
+ (0, surf_1.getSurfConfigCommand)(name);
757
+ }
758
+ catch (error) {
759
+ logger_1.logger.error('Get surf config failed', error);
760
+ process.exit(1);
761
+ }
762
+ });
763
+ surfCommand
764
+ .command('delete <name>')
765
+ .description('Delete a surf configuration')
766
+ .action(async (name) => {
767
+ try {
768
+ await (0, surf_1.deleteSurfConfigCommand)(name);
769
+ }
770
+ catch (error) {
771
+ logger_1.logger.error('Delete surf config failed', error);
772
+ process.exit(1);
773
+ }
774
+ });
775
+ surfCommand
776
+ .command('backends')
777
+ .description('Show available backends')
778
+ .action(() => {
779
+ try {
780
+ (0, surf_1.showBackendsCommand)();
781
+ }
782
+ catch (error) {
783
+ logger_1.logger.error('Show backends failed', error);
784
+ process.exit(1);
785
+ }
786
+ });
787
+ surfCommand
788
+ .command('tools')
789
+ .description('Show surf tools')
790
+ .action(() => {
791
+ try {
792
+ (0, surf_1.showSurfToolsCommand)();
793
+ }
794
+ catch (error) {
795
+ logger_1.logger.error('Show surf tools failed', error);
796
+ process.exit(1);
797
+ }
798
+ });
799
+ const embeddingsCommand = program
800
+ .command('embeddings')
801
+ .description('Manage embedding configurations');
802
+ embeddingsCommand
803
+ .command('create')
804
+ .description('Create an embedding configuration')
805
+ .action(async () => {
806
+ try {
807
+ await (0, embeddings_1.createEmbeddingConfigCommand)();
808
+ }
809
+ catch (error) {
810
+ logger_1.logger.error('Create embedding config failed', error);
811
+ process.exit(1);
812
+ }
813
+ });
814
+ embeddingsCommand
815
+ .command('list')
816
+ .description('List embedding configurations')
817
+ .action(() => {
818
+ try {
819
+ (0, embeddings_1.listEmbeddingConfigsCommand)();
820
+ }
821
+ catch (error) {
822
+ logger_1.logger.error('List embedding configs failed', error);
823
+ process.exit(1);
824
+ }
825
+ });
826
+ embeddingsCommand
827
+ .command('get <name>')
828
+ .description('Get embedding configuration details')
829
+ .action((name) => {
830
+ try {
831
+ (0, embeddings_1.getEmbeddingConfigCommand)(name);
832
+ }
833
+ catch (error) {
834
+ logger_1.logger.error('Get embedding config failed', error);
835
+ process.exit(1);
836
+ }
837
+ });
838
+ embeddingsCommand
839
+ .command('delete <name>')
840
+ .description('Delete an embedding configuration')
841
+ .action(async (name) => {
842
+ try {
843
+ await (0, embeddings_1.deleteEmbeddingConfigCommand)(name);
844
+ }
845
+ catch (error) {
846
+ logger_1.logger.error('Delete embedding config failed', error);
847
+ process.exit(1);
848
+ }
849
+ });
850
+ embeddingsCommand
851
+ .command('providers')
852
+ .description('Show embedding providers')
853
+ .action(() => {
854
+ try {
855
+ (0, embeddings_1.showProvidersCommand)();
856
+ }
857
+ catch (error) {
858
+ logger_1.logger.error('Show providers failed', error);
859
+ process.exit(1);
860
+ }
861
+ });
862
+ embeddingsCommand
863
+ .command('stores')
864
+ .description('Show vector stores')
865
+ .action(() => {
866
+ try {
867
+ (0, embeddings_1.showStoresCommand)();
868
+ }
869
+ catch (error) {
870
+ logger_1.logger.error('Show stores failed', error);
871
+ process.exit(1);
872
+ }
873
+ });
874
+ const gatewayCommand = program
875
+ .command('gateway')
876
+ .description('Manage API gateway configurations');
877
+ gatewayCommand
878
+ .command('create')
879
+ .description('Create a gateway configuration')
880
+ .action(async () => {
881
+ try {
882
+ await (0, gateway_1.createGatewayConfigCommand)();
883
+ }
884
+ catch (error) {
885
+ logger_1.logger.error('Create gateway failed', error);
886
+ process.exit(1);
887
+ }
888
+ });
889
+ gatewayCommand
890
+ .command('list')
891
+ .description('List gateway configurations')
892
+ .action(() => {
893
+ try {
894
+ (0, gateway_1.listGatewaysCommand)();
895
+ }
896
+ catch (error) {
897
+ logger_1.logger.error('List gateways failed', error);
898
+ process.exit(1);
899
+ }
900
+ });
901
+ gatewayCommand
902
+ .command('get <name>')
903
+ .description('Get gateway details')
904
+ .action((name) => {
905
+ try {
906
+ (0, gateway_1.getGatewayCommand)(name);
907
+ }
908
+ catch (error) {
909
+ logger_1.logger.error('Get gateway failed', error);
910
+ process.exit(1);
911
+ }
912
+ });
913
+ gatewayCommand
914
+ .command('delete <name>')
915
+ .description('Delete a gateway')
916
+ .action(async (name) => {
917
+ try {
918
+ await (0, gateway_1.deleteGatewayCommand)(name);
919
+ }
920
+ catch (error) {
921
+ logger_1.logger.error('Delete gateway failed', error);
922
+ process.exit(1);
923
+ }
924
+ });
925
+ gatewayCommand
926
+ .command('strategies')
927
+ .description('Show routing strategies')
928
+ .action(() => {
929
+ try {
930
+ (0, gateway_1.showStrategiesCommand)();
931
+ }
932
+ catch (error) {
933
+ logger_1.logger.error('Show strategies failed', error);
934
+ process.exit(1);
935
+ }
936
+ });
937
+ const evaluateCommand = program
938
+ .command('evaluate')
939
+ .description('Manage evaluations');
940
+ evaluateCommand
941
+ .command('create')
942
+ .description('Create an evaluation configuration')
943
+ .action(async () => {
944
+ try {
945
+ await (0, evaluate_1.createEvalConfigCommand)();
946
+ }
947
+ catch (error) {
948
+ logger_1.logger.error('Create evaluation failed', error);
949
+ process.exit(1);
950
+ }
951
+ });
952
+ evaluateCommand
953
+ .command('list')
954
+ .description('List evaluation configurations')
955
+ .action(() => {
956
+ try {
957
+ (0, evaluate_1.listEvalsCommand)();
958
+ }
959
+ catch (error) {
960
+ logger_1.logger.error('List evaluations failed', error);
961
+ process.exit(1);
962
+ }
963
+ });
964
+ evaluateCommand
965
+ .command('get <name>')
966
+ .description('Get evaluation details')
967
+ .action((name) => {
968
+ try {
969
+ (0, evaluate_1.getEvalCommand)(name);
970
+ }
971
+ catch (error) {
972
+ logger_1.logger.error('Get evaluation failed', error);
973
+ process.exit(1);
974
+ }
975
+ });
976
+ evaluateCommand
977
+ .command('delete <name>')
978
+ .description('Delete an evaluation')
979
+ .action(async (name) => {
980
+ try {
981
+ await (0, evaluate_1.deleteEvalCommand)(name);
982
+ }
983
+ catch (error) {
984
+ logger_1.logger.error('Delete evaluation failed', error);
985
+ process.exit(1);
986
+ }
987
+ });
988
+ evaluateCommand
989
+ .command('metrics')
990
+ .description('Show available metrics')
991
+ .action(() => {
992
+ try {
993
+ (0, evaluate_1.showMetricsCommand)();
994
+ }
995
+ catch (error) {
996
+ logger_1.logger.error('Show metrics failed', error);
997
+ process.exit(1);
998
+ }
999
+ });
1000
+ evaluateCommand
1001
+ .command('judges')
1002
+ .description('Show judge types')
1003
+ .action(() => {
1004
+ try {
1005
+ (0, evaluate_1.showJudgesCommand)();
1006
+ }
1007
+ catch (error) {
1008
+ logger_1.logger.error('Show judges failed', error);
1009
+ process.exit(1);
1010
+ }
1011
+ });
1012
+ evaluateCommand
1013
+ .command('feedback')
1014
+ .description('Show feedback collection types')
1015
+ .action(() => {
1016
+ try {
1017
+ (0, evaluate_1.showFeedbackTypesCommand)();
1018
+ }
1019
+ catch (error) {
1020
+ logger_1.logger.error('Show feedback types failed', error);
1021
+ process.exit(1);
1022
+ }
1023
+ });
1024
+ const costsCommand = program
1025
+ .command('costs')
1026
+ .description('Manage cost tracking and budgets');
1027
+ costsCommand
1028
+ .command('budget')
1029
+ .description('Create a budget')
1030
+ .action(async () => {
1031
+ try {
1032
+ await (0, costs_1.createBudgetCommand)();
1033
+ }
1034
+ catch (error) {
1035
+ logger_1.logger.error('Create budget failed', error);
1036
+ process.exit(1);
1037
+ }
1038
+ });
1039
+ costsCommand
1040
+ .command('list')
1041
+ .description('List budgets')
1042
+ .action(() => {
1043
+ try {
1044
+ (0, costs_1.listBudgetsCommand)();
1045
+ }
1046
+ catch (error) {
1047
+ logger_1.logger.error('List budgets failed', error);
1048
+ process.exit(1);
1049
+ }
1050
+ });
1051
+ costsCommand
1052
+ .command('get <name>')
1053
+ .description('Get budget details')
1054
+ .action((name) => {
1055
+ try {
1056
+ (0, costs_1.getBudgetCommand)(name);
1057
+ }
1058
+ catch (error) {
1059
+ logger_1.logger.error('Get budget failed', error);
1060
+ process.exit(1);
1061
+ }
1062
+ });
1063
+ costsCommand
1064
+ .command('delete <name>')
1065
+ .description('Delete a budget')
1066
+ .action(async (name) => {
1067
+ try {
1068
+ await (0, costs_1.deleteBudgetCommand)(name);
1069
+ }
1070
+ catch (error) {
1071
+ logger_1.logger.error('Delete budget failed', error);
1072
+ process.exit(1);
1073
+ }
1074
+ });
1075
+ costsCommand
1076
+ .command('pricing')
1077
+ .description('Show model pricing')
1078
+ .action(() => {
1079
+ try {
1080
+ (0, costs_1.showPricingCommand)();
1081
+ }
1082
+ catch (error) {
1083
+ logger_1.logger.error('Show pricing failed', error);
1084
+ process.exit(1);
1085
+ }
1086
+ });
1087
+ costsCommand
1088
+ .command('estimate')
1089
+ .description('Estimate cost for a request')
1090
+ .action(async () => {
1091
+ try {
1092
+ await (0, costs_1.estimateCostCommand)();
1093
+ }
1094
+ catch (error) {
1095
+ logger_1.logger.error('Estimate cost failed', error);
1096
+ process.exit(1);
1097
+ }
1098
+ });
1099
+ const ingestCommand = program
1100
+ .command('ingest')
1101
+ .description('Manage data ingestion pipelines');
1102
+ ingestCommand
1103
+ .command('create')
1104
+ .description('Create an ingestion pipeline')
1105
+ .action(async () => {
1106
+ try {
1107
+ await (0, ingest_1.createPipelineCommand)();
1108
+ }
1109
+ catch (error) {
1110
+ logger_1.logger.error('Create pipeline failed', error);
1111
+ process.exit(1);
1112
+ }
1113
+ });
1114
+ ingestCommand
1115
+ .command('list')
1116
+ .description('List ingestion pipelines')
1117
+ .action(() => {
1118
+ try {
1119
+ (0, ingest_1.listPipelinesCommand)();
1120
+ }
1121
+ catch (error) {
1122
+ logger_1.logger.error('List pipelines failed', error);
1123
+ process.exit(1);
1124
+ }
1125
+ });
1126
+ ingestCommand
1127
+ .command('get <name>')
1128
+ .description('Get pipeline details')
1129
+ .action((name) => {
1130
+ try {
1131
+ (0, ingest_1.getPipelineCommand)(name);
1132
+ }
1133
+ catch (error) {
1134
+ logger_1.logger.error('Get pipeline failed', error);
1135
+ process.exit(1);
1136
+ }
1137
+ });
1138
+ ingestCommand
1139
+ .command('delete <name>')
1140
+ .description('Delete an ingestion pipeline')
1141
+ .action(async (name) => {
1142
+ try {
1143
+ await (0, ingest_1.deletePipelineCommand)(name);
1144
+ }
1145
+ catch (error) {
1146
+ logger_1.logger.error('Delete pipeline failed', error);
1147
+ process.exit(1);
1148
+ }
1149
+ });
1150
+ ingestCommand
1151
+ .command('parsers')
1152
+ .description('Show available file parsers')
1153
+ .action(() => {
1154
+ try {
1155
+ (0, ingest_1.showParsersCommand)();
1156
+ }
1157
+ catch (error) {
1158
+ logger_1.logger.error('Show parsers failed', error);
1159
+ process.exit(1);
1160
+ }
1161
+ });
1162
+ ingestCommand
1163
+ .command('chunkers')
1164
+ .description('Show chunking strategies')
1165
+ .action(() => {
1166
+ try {
1167
+ (0, ingest_1.showChunkersCommand)();
1168
+ }
1169
+ catch (error) {
1170
+ logger_1.logger.error('Show chunkers failed', error);
1171
+ process.exit(1);
1172
+ }
1173
+ });
390
1174
  program
391
1175
  .command('config')
392
1176
  .description('Show configuration')
@@ -402,42 +1186,34 @@ program
402
1186
  logger_1.logger.subheading('Default Agent');
403
1187
  logger_1.logger.log(` ${config.defaultAgent || '(not set)'}`);
404
1188
  logger_1.logger.blank();
405
- logger_1.logger.subheading('Providers');
406
- const providers = Object.keys(config.providers);
407
- if (providers.length === 0) {
408
- logger_1.logger.log(' (none)');
409
- }
410
- else {
411
- providers.forEach((name) => logger_1.logger.listItem(name));
412
- }
413
- logger_1.logger.blank();
414
- logger_1.logger.subheading('Agents');
415
- const agents = Object.keys(config.agents);
416
- if (agents.length === 0) {
417
- logger_1.logger.log(' (none)');
418
- }
419
- else {
420
- agents.forEach((name) => logger_1.logger.listItem(name));
421
- }
422
- logger_1.logger.blank();
423
- logger_1.logger.subheading('MCP Servers');
424
- const mcpServers = Object.keys(config.mcpServers || {});
425
- if (mcpServers.length === 0) {
426
- logger_1.logger.log(' (none)');
427
- }
428
- else {
429
- mcpServers.forEach((name) => logger_1.logger.listItem(name));
430
- }
431
- logger_1.logger.blank();
432
- logger_1.logger.subheading('Workflows');
433
- const workflows = Object.keys(config.workflows || {});
434
- if (workflows.length === 0) {
435
- logger_1.logger.log(' (none)');
436
- }
437
- else {
438
- workflows.forEach((name) => logger_1.logger.listItem(name));
439
- }
440
- logger_1.logger.blank();
1189
+ const sections = [
1190
+ { name: 'Providers', key: 'providers' },
1191
+ { name: 'Agents', key: 'agents' },
1192
+ { name: 'MCP Servers', key: 'mcpServers' },
1193
+ { name: 'Workflows', key: 'workflows' },
1194
+ { name: 'Crews', key: 'crews' },
1195
+ { name: 'Guardrails', key: 'guardrails' },
1196
+ { name: 'Memory Stores', key: 'memoryStores' },
1197
+ { name: 'Prompts', key: 'prompts' },
1198
+ { name: 'Surf Configs', key: 'surfConfigs' },
1199
+ { name: 'Embeddings', key: 'embeddingConfigs' },
1200
+ { name: 'Gateways', key: 'gateways' },
1201
+ { name: 'Evaluations', key: 'evaluations' },
1202
+ { name: 'Budgets', key: 'budgets' },
1203
+ { name: 'Ingest Pipelines', key: 'ingestPipelines' },
1204
+ ];
1205
+ sections.forEach(({ name, key }) => {
1206
+ logger_1.logger.subheading(name);
1207
+ const configObj = config[key];
1208
+ const items = Object.keys(configObj || {});
1209
+ if (items.length === 0) {
1210
+ logger_1.logger.log(' (none)');
1211
+ }
1212
+ else {
1213
+ items.forEach((item) => logger_1.logger.listItem(item));
1214
+ }
1215
+ logger_1.logger.blank();
1216
+ });
441
1217
  });
442
1218
  program.parse();
443
1219
  //# sourceMappingURL=cli.js.map