@respan/cli 0.6.5 → 0.6.6
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/hooks/claude-code.cjs +1 -0
- package/dist/hooks/claude-code.js +2 -0
- package/oclif.manifest.json +797 -797
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -428,10 +428,16 @@
|
|
|
428
428
|
"set.js"
|
|
429
429
|
]
|
|
430
430
|
},
|
|
431
|
-
"
|
|
431
|
+
"datasets:add-spans": {
|
|
432
432
|
"aliases": [],
|
|
433
|
-
"args": {
|
|
434
|
-
|
|
433
|
+
"args": {
|
|
434
|
+
"dataset-id": {
|
|
435
|
+
"description": "Dataset ID",
|
|
436
|
+
"name": "dataset-id",
|
|
437
|
+
"required": true
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
"description": "Add existing spans to a dataset",
|
|
435
441
|
"flags": {
|
|
436
442
|
"api-key": {
|
|
437
443
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -467,39 +473,18 @@
|
|
|
467
473
|
"allowNo": false,
|
|
468
474
|
"type": "boolean"
|
|
469
475
|
},
|
|
470
|
-
"
|
|
471
|
-
"description": "
|
|
472
|
-
"name": "
|
|
476
|
+
"span-ids": {
|
|
477
|
+
"description": "Comma-separated span IDs",
|
|
478
|
+
"name": "span-ids",
|
|
473
479
|
"required": true,
|
|
474
480
|
"hasDynamicHelp": false,
|
|
475
481
|
"multiple": false,
|
|
476
482
|
"type": "option"
|
|
477
|
-
},
|
|
478
|
-
"type": {
|
|
479
|
-
"description": "Evaluator type",
|
|
480
|
-
"name": "type",
|
|
481
|
-
"hasDynamicHelp": false,
|
|
482
|
-
"multiple": false,
|
|
483
|
-
"type": "option"
|
|
484
|
-
},
|
|
485
|
-
"description": {
|
|
486
|
-
"description": "Evaluator description",
|
|
487
|
-
"name": "description",
|
|
488
|
-
"hasDynamicHelp": false,
|
|
489
|
-
"multiple": false,
|
|
490
|
-
"type": "option"
|
|
491
|
-
},
|
|
492
|
-
"config": {
|
|
493
|
-
"description": "Evaluator config as JSON string",
|
|
494
|
-
"name": "config",
|
|
495
|
-
"hasDynamicHelp": false,
|
|
496
|
-
"multiple": false,
|
|
497
|
-
"type": "option"
|
|
498
483
|
}
|
|
499
484
|
},
|
|
500
485
|
"hasDynamicHelp": false,
|
|
501
486
|
"hiddenAliases": [],
|
|
502
|
-
"id": "
|
|
487
|
+
"id": "datasets:add-spans",
|
|
503
488
|
"pluginAlias": "@respan/cli",
|
|
504
489
|
"pluginName": "@respan/cli",
|
|
505
490
|
"pluginType": "core",
|
|
@@ -509,20 +494,20 @@
|
|
|
509
494
|
"relativePath": [
|
|
510
495
|
"dist",
|
|
511
496
|
"commands",
|
|
512
|
-
"
|
|
513
|
-
"
|
|
497
|
+
"datasets",
|
|
498
|
+
"add-spans.js"
|
|
514
499
|
]
|
|
515
500
|
},
|
|
516
|
-
"
|
|
501
|
+
"datasets:create-span": {
|
|
517
502
|
"aliases": [],
|
|
518
503
|
"args": {
|
|
519
|
-
"id": {
|
|
520
|
-
"description": "
|
|
521
|
-
"name": "id",
|
|
504
|
+
"dataset-id": {
|
|
505
|
+
"description": "Dataset ID",
|
|
506
|
+
"name": "dataset-id",
|
|
522
507
|
"required": true
|
|
523
508
|
}
|
|
524
509
|
},
|
|
525
|
-
"description": "
|
|
510
|
+
"description": "Create a span in a dataset",
|
|
526
511
|
"flags": {
|
|
527
512
|
"api-key": {
|
|
528
513
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -557,11 +542,19 @@
|
|
|
557
542
|
"name": "verbose",
|
|
558
543
|
"allowNo": false,
|
|
559
544
|
"type": "boolean"
|
|
545
|
+
},
|
|
546
|
+
"body": {
|
|
547
|
+
"description": "Span body as JSON string",
|
|
548
|
+
"name": "body",
|
|
549
|
+
"required": true,
|
|
550
|
+
"hasDynamicHelp": false,
|
|
551
|
+
"multiple": false,
|
|
552
|
+
"type": "option"
|
|
560
553
|
}
|
|
561
554
|
},
|
|
562
555
|
"hasDynamicHelp": false,
|
|
563
556
|
"hiddenAliases": [],
|
|
564
|
-
"id": "
|
|
557
|
+
"id": "datasets:create-span",
|
|
565
558
|
"pluginAlias": "@respan/cli",
|
|
566
559
|
"pluginName": "@respan/cli",
|
|
567
560
|
"pluginType": "core",
|
|
@@ -571,14 +564,14 @@
|
|
|
571
564
|
"relativePath": [
|
|
572
565
|
"dist",
|
|
573
566
|
"commands",
|
|
574
|
-
"
|
|
575
|
-
"
|
|
567
|
+
"datasets",
|
|
568
|
+
"create-span.js"
|
|
576
569
|
]
|
|
577
570
|
},
|
|
578
|
-
"
|
|
571
|
+
"datasets:create": {
|
|
579
572
|
"aliases": [],
|
|
580
573
|
"args": {},
|
|
581
|
-
"description": "
|
|
574
|
+
"description": "Create a new dataset",
|
|
582
575
|
"flags": {
|
|
583
576
|
"api-key": {
|
|
584
577
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -614,18 +607,17 @@
|
|
|
614
607
|
"allowNo": false,
|
|
615
608
|
"type": "boolean"
|
|
616
609
|
},
|
|
617
|
-
"
|
|
618
|
-
"description": "
|
|
619
|
-
"name": "
|
|
620
|
-
"
|
|
610
|
+
"name": {
|
|
611
|
+
"description": "Dataset name",
|
|
612
|
+
"name": "name",
|
|
613
|
+
"required": true,
|
|
621
614
|
"hasDynamicHelp": false,
|
|
622
615
|
"multiple": false,
|
|
623
616
|
"type": "option"
|
|
624
617
|
},
|
|
625
|
-
"
|
|
626
|
-
"description": "
|
|
627
|
-
"name": "
|
|
628
|
-
"default": 1,
|
|
618
|
+
"description": {
|
|
619
|
+
"description": "Dataset description",
|
|
620
|
+
"name": "description",
|
|
629
621
|
"hasDynamicHelp": false,
|
|
630
622
|
"multiple": false,
|
|
631
623
|
"type": "option"
|
|
@@ -633,7 +625,7 @@
|
|
|
633
625
|
},
|
|
634
626
|
"hasDynamicHelp": false,
|
|
635
627
|
"hiddenAliases": [],
|
|
636
|
-
"id": "
|
|
628
|
+
"id": "datasets:create",
|
|
637
629
|
"pluginAlias": "@respan/cli",
|
|
638
630
|
"pluginName": "@respan/cli",
|
|
639
631
|
"pluginType": "core",
|
|
@@ -643,20 +635,25 @@
|
|
|
643
635
|
"relativePath": [
|
|
644
636
|
"dist",
|
|
645
637
|
"commands",
|
|
646
|
-
"
|
|
647
|
-
"
|
|
638
|
+
"datasets",
|
|
639
|
+
"create.js"
|
|
648
640
|
]
|
|
649
641
|
},
|
|
650
|
-
"
|
|
642
|
+
"datasets:get-span": {
|
|
651
643
|
"aliases": [],
|
|
652
644
|
"args": {
|
|
653
|
-
"id": {
|
|
654
|
-
"description": "
|
|
655
|
-
"name": "id",
|
|
645
|
+
"dataset-id": {
|
|
646
|
+
"description": "Dataset ID",
|
|
647
|
+
"name": "dataset-id",
|
|
648
|
+
"required": true
|
|
649
|
+
},
|
|
650
|
+
"span-id": {
|
|
651
|
+
"description": "Span ID",
|
|
652
|
+
"name": "span-id",
|
|
656
653
|
"required": true
|
|
657
654
|
}
|
|
658
655
|
},
|
|
659
|
-
"description": "
|
|
656
|
+
"description": "Get a specific span from a dataset",
|
|
660
657
|
"flags": {
|
|
661
658
|
"api-key": {
|
|
662
659
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -691,32 +688,11 @@
|
|
|
691
688
|
"name": "verbose",
|
|
692
689
|
"allowNo": false,
|
|
693
690
|
"type": "boolean"
|
|
694
|
-
},
|
|
695
|
-
"dataset-id": {
|
|
696
|
-
"description": "Dataset ID to evaluate against",
|
|
697
|
-
"name": "dataset-id",
|
|
698
|
-
"hasDynamicHelp": false,
|
|
699
|
-
"multiple": false,
|
|
700
|
-
"type": "option"
|
|
701
|
-
},
|
|
702
|
-
"log-ids": {
|
|
703
|
-
"description": "Comma-separated log/span IDs to evaluate",
|
|
704
|
-
"name": "log-ids",
|
|
705
|
-
"hasDynamicHelp": false,
|
|
706
|
-
"multiple": false,
|
|
707
|
-
"type": "option"
|
|
708
|
-
},
|
|
709
|
-
"params": {
|
|
710
|
-
"description": "Additional parameters as JSON string",
|
|
711
|
-
"name": "params",
|
|
712
|
-
"hasDynamicHelp": false,
|
|
713
|
-
"multiple": false,
|
|
714
|
-
"type": "option"
|
|
715
691
|
}
|
|
716
692
|
},
|
|
717
693
|
"hasDynamicHelp": false,
|
|
718
694
|
"hiddenAliases": [],
|
|
719
|
-
"id": "
|
|
695
|
+
"id": "datasets:get-span",
|
|
720
696
|
"pluginAlias": "@respan/cli",
|
|
721
697
|
"pluginName": "@respan/cli",
|
|
722
698
|
"pluginType": "core",
|
|
@@ -726,20 +702,20 @@
|
|
|
726
702
|
"relativePath": [
|
|
727
703
|
"dist",
|
|
728
704
|
"commands",
|
|
729
|
-
"
|
|
730
|
-
"
|
|
705
|
+
"datasets",
|
|
706
|
+
"get-span.js"
|
|
731
707
|
]
|
|
732
708
|
},
|
|
733
|
-
"
|
|
709
|
+
"datasets:get": {
|
|
734
710
|
"aliases": [],
|
|
735
711
|
"args": {
|
|
736
712
|
"id": {
|
|
737
|
-
"description": "
|
|
713
|
+
"description": "Dataset ID",
|
|
738
714
|
"name": "id",
|
|
739
715
|
"required": true
|
|
740
716
|
}
|
|
741
717
|
},
|
|
742
|
-
"description": "
|
|
718
|
+
"description": "Get a specific dataset",
|
|
743
719
|
"flags": {
|
|
744
720
|
"api-key": {
|
|
745
721
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -774,32 +750,11 @@
|
|
|
774
750
|
"name": "verbose",
|
|
775
751
|
"allowNo": false,
|
|
776
752
|
"type": "boolean"
|
|
777
|
-
},
|
|
778
|
-
"name": {
|
|
779
|
-
"description": "Evaluator name",
|
|
780
|
-
"name": "name",
|
|
781
|
-
"hasDynamicHelp": false,
|
|
782
|
-
"multiple": false,
|
|
783
|
-
"type": "option"
|
|
784
|
-
},
|
|
785
|
-
"description": {
|
|
786
|
-
"description": "Evaluator description",
|
|
787
|
-
"name": "description",
|
|
788
|
-
"hasDynamicHelp": false,
|
|
789
|
-
"multiple": false,
|
|
790
|
-
"type": "option"
|
|
791
|
-
},
|
|
792
|
-
"config": {
|
|
793
|
-
"description": "Evaluator config as JSON string",
|
|
794
|
-
"name": "config",
|
|
795
|
-
"hasDynamicHelp": false,
|
|
796
|
-
"multiple": false,
|
|
797
|
-
"type": "option"
|
|
798
753
|
}
|
|
799
754
|
},
|
|
800
755
|
"hasDynamicHelp": false,
|
|
801
756
|
"hiddenAliases": [],
|
|
802
|
-
"id": "
|
|
757
|
+
"id": "datasets:get",
|
|
803
758
|
"pluginAlias": "@respan/cli",
|
|
804
759
|
"pluginName": "@respan/cli",
|
|
805
760
|
"pluginType": "core",
|
|
@@ -809,14 +764,14 @@
|
|
|
809
764
|
"relativePath": [
|
|
810
765
|
"dist",
|
|
811
766
|
"commands",
|
|
812
|
-
"
|
|
813
|
-
"
|
|
767
|
+
"datasets",
|
|
768
|
+
"get.js"
|
|
814
769
|
]
|
|
815
770
|
},
|
|
816
|
-
"
|
|
771
|
+
"datasets:list": {
|
|
817
772
|
"aliases": [],
|
|
818
773
|
"args": {},
|
|
819
|
-
"description": "
|
|
774
|
+
"description": "List datasets",
|
|
820
775
|
"flags": {
|
|
821
776
|
"api-key": {
|
|
822
777
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -852,32 +807,18 @@
|
|
|
852
807
|
"allowNo": false,
|
|
853
808
|
"type": "boolean"
|
|
854
809
|
},
|
|
855
|
-
"
|
|
856
|
-
"description": "
|
|
857
|
-
"name": "
|
|
858
|
-
"
|
|
859
|
-
"hasDynamicHelp": false,
|
|
860
|
-
"multiple": false,
|
|
861
|
-
"type": "option"
|
|
862
|
-
},
|
|
863
|
-
"dataset-id": {
|
|
864
|
-
"description": "Dataset ID",
|
|
865
|
-
"name": "dataset-id",
|
|
866
|
-
"required": true,
|
|
867
|
-
"hasDynamicHelp": false,
|
|
868
|
-
"multiple": false,
|
|
869
|
-
"type": "option"
|
|
870
|
-
},
|
|
871
|
-
"description": {
|
|
872
|
-
"description": "Experiment description",
|
|
873
|
-
"name": "description",
|
|
810
|
+
"limit": {
|
|
811
|
+
"description": "Number of results per page",
|
|
812
|
+
"name": "limit",
|
|
813
|
+
"default": 50,
|
|
874
814
|
"hasDynamicHelp": false,
|
|
875
815
|
"multiple": false,
|
|
876
816
|
"type": "option"
|
|
877
817
|
},
|
|
878
|
-
"
|
|
879
|
-
"description": "
|
|
880
|
-
"name": "
|
|
818
|
+
"page": {
|
|
819
|
+
"description": "Page number",
|
|
820
|
+
"name": "page",
|
|
821
|
+
"default": 1,
|
|
881
822
|
"hasDynamicHelp": false,
|
|
882
823
|
"multiple": false,
|
|
883
824
|
"type": "option"
|
|
@@ -885,7 +826,7 @@
|
|
|
885
826
|
},
|
|
886
827
|
"hasDynamicHelp": false,
|
|
887
828
|
"hiddenAliases": [],
|
|
888
|
-
"id": "
|
|
829
|
+
"id": "datasets:list",
|
|
889
830
|
"pluginAlias": "@respan/cli",
|
|
890
831
|
"pluginName": "@respan/cli",
|
|
891
832
|
"pluginType": "core",
|
|
@@ -895,20 +836,20 @@
|
|
|
895
836
|
"relativePath": [
|
|
896
837
|
"dist",
|
|
897
838
|
"commands",
|
|
898
|
-
"
|
|
899
|
-
"
|
|
839
|
+
"datasets",
|
|
840
|
+
"list.js"
|
|
900
841
|
]
|
|
901
842
|
},
|
|
902
|
-
"
|
|
843
|
+
"datasets:spans": {
|
|
903
844
|
"aliases": [],
|
|
904
845
|
"args": {
|
|
905
|
-
"id": {
|
|
906
|
-
"description": "
|
|
907
|
-
"name": "id",
|
|
846
|
+
"dataset-id": {
|
|
847
|
+
"description": "Dataset ID",
|
|
848
|
+
"name": "dataset-id",
|
|
908
849
|
"required": true
|
|
909
850
|
}
|
|
910
851
|
},
|
|
911
|
-
"description": "
|
|
852
|
+
"description": "List spans in a dataset",
|
|
912
853
|
"flags": {
|
|
913
854
|
"api-key": {
|
|
914
855
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -947,7 +888,7 @@
|
|
|
947
888
|
},
|
|
948
889
|
"hasDynamicHelp": false,
|
|
949
890
|
"hiddenAliases": [],
|
|
950
|
-
"id": "
|
|
891
|
+
"id": "datasets:spans",
|
|
951
892
|
"pluginAlias": "@respan/cli",
|
|
952
893
|
"pluginName": "@respan/cli",
|
|
953
894
|
"pluginType": "core",
|
|
@@ -957,14 +898,20 @@
|
|
|
957
898
|
"relativePath": [
|
|
958
899
|
"dist",
|
|
959
900
|
"commands",
|
|
960
|
-
"
|
|
961
|
-
"
|
|
901
|
+
"datasets",
|
|
902
|
+
"spans.js"
|
|
962
903
|
]
|
|
963
904
|
},
|
|
964
|
-
"
|
|
905
|
+
"datasets:update": {
|
|
965
906
|
"aliases": [],
|
|
966
|
-
"args": {
|
|
967
|
-
|
|
907
|
+
"args": {
|
|
908
|
+
"id": {
|
|
909
|
+
"description": "Dataset ID",
|
|
910
|
+
"name": "id",
|
|
911
|
+
"required": true
|
|
912
|
+
}
|
|
913
|
+
},
|
|
914
|
+
"description": "Update a dataset",
|
|
968
915
|
"flags": {
|
|
969
916
|
"api-key": {
|
|
970
917
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -1000,18 +947,16 @@
|
|
|
1000
947
|
"allowNo": false,
|
|
1001
948
|
"type": "boolean"
|
|
1002
949
|
},
|
|
1003
|
-
"
|
|
1004
|
-
"description": "
|
|
1005
|
-
"name": "
|
|
1006
|
-
"default": 20,
|
|
950
|
+
"name": {
|
|
951
|
+
"description": "Dataset name",
|
|
952
|
+
"name": "name",
|
|
1007
953
|
"hasDynamicHelp": false,
|
|
1008
954
|
"multiple": false,
|
|
1009
955
|
"type": "option"
|
|
1010
956
|
},
|
|
1011
|
-
"
|
|
1012
|
-
"description": "
|
|
1013
|
-
"name": "
|
|
1014
|
-
"default": 1,
|
|
957
|
+
"description": {
|
|
958
|
+
"description": "Dataset description",
|
|
959
|
+
"name": "description",
|
|
1015
960
|
"hasDynamicHelp": false,
|
|
1016
961
|
"multiple": false,
|
|
1017
962
|
"type": "option"
|
|
@@ -1019,7 +964,7 @@
|
|
|
1019
964
|
},
|
|
1020
965
|
"hasDynamicHelp": false,
|
|
1021
966
|
"hiddenAliases": [],
|
|
1022
|
-
"id": "
|
|
967
|
+
"id": "datasets:update",
|
|
1023
968
|
"pluginAlias": "@respan/cli",
|
|
1024
969
|
"pluginName": "@respan/cli",
|
|
1025
970
|
"pluginType": "core",
|
|
@@ -1029,20 +974,14 @@
|
|
|
1029
974
|
"relativePath": [
|
|
1030
975
|
"dist",
|
|
1031
976
|
"commands",
|
|
1032
|
-
"
|
|
1033
|
-
"
|
|
1034
|
-
]
|
|
977
|
+
"datasets",
|
|
978
|
+
"update.js"
|
|
979
|
+
]
|
|
1035
980
|
},
|
|
1036
|
-
"
|
|
981
|
+
"evaluators:create": {
|
|
1037
982
|
"aliases": [],
|
|
1038
|
-
"args": {
|
|
1039
|
-
|
|
1040
|
-
"description": "Dataset ID",
|
|
1041
|
-
"name": "dataset-id",
|
|
1042
|
-
"required": true
|
|
1043
|
-
}
|
|
1044
|
-
},
|
|
1045
|
-
"description": "Add existing spans to a dataset",
|
|
983
|
+
"args": {},
|
|
984
|
+
"description": "Create a new evaluator",
|
|
1046
985
|
"flags": {
|
|
1047
986
|
"api-key": {
|
|
1048
987
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -1078,18 +1017,39 @@
|
|
|
1078
1017
|
"allowNo": false,
|
|
1079
1018
|
"type": "boolean"
|
|
1080
1019
|
},
|
|
1081
|
-
"
|
|
1082
|
-
"description": "
|
|
1083
|
-
"name": "
|
|
1020
|
+
"name": {
|
|
1021
|
+
"description": "Evaluator name",
|
|
1022
|
+
"name": "name",
|
|
1084
1023
|
"required": true,
|
|
1085
1024
|
"hasDynamicHelp": false,
|
|
1086
1025
|
"multiple": false,
|
|
1087
1026
|
"type": "option"
|
|
1027
|
+
},
|
|
1028
|
+
"type": {
|
|
1029
|
+
"description": "Evaluator type",
|
|
1030
|
+
"name": "type",
|
|
1031
|
+
"hasDynamicHelp": false,
|
|
1032
|
+
"multiple": false,
|
|
1033
|
+
"type": "option"
|
|
1034
|
+
},
|
|
1035
|
+
"description": {
|
|
1036
|
+
"description": "Evaluator description",
|
|
1037
|
+
"name": "description",
|
|
1038
|
+
"hasDynamicHelp": false,
|
|
1039
|
+
"multiple": false,
|
|
1040
|
+
"type": "option"
|
|
1041
|
+
},
|
|
1042
|
+
"config": {
|
|
1043
|
+
"description": "Evaluator config as JSON string",
|
|
1044
|
+
"name": "config",
|
|
1045
|
+
"hasDynamicHelp": false,
|
|
1046
|
+
"multiple": false,
|
|
1047
|
+
"type": "option"
|
|
1088
1048
|
}
|
|
1089
1049
|
},
|
|
1090
1050
|
"hasDynamicHelp": false,
|
|
1091
1051
|
"hiddenAliases": [],
|
|
1092
|
-
"id": "
|
|
1052
|
+
"id": "evaluators:create",
|
|
1093
1053
|
"pluginAlias": "@respan/cli",
|
|
1094
1054
|
"pluginName": "@respan/cli",
|
|
1095
1055
|
"pluginType": "core",
|
|
@@ -1099,20 +1059,20 @@
|
|
|
1099
1059
|
"relativePath": [
|
|
1100
1060
|
"dist",
|
|
1101
1061
|
"commands",
|
|
1102
|
-
"
|
|
1103
|
-
"
|
|
1062
|
+
"evaluators",
|
|
1063
|
+
"create.js"
|
|
1104
1064
|
]
|
|
1105
1065
|
},
|
|
1106
|
-
"
|
|
1066
|
+
"evaluators:get": {
|
|
1107
1067
|
"aliases": [],
|
|
1108
1068
|
"args": {
|
|
1109
|
-
"
|
|
1110
|
-
"description": "
|
|
1111
|
-
"name": "
|
|
1069
|
+
"id": {
|
|
1070
|
+
"description": "Evaluator ID",
|
|
1071
|
+
"name": "id",
|
|
1112
1072
|
"required": true
|
|
1113
1073
|
}
|
|
1114
1074
|
},
|
|
1115
|
-
"description": "
|
|
1075
|
+
"description": "Get a specific evaluator",
|
|
1116
1076
|
"flags": {
|
|
1117
1077
|
"api-key": {
|
|
1118
1078
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -1147,19 +1107,11 @@
|
|
|
1147
1107
|
"name": "verbose",
|
|
1148
1108
|
"allowNo": false,
|
|
1149
1109
|
"type": "boolean"
|
|
1150
|
-
},
|
|
1151
|
-
"body": {
|
|
1152
|
-
"description": "Span body as JSON string",
|
|
1153
|
-
"name": "body",
|
|
1154
|
-
"required": true,
|
|
1155
|
-
"hasDynamicHelp": false,
|
|
1156
|
-
"multiple": false,
|
|
1157
|
-
"type": "option"
|
|
1158
1110
|
}
|
|
1159
1111
|
},
|
|
1160
1112
|
"hasDynamicHelp": false,
|
|
1161
1113
|
"hiddenAliases": [],
|
|
1162
|
-
"id": "
|
|
1114
|
+
"id": "evaluators:get",
|
|
1163
1115
|
"pluginAlias": "@respan/cli",
|
|
1164
1116
|
"pluginName": "@respan/cli",
|
|
1165
1117
|
"pluginType": "core",
|
|
@@ -1169,14 +1121,14 @@
|
|
|
1169
1121
|
"relativePath": [
|
|
1170
1122
|
"dist",
|
|
1171
1123
|
"commands",
|
|
1172
|
-
"
|
|
1173
|
-
"
|
|
1124
|
+
"evaluators",
|
|
1125
|
+
"get.js"
|
|
1174
1126
|
]
|
|
1175
1127
|
},
|
|
1176
|
-
"
|
|
1128
|
+
"evaluators:list": {
|
|
1177
1129
|
"aliases": [],
|
|
1178
1130
|
"args": {},
|
|
1179
|
-
"description": "
|
|
1131
|
+
"description": "List evaluators",
|
|
1180
1132
|
"flags": {
|
|
1181
1133
|
"api-key": {
|
|
1182
1134
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -1212,17 +1164,18 @@
|
|
|
1212
1164
|
"allowNo": false,
|
|
1213
1165
|
"type": "boolean"
|
|
1214
1166
|
},
|
|
1215
|
-
"
|
|
1216
|
-
"description": "
|
|
1217
|
-
"name": "
|
|
1218
|
-
"
|
|
1167
|
+
"limit": {
|
|
1168
|
+
"description": "Number of results per page",
|
|
1169
|
+
"name": "limit",
|
|
1170
|
+
"default": 20,
|
|
1219
1171
|
"hasDynamicHelp": false,
|
|
1220
1172
|
"multiple": false,
|
|
1221
1173
|
"type": "option"
|
|
1222
1174
|
},
|
|
1223
|
-
"
|
|
1224
|
-
"description": "
|
|
1225
|
-
"name": "
|
|
1175
|
+
"page": {
|
|
1176
|
+
"description": "Page number",
|
|
1177
|
+
"name": "page",
|
|
1178
|
+
"default": 1,
|
|
1226
1179
|
"hasDynamicHelp": false,
|
|
1227
1180
|
"multiple": false,
|
|
1228
1181
|
"type": "option"
|
|
@@ -1230,7 +1183,7 @@
|
|
|
1230
1183
|
},
|
|
1231
1184
|
"hasDynamicHelp": false,
|
|
1232
1185
|
"hiddenAliases": [],
|
|
1233
|
-
"id": "
|
|
1186
|
+
"id": "evaluators:list",
|
|
1234
1187
|
"pluginAlias": "@respan/cli",
|
|
1235
1188
|
"pluginName": "@respan/cli",
|
|
1236
1189
|
"pluginType": "core",
|
|
@@ -1240,25 +1193,20 @@
|
|
|
1240
1193
|
"relativePath": [
|
|
1241
1194
|
"dist",
|
|
1242
1195
|
"commands",
|
|
1243
|
-
"
|
|
1244
|
-
"
|
|
1196
|
+
"evaluators",
|
|
1197
|
+
"list.js"
|
|
1245
1198
|
]
|
|
1246
1199
|
},
|
|
1247
|
-
"
|
|
1200
|
+
"evaluators:run": {
|
|
1248
1201
|
"aliases": [],
|
|
1249
1202
|
"args": {
|
|
1250
|
-
"
|
|
1251
|
-
"description": "
|
|
1252
|
-
"name": "
|
|
1253
|
-
"required": true
|
|
1254
|
-
},
|
|
1255
|
-
"span-id": {
|
|
1256
|
-
"description": "Span ID",
|
|
1257
|
-
"name": "span-id",
|
|
1203
|
+
"id": {
|
|
1204
|
+
"description": "Evaluator ID",
|
|
1205
|
+
"name": "id",
|
|
1258
1206
|
"required": true
|
|
1259
1207
|
}
|
|
1260
1208
|
},
|
|
1261
|
-
"description": "
|
|
1209
|
+
"description": "Run an evaluator",
|
|
1262
1210
|
"flags": {
|
|
1263
1211
|
"api-key": {
|
|
1264
1212
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -1293,11 +1241,32 @@
|
|
|
1293
1241
|
"name": "verbose",
|
|
1294
1242
|
"allowNo": false,
|
|
1295
1243
|
"type": "boolean"
|
|
1244
|
+
},
|
|
1245
|
+
"dataset-id": {
|
|
1246
|
+
"description": "Dataset ID to evaluate against",
|
|
1247
|
+
"name": "dataset-id",
|
|
1248
|
+
"hasDynamicHelp": false,
|
|
1249
|
+
"multiple": false,
|
|
1250
|
+
"type": "option"
|
|
1251
|
+
},
|
|
1252
|
+
"log-ids": {
|
|
1253
|
+
"description": "Comma-separated log/span IDs to evaluate",
|
|
1254
|
+
"name": "log-ids",
|
|
1255
|
+
"hasDynamicHelp": false,
|
|
1256
|
+
"multiple": false,
|
|
1257
|
+
"type": "option"
|
|
1258
|
+
},
|
|
1259
|
+
"params": {
|
|
1260
|
+
"description": "Additional parameters as JSON string",
|
|
1261
|
+
"name": "params",
|
|
1262
|
+
"hasDynamicHelp": false,
|
|
1263
|
+
"multiple": false,
|
|
1264
|
+
"type": "option"
|
|
1296
1265
|
}
|
|
1297
1266
|
},
|
|
1298
1267
|
"hasDynamicHelp": false,
|
|
1299
1268
|
"hiddenAliases": [],
|
|
1300
|
-
"id": "
|
|
1269
|
+
"id": "evaluators:run",
|
|
1301
1270
|
"pluginAlias": "@respan/cli",
|
|
1302
1271
|
"pluginName": "@respan/cli",
|
|
1303
1272
|
"pluginType": "core",
|
|
@@ -1307,20 +1276,20 @@
|
|
|
1307
1276
|
"relativePath": [
|
|
1308
1277
|
"dist",
|
|
1309
1278
|
"commands",
|
|
1310
|
-
"
|
|
1311
|
-
"
|
|
1279
|
+
"evaluators",
|
|
1280
|
+
"run.js"
|
|
1312
1281
|
]
|
|
1313
1282
|
},
|
|
1314
|
-
"
|
|
1283
|
+
"evaluators:update": {
|
|
1315
1284
|
"aliases": [],
|
|
1316
1285
|
"args": {
|
|
1317
1286
|
"id": {
|
|
1318
|
-
"description": "
|
|
1287
|
+
"description": "Evaluator ID",
|
|
1319
1288
|
"name": "id",
|
|
1320
1289
|
"required": true
|
|
1321
1290
|
}
|
|
1322
1291
|
},
|
|
1323
|
-
"description": "
|
|
1292
|
+
"description": "Update an evaluator",
|
|
1324
1293
|
"flags": {
|
|
1325
1294
|
"api-key": {
|
|
1326
1295
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -1355,11 +1324,32 @@
|
|
|
1355
1324
|
"name": "verbose",
|
|
1356
1325
|
"allowNo": false,
|
|
1357
1326
|
"type": "boolean"
|
|
1327
|
+
},
|
|
1328
|
+
"name": {
|
|
1329
|
+
"description": "Evaluator name",
|
|
1330
|
+
"name": "name",
|
|
1331
|
+
"hasDynamicHelp": false,
|
|
1332
|
+
"multiple": false,
|
|
1333
|
+
"type": "option"
|
|
1334
|
+
},
|
|
1335
|
+
"description": {
|
|
1336
|
+
"description": "Evaluator description",
|
|
1337
|
+
"name": "description",
|
|
1338
|
+
"hasDynamicHelp": false,
|
|
1339
|
+
"multiple": false,
|
|
1340
|
+
"type": "option"
|
|
1341
|
+
},
|
|
1342
|
+
"config": {
|
|
1343
|
+
"description": "Evaluator config as JSON string",
|
|
1344
|
+
"name": "config",
|
|
1345
|
+
"hasDynamicHelp": false,
|
|
1346
|
+
"multiple": false,
|
|
1347
|
+
"type": "option"
|
|
1358
1348
|
}
|
|
1359
1349
|
},
|
|
1360
1350
|
"hasDynamicHelp": false,
|
|
1361
1351
|
"hiddenAliases": [],
|
|
1362
|
-
"id": "
|
|
1352
|
+
"id": "evaluators:update",
|
|
1363
1353
|
"pluginAlias": "@respan/cli",
|
|
1364
1354
|
"pluginName": "@respan/cli",
|
|
1365
1355
|
"pluginType": "core",
|
|
@@ -1369,14 +1359,14 @@
|
|
|
1369
1359
|
"relativePath": [
|
|
1370
1360
|
"dist",
|
|
1371
1361
|
"commands",
|
|
1372
|
-
"
|
|
1373
|
-
"
|
|
1362
|
+
"evaluators",
|
|
1363
|
+
"update.js"
|
|
1374
1364
|
]
|
|
1375
1365
|
},
|
|
1376
|
-
"
|
|
1366
|
+
"experiments:create": {
|
|
1377
1367
|
"aliases": [],
|
|
1378
1368
|
"args": {},
|
|
1379
|
-
"description": "
|
|
1369
|
+
"description": "Create a new experiment",
|
|
1380
1370
|
"flags": {
|
|
1381
1371
|
"api-key": {
|
|
1382
1372
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -1412,18 +1402,32 @@
|
|
|
1412
1402
|
"allowNo": false,
|
|
1413
1403
|
"type": "boolean"
|
|
1414
1404
|
},
|
|
1415
|
-
"
|
|
1416
|
-
"description": "
|
|
1417
|
-
"name": "
|
|
1418
|
-
"
|
|
1405
|
+
"name": {
|
|
1406
|
+
"description": "Experiment name",
|
|
1407
|
+
"name": "name",
|
|
1408
|
+
"required": true,
|
|
1419
1409
|
"hasDynamicHelp": false,
|
|
1420
1410
|
"multiple": false,
|
|
1421
1411
|
"type": "option"
|
|
1422
1412
|
},
|
|
1423
|
-
"
|
|
1424
|
-
"description": "
|
|
1425
|
-
"name": "
|
|
1426
|
-
"
|
|
1413
|
+
"dataset-id": {
|
|
1414
|
+
"description": "Dataset ID",
|
|
1415
|
+
"name": "dataset-id",
|
|
1416
|
+
"required": true,
|
|
1417
|
+
"hasDynamicHelp": false,
|
|
1418
|
+
"multiple": false,
|
|
1419
|
+
"type": "option"
|
|
1420
|
+
},
|
|
1421
|
+
"description": {
|
|
1422
|
+
"description": "Experiment description",
|
|
1423
|
+
"name": "description",
|
|
1424
|
+
"hasDynamicHelp": false,
|
|
1425
|
+
"multiple": false,
|
|
1426
|
+
"type": "option"
|
|
1427
|
+
},
|
|
1428
|
+
"workflows": {
|
|
1429
|
+
"description": "Workflows configuration as JSON string",
|
|
1430
|
+
"name": "workflows",
|
|
1427
1431
|
"hasDynamicHelp": false,
|
|
1428
1432
|
"multiple": false,
|
|
1429
1433
|
"type": "option"
|
|
@@ -1431,7 +1435,7 @@
|
|
|
1431
1435
|
},
|
|
1432
1436
|
"hasDynamicHelp": false,
|
|
1433
1437
|
"hiddenAliases": [],
|
|
1434
|
-
"id": "
|
|
1438
|
+
"id": "experiments:create",
|
|
1435
1439
|
"pluginAlias": "@respan/cli",
|
|
1436
1440
|
"pluginName": "@respan/cli",
|
|
1437
1441
|
"pluginType": "core",
|
|
@@ -1441,20 +1445,20 @@
|
|
|
1441
1445
|
"relativePath": [
|
|
1442
1446
|
"dist",
|
|
1443
1447
|
"commands",
|
|
1444
|
-
"
|
|
1445
|
-
"
|
|
1448
|
+
"experiments",
|
|
1449
|
+
"create.js"
|
|
1446
1450
|
]
|
|
1447
1451
|
},
|
|
1448
|
-
"
|
|
1452
|
+
"experiments:get": {
|
|
1449
1453
|
"aliases": [],
|
|
1450
1454
|
"args": {
|
|
1451
|
-
"
|
|
1452
|
-
"description": "
|
|
1453
|
-
"name": "
|
|
1455
|
+
"id": {
|
|
1456
|
+
"description": "Experiment ID",
|
|
1457
|
+
"name": "id",
|
|
1454
1458
|
"required": true
|
|
1455
1459
|
}
|
|
1456
1460
|
},
|
|
1457
|
-
"description": "
|
|
1461
|
+
"description": "Get a specific experiment",
|
|
1458
1462
|
"flags": {
|
|
1459
1463
|
"api-key": {
|
|
1460
1464
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -1493,7 +1497,7 @@
|
|
|
1493
1497
|
},
|
|
1494
1498
|
"hasDynamicHelp": false,
|
|
1495
1499
|
"hiddenAliases": [],
|
|
1496
|
-
"id": "
|
|
1500
|
+
"id": "experiments:get",
|
|
1497
1501
|
"pluginAlias": "@respan/cli",
|
|
1498
1502
|
"pluginName": "@respan/cli",
|
|
1499
1503
|
"pluginType": "core",
|
|
@@ -1503,20 +1507,14 @@
|
|
|
1503
1507
|
"relativePath": [
|
|
1504
1508
|
"dist",
|
|
1505
1509
|
"commands",
|
|
1506
|
-
"
|
|
1507
|
-
"
|
|
1510
|
+
"experiments",
|
|
1511
|
+
"get.js"
|
|
1508
1512
|
]
|
|
1509
1513
|
},
|
|
1510
|
-
"
|
|
1514
|
+
"experiments:list": {
|
|
1511
1515
|
"aliases": [],
|
|
1512
|
-
"args": {
|
|
1513
|
-
|
|
1514
|
-
"description": "Dataset ID",
|
|
1515
|
-
"name": "id",
|
|
1516
|
-
"required": true
|
|
1517
|
-
}
|
|
1518
|
-
},
|
|
1519
|
-
"description": "Update a dataset",
|
|
1516
|
+
"args": {},
|
|
1517
|
+
"description": "List experiments",
|
|
1520
1518
|
"flags": {
|
|
1521
1519
|
"api-key": {
|
|
1522
1520
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -1552,16 +1550,18 @@
|
|
|
1552
1550
|
"allowNo": false,
|
|
1553
1551
|
"type": "boolean"
|
|
1554
1552
|
},
|
|
1555
|
-
"
|
|
1556
|
-
"description": "
|
|
1557
|
-
"name": "
|
|
1553
|
+
"limit": {
|
|
1554
|
+
"description": "Number of results per page",
|
|
1555
|
+
"name": "limit",
|
|
1556
|
+
"default": 20,
|
|
1558
1557
|
"hasDynamicHelp": false,
|
|
1559
1558
|
"multiple": false,
|
|
1560
1559
|
"type": "option"
|
|
1561
1560
|
},
|
|
1562
|
-
"
|
|
1563
|
-
"description": "
|
|
1564
|
-
"name": "
|
|
1561
|
+
"page": {
|
|
1562
|
+
"description": "Page number",
|
|
1563
|
+
"name": "page",
|
|
1564
|
+
"default": 1,
|
|
1565
1565
|
"hasDynamicHelp": false,
|
|
1566
1566
|
"multiple": false,
|
|
1567
1567
|
"type": "option"
|
|
@@ -1569,7 +1569,7 @@
|
|
|
1569
1569
|
},
|
|
1570
1570
|
"hasDynamicHelp": false,
|
|
1571
1571
|
"hiddenAliases": [],
|
|
1572
|
-
"id": "
|
|
1572
|
+
"id": "experiments:list",
|
|
1573
1573
|
"pluginAlias": "@respan/cli",
|
|
1574
1574
|
"pluginName": "@respan/cli",
|
|
1575
1575
|
"pluginType": "core",
|
|
@@ -1579,14 +1579,21 @@
|
|
|
1579
1579
|
"relativePath": [
|
|
1580
1580
|
"dist",
|
|
1581
1581
|
"commands",
|
|
1582
|
-
"
|
|
1583
|
-
"
|
|
1582
|
+
"experiments",
|
|
1583
|
+
"list.js"
|
|
1584
1584
|
]
|
|
1585
1585
|
},
|
|
1586
|
-
"
|
|
1586
|
+
"integrate:claude-code": {
|
|
1587
1587
|
"aliases": [],
|
|
1588
1588
|
"args": {},
|
|
1589
|
-
"description": "
|
|
1589
|
+
"description": "Integrate Respan with Claude Code.\n\nInstalls a Stop hook that reads conversation transcripts and sends\nthem to Respan as structured spans (chat, tool, thinking).\n\nScope:\n --global Install hook script + register in ~/.claude/settings.json\n --local Write credentials + enable flag to .claude/settings.local.json\n (default) Both: install hook globally + enable for current project",
|
|
1590
|
+
"examples": [
|
|
1591
|
+
"respan integrate claude-code",
|
|
1592
|
+
"respan integrate claude-code --global",
|
|
1593
|
+
"respan integrate claude-code --local --project-id my-project",
|
|
1594
|
+
"respan integrate claude-code --attrs '{\"env\":\"prod\"}'",
|
|
1595
|
+
"respan integrate claude-code --dry-run"
|
|
1596
|
+
],
|
|
1590
1597
|
"flags": {
|
|
1591
1598
|
"api-key": {
|
|
1592
1599
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -1622,101 +1629,80 @@
|
|
|
1622
1629
|
"allowNo": false,
|
|
1623
1630
|
"type": "boolean"
|
|
1624
1631
|
},
|
|
1625
|
-
"
|
|
1626
|
-
"description": "
|
|
1627
|
-
"
|
|
1628
|
-
|
|
1632
|
+
"local": {
|
|
1633
|
+
"description": "Write per-project config (default)",
|
|
1634
|
+
"exclusive": [
|
|
1635
|
+
"global"
|
|
1636
|
+
],
|
|
1637
|
+
"name": "local",
|
|
1638
|
+
"allowNo": false,
|
|
1639
|
+
"type": "boolean"
|
|
1640
|
+
},
|
|
1641
|
+
"global": {
|
|
1642
|
+
"description": "Write user-level global config",
|
|
1643
|
+
"exclusive": [
|
|
1644
|
+
"local"
|
|
1645
|
+
],
|
|
1646
|
+
"name": "global",
|
|
1647
|
+
"allowNo": false,
|
|
1648
|
+
"type": "boolean"
|
|
1649
|
+
},
|
|
1650
|
+
"project-id": {
|
|
1651
|
+
"description": "Respan project ID (added to metadata / resource attributes)",
|
|
1652
|
+
"env": "RESPAN_PROJECT_ID",
|
|
1653
|
+
"name": "project-id",
|
|
1629
1654
|
"hasDynamicHelp": false,
|
|
1630
1655
|
"multiple": false,
|
|
1631
1656
|
"type": "option"
|
|
1632
1657
|
},
|
|
1633
|
-
"
|
|
1634
|
-
"description": "
|
|
1635
|
-
"name": "
|
|
1658
|
+
"base-url": {
|
|
1659
|
+
"description": "Respan API base URL (for enterprise deployments)",
|
|
1660
|
+
"name": "base-url",
|
|
1661
|
+
"default": "https://api.respan.ai/api",
|
|
1636
1662
|
"hasDynamicHelp": false,
|
|
1637
1663
|
"multiple": false,
|
|
1638
1664
|
"type": "option"
|
|
1639
1665
|
},
|
|
1640
|
-
"
|
|
1641
|
-
"description": "
|
|
1642
|
-
"name": "
|
|
1666
|
+
"attrs": {
|
|
1667
|
+
"description": "Custom attributes JSON (e.g. '{\"env\":\"prod\"}')",
|
|
1668
|
+
"name": "attrs",
|
|
1669
|
+
"default": "{}",
|
|
1643
1670
|
"hasDynamicHelp": false,
|
|
1644
1671
|
"multiple": false,
|
|
1645
1672
|
"type": "option"
|
|
1646
1673
|
},
|
|
1647
|
-
"
|
|
1648
|
-
"description": "
|
|
1649
|
-
"
|
|
1674
|
+
"customer-id": {
|
|
1675
|
+
"description": "Customer/user identifier for traces (e.g. your name or email)",
|
|
1676
|
+
"env": "RESPAN_CUSTOMER_ID",
|
|
1677
|
+
"name": "customer-id",
|
|
1650
1678
|
"hasDynamicHelp": false,
|
|
1651
1679
|
"multiple": false,
|
|
1652
1680
|
"type": "option"
|
|
1653
|
-
}
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
"id": "logs:create",
|
|
1658
|
-
"pluginAlias": "@respan/cli",
|
|
1659
|
-
"pluginName": "@respan/cli",
|
|
1660
|
-
"pluginType": "core",
|
|
1661
|
-
"strict": true,
|
|
1662
|
-
"enableJsonFlag": false,
|
|
1663
|
-
"isESM": true,
|
|
1664
|
-
"relativePath": [
|
|
1665
|
-
"dist",
|
|
1666
|
-
"commands",
|
|
1667
|
-
"logs",
|
|
1668
|
-
"create.js"
|
|
1669
|
-
]
|
|
1670
|
-
},
|
|
1671
|
-
"logs:get": {
|
|
1672
|
-
"aliases": [],
|
|
1673
|
-
"args": {
|
|
1674
|
-
"id": {
|
|
1675
|
-
"description": "Span ID",
|
|
1676
|
-
"name": "id",
|
|
1677
|
-
"required": true
|
|
1678
|
-
}
|
|
1679
|
-
},
|
|
1680
|
-
"description": "Get a specific log span",
|
|
1681
|
-
"flags": {
|
|
1682
|
-
"api-key": {
|
|
1683
|
-
"description": "API key (env: RESPAN_API_KEY)",
|
|
1684
|
-
"env": "RESPAN_API_KEY",
|
|
1685
|
-
"name": "api-key",
|
|
1681
|
+
},
|
|
1682
|
+
"span-name": {
|
|
1683
|
+
"description": "Root span name for traces (default: claude-code)",
|
|
1684
|
+
"name": "span-name",
|
|
1686
1685
|
"hasDynamicHelp": false,
|
|
1687
1686
|
"multiple": false,
|
|
1688
1687
|
"type": "option"
|
|
1689
1688
|
},
|
|
1690
|
-
"
|
|
1691
|
-
"description": "
|
|
1692
|
-
"name": "
|
|
1689
|
+
"workflow-name": {
|
|
1690
|
+
"description": "Workflow name for traces (default: claude-code)",
|
|
1691
|
+
"name": "workflow-name",
|
|
1693
1692
|
"hasDynamicHelp": false,
|
|
1694
1693
|
"multiple": false,
|
|
1695
1694
|
"type": "option"
|
|
1696
1695
|
},
|
|
1697
|
-
"
|
|
1698
|
-
"description": "
|
|
1699
|
-
"name": "
|
|
1700
|
-
"allowNo": false,
|
|
1701
|
-
"type": "boolean"
|
|
1702
|
-
},
|
|
1703
|
-
"csv": {
|
|
1704
|
-
"description": "Output as CSV",
|
|
1705
|
-
"name": "csv",
|
|
1706
|
-
"allowNo": false,
|
|
1707
|
-
"type": "boolean"
|
|
1708
|
-
},
|
|
1709
|
-
"verbose": {
|
|
1710
|
-
"char": "v",
|
|
1711
|
-
"description": "Show verbose output",
|
|
1712
|
-
"name": "verbose",
|
|
1696
|
+
"dry-run": {
|
|
1697
|
+
"description": "Preview changes without writing files",
|
|
1698
|
+
"name": "dry-run",
|
|
1713
1699
|
"allowNo": false,
|
|
1714
1700
|
"type": "boolean"
|
|
1715
1701
|
}
|
|
1716
1702
|
},
|
|
1717
1703
|
"hasDynamicHelp": false,
|
|
1718
1704
|
"hiddenAliases": [],
|
|
1719
|
-
"id": "
|
|
1705
|
+
"id": "integrate:claude-code",
|
|
1720
1706
|
"pluginAlias": "@respan/cli",
|
|
1721
1707
|
"pluginName": "@respan/cli",
|
|
1722
1708
|
"pluginType": "core",
|
|
@@ -1726,14 +1712,21 @@
|
|
|
1726
1712
|
"relativePath": [
|
|
1727
1713
|
"dist",
|
|
1728
1714
|
"commands",
|
|
1729
|
-
"
|
|
1730
|
-
"
|
|
1715
|
+
"integrate",
|
|
1716
|
+
"claude-code.js"
|
|
1731
1717
|
]
|
|
1732
1718
|
},
|
|
1733
|
-
"
|
|
1719
|
+
"integrate:codex-cli": {
|
|
1734
1720
|
"aliases": [],
|
|
1735
1721
|
"args": {},
|
|
1736
|
-
"description": "
|
|
1722
|
+
"description": "Integrate Respan with Codex CLI.\n\nInstalls a notify hook that reads session JSONL files and sends\nthem to Respan as structured spans (chat, tool, reasoning).\n\nScope:\n --global Install hook script + register notify in ~/.codex/config.toml\n --local Write .codex/respan.json with customer_id, span_name, etc.\n (default) Both: install hook globally + config for current project",
|
|
1723
|
+
"examples": [
|
|
1724
|
+
"respan integrate codex-cli",
|
|
1725
|
+
"respan integrate codex-cli --global",
|
|
1726
|
+
"respan integrate codex-cli --local --customer-id frank",
|
|
1727
|
+
"respan integrate codex-cli --attrs '{\"env\":\"prod\"}'",
|
|
1728
|
+
"respan integrate codex-cli --dry-run"
|
|
1729
|
+
],
|
|
1737
1730
|
"flags": {
|
|
1738
1731
|
"api-key": {
|
|
1739
1732
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -1769,75 +1762,80 @@
|
|
|
1769
1762
|
"allowNo": false,
|
|
1770
1763
|
"type": "boolean"
|
|
1771
1764
|
},
|
|
1772
|
-
"
|
|
1773
|
-
"description": "
|
|
1774
|
-
"
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
"
|
|
1778
|
-
"
|
|
1765
|
+
"local": {
|
|
1766
|
+
"description": "Write per-project config (default)",
|
|
1767
|
+
"exclusive": [
|
|
1768
|
+
"global"
|
|
1769
|
+
],
|
|
1770
|
+
"name": "local",
|
|
1771
|
+
"allowNo": false,
|
|
1772
|
+
"type": "boolean"
|
|
1779
1773
|
},
|
|
1780
|
-
"
|
|
1781
|
-
"description": "
|
|
1782
|
-
"
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
"
|
|
1786
|
-
"
|
|
1774
|
+
"global": {
|
|
1775
|
+
"description": "Write user-level global config",
|
|
1776
|
+
"exclusive": [
|
|
1777
|
+
"local"
|
|
1778
|
+
],
|
|
1779
|
+
"name": "global",
|
|
1780
|
+
"allowNo": false,
|
|
1781
|
+
"type": "boolean"
|
|
1787
1782
|
},
|
|
1788
|
-
"
|
|
1789
|
-
"description": "
|
|
1790
|
-
"
|
|
1783
|
+
"project-id": {
|
|
1784
|
+
"description": "Respan project ID (added to metadata / resource attributes)",
|
|
1785
|
+
"env": "RESPAN_PROJECT_ID",
|
|
1786
|
+
"name": "project-id",
|
|
1791
1787
|
"hasDynamicHelp": false,
|
|
1792
1788
|
"multiple": false,
|
|
1793
1789
|
"type": "option"
|
|
1794
1790
|
},
|
|
1795
|
-
"
|
|
1796
|
-
"description": "
|
|
1797
|
-
"name": "
|
|
1791
|
+
"base-url": {
|
|
1792
|
+
"description": "Respan API base URL (for enterprise deployments)",
|
|
1793
|
+
"name": "base-url",
|
|
1794
|
+
"default": "https://api.respan.ai/api",
|
|
1798
1795
|
"hasDynamicHelp": false,
|
|
1799
1796
|
"multiple": false,
|
|
1800
1797
|
"type": "option"
|
|
1801
1798
|
},
|
|
1802
|
-
"
|
|
1803
|
-
"description": "
|
|
1804
|
-
"name": "
|
|
1799
|
+
"attrs": {
|
|
1800
|
+
"description": "Custom attributes JSON (e.g. '{\"env\":\"prod\"}')",
|
|
1801
|
+
"name": "attrs",
|
|
1802
|
+
"default": "{}",
|
|
1805
1803
|
"hasDynamicHelp": false,
|
|
1806
1804
|
"multiple": false,
|
|
1807
1805
|
"type": "option"
|
|
1808
1806
|
},
|
|
1809
|
-
"
|
|
1810
|
-
"description": "
|
|
1811
|
-
"
|
|
1812
|
-
"
|
|
1813
|
-
"multiple": true,
|
|
1814
|
-
"type": "option"
|
|
1815
|
-
},
|
|
1816
|
-
"all-envs": {
|
|
1817
|
-
"description": "Include all environments (true/false)",
|
|
1818
|
-
"name": "all-envs",
|
|
1807
|
+
"customer-id": {
|
|
1808
|
+
"description": "Customer/user identifier for traces (e.g. your name or email)",
|
|
1809
|
+
"env": "RESPAN_CUSTOMER_ID",
|
|
1810
|
+
"name": "customer-id",
|
|
1819
1811
|
"hasDynamicHelp": false,
|
|
1820
1812
|
"multiple": false,
|
|
1821
1813
|
"type": "option"
|
|
1822
1814
|
},
|
|
1823
|
-
"
|
|
1824
|
-
"description": "
|
|
1825
|
-
"name": "
|
|
1815
|
+
"span-name": {
|
|
1816
|
+
"description": "Root span name for traces (default: claude-code)",
|
|
1817
|
+
"name": "span-name",
|
|
1826
1818
|
"hasDynamicHelp": false,
|
|
1827
1819
|
"multiple": false,
|
|
1828
1820
|
"type": "option"
|
|
1829
1821
|
},
|
|
1830
|
-
"
|
|
1831
|
-
"description": "
|
|
1832
|
-
"name": "
|
|
1822
|
+
"workflow-name": {
|
|
1823
|
+
"description": "Workflow name for traces (default: claude-code)",
|
|
1824
|
+
"name": "workflow-name",
|
|
1833
1825
|
"hasDynamicHelp": false,
|
|
1834
1826
|
"multiple": false,
|
|
1835
1827
|
"type": "option"
|
|
1828
|
+
},
|
|
1829
|
+
"dry-run": {
|
|
1830
|
+
"description": "Preview changes without writing files",
|
|
1831
|
+
"name": "dry-run",
|
|
1832
|
+
"allowNo": false,
|
|
1833
|
+
"type": "boolean"
|
|
1836
1834
|
}
|
|
1837
1835
|
},
|
|
1838
1836
|
"hasDynamicHelp": false,
|
|
1839
1837
|
"hiddenAliases": [],
|
|
1840
|
-
"id": "
|
|
1838
|
+
"id": "integrate:codex-cli",
|
|
1841
1839
|
"pluginAlias": "@respan/cli",
|
|
1842
1840
|
"pluginName": "@respan/cli",
|
|
1843
1841
|
"pluginType": "core",
|
|
@@ -1847,14 +1845,20 @@
|
|
|
1847
1845
|
"relativePath": [
|
|
1848
1846
|
"dist",
|
|
1849
1847
|
"commands",
|
|
1850
|
-
"
|
|
1851
|
-
"
|
|
1848
|
+
"integrate",
|
|
1849
|
+
"codex-cli.js"
|
|
1852
1850
|
]
|
|
1853
1851
|
},
|
|
1854
|
-
"
|
|
1852
|
+
"integrate:gemini-cli": {
|
|
1855
1853
|
"aliases": [],
|
|
1856
1854
|
"args": {},
|
|
1857
|
-
"description": "
|
|
1855
|
+
"description": "Integrate Respan with Gemini CLI.\n\nInstalls an AfterModel hook that captures LLM request/response data\nand sends it to Respan as structured spans with model, token counts,\nand input/output.\n\nScope:\n --global Write to ~/.gemini/settings.json (default)\n --local Write to .gemini/settings.json in project root\n\nNote: Gemini CLI ignores workspace-level telemetry settings, so\n--global is the default.",
|
|
1856
|
+
"examples": [
|
|
1857
|
+
"respan integrate gemini-cli",
|
|
1858
|
+
"respan integrate gemini-cli --local",
|
|
1859
|
+
"respan integrate gemini-cli --project-id my-project --attrs '{\"env\":\"prod\"}'",
|
|
1860
|
+
"respan integrate gemini-cli --dry-run"
|
|
1861
|
+
],
|
|
1858
1862
|
"flags": {
|
|
1859
1863
|
"api-key": {
|
|
1860
1864
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -1890,47 +1894,80 @@
|
|
|
1890
1894
|
"allowNo": false,
|
|
1891
1895
|
"type": "boolean"
|
|
1892
1896
|
},
|
|
1893
|
-
"
|
|
1894
|
-
"description": "
|
|
1895
|
-
"
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
"
|
|
1899
|
-
"
|
|
1897
|
+
"local": {
|
|
1898
|
+
"description": "Write per-project config (default)",
|
|
1899
|
+
"exclusive": [
|
|
1900
|
+
"global"
|
|
1901
|
+
],
|
|
1902
|
+
"name": "local",
|
|
1903
|
+
"allowNo": false,
|
|
1904
|
+
"type": "boolean"
|
|
1900
1905
|
},
|
|
1901
|
-
"
|
|
1902
|
-
"description": "
|
|
1903
|
-
"
|
|
1904
|
-
|
|
1906
|
+
"global": {
|
|
1907
|
+
"description": "Write user-level global config",
|
|
1908
|
+
"exclusive": [
|
|
1909
|
+
"local"
|
|
1910
|
+
],
|
|
1911
|
+
"name": "global",
|
|
1912
|
+
"allowNo": false,
|
|
1913
|
+
"type": "boolean"
|
|
1914
|
+
},
|
|
1915
|
+
"project-id": {
|
|
1916
|
+
"description": "Respan project ID (added to metadata / resource attributes)",
|
|
1917
|
+
"env": "RESPAN_PROJECT_ID",
|
|
1918
|
+
"name": "project-id",
|
|
1905
1919
|
"hasDynamicHelp": false,
|
|
1906
1920
|
"multiple": false,
|
|
1907
1921
|
"type": "option"
|
|
1908
1922
|
},
|
|
1909
|
-
"
|
|
1910
|
-
"description": "
|
|
1911
|
-
"name": "
|
|
1923
|
+
"base-url": {
|
|
1924
|
+
"description": "Respan API base URL (for enterprise deployments)",
|
|
1925
|
+
"name": "base-url",
|
|
1926
|
+
"default": "https://api.respan.ai/api",
|
|
1912
1927
|
"hasDynamicHelp": false,
|
|
1913
|
-
"multiple":
|
|
1928
|
+
"multiple": false,
|
|
1914
1929
|
"type": "option"
|
|
1915
1930
|
},
|
|
1916
|
-
"
|
|
1917
|
-
"description": "
|
|
1918
|
-
"name": "
|
|
1931
|
+
"attrs": {
|
|
1932
|
+
"description": "Custom attributes JSON (e.g. '{\"env\":\"prod\"}')",
|
|
1933
|
+
"name": "attrs",
|
|
1934
|
+
"default": "{}",
|
|
1919
1935
|
"hasDynamicHelp": false,
|
|
1920
1936
|
"multiple": false,
|
|
1921
1937
|
"type": "option"
|
|
1922
1938
|
},
|
|
1923
|
-
"
|
|
1924
|
-
"description": "
|
|
1925
|
-
"
|
|
1939
|
+
"customer-id": {
|
|
1940
|
+
"description": "Customer/user identifier for traces (e.g. your name or email)",
|
|
1941
|
+
"env": "RESPAN_CUSTOMER_ID",
|
|
1942
|
+
"name": "customer-id",
|
|
1943
|
+
"hasDynamicHelp": false,
|
|
1944
|
+
"multiple": false,
|
|
1945
|
+
"type": "option"
|
|
1946
|
+
},
|
|
1947
|
+
"span-name": {
|
|
1948
|
+
"description": "Root span name for traces (default: claude-code)",
|
|
1949
|
+
"name": "span-name",
|
|
1950
|
+
"hasDynamicHelp": false,
|
|
1951
|
+
"multiple": false,
|
|
1952
|
+
"type": "option"
|
|
1953
|
+
},
|
|
1954
|
+
"workflow-name": {
|
|
1955
|
+
"description": "Workflow name for traces (default: claude-code)",
|
|
1956
|
+
"name": "workflow-name",
|
|
1926
1957
|
"hasDynamicHelp": false,
|
|
1927
1958
|
"multiple": false,
|
|
1928
1959
|
"type": "option"
|
|
1960
|
+
},
|
|
1961
|
+
"dry-run": {
|
|
1962
|
+
"description": "Preview changes without writing files",
|
|
1963
|
+
"name": "dry-run",
|
|
1964
|
+
"allowNo": false,
|
|
1965
|
+
"type": "boolean"
|
|
1929
1966
|
}
|
|
1930
1967
|
},
|
|
1931
1968
|
"hasDynamicHelp": false,
|
|
1932
1969
|
"hiddenAliases": [],
|
|
1933
|
-
"id": "
|
|
1970
|
+
"id": "integrate:gemini-cli",
|
|
1934
1971
|
"pluginAlias": "@respan/cli",
|
|
1935
1972
|
"pluginName": "@respan/cli",
|
|
1936
1973
|
"pluginType": "core",
|
|
@@ -1940,8 +1977,140 @@
|
|
|
1940
1977
|
"relativePath": [
|
|
1941
1978
|
"dist",
|
|
1942
1979
|
"commands",
|
|
1943
|
-
"
|
|
1944
|
-
"
|
|
1980
|
+
"integrate",
|
|
1981
|
+
"gemini-cli.js"
|
|
1982
|
+
]
|
|
1983
|
+
},
|
|
1984
|
+
"integrate:opencode": {
|
|
1985
|
+
"aliases": [],
|
|
1986
|
+
"args": {},
|
|
1987
|
+
"description": "Integrate Respan with OpenCode.\n\nOpenCode's built-in OTel does not work reliably, so this uses the\ncommunity opencode-otel plugin instead.\n\nScope:\n --local Write plugin config to project root (default)\n --global Write to ~/.config/opencode/plugins/otel.json\n The opencode-otel package is always installed globally.",
|
|
1988
|
+
"examples": [
|
|
1989
|
+
"respan integrate opencode",
|
|
1990
|
+
"respan integrate opencode --global",
|
|
1991
|
+
"respan integrate opencode --project-id my-project --attrs '{\"env\":\"prod\"}'",
|
|
1992
|
+
"respan integrate opencode --dry-run"
|
|
1993
|
+
],
|
|
1994
|
+
"flags": {
|
|
1995
|
+
"api-key": {
|
|
1996
|
+
"description": "API key (env: RESPAN_API_KEY)",
|
|
1997
|
+
"env": "RESPAN_API_KEY",
|
|
1998
|
+
"name": "api-key",
|
|
1999
|
+
"hasDynamicHelp": false,
|
|
2000
|
+
"multiple": false,
|
|
2001
|
+
"type": "option"
|
|
2002
|
+
},
|
|
2003
|
+
"profile": {
|
|
2004
|
+
"description": "Named profile to use",
|
|
2005
|
+
"name": "profile",
|
|
2006
|
+
"hasDynamicHelp": false,
|
|
2007
|
+
"multiple": false,
|
|
2008
|
+
"type": "option"
|
|
2009
|
+
},
|
|
2010
|
+
"json": {
|
|
2011
|
+
"description": "Output as JSON",
|
|
2012
|
+
"name": "json",
|
|
2013
|
+
"allowNo": false,
|
|
2014
|
+
"type": "boolean"
|
|
2015
|
+
},
|
|
2016
|
+
"csv": {
|
|
2017
|
+
"description": "Output as CSV",
|
|
2018
|
+
"name": "csv",
|
|
2019
|
+
"allowNo": false,
|
|
2020
|
+
"type": "boolean"
|
|
2021
|
+
},
|
|
2022
|
+
"verbose": {
|
|
2023
|
+
"char": "v",
|
|
2024
|
+
"description": "Show verbose output",
|
|
2025
|
+
"name": "verbose",
|
|
2026
|
+
"allowNo": false,
|
|
2027
|
+
"type": "boolean"
|
|
2028
|
+
},
|
|
2029
|
+
"local": {
|
|
2030
|
+
"description": "Write per-project config (default)",
|
|
2031
|
+
"exclusive": [
|
|
2032
|
+
"global"
|
|
2033
|
+
],
|
|
2034
|
+
"name": "local",
|
|
2035
|
+
"allowNo": false,
|
|
2036
|
+
"type": "boolean"
|
|
2037
|
+
},
|
|
2038
|
+
"global": {
|
|
2039
|
+
"description": "Write user-level global config",
|
|
2040
|
+
"exclusive": [
|
|
2041
|
+
"local"
|
|
2042
|
+
],
|
|
2043
|
+
"name": "global",
|
|
2044
|
+
"allowNo": false,
|
|
2045
|
+
"type": "boolean"
|
|
2046
|
+
},
|
|
2047
|
+
"project-id": {
|
|
2048
|
+
"description": "Respan project ID (added to metadata / resource attributes)",
|
|
2049
|
+
"env": "RESPAN_PROJECT_ID",
|
|
2050
|
+
"name": "project-id",
|
|
2051
|
+
"hasDynamicHelp": false,
|
|
2052
|
+
"multiple": false,
|
|
2053
|
+
"type": "option"
|
|
2054
|
+
},
|
|
2055
|
+
"base-url": {
|
|
2056
|
+
"description": "Respan API base URL (for enterprise deployments)",
|
|
2057
|
+
"name": "base-url",
|
|
2058
|
+
"default": "https://api.respan.ai/api",
|
|
2059
|
+
"hasDynamicHelp": false,
|
|
2060
|
+
"multiple": false,
|
|
2061
|
+
"type": "option"
|
|
2062
|
+
},
|
|
2063
|
+
"attrs": {
|
|
2064
|
+
"description": "Custom attributes JSON (e.g. '{\"env\":\"prod\"}')",
|
|
2065
|
+
"name": "attrs",
|
|
2066
|
+
"default": "{}",
|
|
2067
|
+
"hasDynamicHelp": false,
|
|
2068
|
+
"multiple": false,
|
|
2069
|
+
"type": "option"
|
|
2070
|
+
},
|
|
2071
|
+
"customer-id": {
|
|
2072
|
+
"description": "Customer/user identifier for traces (e.g. your name or email)",
|
|
2073
|
+
"env": "RESPAN_CUSTOMER_ID",
|
|
2074
|
+
"name": "customer-id",
|
|
2075
|
+
"hasDynamicHelp": false,
|
|
2076
|
+
"multiple": false,
|
|
2077
|
+
"type": "option"
|
|
2078
|
+
},
|
|
2079
|
+
"span-name": {
|
|
2080
|
+
"description": "Root span name for traces (default: claude-code)",
|
|
2081
|
+
"name": "span-name",
|
|
2082
|
+
"hasDynamicHelp": false,
|
|
2083
|
+
"multiple": false,
|
|
2084
|
+
"type": "option"
|
|
2085
|
+
},
|
|
2086
|
+
"workflow-name": {
|
|
2087
|
+
"description": "Workflow name for traces (default: claude-code)",
|
|
2088
|
+
"name": "workflow-name",
|
|
2089
|
+
"hasDynamicHelp": false,
|
|
2090
|
+
"multiple": false,
|
|
2091
|
+
"type": "option"
|
|
2092
|
+
},
|
|
2093
|
+
"dry-run": {
|
|
2094
|
+
"description": "Preview changes without writing files",
|
|
2095
|
+
"name": "dry-run",
|
|
2096
|
+
"allowNo": false,
|
|
2097
|
+
"type": "boolean"
|
|
2098
|
+
}
|
|
2099
|
+
},
|
|
2100
|
+
"hasDynamicHelp": false,
|
|
2101
|
+
"hiddenAliases": [],
|
|
2102
|
+
"id": "integrate:opencode",
|
|
2103
|
+
"pluginAlias": "@respan/cli",
|
|
2104
|
+
"pluginName": "@respan/cli",
|
|
2105
|
+
"pluginType": "core",
|
|
2106
|
+
"strict": true,
|
|
2107
|
+
"enableJsonFlag": false,
|
|
2108
|
+
"isESM": true,
|
|
2109
|
+
"relativePath": [
|
|
2110
|
+
"dist",
|
|
2111
|
+
"commands",
|
|
2112
|
+
"integrate",
|
|
2113
|
+
"opencode.js"
|
|
1945
2114
|
]
|
|
1946
2115
|
},
|
|
1947
2116
|
"prompts:create-version": {
|
|
@@ -2370,10 +2539,16 @@
|
|
|
2370
2539
|
"versions.js"
|
|
2371
2540
|
]
|
|
2372
2541
|
},
|
|
2373
|
-
"
|
|
2542
|
+
"traces:get": {
|
|
2374
2543
|
"aliases": [],
|
|
2375
|
-
"args": {
|
|
2376
|
-
|
|
2544
|
+
"args": {
|
|
2545
|
+
"id": {
|
|
2546
|
+
"description": "Trace ID",
|
|
2547
|
+
"name": "id",
|
|
2548
|
+
"required": true
|
|
2549
|
+
}
|
|
2550
|
+
},
|
|
2551
|
+
"description": "Get a specific trace",
|
|
2377
2552
|
"flags": {
|
|
2378
2553
|
"api-key": {
|
|
2379
2554
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -2408,40 +2583,11 @@
|
|
|
2408
2583
|
"name": "verbose",
|
|
2409
2584
|
"allowNo": false,
|
|
2410
2585
|
"type": "boolean"
|
|
2411
|
-
},
|
|
2412
|
-
"identifier": {
|
|
2413
|
-
"description": "Customer identifier",
|
|
2414
|
-
"name": "identifier",
|
|
2415
|
-
"required": true,
|
|
2416
|
-
"hasDynamicHelp": false,
|
|
2417
|
-
"multiple": false,
|
|
2418
|
-
"type": "option"
|
|
2419
|
-
},
|
|
2420
|
-
"name": {
|
|
2421
|
-
"description": "Customer name",
|
|
2422
|
-
"name": "name",
|
|
2423
|
-
"hasDynamicHelp": false,
|
|
2424
|
-
"multiple": false,
|
|
2425
|
-
"type": "option"
|
|
2426
|
-
},
|
|
2427
|
-
"email": {
|
|
2428
|
-
"description": "Customer email",
|
|
2429
|
-
"name": "email",
|
|
2430
|
-
"hasDynamicHelp": false,
|
|
2431
|
-
"multiple": false,
|
|
2432
|
-
"type": "option"
|
|
2433
|
-
},
|
|
2434
|
-
"metadata": {
|
|
2435
|
-
"description": "Metadata as JSON string",
|
|
2436
|
-
"name": "metadata",
|
|
2437
|
-
"hasDynamicHelp": false,
|
|
2438
|
-
"multiple": false,
|
|
2439
|
-
"type": "option"
|
|
2440
2586
|
}
|
|
2441
2587
|
},
|
|
2442
2588
|
"hasDynamicHelp": false,
|
|
2443
2589
|
"hiddenAliases": [],
|
|
2444
|
-
"id": "
|
|
2590
|
+
"id": "traces:get",
|
|
2445
2591
|
"pluginAlias": "@respan/cli",
|
|
2446
2592
|
"pluginName": "@respan/cli",
|
|
2447
2593
|
"pluginType": "core",
|
|
@@ -2451,20 +2597,14 @@
|
|
|
2451
2597
|
"relativePath": [
|
|
2452
2598
|
"dist",
|
|
2453
2599
|
"commands",
|
|
2454
|
-
"
|
|
2455
|
-
"
|
|
2600
|
+
"traces",
|
|
2601
|
+
"get.js"
|
|
2456
2602
|
]
|
|
2457
2603
|
},
|
|
2458
|
-
"
|
|
2604
|
+
"traces:list": {
|
|
2459
2605
|
"aliases": [],
|
|
2460
|
-
"args": {
|
|
2461
|
-
|
|
2462
|
-
"description": "Customer identifier",
|
|
2463
|
-
"name": "id",
|
|
2464
|
-
"required": true
|
|
2465
|
-
}
|
|
2466
|
-
},
|
|
2467
|
-
"description": "Get a specific user (customer)",
|
|
2606
|
+
"args": {},
|
|
2607
|
+
"description": "List and filter traces.\n\nA trace represents a complete workflow execution containing multiple spans.\n\nFILTER SYNTAX: field:operator:value\n\nOPERATORS:\n (empty) Exact match model::gpt-4\n not Not equal status_code:not:200\n gt Greater than cost:gt:0.01\n gte Greater than/equal latency:gte:1.0\n lt Less than cost:lt:0.5\n lte Less than/equal prompt_tokens:lte:100\n contains Contains substring error_message:contains:timeout\n icontains Case-insensitive model:icontains:gpt\n startswith Starts with model:startswith:gpt\n endswith Ends with model:endswith:mini\n in Value in list model:in:gpt-4,gpt-4o\n isnull Is null error_message:isnull:true\n iexact Case-insens. exact status:iexact:success\n\nFILTERABLE FIELDS (traces):\n trace_unique_id, customer_identifier, environment, span_count,\n llm_call_count, error_count, total_cost, total_tokens,\n total_prompt_tokens, total_completion_tokens, duration,\n span_workflow_name, metadata__<key>\n\nEXAMPLES:\n --filter model::gpt-4o --filter cost:gt:0.01\n --filter status_code:not:200\n --filter metadata__env::production\n --filter model:in:gpt-4,gpt-4o",
|
|
2468
2608
|
"flags": {
|
|
2469
2609
|
"api-key": {
|
|
2470
2610
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -2499,11 +2639,63 @@
|
|
|
2499
2639
|
"name": "verbose",
|
|
2500
2640
|
"allowNo": false,
|
|
2501
2641
|
"type": "boolean"
|
|
2642
|
+
},
|
|
2643
|
+
"limit": {
|
|
2644
|
+
"description": "Number of results per page",
|
|
2645
|
+
"name": "limit",
|
|
2646
|
+
"default": 10,
|
|
2647
|
+
"hasDynamicHelp": false,
|
|
2648
|
+
"multiple": false,
|
|
2649
|
+
"type": "option"
|
|
2650
|
+
},
|
|
2651
|
+
"page": {
|
|
2652
|
+
"description": "Page number",
|
|
2653
|
+
"name": "page",
|
|
2654
|
+
"default": 1,
|
|
2655
|
+
"hasDynamicHelp": false,
|
|
2656
|
+
"multiple": false,
|
|
2657
|
+
"type": "option"
|
|
2658
|
+
},
|
|
2659
|
+
"sort-by": {
|
|
2660
|
+
"description": "Sort field (prefix with - for descending)",
|
|
2661
|
+
"name": "sort-by",
|
|
2662
|
+
"default": "-timestamp",
|
|
2663
|
+
"hasDynamicHelp": false,
|
|
2664
|
+
"multiple": false,
|
|
2665
|
+
"type": "option"
|
|
2666
|
+
},
|
|
2667
|
+
"start-time": {
|
|
2668
|
+
"description": "Start time filter (ISO 8601)",
|
|
2669
|
+
"name": "start-time",
|
|
2670
|
+
"hasDynamicHelp": false,
|
|
2671
|
+
"multiple": false,
|
|
2672
|
+
"type": "option"
|
|
2673
|
+
},
|
|
2674
|
+
"end-time": {
|
|
2675
|
+
"description": "End time filter (ISO 8601)",
|
|
2676
|
+
"name": "end-time",
|
|
2677
|
+
"hasDynamicHelp": false,
|
|
2678
|
+
"multiple": false,
|
|
2679
|
+
"type": "option"
|
|
2680
|
+
},
|
|
2681
|
+
"environment": {
|
|
2682
|
+
"description": "Environment filter",
|
|
2683
|
+
"name": "environment",
|
|
2684
|
+
"hasDynamicHelp": false,
|
|
2685
|
+
"multiple": false,
|
|
2686
|
+
"type": "option"
|
|
2687
|
+
},
|
|
2688
|
+
"filter": {
|
|
2689
|
+
"description": "Filter in field:operator:value format (repeatable)",
|
|
2690
|
+
"name": "filter",
|
|
2691
|
+
"hasDynamicHelp": false,
|
|
2692
|
+
"multiple": true,
|
|
2693
|
+
"type": "option"
|
|
2502
2694
|
}
|
|
2503
2695
|
},
|
|
2504
2696
|
"hasDynamicHelp": false,
|
|
2505
2697
|
"hiddenAliases": [],
|
|
2506
|
-
"id": "
|
|
2698
|
+
"id": "traces:list",
|
|
2507
2699
|
"pluginAlias": "@respan/cli",
|
|
2508
2700
|
"pluginName": "@respan/cli",
|
|
2509
2701
|
"pluginType": "core",
|
|
@@ -2513,14 +2705,14 @@
|
|
|
2513
2705
|
"relativePath": [
|
|
2514
2706
|
"dist",
|
|
2515
2707
|
"commands",
|
|
2516
|
-
"
|
|
2517
|
-
"
|
|
2708
|
+
"traces",
|
|
2709
|
+
"list.js"
|
|
2518
2710
|
]
|
|
2519
2711
|
},
|
|
2520
|
-
"
|
|
2712
|
+
"traces:summary": {
|
|
2521
2713
|
"aliases": [],
|
|
2522
2714
|
"args": {},
|
|
2523
|
-
"description": "
|
|
2715
|
+
"description": "Get a summary of traces for a time range",
|
|
2524
2716
|
"flags": {
|
|
2525
2717
|
"api-key": {
|
|
2526
2718
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -2556,32 +2748,18 @@
|
|
|
2556
2748
|
"allowNo": false,
|
|
2557
2749
|
"type": "boolean"
|
|
2558
2750
|
},
|
|
2559
|
-
"
|
|
2560
|
-
"description": "
|
|
2561
|
-
"name": "
|
|
2562
|
-
"
|
|
2563
|
-
"hasDynamicHelp": false,
|
|
2564
|
-
"multiple": false,
|
|
2565
|
-
"type": "option"
|
|
2566
|
-
},
|
|
2567
|
-
"page": {
|
|
2568
|
-
"description": "Page number",
|
|
2569
|
-
"name": "page",
|
|
2570
|
-
"default": 1,
|
|
2571
|
-
"hasDynamicHelp": false,
|
|
2572
|
-
"multiple": false,
|
|
2573
|
-
"type": "option"
|
|
2574
|
-
},
|
|
2575
|
-
"sort-by": {
|
|
2576
|
-
"description": "Sort field",
|
|
2577
|
-
"name": "sort-by",
|
|
2751
|
+
"start-time": {
|
|
2752
|
+
"description": "Start time (ISO 8601)",
|
|
2753
|
+
"name": "start-time",
|
|
2754
|
+
"required": true,
|
|
2578
2755
|
"hasDynamicHelp": false,
|
|
2579
2756
|
"multiple": false,
|
|
2580
2757
|
"type": "option"
|
|
2581
2758
|
},
|
|
2582
|
-
"
|
|
2583
|
-
"description": "
|
|
2584
|
-
"name": "
|
|
2759
|
+
"end-time": {
|
|
2760
|
+
"description": "End time (ISO 8601)",
|
|
2761
|
+
"name": "end-time",
|
|
2762
|
+
"required": true,
|
|
2585
2763
|
"hasDynamicHelp": false,
|
|
2586
2764
|
"multiple": false,
|
|
2587
2765
|
"type": "option"
|
|
@@ -2589,7 +2767,7 @@
|
|
|
2589
2767
|
},
|
|
2590
2768
|
"hasDynamicHelp": false,
|
|
2591
2769
|
"hiddenAliases": [],
|
|
2592
|
-
"id": "
|
|
2770
|
+
"id": "traces:summary",
|
|
2593
2771
|
"pluginAlias": "@respan/cli",
|
|
2594
2772
|
"pluginName": "@respan/cli",
|
|
2595
2773
|
"pluginType": "core",
|
|
@@ -2599,20 +2777,14 @@
|
|
|
2599
2777
|
"relativePath": [
|
|
2600
2778
|
"dist",
|
|
2601
2779
|
"commands",
|
|
2602
|
-
"
|
|
2603
|
-
"
|
|
2780
|
+
"traces",
|
|
2781
|
+
"summary.js"
|
|
2604
2782
|
]
|
|
2605
2783
|
},
|
|
2606
|
-
"users:
|
|
2784
|
+
"users:create": {
|
|
2607
2785
|
"aliases": [],
|
|
2608
|
-
"args": {
|
|
2609
|
-
|
|
2610
|
-
"description": "Customer identifier",
|
|
2611
|
-
"name": "id",
|
|
2612
|
-
"required": true
|
|
2613
|
-
}
|
|
2614
|
-
},
|
|
2615
|
-
"description": "Update a user (customer)",
|
|
2786
|
+
"args": {},
|
|
2787
|
+
"description": "Create a new user (customer)",
|
|
2616
2788
|
"flags": {
|
|
2617
2789
|
"api-key": {
|
|
2618
2790
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -2648,6 +2820,14 @@
|
|
|
2648
2820
|
"allowNo": false,
|
|
2649
2821
|
"type": "boolean"
|
|
2650
2822
|
},
|
|
2823
|
+
"identifier": {
|
|
2824
|
+
"description": "Customer identifier",
|
|
2825
|
+
"name": "identifier",
|
|
2826
|
+
"required": true,
|
|
2827
|
+
"hasDynamicHelp": false,
|
|
2828
|
+
"multiple": false,
|
|
2829
|
+
"type": "option"
|
|
2830
|
+
},
|
|
2651
2831
|
"name": {
|
|
2652
2832
|
"description": "Customer name",
|
|
2653
2833
|
"name": "name",
|
|
@@ -2672,7 +2852,7 @@
|
|
|
2672
2852
|
},
|
|
2673
2853
|
"hasDynamicHelp": false,
|
|
2674
2854
|
"hiddenAliases": [],
|
|
2675
|
-
"id": "users:
|
|
2855
|
+
"id": "users:create",
|
|
2676
2856
|
"pluginAlias": "@respan/cli",
|
|
2677
2857
|
"pluginName": "@respan/cli",
|
|
2678
2858
|
"pluginType": "core",
|
|
@@ -2683,19 +2863,19 @@
|
|
|
2683
2863
|
"dist",
|
|
2684
2864
|
"commands",
|
|
2685
2865
|
"users",
|
|
2686
|
-
"
|
|
2866
|
+
"create.js"
|
|
2687
2867
|
]
|
|
2688
2868
|
},
|
|
2689
|
-
"
|
|
2869
|
+
"users:get": {
|
|
2690
2870
|
"aliases": [],
|
|
2691
2871
|
"args": {
|
|
2692
2872
|
"id": {
|
|
2693
|
-
"description": "
|
|
2873
|
+
"description": "Customer identifier",
|
|
2694
2874
|
"name": "id",
|
|
2695
2875
|
"required": true
|
|
2696
2876
|
}
|
|
2697
2877
|
},
|
|
2698
|
-
"description": "Get a specific
|
|
2878
|
+
"description": "Get a specific user (customer)",
|
|
2699
2879
|
"flags": {
|
|
2700
2880
|
"api-key": {
|
|
2701
2881
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -2734,7 +2914,7 @@
|
|
|
2734
2914
|
},
|
|
2735
2915
|
"hasDynamicHelp": false,
|
|
2736
2916
|
"hiddenAliases": [],
|
|
2737
|
-
"id": "
|
|
2917
|
+
"id": "users:get",
|
|
2738
2918
|
"pluginAlias": "@respan/cli",
|
|
2739
2919
|
"pluginName": "@respan/cli",
|
|
2740
2920
|
"pluginType": "core",
|
|
@@ -2744,14 +2924,14 @@
|
|
|
2744
2924
|
"relativePath": [
|
|
2745
2925
|
"dist",
|
|
2746
2926
|
"commands",
|
|
2747
|
-
"
|
|
2927
|
+
"users",
|
|
2748
2928
|
"get.js"
|
|
2749
2929
|
]
|
|
2750
2930
|
},
|
|
2751
|
-
"
|
|
2931
|
+
"users:list": {
|
|
2752
2932
|
"aliases": [],
|
|
2753
2933
|
"args": {},
|
|
2754
|
-
"description": "List
|
|
2934
|
+
"description": "List users (customers)",
|
|
2755
2935
|
"flags": {
|
|
2756
2936
|
"api-key": {
|
|
2757
2937
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -2790,7 +2970,7 @@
|
|
|
2790
2970
|
"limit": {
|
|
2791
2971
|
"description": "Number of results per page",
|
|
2792
2972
|
"name": "limit",
|
|
2793
|
-
"default":
|
|
2973
|
+
"default": 20,
|
|
2794
2974
|
"hasDynamicHelp": false,
|
|
2795
2975
|
"multiple": false,
|
|
2796
2976
|
"type": "option"
|
|
@@ -2804,23 +2984,8 @@
|
|
|
2804
2984
|
"type": "option"
|
|
2805
2985
|
},
|
|
2806
2986
|
"sort-by": {
|
|
2807
|
-
"description": "Sort field
|
|
2987
|
+
"description": "Sort field",
|
|
2808
2988
|
"name": "sort-by",
|
|
2809
|
-
"default": "-timestamp",
|
|
2810
|
-
"hasDynamicHelp": false,
|
|
2811
|
-
"multiple": false,
|
|
2812
|
-
"type": "option"
|
|
2813
|
-
},
|
|
2814
|
-
"start-time": {
|
|
2815
|
-
"description": "Start time filter (ISO 8601)",
|
|
2816
|
-
"name": "start-time",
|
|
2817
|
-
"hasDynamicHelp": false,
|
|
2818
|
-
"multiple": false,
|
|
2819
|
-
"type": "option"
|
|
2820
|
-
},
|
|
2821
|
-
"end-time": {
|
|
2822
|
-
"description": "End time filter (ISO 8601)",
|
|
2823
|
-
"name": "end-time",
|
|
2824
2989
|
"hasDynamicHelp": false,
|
|
2825
2990
|
"multiple": false,
|
|
2826
2991
|
"type": "option"
|
|
@@ -2831,18 +2996,11 @@
|
|
|
2831
2996
|
"hasDynamicHelp": false,
|
|
2832
2997
|
"multiple": false,
|
|
2833
2998
|
"type": "option"
|
|
2834
|
-
},
|
|
2835
|
-
"filter": {
|
|
2836
|
-
"description": "Filter in field:operator:value format (repeatable)",
|
|
2837
|
-
"name": "filter",
|
|
2838
|
-
"hasDynamicHelp": false,
|
|
2839
|
-
"multiple": true,
|
|
2840
|
-
"type": "option"
|
|
2841
2999
|
}
|
|
2842
3000
|
},
|
|
2843
3001
|
"hasDynamicHelp": false,
|
|
2844
3002
|
"hiddenAliases": [],
|
|
2845
|
-
"id": "
|
|
3003
|
+
"id": "users:list",
|
|
2846
3004
|
"pluginAlias": "@respan/cli",
|
|
2847
3005
|
"pluginName": "@respan/cli",
|
|
2848
3006
|
"pluginType": "core",
|
|
@@ -2852,14 +3010,20 @@
|
|
|
2852
3010
|
"relativePath": [
|
|
2853
3011
|
"dist",
|
|
2854
3012
|
"commands",
|
|
2855
|
-
"
|
|
3013
|
+
"users",
|
|
2856
3014
|
"list.js"
|
|
2857
3015
|
]
|
|
2858
3016
|
},
|
|
2859
|
-
"
|
|
3017
|
+
"users:update": {
|
|
2860
3018
|
"aliases": [],
|
|
2861
|
-
"args": {
|
|
2862
|
-
|
|
3019
|
+
"args": {
|
|
3020
|
+
"id": {
|
|
3021
|
+
"description": "Customer identifier",
|
|
3022
|
+
"name": "id",
|
|
3023
|
+
"required": true
|
|
3024
|
+
}
|
|
3025
|
+
},
|
|
3026
|
+
"description": "Update a user (customer)",
|
|
2863
3027
|
"flags": {
|
|
2864
3028
|
"api-key": {
|
|
2865
3029
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -2895,18 +3059,23 @@
|
|
|
2895
3059
|
"allowNo": false,
|
|
2896
3060
|
"type": "boolean"
|
|
2897
3061
|
},
|
|
2898
|
-
"
|
|
2899
|
-
"description": "
|
|
2900
|
-
"name": "
|
|
2901
|
-
"required": true,
|
|
3062
|
+
"name": {
|
|
3063
|
+
"description": "Customer name",
|
|
3064
|
+
"name": "name",
|
|
2902
3065
|
"hasDynamicHelp": false,
|
|
2903
3066
|
"multiple": false,
|
|
2904
3067
|
"type": "option"
|
|
2905
3068
|
},
|
|
2906
|
-
"
|
|
2907
|
-
"description": "
|
|
2908
|
-
"name": "
|
|
2909
|
-
"
|
|
3069
|
+
"email": {
|
|
3070
|
+
"description": "Customer email",
|
|
3071
|
+
"name": "email",
|
|
3072
|
+
"hasDynamicHelp": false,
|
|
3073
|
+
"multiple": false,
|
|
3074
|
+
"type": "option"
|
|
3075
|
+
},
|
|
3076
|
+
"metadata": {
|
|
3077
|
+
"description": "Metadata as JSON string",
|
|
3078
|
+
"name": "metadata",
|
|
2910
3079
|
"hasDynamicHelp": false,
|
|
2911
3080
|
"multiple": false,
|
|
2912
3081
|
"type": "option"
|
|
@@ -2914,7 +3083,7 @@
|
|
|
2914
3083
|
},
|
|
2915
3084
|
"hasDynamicHelp": false,
|
|
2916
3085
|
"hiddenAliases": [],
|
|
2917
|
-
"id": "
|
|
3086
|
+
"id": "users:update",
|
|
2918
3087
|
"pluginAlias": "@respan/cli",
|
|
2919
3088
|
"pluginName": "@respan/cli",
|
|
2920
3089
|
"pluginType": "core",
|
|
@@ -2924,21 +3093,14 @@
|
|
|
2924
3093
|
"relativePath": [
|
|
2925
3094
|
"dist",
|
|
2926
3095
|
"commands",
|
|
2927
|
-
"
|
|
2928
|
-
"
|
|
3096
|
+
"users",
|
|
3097
|
+
"update.js"
|
|
2929
3098
|
]
|
|
2930
3099
|
},
|
|
2931
|
-
"
|
|
3100
|
+
"logs:create": {
|
|
2932
3101
|
"aliases": [],
|
|
2933
3102
|
"args": {},
|
|
2934
|
-
"description": "
|
|
2935
|
-
"examples": [
|
|
2936
|
-
"respan integrate claude-code",
|
|
2937
|
-
"respan integrate claude-code --global",
|
|
2938
|
-
"respan integrate claude-code --local --project-id my-project",
|
|
2939
|
-
"respan integrate claude-code --attrs '{\"env\":\"prod\"}'",
|
|
2940
|
-
"respan integrate claude-code --dry-run"
|
|
2941
|
-
],
|
|
3103
|
+
"description": "Create a log span",
|
|
2942
3104
|
"flags": {
|
|
2943
3105
|
"api-key": {
|
|
2944
3106
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -2974,80 +3136,39 @@
|
|
|
2974
3136
|
"allowNo": false,
|
|
2975
3137
|
"type": "boolean"
|
|
2976
3138
|
},
|
|
2977
|
-
"
|
|
2978
|
-
"description": "
|
|
2979
|
-
"
|
|
2980
|
-
|
|
2981
|
-
],
|
|
2982
|
-
"name": "local",
|
|
2983
|
-
"allowNo": false,
|
|
2984
|
-
"type": "boolean"
|
|
2985
|
-
},
|
|
2986
|
-
"global": {
|
|
2987
|
-
"description": "Write user-level global config",
|
|
2988
|
-
"exclusive": [
|
|
2989
|
-
"local"
|
|
2990
|
-
],
|
|
2991
|
-
"name": "global",
|
|
2992
|
-
"allowNo": false,
|
|
2993
|
-
"type": "boolean"
|
|
2994
|
-
},
|
|
2995
|
-
"project-id": {
|
|
2996
|
-
"description": "Respan project ID (added to metadata / resource attributes)",
|
|
2997
|
-
"env": "RESPAN_PROJECT_ID",
|
|
2998
|
-
"name": "project-id",
|
|
3139
|
+
"input": {
|
|
3140
|
+
"description": "Input text or JSON",
|
|
3141
|
+
"name": "input",
|
|
3142
|
+
"required": true,
|
|
2999
3143
|
"hasDynamicHelp": false,
|
|
3000
3144
|
"multiple": false,
|
|
3001
3145
|
"type": "option"
|
|
3002
3146
|
},
|
|
3003
|
-
"
|
|
3004
|
-
"description": "
|
|
3005
|
-
"name": "
|
|
3006
|
-
"default": "https://api.respan.ai/api",
|
|
3147
|
+
"output": {
|
|
3148
|
+
"description": "Output text or JSON",
|
|
3149
|
+
"name": "output",
|
|
3007
3150
|
"hasDynamicHelp": false,
|
|
3008
3151
|
"multiple": false,
|
|
3009
3152
|
"type": "option"
|
|
3010
3153
|
},
|
|
3011
|
-
"
|
|
3012
|
-
"description": "
|
|
3013
|
-
"name": "
|
|
3014
|
-
"default": "{}",
|
|
3154
|
+
"model": {
|
|
3155
|
+
"description": "Model name",
|
|
3156
|
+
"name": "model",
|
|
3015
3157
|
"hasDynamicHelp": false,
|
|
3016
3158
|
"multiple": false,
|
|
3017
3159
|
"type": "option"
|
|
3018
3160
|
},
|
|
3019
|
-
"
|
|
3020
|
-
"description": "
|
|
3021
|
-
"
|
|
3022
|
-
"name": "customer-id",
|
|
3023
|
-
"hasDynamicHelp": false,
|
|
3024
|
-
"multiple": false,
|
|
3025
|
-
"type": "option"
|
|
3026
|
-
},
|
|
3027
|
-
"span-name": {
|
|
3028
|
-
"description": "Root span name for traces (default: claude-code)",
|
|
3029
|
-
"name": "span-name",
|
|
3030
|
-
"hasDynamicHelp": false,
|
|
3031
|
-
"multiple": false,
|
|
3032
|
-
"type": "option"
|
|
3033
|
-
},
|
|
3034
|
-
"workflow-name": {
|
|
3035
|
-
"description": "Workflow name for traces (default: claude-code)",
|
|
3036
|
-
"name": "workflow-name",
|
|
3161
|
+
"metadata": {
|
|
3162
|
+
"description": "Metadata as JSON string",
|
|
3163
|
+
"name": "metadata",
|
|
3037
3164
|
"hasDynamicHelp": false,
|
|
3038
3165
|
"multiple": false,
|
|
3039
3166
|
"type": "option"
|
|
3040
|
-
},
|
|
3041
|
-
"dry-run": {
|
|
3042
|
-
"description": "Preview changes without writing files",
|
|
3043
|
-
"name": "dry-run",
|
|
3044
|
-
"allowNo": false,
|
|
3045
|
-
"type": "boolean"
|
|
3046
3167
|
}
|
|
3047
3168
|
},
|
|
3048
3169
|
"hasDynamicHelp": false,
|
|
3049
3170
|
"hiddenAliases": [],
|
|
3050
|
-
"id": "
|
|
3171
|
+
"id": "logs:create",
|
|
3051
3172
|
"pluginAlias": "@respan/cli",
|
|
3052
3173
|
"pluginName": "@respan/cli",
|
|
3053
3174
|
"pluginType": "core",
|
|
@@ -3057,21 +3178,20 @@
|
|
|
3057
3178
|
"relativePath": [
|
|
3058
3179
|
"dist",
|
|
3059
3180
|
"commands",
|
|
3060
|
-
"
|
|
3061
|
-
"
|
|
3181
|
+
"logs",
|
|
3182
|
+
"create.js"
|
|
3062
3183
|
]
|
|
3063
3184
|
},
|
|
3064
|
-
"
|
|
3185
|
+
"logs:get": {
|
|
3065
3186
|
"aliases": [],
|
|
3066
|
-
"args": {
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
],
|
|
3187
|
+
"args": {
|
|
3188
|
+
"id": {
|
|
3189
|
+
"description": "Span ID",
|
|
3190
|
+
"name": "id",
|
|
3191
|
+
"required": true
|
|
3192
|
+
}
|
|
3193
|
+
},
|
|
3194
|
+
"description": "Get a specific log span",
|
|
3075
3195
|
"flags": {
|
|
3076
3196
|
"api-key": {
|
|
3077
3197
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -3106,81 +3226,11 @@
|
|
|
3106
3226
|
"name": "verbose",
|
|
3107
3227
|
"allowNo": false,
|
|
3108
3228
|
"type": "boolean"
|
|
3109
|
-
},
|
|
3110
|
-
"local": {
|
|
3111
|
-
"description": "Write per-project config (default)",
|
|
3112
|
-
"exclusive": [
|
|
3113
|
-
"global"
|
|
3114
|
-
],
|
|
3115
|
-
"name": "local",
|
|
3116
|
-
"allowNo": false,
|
|
3117
|
-
"type": "boolean"
|
|
3118
|
-
},
|
|
3119
|
-
"global": {
|
|
3120
|
-
"description": "Write user-level global config",
|
|
3121
|
-
"exclusive": [
|
|
3122
|
-
"local"
|
|
3123
|
-
],
|
|
3124
|
-
"name": "global",
|
|
3125
|
-
"allowNo": false,
|
|
3126
|
-
"type": "boolean"
|
|
3127
|
-
},
|
|
3128
|
-
"project-id": {
|
|
3129
|
-
"description": "Respan project ID (added to metadata / resource attributes)",
|
|
3130
|
-
"env": "RESPAN_PROJECT_ID",
|
|
3131
|
-
"name": "project-id",
|
|
3132
|
-
"hasDynamicHelp": false,
|
|
3133
|
-
"multiple": false,
|
|
3134
|
-
"type": "option"
|
|
3135
|
-
},
|
|
3136
|
-
"base-url": {
|
|
3137
|
-
"description": "Respan API base URL (for enterprise deployments)",
|
|
3138
|
-
"name": "base-url",
|
|
3139
|
-
"default": "https://api.respan.ai/api",
|
|
3140
|
-
"hasDynamicHelp": false,
|
|
3141
|
-
"multiple": false,
|
|
3142
|
-
"type": "option"
|
|
3143
|
-
},
|
|
3144
|
-
"attrs": {
|
|
3145
|
-
"description": "Custom attributes JSON (e.g. '{\"env\":\"prod\"}')",
|
|
3146
|
-
"name": "attrs",
|
|
3147
|
-
"default": "{}",
|
|
3148
|
-
"hasDynamicHelp": false,
|
|
3149
|
-
"multiple": false,
|
|
3150
|
-
"type": "option"
|
|
3151
|
-
},
|
|
3152
|
-
"customer-id": {
|
|
3153
|
-
"description": "Customer/user identifier for traces (e.g. your name or email)",
|
|
3154
|
-
"env": "RESPAN_CUSTOMER_ID",
|
|
3155
|
-
"name": "customer-id",
|
|
3156
|
-
"hasDynamicHelp": false,
|
|
3157
|
-
"multiple": false,
|
|
3158
|
-
"type": "option"
|
|
3159
|
-
},
|
|
3160
|
-
"span-name": {
|
|
3161
|
-
"description": "Root span name for traces (default: claude-code)",
|
|
3162
|
-
"name": "span-name",
|
|
3163
|
-
"hasDynamicHelp": false,
|
|
3164
|
-
"multiple": false,
|
|
3165
|
-
"type": "option"
|
|
3166
|
-
},
|
|
3167
|
-
"workflow-name": {
|
|
3168
|
-
"description": "Workflow name for traces (default: claude-code)",
|
|
3169
|
-
"name": "workflow-name",
|
|
3170
|
-
"hasDynamicHelp": false,
|
|
3171
|
-
"multiple": false,
|
|
3172
|
-
"type": "option"
|
|
3173
|
-
},
|
|
3174
|
-
"dry-run": {
|
|
3175
|
-
"description": "Preview changes without writing files",
|
|
3176
|
-
"name": "dry-run",
|
|
3177
|
-
"allowNo": false,
|
|
3178
|
-
"type": "boolean"
|
|
3179
3229
|
}
|
|
3180
3230
|
},
|
|
3181
3231
|
"hasDynamicHelp": false,
|
|
3182
3232
|
"hiddenAliases": [],
|
|
3183
|
-
"id": "
|
|
3233
|
+
"id": "logs:get",
|
|
3184
3234
|
"pluginAlias": "@respan/cli",
|
|
3185
3235
|
"pluginName": "@respan/cli",
|
|
3186
3236
|
"pluginType": "core",
|
|
@@ -3190,20 +3240,14 @@
|
|
|
3190
3240
|
"relativePath": [
|
|
3191
3241
|
"dist",
|
|
3192
3242
|
"commands",
|
|
3193
|
-
"
|
|
3194
|
-
"
|
|
3243
|
+
"logs",
|
|
3244
|
+
"get.js"
|
|
3195
3245
|
]
|
|
3196
3246
|
},
|
|
3197
|
-
"
|
|
3247
|
+
"logs:list": {
|
|
3198
3248
|
"aliases": [],
|
|
3199
3249
|
"args": {},
|
|
3200
|
-
"description": "
|
|
3201
|
-
"examples": [
|
|
3202
|
-
"respan integrate gemini-cli",
|
|
3203
|
-
"respan integrate gemini-cli --local",
|
|
3204
|
-
"respan integrate gemini-cli --project-id my-project --attrs '{\"env\":\"prod\"}'",
|
|
3205
|
-
"respan integrate gemini-cli --dry-run"
|
|
3206
|
-
],
|
|
3250
|
+
"description": "List and filter LLM request logs (spans).\n\nSupports pagination, sorting, time range, and server-side filtering.\n\nFILTER SYNTAX: field:operator:value\n\nOPERATORS:\n (empty) Exact match model::gpt-4\n not Not equal status_code:not:200\n gt Greater than cost:gt:0.01\n gte Greater than/equal latency:gte:1.0\n lt Less than cost:lt:0.5\n lte Less than/equal prompt_tokens:lte:100\n contains Contains substring error_message:contains:timeout\n icontains Case-insensitive model:icontains:gpt\n startswith Starts with model:startswith:gpt\n endswith Ends with model:endswith:mini\n in Value in list model:in:gpt-4,gpt-4o\n isnull Is null error_message:isnull:true\n iexact Case-insens. exact status:iexact:success\n\nFILTERABLE FIELDS (logs):\n model, status_code, status, cost, latency, prompt_tokens,\n completion_tokens, customer_identifier, custom_identifier,\n thread_identifier, trace_unique_id, span_name, span_workflow_name,\n environment, log_type, error_message, failed, provider_id,\n deployment_name, prompt_name, prompt_id, unique_id, stream,\n temperature, max_tokens, tokens_per_second, time_to_first_token,\n total_request_tokens, metadata__<key>, scores__<evaluator_id>\n\nEXAMPLES:\n --filter model::gpt-4o --filter cost:gt:0.01\n --filter status_code:not:200\n --filter metadata__env::production\n --filter model:in:gpt-4,gpt-4o",
|
|
3207
3251
|
"flags": {
|
|
3208
3252
|
"api-key": {
|
|
3209
3253
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -3239,80 +3283,75 @@
|
|
|
3239
3283
|
"allowNo": false,
|
|
3240
3284
|
"type": "boolean"
|
|
3241
3285
|
},
|
|
3242
|
-
"
|
|
3243
|
-
"description": "
|
|
3244
|
-
"
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
"
|
|
3248
|
-
"
|
|
3249
|
-
"type": "boolean"
|
|
3250
|
-
},
|
|
3251
|
-
"global": {
|
|
3252
|
-
"description": "Write user-level global config",
|
|
3253
|
-
"exclusive": [
|
|
3254
|
-
"local"
|
|
3255
|
-
],
|
|
3256
|
-
"name": "global",
|
|
3257
|
-
"allowNo": false,
|
|
3258
|
-
"type": "boolean"
|
|
3286
|
+
"limit": {
|
|
3287
|
+
"description": "Number of results per page (max 1000)",
|
|
3288
|
+
"name": "limit",
|
|
3289
|
+
"default": 50,
|
|
3290
|
+
"hasDynamicHelp": false,
|
|
3291
|
+
"multiple": false,
|
|
3292
|
+
"type": "option"
|
|
3259
3293
|
},
|
|
3260
|
-
"
|
|
3261
|
-
"description": "
|
|
3262
|
-
"
|
|
3263
|
-
"
|
|
3294
|
+
"page": {
|
|
3295
|
+
"description": "Page number",
|
|
3296
|
+
"name": "page",
|
|
3297
|
+
"default": 1,
|
|
3264
3298
|
"hasDynamicHelp": false,
|
|
3265
3299
|
"multiple": false,
|
|
3266
3300
|
"type": "option"
|
|
3267
3301
|
},
|
|
3268
|
-
"
|
|
3269
|
-
"description": "
|
|
3270
|
-
"name": "
|
|
3271
|
-
"default": "https://api.respan.ai/api",
|
|
3302
|
+
"sort-by": {
|
|
3303
|
+
"description": "Sort field (prefix with - for descending, e.g. -cost, -latency)",
|
|
3304
|
+
"name": "sort-by",
|
|
3272
3305
|
"hasDynamicHelp": false,
|
|
3273
3306
|
"multiple": false,
|
|
3274
3307
|
"type": "option"
|
|
3275
3308
|
},
|
|
3276
|
-
"
|
|
3277
|
-
"description": "
|
|
3278
|
-
"name": "
|
|
3279
|
-
"default": "{}",
|
|
3309
|
+
"start-time": {
|
|
3310
|
+
"description": "Start time filter (ISO 8601)",
|
|
3311
|
+
"name": "start-time",
|
|
3280
3312
|
"hasDynamicHelp": false,
|
|
3281
3313
|
"multiple": false,
|
|
3282
3314
|
"type": "option"
|
|
3283
3315
|
},
|
|
3284
|
-
"
|
|
3285
|
-
"description": "
|
|
3286
|
-
"
|
|
3287
|
-
"name": "customer-id",
|
|
3316
|
+
"end-time": {
|
|
3317
|
+
"description": "End time filter (ISO 8601)",
|
|
3318
|
+
"name": "end-time",
|
|
3288
3319
|
"hasDynamicHelp": false,
|
|
3289
3320
|
"multiple": false,
|
|
3290
3321
|
"type": "option"
|
|
3291
3322
|
},
|
|
3292
|
-
"
|
|
3293
|
-
"description": "
|
|
3294
|
-
"name": "
|
|
3323
|
+
"filter": {
|
|
3324
|
+
"description": "Filter in field:operator:value format (repeatable)",
|
|
3325
|
+
"name": "filter",
|
|
3326
|
+
"hasDynamicHelp": false,
|
|
3327
|
+
"multiple": true,
|
|
3328
|
+
"type": "option"
|
|
3329
|
+
},
|
|
3330
|
+
"all-envs": {
|
|
3331
|
+
"description": "Include all environments (true/false)",
|
|
3332
|
+
"name": "all-envs",
|
|
3295
3333
|
"hasDynamicHelp": false,
|
|
3296
3334
|
"multiple": false,
|
|
3297
3335
|
"type": "option"
|
|
3298
3336
|
},
|
|
3299
|
-
"
|
|
3300
|
-
"description": "
|
|
3301
|
-
"name": "
|
|
3337
|
+
"is-test": {
|
|
3338
|
+
"description": "Filter by test (true) or production (false) environment",
|
|
3339
|
+
"name": "is-test",
|
|
3302
3340
|
"hasDynamicHelp": false,
|
|
3303
3341
|
"multiple": false,
|
|
3304
3342
|
"type": "option"
|
|
3305
3343
|
},
|
|
3306
|
-
"
|
|
3307
|
-
"description": "
|
|
3308
|
-
"name": "
|
|
3309
|
-
"
|
|
3310
|
-
"
|
|
3344
|
+
"include-fields": {
|
|
3345
|
+
"description": "Comma-separated fields to include in response",
|
|
3346
|
+
"name": "include-fields",
|
|
3347
|
+
"hasDynamicHelp": false,
|
|
3348
|
+
"multiple": false,
|
|
3349
|
+
"type": "option"
|
|
3311
3350
|
}
|
|
3312
3351
|
},
|
|
3313
3352
|
"hasDynamicHelp": false,
|
|
3314
3353
|
"hiddenAliases": [],
|
|
3315
|
-
"id": "
|
|
3354
|
+
"id": "logs:list",
|
|
3316
3355
|
"pluginAlias": "@respan/cli",
|
|
3317
3356
|
"pluginName": "@respan/cli",
|
|
3318
3357
|
"pluginType": "core",
|
|
@@ -3322,20 +3361,14 @@
|
|
|
3322
3361
|
"relativePath": [
|
|
3323
3362
|
"dist",
|
|
3324
3363
|
"commands",
|
|
3325
|
-
"
|
|
3326
|
-
"
|
|
3364
|
+
"logs",
|
|
3365
|
+
"list.js"
|
|
3327
3366
|
]
|
|
3328
3367
|
},
|
|
3329
|
-
"
|
|
3368
|
+
"logs:summary": {
|
|
3330
3369
|
"aliases": [],
|
|
3331
3370
|
"args": {},
|
|
3332
|
-
"description": "
|
|
3333
|
-
"examples": [
|
|
3334
|
-
"respan integrate opencode",
|
|
3335
|
-
"respan integrate opencode --global",
|
|
3336
|
-
"respan integrate opencode --project-id my-project --attrs '{\"env\":\"prod\"}'",
|
|
3337
|
-
"respan integrate opencode --dry-run"
|
|
3338
|
-
],
|
|
3371
|
+
"description": "Get aggregated summary statistics for log spans in a time range.\n\nReturns total cost, total tokens, request count, and score summaries.\n\nFILTER SYNTAX: field:operator:value\n\nOPERATORS:\n (empty) Exact match model::gpt-4\n not Not equal status_code:not:200\n gt Greater than cost:gt:0.01\n gte Greater than/equal latency:gte:1.0\n lt Less than cost:lt:0.5\n lte Less than/equal prompt_tokens:lte:100\n contains Contains substring error_message:contains:timeout\n icontains Case-insensitive model:icontains:gpt\n startswith Starts with model:startswith:gpt\n endswith Ends with model:endswith:mini\n in Value in list model:in:gpt-4,gpt-4o\n isnull Is null error_message:isnull:true\n iexact Case-insens. exact status:iexact:success\n\nFILTERABLE FIELDS (logs):\n model, status_code, status, cost, latency, prompt_tokens,\n completion_tokens, customer_identifier, custom_identifier,\n thread_identifier, trace_unique_id, span_name, span_workflow_name,\n environment, log_type, error_message, failed, provider_id,\n deployment_name, prompt_name, prompt_id, unique_id, stream,\n temperature, max_tokens, tokens_per_second, time_to_first_token,\n total_request_tokens, metadata__<key>, scores__<evaluator_id>\n\nEXAMPLES:\n --filter model::gpt-4o --filter cost:gt:0.01\n --filter status_code:not:200\n --filter metadata__env::production\n --filter model:in:gpt-4,gpt-4o",
|
|
3339
3372
|
"flags": {
|
|
3340
3373
|
"api-key": {
|
|
3341
3374
|
"description": "API key (env: RESPAN_API_KEY)",
|
|
@@ -3371,80 +3404,47 @@
|
|
|
3371
3404
|
"allowNo": false,
|
|
3372
3405
|
"type": "boolean"
|
|
3373
3406
|
},
|
|
3374
|
-
"
|
|
3375
|
-
"description": "
|
|
3376
|
-
"
|
|
3377
|
-
|
|
3378
|
-
],
|
|
3379
|
-
"name": "local",
|
|
3380
|
-
"allowNo": false,
|
|
3381
|
-
"type": "boolean"
|
|
3382
|
-
},
|
|
3383
|
-
"global": {
|
|
3384
|
-
"description": "Write user-level global config",
|
|
3385
|
-
"exclusive": [
|
|
3386
|
-
"local"
|
|
3387
|
-
],
|
|
3388
|
-
"name": "global",
|
|
3389
|
-
"allowNo": false,
|
|
3390
|
-
"type": "boolean"
|
|
3391
|
-
},
|
|
3392
|
-
"project-id": {
|
|
3393
|
-
"description": "Respan project ID (added to metadata / resource attributes)",
|
|
3394
|
-
"env": "RESPAN_PROJECT_ID",
|
|
3395
|
-
"name": "project-id",
|
|
3396
|
-
"hasDynamicHelp": false,
|
|
3397
|
-
"multiple": false,
|
|
3398
|
-
"type": "option"
|
|
3399
|
-
},
|
|
3400
|
-
"base-url": {
|
|
3401
|
-
"description": "Respan API base URL (for enterprise deployments)",
|
|
3402
|
-
"name": "base-url",
|
|
3403
|
-
"default": "https://api.respan.ai/api",
|
|
3407
|
+
"start-time": {
|
|
3408
|
+
"description": "Start time (ISO 8601)",
|
|
3409
|
+
"name": "start-time",
|
|
3410
|
+
"required": true,
|
|
3404
3411
|
"hasDynamicHelp": false,
|
|
3405
3412
|
"multiple": false,
|
|
3406
3413
|
"type": "option"
|
|
3407
3414
|
},
|
|
3408
|
-
"
|
|
3409
|
-
"description": "
|
|
3410
|
-
"name": "
|
|
3411
|
-
"
|
|
3415
|
+
"end-time": {
|
|
3416
|
+
"description": "End time (ISO 8601)",
|
|
3417
|
+
"name": "end-time",
|
|
3418
|
+
"required": true,
|
|
3412
3419
|
"hasDynamicHelp": false,
|
|
3413
3420
|
"multiple": false,
|
|
3414
3421
|
"type": "option"
|
|
3415
3422
|
},
|
|
3416
|
-
"
|
|
3417
|
-
"description": "
|
|
3418
|
-
"
|
|
3419
|
-
"name": "customer-id",
|
|
3423
|
+
"filter": {
|
|
3424
|
+
"description": "Filter in field:operator:value format (repeatable)",
|
|
3425
|
+
"name": "filter",
|
|
3420
3426
|
"hasDynamicHelp": false,
|
|
3421
|
-
"multiple":
|
|
3427
|
+
"multiple": true,
|
|
3422
3428
|
"type": "option"
|
|
3423
3429
|
},
|
|
3424
|
-
"
|
|
3425
|
-
"description": "
|
|
3426
|
-
"name": "
|
|
3430
|
+
"all-envs": {
|
|
3431
|
+
"description": "Include all environments (true/false)",
|
|
3432
|
+
"name": "all-envs",
|
|
3427
3433
|
"hasDynamicHelp": false,
|
|
3428
3434
|
"multiple": false,
|
|
3429
3435
|
"type": "option"
|
|
3430
3436
|
},
|
|
3431
|
-
"
|
|
3432
|
-
"description": "
|
|
3433
|
-
"name": "
|
|
3437
|
+
"is-test": {
|
|
3438
|
+
"description": "Filter by test (true) or production (false) environment",
|
|
3439
|
+
"name": "is-test",
|
|
3434
3440
|
"hasDynamicHelp": false,
|
|
3435
3441
|
"multiple": false,
|
|
3436
3442
|
"type": "option"
|
|
3437
|
-
},
|
|
3438
|
-
"dry-run": {
|
|
3439
|
-
"description": "Preview changes without writing files",
|
|
3440
|
-
"name": "dry-run",
|
|
3441
|
-
"allowNo": false,
|
|
3442
|
-
"type": "boolean"
|
|
3443
3443
|
}
|
|
3444
3444
|
},
|
|
3445
3445
|
"hasDynamicHelp": false,
|
|
3446
3446
|
"hiddenAliases": [],
|
|
3447
|
-
"id": "
|
|
3447
|
+
"id": "logs:summary",
|
|
3448
3448
|
"pluginAlias": "@respan/cli",
|
|
3449
3449
|
"pluginName": "@respan/cli",
|
|
3450
3450
|
"pluginType": "core",
|
|
@@ -3454,10 +3454,10 @@
|
|
|
3454
3454
|
"relativePath": [
|
|
3455
3455
|
"dist",
|
|
3456
3456
|
"commands",
|
|
3457
|
-
"
|
|
3458
|
-
"
|
|
3457
|
+
"logs",
|
|
3458
|
+
"summary.js"
|
|
3459
3459
|
]
|
|
3460
3460
|
}
|
|
3461
3461
|
},
|
|
3462
|
-
"version": "0.6.
|
|
3462
|
+
"version": "0.6.6"
|
|
3463
3463
|
}
|