@respan/cli 0.17.3 → 0.19.0

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.
@@ -708,6 +708,212 @@
708
708
  "stop.js"
709
709
  ]
710
710
  },
711
+ "config:get": {
712
+ "aliases": [],
713
+ "args": {
714
+ "key": {
715
+ "description": "Config key",
716
+ "name": "key",
717
+ "required": true
718
+ }
719
+ },
720
+ "description": "Get a configuration value",
721
+ "flags": {
722
+ "api-key": {
723
+ "description": "API key (env: RESPAN_API_KEY)",
724
+ "env": "RESPAN_API_KEY",
725
+ "name": "api-key",
726
+ "hasDynamicHelp": false,
727
+ "multiple": false,
728
+ "type": "option"
729
+ },
730
+ "base-url": {
731
+ "description": "Temporary API base URL override for this command",
732
+ "name": "base-url",
733
+ "hasDynamicHelp": false,
734
+ "multiple": false,
735
+ "type": "option"
736
+ },
737
+ "profile": {
738
+ "description": "Named profile to use",
739
+ "name": "profile",
740
+ "hasDynamicHelp": false,
741
+ "multiple": false,
742
+ "type": "option"
743
+ },
744
+ "json": {
745
+ "description": "Output as JSON",
746
+ "name": "json",
747
+ "allowNo": false,
748
+ "type": "boolean"
749
+ },
750
+ "csv": {
751
+ "description": "Output as CSV",
752
+ "name": "csv",
753
+ "allowNo": false,
754
+ "type": "boolean"
755
+ },
756
+ "verbose": {
757
+ "char": "v",
758
+ "description": "Show verbose output",
759
+ "name": "verbose",
760
+ "allowNo": false,
761
+ "type": "boolean"
762
+ }
763
+ },
764
+ "hasDynamicHelp": false,
765
+ "hiddenAliases": [],
766
+ "id": "config:get",
767
+ "pluginAlias": "@respan/cli",
768
+ "pluginName": "@respan/cli",
769
+ "pluginType": "core",
770
+ "strict": true,
771
+ "enableJsonFlag": false,
772
+ "isESM": true,
773
+ "relativePath": [
774
+ "dist",
775
+ "commands",
776
+ "config",
777
+ "get.js"
778
+ ]
779
+ },
780
+ "config:list": {
781
+ "aliases": [],
782
+ "args": {},
783
+ "description": "List all configuration",
784
+ "flags": {
785
+ "api-key": {
786
+ "description": "API key (env: RESPAN_API_KEY)",
787
+ "env": "RESPAN_API_KEY",
788
+ "name": "api-key",
789
+ "hasDynamicHelp": false,
790
+ "multiple": false,
791
+ "type": "option"
792
+ },
793
+ "base-url": {
794
+ "description": "Temporary API base URL override for this command",
795
+ "name": "base-url",
796
+ "hasDynamicHelp": false,
797
+ "multiple": false,
798
+ "type": "option"
799
+ },
800
+ "profile": {
801
+ "description": "Named profile to use",
802
+ "name": "profile",
803
+ "hasDynamicHelp": false,
804
+ "multiple": false,
805
+ "type": "option"
806
+ },
807
+ "json": {
808
+ "description": "Output as JSON",
809
+ "name": "json",
810
+ "allowNo": false,
811
+ "type": "boolean"
812
+ },
813
+ "csv": {
814
+ "description": "Output as CSV",
815
+ "name": "csv",
816
+ "allowNo": false,
817
+ "type": "boolean"
818
+ },
819
+ "verbose": {
820
+ "char": "v",
821
+ "description": "Show verbose output",
822
+ "name": "verbose",
823
+ "allowNo": false,
824
+ "type": "boolean"
825
+ }
826
+ },
827
+ "hasDynamicHelp": false,
828
+ "hiddenAliases": [],
829
+ "id": "config:list",
830
+ "pluginAlias": "@respan/cli",
831
+ "pluginName": "@respan/cli",
832
+ "pluginType": "core",
833
+ "strict": true,
834
+ "enableJsonFlag": false,
835
+ "isESM": true,
836
+ "relativePath": [
837
+ "dist",
838
+ "commands",
839
+ "config",
840
+ "list.js"
841
+ ]
842
+ },
843
+ "config:set": {
844
+ "aliases": [],
845
+ "args": {
846
+ "key": {
847
+ "description": "Config key",
848
+ "name": "key",
849
+ "required": true
850
+ },
851
+ "value": {
852
+ "description": "Config value",
853
+ "name": "value",
854
+ "required": true
855
+ }
856
+ },
857
+ "description": "Set a configuration value",
858
+ "flags": {
859
+ "api-key": {
860
+ "description": "API key (env: RESPAN_API_KEY)",
861
+ "env": "RESPAN_API_KEY",
862
+ "name": "api-key",
863
+ "hasDynamicHelp": false,
864
+ "multiple": false,
865
+ "type": "option"
866
+ },
867
+ "base-url": {
868
+ "description": "Temporary API base URL override for this command",
869
+ "name": "base-url",
870
+ "hasDynamicHelp": false,
871
+ "multiple": false,
872
+ "type": "option"
873
+ },
874
+ "profile": {
875
+ "description": "Named profile to use",
876
+ "name": "profile",
877
+ "hasDynamicHelp": false,
878
+ "multiple": false,
879
+ "type": "option"
880
+ },
881
+ "json": {
882
+ "description": "Output as JSON",
883
+ "name": "json",
884
+ "allowNo": false,
885
+ "type": "boolean"
886
+ },
887
+ "csv": {
888
+ "description": "Output as CSV",
889
+ "name": "csv",
890
+ "allowNo": false,
891
+ "type": "boolean"
892
+ },
893
+ "verbose": {
894
+ "char": "v",
895
+ "description": "Show verbose output",
896
+ "name": "verbose",
897
+ "allowNo": false,
898
+ "type": "boolean"
899
+ }
900
+ },
901
+ "hasDynamicHelp": false,
902
+ "hiddenAliases": [],
903
+ "id": "config:set",
904
+ "pluginAlias": "@respan/cli",
905
+ "pluginName": "@respan/cli",
906
+ "pluginType": "core",
907
+ "strict": true,
908
+ "enableJsonFlag": false,
909
+ "isESM": true,
910
+ "relativePath": [
911
+ "dist",
912
+ "commands",
913
+ "config",
914
+ "set.js"
915
+ ]
916
+ },
711
917
  "datasets:create-span": {
712
918
  "aliases": [],
713
919
  "args": {
@@ -1377,16 +1583,10 @@
1377
1583
  "index.js"
1378
1584
  ]
1379
1585
  },
1380
- "config:get": {
1586
+ "evaluators:create": {
1381
1587
  "aliases": [],
1382
- "args": {
1383
- "key": {
1384
- "description": "Config key",
1385
- "name": "key",
1386
- "required": true
1387
- }
1388
- },
1389
- "description": "Get a configuration value",
1588
+ "args": {},
1589
+ "description": "Create a new evaluator",
1390
1590
  "flags": {
1391
1591
  "api-key": {
1392
1592
  "description": "API key (env: RESPAN_API_KEY)",
@@ -1428,11 +1628,40 @@
1428
1628
  "name": "verbose",
1429
1629
  "allowNo": false,
1430
1630
  "type": "boolean"
1631
+ },
1632
+ "name": {
1633
+ "description": "Evaluator name",
1634
+ "name": "name",
1635
+ "required": true,
1636
+ "hasDynamicHelp": false,
1637
+ "multiple": false,
1638
+ "type": "option"
1639
+ },
1640
+ "type": {
1641
+ "description": "Evaluator type",
1642
+ "name": "type",
1643
+ "hasDynamicHelp": false,
1644
+ "multiple": false,
1645
+ "type": "option"
1646
+ },
1647
+ "description": {
1648
+ "description": "Evaluator description",
1649
+ "name": "description",
1650
+ "hasDynamicHelp": false,
1651
+ "multiple": false,
1652
+ "type": "option"
1653
+ },
1654
+ "config": {
1655
+ "description": "Evaluator config as JSON string",
1656
+ "name": "config",
1657
+ "hasDynamicHelp": false,
1658
+ "multiple": false,
1659
+ "type": "option"
1431
1660
  }
1432
1661
  },
1433
1662
  "hasDynamicHelp": false,
1434
1663
  "hiddenAliases": [],
1435
- "id": "config:get",
1664
+ "id": "evaluators:create",
1436
1665
  "pluginAlias": "@respan/cli",
1437
1666
  "pluginName": "@respan/cli",
1438
1667
  "pluginType": "core",
@@ -1442,14 +1671,20 @@
1442
1671
  "relativePath": [
1443
1672
  "dist",
1444
1673
  "commands",
1445
- "config",
1446
- "get.js"
1674
+ "evaluators",
1675
+ "create.js"
1447
1676
  ]
1448
1677
  },
1449
- "config:list": {
1678
+ "evaluators:get": {
1450
1679
  "aliases": [],
1451
- "args": {},
1452
- "description": "List all configuration",
1680
+ "args": {
1681
+ "id": {
1682
+ "description": "Evaluator ID",
1683
+ "name": "id",
1684
+ "required": true
1685
+ }
1686
+ },
1687
+ "description": "Get a specific evaluator",
1453
1688
  "flags": {
1454
1689
  "api-key": {
1455
1690
  "description": "API key (env: RESPAN_API_KEY)",
@@ -1495,7 +1730,7 @@
1495
1730
  },
1496
1731
  "hasDynamicHelp": false,
1497
1732
  "hiddenAliases": [],
1498
- "id": "config:list",
1733
+ "id": "evaluators:get",
1499
1734
  "pluginAlias": "@respan/cli",
1500
1735
  "pluginName": "@respan/cli",
1501
1736
  "pluginType": "core",
@@ -1505,25 +1740,14 @@
1505
1740
  "relativePath": [
1506
1741
  "dist",
1507
1742
  "commands",
1508
- "config",
1509
- "list.js"
1743
+ "evaluators",
1744
+ "get.js"
1510
1745
  ]
1511
1746
  },
1512
- "config:set": {
1747
+ "evaluators:list": {
1513
1748
  "aliases": [],
1514
- "args": {
1515
- "key": {
1516
- "description": "Config key",
1517
- "name": "key",
1518
- "required": true
1519
- },
1520
- "value": {
1521
- "description": "Config value",
1522
- "name": "value",
1523
- "required": true
1524
- }
1525
- },
1526
- "description": "Set a configuration value",
1749
+ "args": {},
1750
+ "description": "List evaluators",
1527
1751
  "flags": {
1528
1752
  "api-key": {
1529
1753
  "description": "API key (env: RESPAN_API_KEY)",
@@ -1565,11 +1789,27 @@
1565
1789
  "name": "verbose",
1566
1790
  "allowNo": false,
1567
1791
  "type": "boolean"
1792
+ },
1793
+ "limit": {
1794
+ "description": "Number of results per page",
1795
+ "name": "limit",
1796
+ "default": 20,
1797
+ "hasDynamicHelp": false,
1798
+ "multiple": false,
1799
+ "type": "option"
1800
+ },
1801
+ "page": {
1802
+ "description": "Page number",
1803
+ "name": "page",
1804
+ "default": 1,
1805
+ "hasDynamicHelp": false,
1806
+ "multiple": false,
1807
+ "type": "option"
1568
1808
  }
1569
1809
  },
1570
1810
  "hasDynamicHelp": false,
1571
1811
  "hiddenAliases": [],
1572
- "id": "config:set",
1812
+ "id": "evaluators:list",
1573
1813
  "pluginAlias": "@respan/cli",
1574
1814
  "pluginName": "@respan/cli",
1575
1815
  "pluginType": "core",
@@ -1579,20 +1819,20 @@
1579
1819
  "relativePath": [
1580
1820
  "dist",
1581
1821
  "commands",
1582
- "config",
1583
- "set.js"
1822
+ "evaluators",
1823
+ "list.js"
1584
1824
  ]
1585
1825
  },
1586
- "eval": {
1826
+ "evaluators:run": {
1587
1827
  "aliases": [],
1588
1828
  "args": {
1589
- "file": {
1590
- "description": "Path to eval JSON file",
1591
- "name": "file",
1829
+ "id": {
1830
+ "description": "Evaluator ID",
1831
+ "name": "id",
1592
1832
  "required": true
1593
1833
  }
1594
1834
  },
1595
- "description": "Run an eval defined in a JSON file (creates prompt + dataset on the platform)",
1835
+ "description": "Run an evaluator",
1596
1836
  "flags": {
1597
1837
  "api-key": {
1598
1838
  "description": "API key (env: RESPAN_API_KEY)",
@@ -1634,11 +1874,35 @@
1634
1874
  "name": "verbose",
1635
1875
  "allowNo": false,
1636
1876
  "type": "boolean"
1877
+ },
1878
+ "dataset-id": {
1879
+ "description": "Dataset ID to evaluate against",
1880
+ "name": "dataset-id",
1881
+ "hasDynamicHelp": false,
1882
+ "multiple": false,
1883
+ "type": "option"
1884
+ },
1885
+ "span-ids": {
1886
+ "aliases": [
1887
+ "log-ids"
1888
+ ],
1889
+ "description": "Comma-separated span IDs to evaluate (--log-ids still works)",
1890
+ "name": "span-ids",
1891
+ "hasDynamicHelp": false,
1892
+ "multiple": false,
1893
+ "type": "option"
1894
+ },
1895
+ "params": {
1896
+ "description": "Additional parameters as JSON string",
1897
+ "name": "params",
1898
+ "hasDynamicHelp": false,
1899
+ "multiple": false,
1900
+ "type": "option"
1637
1901
  }
1638
1902
  },
1639
1903
  "hasDynamicHelp": false,
1640
1904
  "hiddenAliases": [],
1641
- "id": "eval",
1905
+ "id": "evaluators:run",
1642
1906
  "pluginAlias": "@respan/cli",
1643
1907
  "pluginName": "@respan/cli",
1644
1908
  "pluginType": "core",
@@ -1648,14 +1912,20 @@
1648
1912
  "relativePath": [
1649
1913
  "dist",
1650
1914
  "commands",
1651
- "eval",
1652
- "index.js"
1915
+ "evaluators",
1916
+ "run.js"
1653
1917
  ]
1654
1918
  },
1655
- "evaluators:create": {
1919
+ "evaluators:update": {
1656
1920
  "aliases": [],
1657
- "args": {},
1658
- "description": "Create a new evaluator",
1921
+ "args": {
1922
+ "id": {
1923
+ "description": "Evaluator ID",
1924
+ "name": "id",
1925
+ "required": true
1926
+ }
1927
+ },
1928
+ "description": "Update an evaluator",
1659
1929
  "flags": {
1660
1930
  "api-key": {
1661
1931
  "description": "API key (env: RESPAN_API_KEY)",
@@ -1701,14 +1971,6 @@
1701
1971
  "name": {
1702
1972
  "description": "Evaluator name",
1703
1973
  "name": "name",
1704
- "required": true,
1705
- "hasDynamicHelp": false,
1706
- "multiple": false,
1707
- "type": "option"
1708
- },
1709
- "type": {
1710
- "description": "Evaluator type",
1711
- "name": "type",
1712
1974
  "hasDynamicHelp": false,
1713
1975
  "multiple": false,
1714
1976
  "type": "option"
@@ -1730,7 +1992,7 @@
1730
1992
  },
1731
1993
  "hasDynamicHelp": false,
1732
1994
  "hiddenAliases": [],
1733
- "id": "evaluators:create",
1995
+ "id": "evaluators:update",
1734
1996
  "pluginAlias": "@respan/cli",
1735
1997
  "pluginName": "@respan/cli",
1736
1998
  "pluginType": "core",
@@ -1741,19 +2003,19 @@
1741
2003
  "dist",
1742
2004
  "commands",
1743
2005
  "evaluators",
1744
- "create.js"
2006
+ "update.js"
1745
2007
  ]
1746
2008
  },
1747
- "evaluators:get": {
2009
+ "eval": {
1748
2010
  "aliases": [],
1749
2011
  "args": {
1750
- "id": {
1751
- "description": "Evaluator ID",
1752
- "name": "id",
2012
+ "file": {
2013
+ "description": "Path to eval JSON file",
2014
+ "name": "file",
1753
2015
  "required": true
1754
2016
  }
1755
2017
  },
1756
- "description": "Get a specific evaluator",
2018
+ "description": "Run an eval defined in a JSON file (creates prompt + dataset on the platform)",
1757
2019
  "flags": {
1758
2020
  "api-key": {
1759
2021
  "description": "API key (env: RESPAN_API_KEY)",
@@ -1799,7 +2061,7 @@
1799
2061
  },
1800
2062
  "hasDynamicHelp": false,
1801
2063
  "hiddenAliases": [],
1802
- "id": "evaluators:get",
2064
+ "id": "eval",
1803
2065
  "pluginAlias": "@respan/cli",
1804
2066
  "pluginName": "@respan/cli",
1805
2067
  "pluginType": "core",
@@ -1809,14 +2071,14 @@
1809
2071
  "relativePath": [
1810
2072
  "dist",
1811
2073
  "commands",
1812
- "evaluators",
1813
- "get.js"
2074
+ "eval",
2075
+ "index.js"
1814
2076
  ]
1815
2077
  },
1816
- "evaluators:list": {
2078
+ "experiments:create": {
1817
2079
  "aliases": [],
1818
2080
  "args": {},
1819
- "description": "List evaluators",
2081
+ "description": "Create a new experiment",
1820
2082
  "flags": {
1821
2083
  "api-key": {
1822
2084
  "description": "API key (env: RESPAN_API_KEY)",
@@ -1859,18 +2121,32 @@
1859
2121
  "allowNo": false,
1860
2122
  "type": "boolean"
1861
2123
  },
1862
- "limit": {
1863
- "description": "Number of results per page",
1864
- "name": "limit",
1865
- "default": 20,
2124
+ "name": {
2125
+ "description": "Experiment name",
2126
+ "name": "name",
2127
+ "required": true,
1866
2128
  "hasDynamicHelp": false,
1867
2129
  "multiple": false,
1868
2130
  "type": "option"
1869
2131
  },
1870
- "page": {
1871
- "description": "Page number",
1872
- "name": "page",
1873
- "default": 1,
2132
+ "dataset-id": {
2133
+ "description": "Dataset ID",
2134
+ "name": "dataset-id",
2135
+ "required": true,
2136
+ "hasDynamicHelp": false,
2137
+ "multiple": false,
2138
+ "type": "option"
2139
+ },
2140
+ "description": {
2141
+ "description": "Experiment description",
2142
+ "name": "description",
2143
+ "hasDynamicHelp": false,
2144
+ "multiple": false,
2145
+ "type": "option"
2146
+ },
2147
+ "workflows": {
2148
+ "description": "Workflows configuration as JSON string",
2149
+ "name": "workflows",
1874
2150
  "hasDynamicHelp": false,
1875
2151
  "multiple": false,
1876
2152
  "type": "option"
@@ -1878,7 +2154,7 @@
1878
2154
  },
1879
2155
  "hasDynamicHelp": false,
1880
2156
  "hiddenAliases": [],
1881
- "id": "evaluators:list",
2157
+ "id": "experiments:create",
1882
2158
  "pluginAlias": "@respan/cli",
1883
2159
  "pluginName": "@respan/cli",
1884
2160
  "pluginType": "core",
@@ -1888,20 +2164,20 @@
1888
2164
  "relativePath": [
1889
2165
  "dist",
1890
2166
  "commands",
1891
- "evaluators",
1892
- "list.js"
2167
+ "experiments",
2168
+ "create.js"
1893
2169
  ]
1894
2170
  },
1895
- "evaluators:run": {
2171
+ "experiments:get": {
1896
2172
  "aliases": [],
1897
2173
  "args": {
1898
2174
  "id": {
1899
- "description": "Evaluator ID",
2175
+ "description": "Experiment ID",
1900
2176
  "name": "id",
1901
2177
  "required": true
1902
2178
  }
1903
2179
  },
1904
- "description": "Run an evaluator",
2180
+ "description": "Get a specific experiment",
1905
2181
  "flags": {
1906
2182
  "api-key": {
1907
2183
  "description": "API key (env: RESPAN_API_KEY)",
@@ -1943,32 +2219,11 @@
1943
2219
  "name": "verbose",
1944
2220
  "allowNo": false,
1945
2221
  "type": "boolean"
1946
- },
1947
- "dataset-id": {
1948
- "description": "Dataset ID to evaluate against",
1949
- "name": "dataset-id",
1950
- "hasDynamicHelp": false,
1951
- "multiple": false,
1952
- "type": "option"
1953
- },
1954
- "log-ids": {
1955
- "description": "Comma-separated log/span IDs to evaluate",
1956
- "name": "log-ids",
1957
- "hasDynamicHelp": false,
1958
- "multiple": false,
1959
- "type": "option"
1960
- },
1961
- "params": {
1962
- "description": "Additional parameters as JSON string",
1963
- "name": "params",
1964
- "hasDynamicHelp": false,
1965
- "multiple": false,
1966
- "type": "option"
1967
2222
  }
1968
2223
  },
1969
2224
  "hasDynamicHelp": false,
1970
2225
  "hiddenAliases": [],
1971
- "id": "evaluators:run",
2226
+ "id": "experiments:get",
1972
2227
  "pluginAlias": "@respan/cli",
1973
2228
  "pluginName": "@respan/cli",
1974
2229
  "pluginType": "core",
@@ -1978,20 +2233,14 @@
1978
2233
  "relativePath": [
1979
2234
  "dist",
1980
2235
  "commands",
1981
- "evaluators",
1982
- "run.js"
2236
+ "experiments",
2237
+ "get.js"
1983
2238
  ]
1984
2239
  },
1985
- "evaluators:update": {
2240
+ "experiments:list": {
1986
2241
  "aliases": [],
1987
- "args": {
1988
- "id": {
1989
- "description": "Evaluator ID",
1990
- "name": "id",
1991
- "required": true
1992
- }
1993
- },
1994
- "description": "Update an evaluator",
2242
+ "args": {},
2243
+ "description": "List experiments",
1995
2244
  "flags": {
1996
2245
  "api-key": {
1997
2246
  "description": "API key (env: RESPAN_API_KEY)",
@@ -2034,23 +2283,18 @@
2034
2283
  "allowNo": false,
2035
2284
  "type": "boolean"
2036
2285
  },
2037
- "name": {
2038
- "description": "Evaluator name",
2039
- "name": "name",
2040
- "hasDynamicHelp": false,
2041
- "multiple": false,
2042
- "type": "option"
2043
- },
2044
- "description": {
2045
- "description": "Evaluator description",
2046
- "name": "description",
2286
+ "limit": {
2287
+ "description": "Number of results per page",
2288
+ "name": "limit",
2289
+ "default": 20,
2047
2290
  "hasDynamicHelp": false,
2048
2291
  "multiple": false,
2049
2292
  "type": "option"
2050
2293
  },
2051
- "config": {
2052
- "description": "Evaluator config as JSON string",
2053
- "name": "config",
2294
+ "page": {
2295
+ "description": "Page number",
2296
+ "name": "page",
2297
+ "default": 1,
2054
2298
  "hasDynamicHelp": false,
2055
2299
  "multiple": false,
2056
2300
  "type": "option"
@@ -2058,7 +2302,7 @@
2058
2302
  },
2059
2303
  "hasDynamicHelp": false,
2060
2304
  "hiddenAliases": [],
2061
- "id": "evaluators:update",
2305
+ "id": "experiments:list",
2062
2306
  "pluginAlias": "@respan/cli",
2063
2307
  "pluginName": "@respan/cli",
2064
2308
  "pluginType": "core",
@@ -2068,14 +2312,20 @@
2068
2312
  "relativePath": [
2069
2313
  "dist",
2070
2314
  "commands",
2071
- "evaluators",
2072
- "update.js"
2315
+ "experiments",
2316
+ "list.js"
2073
2317
  ]
2074
2318
  },
2075
- "experiments:create": {
2319
+ "prompts:create-version": {
2076
2320
  "aliases": [],
2077
- "args": {},
2078
- "description": "Create a new experiment",
2321
+ "args": {
2322
+ "prompt-id": {
2323
+ "description": "Prompt ID",
2324
+ "name": "prompt-id",
2325
+ "required": true
2326
+ }
2327
+ },
2328
+ "description": "Create a new version of a prompt",
2079
2329
  "flags": {
2080
2330
  "api-key": {
2081
2331
  "description": "API key (env: RESPAN_API_KEY)",
@@ -2118,32 +2368,31 @@
2118
2368
  "allowNo": false,
2119
2369
  "type": "boolean"
2120
2370
  },
2121
- "name": {
2122
- "description": "Experiment name",
2123
- "name": "name",
2371
+ "messages": {
2372
+ "description": "Messages as JSON array string",
2373
+ "name": "messages",
2124
2374
  "required": true,
2125
2375
  "hasDynamicHelp": false,
2126
2376
  "multiple": false,
2127
2377
  "type": "option"
2128
2378
  },
2129
- "dataset-id": {
2130
- "description": "Dataset ID",
2131
- "name": "dataset-id",
2132
- "required": true,
2379
+ "model": {
2380
+ "description": "Model name",
2381
+ "name": "model",
2133
2382
  "hasDynamicHelp": false,
2134
2383
  "multiple": false,
2135
2384
  "type": "option"
2136
2385
  },
2137
- "description": {
2138
- "description": "Experiment description",
2139
- "name": "description",
2386
+ "temperature": {
2387
+ "description": "Temperature value",
2388
+ "name": "temperature",
2140
2389
  "hasDynamicHelp": false,
2141
2390
  "multiple": false,
2142
2391
  "type": "option"
2143
2392
  },
2144
- "workflows": {
2145
- "description": "Workflows configuration as JSON string",
2146
- "name": "workflows",
2393
+ "max-tokens": {
2394
+ "description": "Max tokens",
2395
+ "name": "max-tokens",
2147
2396
  "hasDynamicHelp": false,
2148
2397
  "multiple": false,
2149
2398
  "type": "option"
@@ -2151,7 +2400,7 @@
2151
2400
  },
2152
2401
  "hasDynamicHelp": false,
2153
2402
  "hiddenAliases": [],
2154
- "id": "experiments:create",
2403
+ "id": "prompts:create-version",
2155
2404
  "pluginAlias": "@respan/cli",
2156
2405
  "pluginName": "@respan/cli",
2157
2406
  "pluginType": "core",
@@ -2161,20 +2410,14 @@
2161
2410
  "relativePath": [
2162
2411
  "dist",
2163
2412
  "commands",
2164
- "experiments",
2165
- "create.js"
2413
+ "prompts",
2414
+ "create-version.js"
2166
2415
  ]
2167
2416
  },
2168
- "experiments:get": {
2417
+ "prompts:create": {
2169
2418
  "aliases": [],
2170
- "args": {
2171
- "id": {
2172
- "description": "Experiment ID",
2173
- "name": "id",
2174
- "required": true
2175
- }
2176
- },
2177
- "description": "Get a specific experiment",
2419
+ "args": {},
2420
+ "description": "Create a new prompt",
2178
2421
  "flags": {
2179
2422
  "api-key": {
2180
2423
  "description": "API key (env: RESPAN_API_KEY)",
@@ -2216,11 +2459,26 @@
2216
2459
  "name": "verbose",
2217
2460
  "allowNo": false,
2218
2461
  "type": "boolean"
2462
+ },
2463
+ "name": {
2464
+ "description": "Prompt name",
2465
+ "name": "name",
2466
+ "required": true,
2467
+ "hasDynamicHelp": false,
2468
+ "multiple": false,
2469
+ "type": "option"
2470
+ },
2471
+ "description": {
2472
+ "description": "Prompt description",
2473
+ "name": "description",
2474
+ "hasDynamicHelp": false,
2475
+ "multiple": false,
2476
+ "type": "option"
2219
2477
  }
2220
2478
  },
2221
2479
  "hasDynamicHelp": false,
2222
2480
  "hiddenAliases": [],
2223
- "id": "experiments:get",
2481
+ "id": "prompts:create",
2224
2482
  "pluginAlias": "@respan/cli",
2225
2483
  "pluginName": "@respan/cli",
2226
2484
  "pluginType": "core",
@@ -2230,14 +2488,20 @@
2230
2488
  "relativePath": [
2231
2489
  "dist",
2232
2490
  "commands",
2233
- "experiments",
2234
- "get.js"
2491
+ "prompts",
2492
+ "create.js"
2235
2493
  ]
2236
2494
  },
2237
- "experiments:list": {
2495
+ "prompts:get": {
2238
2496
  "aliases": [],
2239
- "args": {},
2240
- "description": "List experiments",
2497
+ "args": {
2498
+ "id": {
2499
+ "description": "Prompt ID",
2500
+ "name": "id",
2501
+ "required": true
2502
+ }
2503
+ },
2504
+ "description": "Get a specific prompt",
2241
2505
  "flags": {
2242
2506
  "api-key": {
2243
2507
  "description": "API key (env: RESPAN_API_KEY)",
@@ -2279,27 +2543,11 @@
2279
2543
  "name": "verbose",
2280
2544
  "allowNo": false,
2281
2545
  "type": "boolean"
2282
- },
2283
- "limit": {
2284
- "description": "Number of results per page",
2285
- "name": "limit",
2286
- "default": 20,
2287
- "hasDynamicHelp": false,
2288
- "multiple": false,
2289
- "type": "option"
2290
- },
2291
- "page": {
2292
- "description": "Page number",
2293
- "name": "page",
2294
- "default": 1,
2295
- "hasDynamicHelp": false,
2296
- "multiple": false,
2297
- "type": "option"
2298
2546
  }
2299
2547
  },
2300
2548
  "hasDynamicHelp": false,
2301
2549
  "hiddenAliases": [],
2302
- "id": "experiments:list",
2550
+ "id": "prompts:get",
2303
2551
  "pluginAlias": "@respan/cli",
2304
2552
  "pluginName": "@respan/cli",
2305
2553
  "pluginType": "core",
@@ -2309,14 +2557,14 @@
2309
2557
  "relativePath": [
2310
2558
  "dist",
2311
2559
  "commands",
2312
- "experiments",
2313
- "list.js"
2560
+ "prompts",
2561
+ "get.js"
2314
2562
  ]
2315
2563
  },
2316
- "logs:create": {
2564
+ "prompts:list": {
2317
2565
  "aliases": [],
2318
2566
  "args": {},
2319
- "description": "Create a log span",
2567
+ "description": "List prompts",
2320
2568
  "flags": {
2321
2569
  "api-key": {
2322
2570
  "description": "API key (env: RESPAN_API_KEY)",
@@ -2359,31 +2607,10 @@
2359
2607
  "allowNo": false,
2360
2608
  "type": "boolean"
2361
2609
  },
2362
- "input": {
2363
- "description": "Input text or JSON",
2364
- "name": "input",
2365
- "required": true,
2366
- "hasDynamicHelp": false,
2367
- "multiple": false,
2368
- "type": "option"
2369
- },
2370
- "output": {
2371
- "description": "Output text or JSON",
2372
- "name": "output",
2373
- "hasDynamicHelp": false,
2374
- "multiple": false,
2375
- "type": "option"
2376
- },
2377
- "model": {
2378
- "description": "Model name",
2379
- "name": "model",
2380
- "hasDynamicHelp": false,
2381
- "multiple": false,
2382
- "type": "option"
2383
- },
2384
- "metadata": {
2385
- "description": "Metadata as JSON string",
2386
- "name": "metadata",
2610
+ "limit": {
2611
+ "description": "Number of results per page",
2612
+ "name": "limit",
2613
+ "default": 50,
2387
2614
  "hasDynamicHelp": false,
2388
2615
  "multiple": false,
2389
2616
  "type": "option"
@@ -2391,7 +2618,7 @@
2391
2618
  },
2392
2619
  "hasDynamicHelp": false,
2393
2620
  "hiddenAliases": [],
2394
- "id": "logs:create",
2621
+ "id": "prompts:list",
2395
2622
  "pluginAlias": "@respan/cli",
2396
2623
  "pluginName": "@respan/cli",
2397
2624
  "pluginType": "core",
@@ -2401,20 +2628,20 @@
2401
2628
  "relativePath": [
2402
2629
  "dist",
2403
2630
  "commands",
2404
- "logs",
2405
- "create.js"
2631
+ "prompts",
2632
+ "list.js"
2406
2633
  ]
2407
2634
  },
2408
- "logs:get": {
2635
+ "prompts:update": {
2409
2636
  "aliases": [],
2410
2637
  "args": {
2411
2638
  "id": {
2412
- "description": "Span ID",
2639
+ "description": "Prompt ID",
2413
2640
  "name": "id",
2414
2641
  "required": true
2415
2642
  }
2416
2643
  },
2417
- "description": "Get a specific log span",
2644
+ "description": "Update a prompt",
2418
2645
  "flags": {
2419
2646
  "api-key": {
2420
2647
  "description": "API key (env: RESPAN_API_KEY)",
@@ -2456,11 +2683,25 @@
2456
2683
  "name": "verbose",
2457
2684
  "allowNo": false,
2458
2685
  "type": "boolean"
2686
+ },
2687
+ "name": {
2688
+ "description": "Prompt name",
2689
+ "name": "name",
2690
+ "hasDynamicHelp": false,
2691
+ "multiple": false,
2692
+ "type": "option"
2693
+ },
2694
+ "description": {
2695
+ "description": "Prompt description",
2696
+ "name": "description",
2697
+ "hasDynamicHelp": false,
2698
+ "multiple": false,
2699
+ "type": "option"
2459
2700
  }
2460
2701
  },
2461
2702
  "hasDynamicHelp": false,
2462
2703
  "hiddenAliases": [],
2463
- "id": "logs:get",
2704
+ "id": "prompts:update",
2464
2705
  "pluginAlias": "@respan/cli",
2465
2706
  "pluginName": "@respan/cli",
2466
2707
  "pluginType": "core",
@@ -2470,14 +2711,20 @@
2470
2711
  "relativePath": [
2471
2712
  "dist",
2472
2713
  "commands",
2473
- "logs",
2474
- "get.js"
2714
+ "prompts",
2715
+ "update.js"
2475
2716
  ]
2476
2717
  },
2477
- "logs:list": {
2718
+ "prompts:versions": {
2478
2719
  "aliases": [],
2479
- "args": {},
2480
- "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",
2720
+ "args": {
2721
+ "prompt-id": {
2722
+ "description": "Prompt ID",
2723
+ "name": "prompt-id",
2724
+ "required": true
2725
+ }
2726
+ },
2727
+ "description": "List versions of a prompt",
2481
2728
  "flags": {
2482
2729
  "api-key": {
2483
2730
  "description": "API key (env: RESPAN_API_KEY)",
@@ -2519,76 +2766,11 @@
2519
2766
  "name": "verbose",
2520
2767
  "allowNo": false,
2521
2768
  "type": "boolean"
2522
- },
2523
- "limit": {
2524
- "description": "Number of results per page (max 1000)",
2525
- "name": "limit",
2526
- "default": 50,
2527
- "hasDynamicHelp": false,
2528
- "multiple": false,
2529
- "type": "option"
2530
- },
2531
- "page": {
2532
- "description": "Page number",
2533
- "name": "page",
2534
- "default": 1,
2535
- "hasDynamicHelp": false,
2536
- "multiple": false,
2537
- "type": "option"
2538
- },
2539
- "sort-by": {
2540
- "description": "Sort field (prefix with - for descending, e.g. -cost, -latency)",
2541
- "name": "sort-by",
2542
- "hasDynamicHelp": false,
2543
- "multiple": false,
2544
- "type": "option"
2545
- },
2546
- "start-time": {
2547
- "description": "Start time filter (ISO 8601)",
2548
- "name": "start-time",
2549
- "hasDynamicHelp": false,
2550
- "multiple": false,
2551
- "type": "option"
2552
- },
2553
- "end-time": {
2554
- "description": "End time filter (ISO 8601)",
2555
- "name": "end-time",
2556
- "hasDynamicHelp": false,
2557
- "multiple": false,
2558
- "type": "option"
2559
- },
2560
- "filter": {
2561
- "description": "Filter in field:operator:value format (repeatable)",
2562
- "name": "filter",
2563
- "hasDynamicHelp": false,
2564
- "multiple": true,
2565
- "type": "option"
2566
- },
2567
- "all-envs": {
2568
- "description": "Include all environments (true/false)",
2569
- "name": "all-envs",
2570
- "hasDynamicHelp": false,
2571
- "multiple": false,
2572
- "type": "option"
2573
- },
2574
- "is-test": {
2575
- "description": "Filter by test (true) or production (false) environment",
2576
- "name": "is-test",
2577
- "hasDynamicHelp": false,
2578
- "multiple": false,
2579
- "type": "option"
2580
- },
2581
- "include-fields": {
2582
- "description": "Comma-separated fields to include in response",
2583
- "name": "include-fields",
2584
- "hasDynamicHelp": false,
2585
- "multiple": false,
2586
- "type": "option"
2587
2769
  }
2588
2770
  },
2589
2771
  "hasDynamicHelp": false,
2590
2772
  "hiddenAliases": [],
2591
- "id": "logs:list",
2773
+ "id": "prompts:versions",
2592
2774
  "pluginAlias": "@respan/cli",
2593
2775
  "pluginName": "@respan/cli",
2594
2776
  "pluginType": "core",
@@ -2598,14 +2780,18 @@
2598
2780
  "relativePath": [
2599
2781
  "dist",
2600
2782
  "commands",
2601
- "logs",
2602
- "list.js"
2783
+ "prompts",
2784
+ "versions.js"
2603
2785
  ]
2604
2786
  },
2605
- "logs:summary": {
2787
+ "setup:doctor": {
2606
2788
  "aliases": [],
2607
2789
  "args": {},
2608
- "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",
2790
+ "description": "Diagnose coding-agent setup for Respan",
2791
+ "examples": [
2792
+ "respan setup doctor",
2793
+ "respan setup doctor --global"
2794
+ ],
2609
2795
  "flags": {
2610
2796
  "api-key": {
2611
2797
  "description": "API key (env: RESPAN_API_KEY)",
@@ -2648,145 +2834,28 @@
2648
2834
  "allowNo": false,
2649
2835
  "type": "boolean"
2650
2836
  },
2651
- "start-time": {
2652
- "description": "Start time (ISO 8601)",
2653
- "name": "start-time",
2654
- "required": true,
2655
- "hasDynamicHelp": false,
2656
- "multiple": false,
2657
- "type": "option"
2658
- },
2659
- "end-time": {
2660
- "description": "End time (ISO 8601)",
2661
- "name": "end-time",
2662
- "required": true,
2663
- "hasDynamicHelp": false,
2664
- "multiple": false,
2665
- "type": "option"
2666
- },
2667
- "filter": {
2668
- "description": "Filter in field:operator:value format (repeatable)",
2669
- "name": "filter",
2670
- "hasDynamicHelp": false,
2671
- "multiple": true,
2672
- "type": "option"
2673
- },
2674
- "all-envs": {
2675
- "description": "Include all environments (true/false)",
2676
- "name": "all-envs",
2677
- "hasDynamicHelp": false,
2678
- "multiple": false,
2679
- "type": "option"
2680
- },
2681
- "is-test": {
2682
- "description": "Filter by test (true) or production (false) environment",
2683
- "name": "is-test",
2684
- "hasDynamicHelp": false,
2685
- "multiple": false,
2686
- "type": "option"
2687
- }
2688
- },
2689
- "hasDynamicHelp": false,
2690
- "hiddenAliases": [],
2691
- "id": "logs:summary",
2692
- "pluginAlias": "@respan/cli",
2693
- "pluginName": "@respan/cli",
2694
- "pluginType": "core",
2695
- "strict": true,
2696
- "enableJsonFlag": false,
2697
- "isESM": true,
2698
- "relativePath": [
2699
- "dist",
2700
- "commands",
2701
- "logs",
2702
- "summary.js"
2703
- ]
2704
- },
2705
- "prompts:create-version": {
2706
- "aliases": [],
2707
- "args": {
2708
- "prompt-id": {
2709
- "description": "Prompt ID",
2710
- "name": "prompt-id",
2711
- "required": true
2712
- }
2713
- },
2714
- "description": "Create a new version of a prompt",
2715
- "flags": {
2716
- "api-key": {
2717
- "description": "API key (env: RESPAN_API_KEY)",
2718
- "env": "RESPAN_API_KEY",
2719
- "name": "api-key",
2720
- "hasDynamicHelp": false,
2721
- "multiple": false,
2722
- "type": "option"
2723
- },
2724
- "base-url": {
2725
- "description": "Temporary API base URL override for this command",
2726
- "name": "base-url",
2727
- "hasDynamicHelp": false,
2728
- "multiple": false,
2729
- "type": "option"
2730
- },
2731
- "profile": {
2732
- "description": "Named profile to use",
2733
- "name": "profile",
2734
- "hasDynamicHelp": false,
2735
- "multiple": false,
2736
- "type": "option"
2737
- },
2738
- "json": {
2739
- "description": "Output as JSON",
2740
- "name": "json",
2741
- "allowNo": false,
2742
- "type": "boolean"
2743
- },
2744
- "csv": {
2745
- "description": "Output as CSV",
2746
- "name": "csv",
2837
+ "local": {
2838
+ "description": "Check local project setup",
2839
+ "exclusive": [
2840
+ "global"
2841
+ ],
2842
+ "name": "local",
2747
2843
  "allowNo": false,
2748
2844
  "type": "boolean"
2749
2845
  },
2750
- "verbose": {
2751
- "char": "v",
2752
- "description": "Show verbose output",
2753
- "name": "verbose",
2846
+ "global": {
2847
+ "description": "Check global setup",
2848
+ "exclusive": [
2849
+ "local"
2850
+ ],
2851
+ "name": "global",
2754
2852
  "allowNo": false,
2755
2853
  "type": "boolean"
2756
- },
2757
- "messages": {
2758
- "description": "Messages as JSON array string",
2759
- "name": "messages",
2760
- "required": true,
2761
- "hasDynamicHelp": false,
2762
- "multiple": false,
2763
- "type": "option"
2764
- },
2765
- "model": {
2766
- "description": "Model name",
2767
- "name": "model",
2768
- "hasDynamicHelp": false,
2769
- "multiple": false,
2770
- "type": "option"
2771
- },
2772
- "temperature": {
2773
- "description": "Temperature value",
2774
- "name": "temperature",
2775
- "hasDynamicHelp": false,
2776
- "multiple": false,
2777
- "type": "option"
2778
- },
2779
- "max-tokens": {
2780
- "description": "Max tokens",
2781
- "name": "max-tokens",
2782
- "hasDynamicHelp": false,
2783
- "multiple": false,
2784
- "type": "option"
2785
2854
  }
2786
2855
  },
2787
2856
  "hasDynamicHelp": false,
2788
2857
  "hiddenAliases": [],
2789
- "id": "prompts:create-version",
2858
+ "id": "setup:doctor",
2790
2859
  "pluginAlias": "@respan/cli",
2791
2860
  "pluginName": "@respan/cli",
2792
2861
  "pluginType": "core",
@@ -2796,14 +2865,19 @@
2796
2865
  "relativePath": [
2797
2866
  "dist",
2798
2867
  "commands",
2799
- "prompts",
2800
- "create-version.js"
2868
+ "setup",
2869
+ "doctor.js"
2801
2870
  ]
2802
2871
  },
2803
- "prompts:create": {
2872
+ "setup:gateway": {
2804
2873
  "aliases": [],
2805
2874
  "args": {},
2806
- "description": "Create a new prompt",
2875
+ "description": "Deprecated gateway setup entry point. Prints the official gateway setup prompt.",
2876
+ "examples": [
2877
+ "respan setup gateway",
2878
+ "respan setup gateway --agent claude-code",
2879
+ "respan setup gateway --no-instrument"
2880
+ ],
2807
2881
  "flags": {
2808
2882
  "api-key": {
2809
2883
  "description": "API key (env: RESPAN_API_KEY)",
@@ -2846,111 +2920,47 @@
2846
2920
  "allowNo": false,
2847
2921
  "type": "boolean"
2848
2922
  },
2849
- "name": {
2850
- "description": "Prompt name",
2851
- "name": "name",
2852
- "required": true,
2853
- "hasDynamicHelp": false,
2854
- "multiple": false,
2855
- "type": "option"
2856
- },
2857
- "description": {
2858
- "description": "Prompt description",
2859
- "name": "description",
2860
- "hasDynamicHelp": false,
2861
- "multiple": false,
2862
- "type": "option"
2863
- }
2864
- },
2865
- "hasDynamicHelp": false,
2866
- "hiddenAliases": [],
2867
- "id": "prompts:create",
2868
- "pluginAlias": "@respan/cli",
2869
- "pluginName": "@respan/cli",
2870
- "pluginType": "core",
2871
- "strict": true,
2872
- "enableJsonFlag": false,
2873
- "isESM": true,
2874
- "relativePath": [
2875
- "dist",
2876
- "commands",
2877
- "prompts",
2878
- "create.js"
2879
- ]
2880
- },
2881
- "prompts:get": {
2882
- "aliases": [],
2883
- "args": {
2884
- "id": {
2885
- "description": "Prompt ID",
2886
- "name": "id",
2887
- "required": true
2888
- }
2889
- },
2890
- "description": "Get a specific prompt",
2891
- "flags": {
2892
- "api-key": {
2893
- "description": "API key (env: RESPAN_API_KEY)",
2894
- "env": "RESPAN_API_KEY",
2895
- "name": "api-key",
2896
- "hasDynamicHelp": false,
2897
- "multiple": false,
2898
- "type": "option"
2899
- },
2900
- "base-url": {
2901
- "description": "Temporary API base URL override for this command",
2902
- "name": "base-url",
2903
- "hasDynamicHelp": false,
2904
- "multiple": false,
2905
- "type": "option"
2906
- },
2907
- "profile": {
2908
- "description": "Named profile to use",
2909
- "name": "profile",
2923
+ "agent": {
2924
+ "description": "Deprecated compatibility flag; no agent is launched",
2925
+ "name": "agent",
2910
2926
  "hasDynamicHelp": false,
2911
2927
  "multiple": false,
2912
2928
  "type": "option"
2913
2929
  },
2914
- "json": {
2915
- "description": "Output as JSON",
2916
- "name": "json",
2917
- "allowNo": false,
2918
- "type": "boolean"
2919
- },
2920
- "csv": {
2921
- "description": "Output as CSV",
2922
- "name": "csv",
2923
- "allowNo": false,
2924
- "type": "boolean"
2925
- },
2926
- "verbose": {
2927
- "char": "v",
2928
- "description": "Show verbose output",
2929
- "name": "verbose",
2930
+ "no-instrument": {
2931
+ "description": "Deprecated compatibility flag; setup only prints a prompt",
2932
+ "name": "no-instrument",
2930
2933
  "allowNo": false,
2931
2934
  "type": "boolean"
2932
2935
  }
2933
2936
  },
2934
2937
  "hasDynamicHelp": false,
2935
2938
  "hiddenAliases": [],
2936
- "id": "prompts:get",
2939
+ "id": "setup:gateway",
2937
2940
  "pluginAlias": "@respan/cli",
2938
2941
  "pluginName": "@respan/cli",
2939
2942
  "pluginType": "core",
2940
2943
  "strict": true,
2941
- "enableJsonFlag": false,
2942
2944
  "isESM": true,
2943
2945
  "relativePath": [
2944
2946
  "dist",
2945
2947
  "commands",
2946
- "prompts",
2947
- "get.js"
2948
+ "setup",
2949
+ "gateway.js"
2948
2950
  ]
2949
2951
  },
2950
- "prompts:list": {
2952
+ "setup": {
2951
2953
  "aliases": [],
2952
2954
  "args": {},
2953
- "description": "List prompts",
2955
+ "description": "Deprecated setup entry point. Prints tracing and gateway setup prompts.",
2956
+ "examples": [
2957
+ "npx @respan/cli setup",
2958
+ "respan setup",
2959
+ "respan setup tracing",
2960
+ "respan setup gateway",
2961
+ "respan setup --agent claude-code",
2962
+ "respan setup --no-instrument"
2963
+ ],
2954
2964
  "flags": {
2955
2965
  "api-key": {
2956
2966
  "description": "API key (env: RESPAN_API_KEY)",
@@ -2993,41 +3003,44 @@
2993
3003
  "allowNo": false,
2994
3004
  "type": "boolean"
2995
3005
  },
2996
- "limit": {
2997
- "description": "Number of results per page",
2998
- "name": "limit",
2999
- "default": 50,
3006
+ "agent": {
3007
+ "description": "Deprecated compatibility flag; no agent is launched",
3008
+ "name": "agent",
3000
3009
  "hasDynamicHelp": false,
3001
3010
  "multiple": false,
3002
3011
  "type": "option"
3012
+ },
3013
+ "no-instrument": {
3014
+ "description": "Deprecated compatibility flag; setup only prints a prompt",
3015
+ "name": "no-instrument",
3016
+ "allowNo": false,
3017
+ "type": "boolean"
3003
3018
  }
3004
3019
  },
3005
3020
  "hasDynamicHelp": false,
3006
3021
  "hiddenAliases": [],
3007
- "id": "prompts:list",
3022
+ "id": "setup",
3008
3023
  "pluginAlias": "@respan/cli",
3009
3024
  "pluginName": "@respan/cli",
3010
3025
  "pluginType": "core",
3011
3026
  "strict": true,
3012
- "enableJsonFlag": false,
3013
3027
  "isESM": true,
3014
3028
  "relativePath": [
3015
3029
  "dist",
3016
3030
  "commands",
3017
- "prompts",
3018
- "list.js"
3031
+ "setup",
3032
+ "index.js"
3019
3033
  ]
3020
3034
  },
3021
- "prompts:update": {
3035
+ "setup:tracing": {
3022
3036
  "aliases": [],
3023
- "args": {
3024
- "id": {
3025
- "description": "Prompt ID",
3026
- "name": "id",
3027
- "required": true
3028
- }
3029
- },
3030
- "description": "Update a prompt",
3037
+ "args": {},
3038
+ "description": "Deprecated tracing setup entry point. Prints the official tracing setup prompt.",
3039
+ "examples": [
3040
+ "respan setup tracing",
3041
+ "respan setup tracing --agent claude-code",
3042
+ "respan setup tracing --no-instrument"
3043
+ ],
3031
3044
  "flags": {
3032
3045
  "api-key": {
3033
3046
  "description": "API key (env: RESPAN_API_KEY)",
@@ -3070,114 +3083,45 @@
3070
3083
  "allowNo": false,
3071
3084
  "type": "boolean"
3072
3085
  },
3073
- "name": {
3074
- "description": "Prompt name",
3075
- "name": "name",
3076
- "hasDynamicHelp": false,
3077
- "multiple": false,
3078
- "type": "option"
3079
- },
3080
- "description": {
3081
- "description": "Prompt description",
3082
- "name": "description",
3083
- "hasDynamicHelp": false,
3084
- "multiple": false,
3085
- "type": "option"
3086
- }
3087
- },
3088
- "hasDynamicHelp": false,
3089
- "hiddenAliases": [],
3090
- "id": "prompts:update",
3091
- "pluginAlias": "@respan/cli",
3092
- "pluginName": "@respan/cli",
3093
- "pluginType": "core",
3094
- "strict": true,
3095
- "enableJsonFlag": false,
3096
- "isESM": true,
3097
- "relativePath": [
3098
- "dist",
3099
- "commands",
3100
- "prompts",
3101
- "update.js"
3102
- ]
3103
- },
3104
- "prompts:versions": {
3105
- "aliases": [],
3106
- "args": {
3107
- "prompt-id": {
3108
- "description": "Prompt ID",
3109
- "name": "prompt-id",
3110
- "required": true
3111
- }
3112
- },
3113
- "description": "List versions of a prompt",
3114
- "flags": {
3115
- "api-key": {
3116
- "description": "API key (env: RESPAN_API_KEY)",
3117
- "env": "RESPAN_API_KEY",
3118
- "name": "api-key",
3119
- "hasDynamicHelp": false,
3120
- "multiple": false,
3121
- "type": "option"
3122
- },
3123
- "base-url": {
3124
- "description": "Temporary API base URL override for this command",
3125
- "name": "base-url",
3126
- "hasDynamicHelp": false,
3127
- "multiple": false,
3128
- "type": "option"
3129
- },
3130
- "profile": {
3131
- "description": "Named profile to use",
3132
- "name": "profile",
3086
+ "agent": {
3087
+ "description": "Deprecated compatibility flag; no agent is launched",
3088
+ "name": "agent",
3133
3089
  "hasDynamicHelp": false,
3134
3090
  "multiple": false,
3135
3091
  "type": "option"
3136
3092
  },
3137
- "json": {
3138
- "description": "Output as JSON",
3139
- "name": "json",
3140
- "allowNo": false,
3141
- "type": "boolean"
3142
- },
3143
- "csv": {
3144
- "description": "Output as CSV",
3145
- "name": "csv",
3146
- "allowNo": false,
3147
- "type": "boolean"
3148
- },
3149
- "verbose": {
3150
- "char": "v",
3151
- "description": "Show verbose output",
3152
- "name": "verbose",
3093
+ "no-instrument": {
3094
+ "description": "Deprecated compatibility flag; setup only prints a prompt",
3095
+ "name": "no-instrument",
3153
3096
  "allowNo": false,
3154
3097
  "type": "boolean"
3155
3098
  }
3156
3099
  },
3157
3100
  "hasDynamicHelp": false,
3158
3101
  "hiddenAliases": [],
3159
- "id": "prompts:versions",
3102
+ "id": "setup:tracing",
3160
3103
  "pluginAlias": "@respan/cli",
3161
3104
  "pluginName": "@respan/cli",
3162
3105
  "pluginType": "core",
3163
3106
  "strict": true,
3164
- "enableJsonFlag": false,
3165
3107
  "isESM": true,
3166
3108
  "relativePath": [
3167
3109
  "dist",
3168
3110
  "commands",
3169
- "prompts",
3170
- "versions.js"
3111
+ "setup",
3112
+ "tracing.js"
3171
3113
  ]
3172
3114
  },
3173
- "setup:doctor": {
3115
+ "tools:call": {
3174
3116
  "aliases": [],
3175
- "args": {},
3176
- "description": "Diagnose coding-agent setup for Respan",
3177
- "examples": [
3178
- "respan setup doctor",
3179
- "respan setup doctor --global"
3180
- ],
3117
+ "args": {
3118
+ "name": {
3119
+ "description": "MCP tool name, e.g. span_list or trace_get",
3120
+ "name": "name",
3121
+ "required": true
3122
+ }
3123
+ },
3124
+ "description": "Call a Respan MCP tool with its exact tool name and JSON arguments. Writes execute immediately; inspect tools list --json before calling.",
3181
3125
  "flags": {
3182
3126
  "api-key": {
3183
3127
  "description": "API key (env: RESPAN_API_KEY)",
@@ -3220,28 +3164,37 @@
3220
3164
  "allowNo": false,
3221
3165
  "type": "boolean"
3222
3166
  },
3223
- "local": {
3224
- "description": "Check local project setup",
3167
+ "input": {
3168
+ "description": "JSON object of MCP tool arguments",
3225
3169
  "exclusive": [
3226
- "global"
3170
+ "input-file"
3227
3171
  ],
3228
- "name": "local",
3229
- "allowNo": false,
3230
- "type": "boolean"
3172
+ "name": "input",
3173
+ "hasDynamicHelp": false,
3174
+ "multiple": false,
3175
+ "type": "option"
3231
3176
  },
3232
- "global": {
3233
- "description": "Check global setup",
3177
+ "input-file": {
3178
+ "description": "File containing a JSON object of MCP tool arguments",
3234
3179
  "exclusive": [
3235
- "local"
3180
+ "input"
3236
3181
  ],
3237
- "name": "global",
3238
- "allowNo": false,
3239
- "type": "boolean"
3182
+ "name": "input-file",
3183
+ "hasDynamicHelp": false,
3184
+ "multiple": false,
3185
+ "type": "option"
3186
+ },
3187
+ "mcp-url": {
3188
+ "description": "Custom MCP server URL (defaults to the active Platform or Enterprise server)",
3189
+ "name": "mcp-url",
3190
+ "hasDynamicHelp": false,
3191
+ "multiple": false,
3192
+ "type": "option"
3240
3193
  }
3241
3194
  },
3242
3195
  "hasDynamicHelp": false,
3243
3196
  "hiddenAliases": [],
3244
- "id": "setup:doctor",
3197
+ "id": "tools:call",
3245
3198
  "pluginAlias": "@respan/cli",
3246
3199
  "pluginName": "@respan/cli",
3247
3200
  "pluginType": "core",
@@ -3251,19 +3204,14 @@
3251
3204
  "relativePath": [
3252
3205
  "dist",
3253
3206
  "commands",
3254
- "setup",
3255
- "doctor.js"
3207
+ "tools",
3208
+ "call.js"
3256
3209
  ]
3257
3210
  },
3258
- "setup:gateway": {
3211
+ "tools:list": {
3259
3212
  "aliases": [],
3260
3213
  "args": {},
3261
- "description": "Deprecated gateway setup entry point. Prints the official gateway setup prompt.",
3262
- "examples": [
3263
- "respan setup gateway",
3264
- "respan setup gateway --agent claude-code",
3265
- "respan setup gateway --no-instrument"
3266
- ],
3214
+ "description": "List the current Respan MCP tools, their input schemas, and annotations.",
3267
3215
  "flags": {
3268
3216
  "api-key": {
3269
3217
  "description": "API key (env: RESPAN_API_KEY)",
@@ -3306,47 +3254,53 @@
3306
3254
  "allowNo": false,
3307
3255
  "type": "boolean"
3308
3256
  },
3309
- "agent": {
3310
- "description": "Deprecated compatibility flag; no agent is launched",
3311
- "name": "agent",
3257
+ "category": {
3258
+ "description": "Filter by a category returned by the MCP server",
3259
+ "name": "category",
3312
3260
  "hasDynamicHelp": false,
3313
3261
  "multiple": false,
3314
3262
  "type": "option"
3315
3263
  },
3316
- "no-instrument": {
3317
- "description": "Deprecated compatibility flag; setup only prints a prompt",
3318
- "name": "no-instrument",
3264
+ "categories": {
3265
+ "description": "List available categories and tool counts instead of tools",
3266
+ "name": "categories",
3319
3267
  "allowNo": false,
3320
3268
  "type": "boolean"
3269
+ },
3270
+ "mcp-url": {
3271
+ "description": "Custom MCP server URL (defaults to the active Platform or Enterprise server)",
3272
+ "name": "mcp-url",
3273
+ "hasDynamicHelp": false,
3274
+ "multiple": false,
3275
+ "type": "option"
3321
3276
  }
3322
3277
  },
3323
3278
  "hasDynamicHelp": false,
3324
3279
  "hiddenAliases": [],
3325
- "id": "setup:gateway",
3280
+ "id": "tools:list",
3326
3281
  "pluginAlias": "@respan/cli",
3327
3282
  "pluginName": "@respan/cli",
3328
3283
  "pluginType": "core",
3329
3284
  "strict": true,
3285
+ "enableJsonFlag": false,
3330
3286
  "isESM": true,
3331
3287
  "relativePath": [
3332
3288
  "dist",
3333
3289
  "commands",
3334
- "setup",
3335
- "gateway.js"
3290
+ "tools",
3291
+ "list.js"
3336
3292
  ]
3337
3293
  },
3338
- "setup": {
3294
+ "traces:get": {
3339
3295
  "aliases": [],
3340
- "args": {},
3341
- "description": "Deprecated setup entry point. Prints tracing and gateway setup prompts.",
3342
- "examples": [
3343
- "npx @respan/cli setup",
3344
- "respan setup",
3345
- "respan setup tracing",
3346
- "respan setup gateway",
3347
- "respan setup --agent claude-code",
3348
- "respan setup --no-instrument"
3349
- ],
3296
+ "args": {
3297
+ "trace-id": {
3298
+ "description": "Trace ID (trace_id in MCP)",
3299
+ "name": "trace-id",
3300
+ "required": true
3301
+ }
3302
+ },
3303
+ "description": "Get a specific trace",
3350
3304
  "flags": {
3351
3305
  "api-key": {
3352
3306
  "description": "API key (env: RESPAN_API_KEY)",
@@ -3388,45 +3342,28 @@
3388
3342
  "name": "verbose",
3389
3343
  "allowNo": false,
3390
3344
  "type": "boolean"
3391
- },
3392
- "agent": {
3393
- "description": "Deprecated compatibility flag; no agent is launched",
3394
- "name": "agent",
3395
- "hasDynamicHelp": false,
3396
- "multiple": false,
3397
- "type": "option"
3398
- },
3399
- "no-instrument": {
3400
- "description": "Deprecated compatibility flag; setup only prints a prompt",
3401
- "name": "no-instrument",
3402
- "allowNo": false,
3403
- "type": "boolean"
3404
3345
  }
3405
3346
  },
3406
3347
  "hasDynamicHelp": false,
3407
3348
  "hiddenAliases": [],
3408
- "id": "setup",
3349
+ "id": "traces:get",
3409
3350
  "pluginAlias": "@respan/cli",
3410
3351
  "pluginName": "@respan/cli",
3411
3352
  "pluginType": "core",
3412
3353
  "strict": true,
3354
+ "enableJsonFlag": false,
3413
3355
  "isESM": true,
3414
3356
  "relativePath": [
3415
3357
  "dist",
3416
3358
  "commands",
3417
- "setup",
3418
- "index.js"
3359
+ "traces",
3360
+ "get.js"
3419
3361
  ]
3420
3362
  },
3421
- "setup:tracing": {
3363
+ "traces:list": {
3422
3364
  "aliases": [],
3423
3365
  "args": {},
3424
- "description": "Deprecated tracing setup entry point. Prints the official tracing setup prompt.",
3425
- "examples": [
3426
- "respan setup tracing",
3427
- "respan setup tracing --agent claude-code",
3428
- "respan setup tracing --no-instrument"
3429
- ],
3366
+ "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",
3430
3367
  "flags": {
3431
3368
  "api-key": {
3432
3369
  "description": "API key (env: RESPAN_API_KEY)",
@@ -3469,45 +3406,79 @@
3469
3406
  "allowNo": false,
3470
3407
  "type": "boolean"
3471
3408
  },
3472
- "agent": {
3473
- "description": "Deprecated compatibility flag; no agent is launched",
3474
- "name": "agent",
3409
+ "limit": {
3410
+ "description": "Number of results per page",
3411
+ "name": "limit",
3412
+ "default": 10,
3475
3413
  "hasDynamicHelp": false,
3476
3414
  "multiple": false,
3477
3415
  "type": "option"
3478
3416
  },
3479
- "no-instrument": {
3480
- "description": "Deprecated compatibility flag; setup only prints a prompt",
3481
- "name": "no-instrument",
3482
- "allowNo": false,
3483
- "type": "boolean"
3417
+ "page": {
3418
+ "description": "Page number",
3419
+ "name": "page",
3420
+ "default": 1,
3421
+ "hasDynamicHelp": false,
3422
+ "multiple": false,
3423
+ "type": "option"
3424
+ },
3425
+ "sort-by": {
3426
+ "description": "Sort field (prefix with - for descending)",
3427
+ "name": "sort-by",
3428
+ "default": "-timestamp",
3429
+ "hasDynamicHelp": false,
3430
+ "multiple": false,
3431
+ "type": "option"
3432
+ },
3433
+ "start-time": {
3434
+ "description": "Start time filter (ISO 8601)",
3435
+ "name": "start-time",
3436
+ "hasDynamicHelp": false,
3437
+ "multiple": false,
3438
+ "type": "option"
3439
+ },
3440
+ "end-time": {
3441
+ "description": "End time filter (ISO 8601)",
3442
+ "name": "end-time",
3443
+ "hasDynamicHelp": false,
3444
+ "multiple": false,
3445
+ "type": "option"
3446
+ },
3447
+ "environment": {
3448
+ "description": "Environment filter",
3449
+ "name": "environment",
3450
+ "hasDynamicHelp": false,
3451
+ "multiple": false,
3452
+ "type": "option"
3453
+ },
3454
+ "filter": {
3455
+ "description": "Filter in field:operator:value format (repeatable)",
3456
+ "name": "filter",
3457
+ "hasDynamicHelp": false,
3458
+ "multiple": true,
3459
+ "type": "option"
3484
3460
  }
3485
3461
  },
3486
3462
  "hasDynamicHelp": false,
3487
3463
  "hiddenAliases": [],
3488
- "id": "setup:tracing",
3464
+ "id": "traces:list",
3489
3465
  "pluginAlias": "@respan/cli",
3490
3466
  "pluginName": "@respan/cli",
3491
3467
  "pluginType": "core",
3492
3468
  "strict": true,
3469
+ "enableJsonFlag": false,
3493
3470
  "isESM": true,
3494
3471
  "relativePath": [
3495
3472
  "dist",
3496
3473
  "commands",
3497
- "setup",
3498
- "tracing.js"
3474
+ "traces",
3475
+ "list.js"
3499
3476
  ]
3500
3477
  },
3501
- "tools:call": {
3478
+ "traces:summary": {
3502
3479
  "aliases": [],
3503
- "args": {
3504
- "name": {
3505
- "description": "MCP tool name, e.g. log_list or trace_get",
3506
- "name": "name",
3507
- "required": true
3508
- }
3509
- },
3510
- "description": "Call a Respan MCP tool with its exact tool name and JSON arguments. Writes execute immediately; inspect tools list --json before calling.",
3480
+ "args": {},
3481
+ "description": "Get a span-level summary of activity for a time range (counts, latency, cost, errors aggregated across spans)",
3511
3482
  "flags": {
3512
3483
  "api-key": {
3513
3484
  "description": "API key (env: RESPAN_API_KEY)",
@@ -3550,29 +3521,18 @@
3550
3521
  "allowNo": false,
3551
3522
  "type": "boolean"
3552
3523
  },
3553
- "input": {
3554
- "description": "JSON object of MCP tool arguments",
3555
- "exclusive": [
3556
- "input-file"
3557
- ],
3558
- "name": "input",
3559
- "hasDynamicHelp": false,
3560
- "multiple": false,
3561
- "type": "option"
3562
- },
3563
- "input-file": {
3564
- "description": "File containing a JSON object of MCP tool arguments",
3565
- "exclusive": [
3566
- "input"
3567
- ],
3568
- "name": "input-file",
3524
+ "start-time": {
3525
+ "description": "Start time (ISO 8601)",
3526
+ "name": "start-time",
3527
+ "required": true,
3569
3528
  "hasDynamicHelp": false,
3570
3529
  "multiple": false,
3571
3530
  "type": "option"
3572
3531
  },
3573
- "mcp-url": {
3574
- "description": "Custom MCP server URL (defaults to the active Platform or Enterprise server)",
3575
- "name": "mcp-url",
3532
+ "end-time": {
3533
+ "description": "End time (ISO 8601)",
3534
+ "name": "end-time",
3535
+ "required": true,
3576
3536
  "hasDynamicHelp": false,
3577
3537
  "multiple": false,
3578
3538
  "type": "option"
@@ -3580,7 +3540,7 @@
3580
3540
  },
3581
3541
  "hasDynamicHelp": false,
3582
3542
  "hiddenAliases": [],
3583
- "id": "tools:call",
3543
+ "id": "traces:summary",
3584
3544
  "pluginAlias": "@respan/cli",
3585
3545
  "pluginName": "@respan/cli",
3586
3546
  "pluginType": "core",
@@ -3590,14 +3550,14 @@
3590
3550
  "relativePath": [
3591
3551
  "dist",
3592
3552
  "commands",
3593
- "tools",
3594
- "call.js"
3553
+ "traces",
3554
+ "summary.js"
3595
3555
  ]
3596
3556
  },
3597
- "tools:list": {
3557
+ "users:create": {
3598
3558
  "aliases": [],
3599
3559
  "args": {},
3600
- "description": "List the current Respan MCP tools, their input schemas, and annotations.",
3560
+ "description": "Create a new user (customer)",
3601
3561
  "flags": {
3602
3562
  "api-key": {
3603
3563
  "description": "API key (env: RESPAN_API_KEY)",
@@ -3640,22 +3600,31 @@
3640
3600
  "allowNo": false,
3641
3601
  "type": "boolean"
3642
3602
  },
3643
- "category": {
3644
- "description": "Filter by a category returned by the MCP server",
3645
- "name": "category",
3603
+ "identifier": {
3604
+ "description": "Customer identifier",
3605
+ "name": "identifier",
3606
+ "required": true,
3607
+ "hasDynamicHelp": false,
3608
+ "multiple": false,
3609
+ "type": "option"
3610
+ },
3611
+ "name": {
3612
+ "description": "Customer name",
3613
+ "name": "name",
3646
3614
  "hasDynamicHelp": false,
3647
3615
  "multiple": false,
3648
3616
  "type": "option"
3649
3617
  },
3650
- "categories": {
3651
- "description": "List available categories and tool counts instead of tools",
3652
- "name": "categories",
3653
- "allowNo": false,
3654
- "type": "boolean"
3618
+ "email": {
3619
+ "description": "Customer email",
3620
+ "name": "email",
3621
+ "hasDynamicHelp": false,
3622
+ "multiple": false,
3623
+ "type": "option"
3655
3624
  },
3656
- "mcp-url": {
3657
- "description": "Custom MCP server URL (defaults to the active Platform or Enterprise server)",
3658
- "name": "mcp-url",
3625
+ "metadata": {
3626
+ "description": "Metadata as JSON string",
3627
+ "name": "metadata",
3659
3628
  "hasDynamicHelp": false,
3660
3629
  "multiple": false,
3661
3630
  "type": "option"
@@ -3663,7 +3632,7 @@
3663
3632
  },
3664
3633
  "hasDynamicHelp": false,
3665
3634
  "hiddenAliases": [],
3666
- "id": "tools:list",
3635
+ "id": "users:create",
3667
3636
  "pluginAlias": "@respan/cli",
3668
3637
  "pluginName": "@respan/cli",
3669
3638
  "pluginType": "core",
@@ -3673,20 +3642,20 @@
3673
3642
  "relativePath": [
3674
3643
  "dist",
3675
3644
  "commands",
3676
- "tools",
3677
- "list.js"
3645
+ "users",
3646
+ "create.js"
3678
3647
  ]
3679
3648
  },
3680
- "traces:get": {
3649
+ "users:get": {
3681
3650
  "aliases": [],
3682
3651
  "args": {
3683
3652
  "id": {
3684
- "description": "Trace ID",
3653
+ "description": "Customer identifier",
3685
3654
  "name": "id",
3686
3655
  "required": true
3687
3656
  }
3688
3657
  },
3689
- "description": "Get a specific trace",
3658
+ "description": "Get a specific user (customer)",
3690
3659
  "flags": {
3691
3660
  "api-key": {
3692
3661
  "description": "API key (env: RESPAN_API_KEY)",
@@ -3732,7 +3701,7 @@
3732
3701
  },
3733
3702
  "hasDynamicHelp": false,
3734
3703
  "hiddenAliases": [],
3735
- "id": "traces:get",
3704
+ "id": "users:get",
3736
3705
  "pluginAlias": "@respan/cli",
3737
3706
  "pluginName": "@respan/cli",
3738
3707
  "pluginType": "core",
@@ -3742,14 +3711,14 @@
3742
3711
  "relativePath": [
3743
3712
  "dist",
3744
3713
  "commands",
3745
- "traces",
3714
+ "users",
3746
3715
  "get.js"
3747
3716
  ]
3748
3717
  },
3749
- "traces:list": {
3718
+ "users:list": {
3750
3719
  "aliases": [],
3751
3720
  "args": {},
3752
- "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",
3721
+ "description": "List users (customers)",
3753
3722
  "flags": {
3754
3723
  "api-key": {
3755
3724
  "description": "API key (env: RESPAN_API_KEY)",
@@ -3795,7 +3764,7 @@
3795
3764
  "limit": {
3796
3765
  "description": "Number of results per page",
3797
3766
  "name": "limit",
3798
- "default": 10,
3767
+ "default": 20,
3799
3768
  "hasDynamicHelp": false,
3800
3769
  "multiple": false,
3801
3770
  "type": "option"
@@ -3809,23 +3778,8 @@
3809
3778
  "type": "option"
3810
3779
  },
3811
3780
  "sort-by": {
3812
- "description": "Sort field (prefix with - for descending)",
3781
+ "description": "Sort field",
3813
3782
  "name": "sort-by",
3814
- "default": "-timestamp",
3815
- "hasDynamicHelp": false,
3816
- "multiple": false,
3817
- "type": "option"
3818
- },
3819
- "start-time": {
3820
- "description": "Start time filter (ISO 8601)",
3821
- "name": "start-time",
3822
- "hasDynamicHelp": false,
3823
- "multiple": false,
3824
- "type": "option"
3825
- },
3826
- "end-time": {
3827
- "description": "End time filter (ISO 8601)",
3828
- "name": "end-time",
3829
3783
  "hasDynamicHelp": false,
3830
3784
  "multiple": false,
3831
3785
  "type": "option"
@@ -3836,18 +3790,11 @@
3836
3790
  "hasDynamicHelp": false,
3837
3791
  "multiple": false,
3838
3792
  "type": "option"
3839
- },
3840
- "filter": {
3841
- "description": "Filter in field:operator:value format (repeatable)",
3842
- "name": "filter",
3843
- "hasDynamicHelp": false,
3844
- "multiple": true,
3845
- "type": "option"
3846
3793
  }
3847
3794
  },
3848
3795
  "hasDynamicHelp": false,
3849
3796
  "hiddenAliases": [],
3850
- "id": "traces:list",
3797
+ "id": "users:list",
3851
3798
  "pluginAlias": "@respan/cli",
3852
3799
  "pluginName": "@respan/cli",
3853
3800
  "pluginType": "core",
@@ -3857,14 +3804,20 @@
3857
3804
  "relativePath": [
3858
3805
  "dist",
3859
3806
  "commands",
3860
- "traces",
3807
+ "users",
3861
3808
  "list.js"
3862
3809
  ]
3863
3810
  },
3864
- "traces:summary": {
3811
+ "users:update": {
3865
3812
  "aliases": [],
3866
- "args": {},
3867
- "description": "Get a span-level summary of activity for a time range (counts, latency, cost, errors aggregated across spans)",
3813
+ "args": {
3814
+ "id": {
3815
+ "description": "Customer identifier",
3816
+ "name": "id",
3817
+ "required": true
3818
+ }
3819
+ },
3820
+ "description": "Update a user (customer)",
3868
3821
  "flags": {
3869
3822
  "api-key": {
3870
3823
  "description": "API key (env: RESPAN_API_KEY)",
@@ -3907,18 +3860,23 @@
3907
3860
  "allowNo": false,
3908
3861
  "type": "boolean"
3909
3862
  },
3910
- "start-time": {
3911
- "description": "Start time (ISO 8601)",
3912
- "name": "start-time",
3913
- "required": true,
3863
+ "name": {
3864
+ "description": "Customer name",
3865
+ "name": "name",
3914
3866
  "hasDynamicHelp": false,
3915
3867
  "multiple": false,
3916
3868
  "type": "option"
3917
3869
  },
3918
- "end-time": {
3919
- "description": "End time (ISO 8601)",
3920
- "name": "end-time",
3921
- "required": true,
3870
+ "email": {
3871
+ "description": "Customer email",
3872
+ "name": "email",
3873
+ "hasDynamicHelp": false,
3874
+ "multiple": false,
3875
+ "type": "option"
3876
+ },
3877
+ "metadata": {
3878
+ "description": "Metadata as JSON string",
3879
+ "name": "metadata",
3922
3880
  "hasDynamicHelp": false,
3923
3881
  "multiple": false,
3924
3882
  "type": "option"
@@ -3926,7 +3884,7 @@
3926
3884
  },
3927
3885
  "hasDynamicHelp": false,
3928
3886
  "hiddenAliases": [],
3929
- "id": "traces:summary",
3887
+ "id": "users:update",
3930
3888
  "pluginAlias": "@respan/cli",
3931
3889
  "pluginName": "@respan/cli",
3932
3890
  "pluginType": "core",
@@ -3936,14 +3894,14 @@
3936
3894
  "relativePath": [
3937
3895
  "dist",
3938
3896
  "commands",
3939
- "traces",
3940
- "summary.js"
3897
+ "users",
3898
+ "update.js"
3941
3899
  ]
3942
3900
  },
3943
- "users:create": {
3901
+ "logs:create": {
3944
3902
  "aliases": [],
3945
3903
  "args": {},
3946
- "description": "Create a new user (customer)",
3904
+ "description": "Create a log span",
3947
3905
  "flags": {
3948
3906
  "api-key": {
3949
3907
  "description": "API key (env: RESPAN_API_KEY)",
@@ -3986,24 +3944,24 @@
3986
3944
  "allowNo": false,
3987
3945
  "type": "boolean"
3988
3946
  },
3989
- "identifier": {
3990
- "description": "Customer identifier",
3991
- "name": "identifier",
3947
+ "input": {
3948
+ "description": "Input text or JSON",
3949
+ "name": "input",
3992
3950
  "required": true,
3993
3951
  "hasDynamicHelp": false,
3994
3952
  "multiple": false,
3995
3953
  "type": "option"
3996
3954
  },
3997
- "name": {
3998
- "description": "Customer name",
3999
- "name": "name",
3955
+ "output": {
3956
+ "description": "Output text or JSON",
3957
+ "name": "output",
4000
3958
  "hasDynamicHelp": false,
4001
3959
  "multiple": false,
4002
3960
  "type": "option"
4003
3961
  },
4004
- "email": {
4005
- "description": "Customer email",
4006
- "name": "email",
3962
+ "model": {
3963
+ "description": "Model name",
3964
+ "name": "model",
4007
3965
  "hasDynamicHelp": false,
4008
3966
  "multiple": false,
4009
3967
  "type": "option"
@@ -4018,7 +3976,7 @@
4018
3976
  },
4019
3977
  "hasDynamicHelp": false,
4020
3978
  "hiddenAliases": [],
4021
- "id": "users:create",
3979
+ "id": "logs:create",
4022
3980
  "pluginAlias": "@respan/cli",
4023
3981
  "pluginName": "@respan/cli",
4024
3982
  "pluginType": "core",
@@ -4028,20 +3986,22 @@
4028
3986
  "relativePath": [
4029
3987
  "dist",
4030
3988
  "commands",
4031
- "users",
3989
+ "logs",
4032
3990
  "create.js"
4033
3991
  ]
4034
3992
  },
4035
- "users:get": {
4036
- "aliases": [],
3993
+ "logs:get": {
3994
+ "aliases": [
3995
+ "spans:get"
3996
+ ],
4037
3997
  "args": {
4038
- "id": {
4039
- "description": "Customer identifier",
4040
- "name": "id",
3998
+ "span-id": {
3999
+ "description": "Span ID (span_id in MCP)",
4000
+ "name": "span-id",
4041
4001
  "required": true
4042
4002
  }
4043
4003
  },
4044
- "description": "Get a specific user (customer)",
4004
+ "description": "Get one span by its span ID (also: respan spans get)",
4045
4005
  "flags": {
4046
4006
  "api-key": {
4047
4007
  "description": "API key (env: RESPAN_API_KEY)",
@@ -4087,7 +4047,7 @@
4087
4047
  },
4088
4048
  "hasDynamicHelp": false,
4089
4049
  "hiddenAliases": [],
4090
- "id": "users:get",
4050
+ "id": "logs:get",
4091
4051
  "pluginAlias": "@respan/cli",
4092
4052
  "pluginName": "@respan/cli",
4093
4053
  "pluginType": "core",
@@ -4097,14 +4057,16 @@
4097
4057
  "relativePath": [
4098
4058
  "dist",
4099
4059
  "commands",
4100
- "users",
4060
+ "logs",
4101
4061
  "get.js"
4102
4062
  ]
4103
4063
  },
4104
- "users:list": {
4105
- "aliases": [],
4064
+ "logs:list": {
4065
+ "aliases": [
4066
+ "spans:list"
4067
+ ],
4106
4068
  "args": {},
4107
- "description": "List users (customers)",
4069
+ "description": "List and filter spans (LLM request logs). Also: respan spans list.\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",
4108
4070
  "flags": {
4109
4071
  "api-key": {
4110
4072
  "description": "API key (env: RESPAN_API_KEY)",
@@ -4148,9 +4110,9 @@
4148
4110
  "type": "boolean"
4149
4111
  },
4150
4112
  "limit": {
4151
- "description": "Number of results per page",
4113
+ "description": "Number of results per page (max 1000)",
4152
4114
  "name": "limit",
4153
- "default": 20,
4115
+ "default": 50,
4154
4116
  "hasDynamicHelp": false,
4155
4117
  "multiple": false,
4156
4118
  "type": "option"
@@ -4164,15 +4126,50 @@
4164
4126
  "type": "option"
4165
4127
  },
4166
4128
  "sort-by": {
4167
- "description": "Sort field",
4129
+ "description": "Sort field (prefix with - for descending, e.g. -cost, -latency)",
4168
4130
  "name": "sort-by",
4169
4131
  "hasDynamicHelp": false,
4170
4132
  "multiple": false,
4171
4133
  "type": "option"
4172
4134
  },
4173
- "environment": {
4174
- "description": "Environment filter",
4175
- "name": "environment",
4135
+ "start-time": {
4136
+ "description": "Start time filter (ISO 8601)",
4137
+ "name": "start-time",
4138
+ "hasDynamicHelp": false,
4139
+ "multiple": false,
4140
+ "type": "option"
4141
+ },
4142
+ "end-time": {
4143
+ "description": "End time filter (ISO 8601)",
4144
+ "name": "end-time",
4145
+ "hasDynamicHelp": false,
4146
+ "multiple": false,
4147
+ "type": "option"
4148
+ },
4149
+ "filter": {
4150
+ "description": "Filter in field:operator:value format (repeatable)",
4151
+ "name": "filter",
4152
+ "hasDynamicHelp": false,
4153
+ "multiple": true,
4154
+ "type": "option"
4155
+ },
4156
+ "all-envs": {
4157
+ "description": "Include all environments (true/false)",
4158
+ "name": "all-envs",
4159
+ "hasDynamicHelp": false,
4160
+ "multiple": false,
4161
+ "type": "option"
4162
+ },
4163
+ "is-test": {
4164
+ "description": "Filter by test (true) or production (false) environment",
4165
+ "name": "is-test",
4166
+ "hasDynamicHelp": false,
4167
+ "multiple": false,
4168
+ "type": "option"
4169
+ },
4170
+ "include-fields": {
4171
+ "description": "Comma-separated fields to include in response",
4172
+ "name": "include-fields",
4176
4173
  "hasDynamicHelp": false,
4177
4174
  "multiple": false,
4178
4175
  "type": "option"
@@ -4180,7 +4177,7 @@
4180
4177
  },
4181
4178
  "hasDynamicHelp": false,
4182
4179
  "hiddenAliases": [],
4183
- "id": "users:list",
4180
+ "id": "logs:list",
4184
4181
  "pluginAlias": "@respan/cli",
4185
4182
  "pluginName": "@respan/cli",
4186
4183
  "pluginType": "core",
@@ -4190,20 +4187,16 @@
4190
4187
  "relativePath": [
4191
4188
  "dist",
4192
4189
  "commands",
4193
- "users",
4190
+ "logs",
4194
4191
  "list.js"
4195
4192
  ]
4196
4193
  },
4197
- "users:update": {
4198
- "aliases": [],
4199
- "args": {
4200
- "id": {
4201
- "description": "Customer identifier",
4202
- "name": "id",
4203
- "required": true
4204
- }
4205
- },
4206
- "description": "Update a user (customer)",
4194
+ "logs:summary": {
4195
+ "aliases": [
4196
+ "spans:summary"
4197
+ ],
4198
+ "args": {},
4199
+ "description": "Get aggregated summary statistics for spans in a time range. Also: respan spans summary.\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",
4207
4200
  "flags": {
4208
4201
  "api-key": {
4209
4202
  "description": "API key (env: RESPAN_API_KEY)",
@@ -4246,23 +4239,39 @@
4246
4239
  "allowNo": false,
4247
4240
  "type": "boolean"
4248
4241
  },
4249
- "name": {
4250
- "description": "Customer name",
4251
- "name": "name",
4242
+ "start-time": {
4243
+ "description": "Start time (ISO 8601)",
4244
+ "name": "start-time",
4245
+ "required": true,
4252
4246
  "hasDynamicHelp": false,
4253
4247
  "multiple": false,
4254
4248
  "type": "option"
4255
4249
  },
4256
- "email": {
4257
- "description": "Customer email",
4258
- "name": "email",
4250
+ "end-time": {
4251
+ "description": "End time (ISO 8601)",
4252
+ "name": "end-time",
4253
+ "required": true,
4259
4254
  "hasDynamicHelp": false,
4260
4255
  "multiple": false,
4261
4256
  "type": "option"
4262
4257
  },
4263
- "metadata": {
4264
- "description": "Metadata as JSON string",
4265
- "name": "metadata",
4258
+ "filter": {
4259
+ "description": "Filter in field:operator:value format (repeatable)",
4260
+ "name": "filter",
4261
+ "hasDynamicHelp": false,
4262
+ "multiple": true,
4263
+ "type": "option"
4264
+ },
4265
+ "all-envs": {
4266
+ "description": "Include all environments (true/false)",
4267
+ "name": "all-envs",
4268
+ "hasDynamicHelp": false,
4269
+ "multiple": false,
4270
+ "type": "option"
4271
+ },
4272
+ "is-test": {
4273
+ "description": "Filter by test (true) or production (false) environment",
4274
+ "name": "is-test",
4266
4275
  "hasDynamicHelp": false,
4267
4276
  "multiple": false,
4268
4277
  "type": "option"
@@ -4270,7 +4279,7 @@
4270
4279
  },
4271
4280
  "hasDynamicHelp": false,
4272
4281
  "hiddenAliases": [],
4273
- "id": "users:update",
4282
+ "id": "logs:summary",
4274
4283
  "pluginAlias": "@respan/cli",
4275
4284
  "pluginName": "@respan/cli",
4276
4285
  "pluginType": "core",
@@ -4280,10 +4289,10 @@
4280
4289
  "relativePath": [
4281
4290
  "dist",
4282
4291
  "commands",
4283
- "users",
4284
- "update.js"
4292
+ "logs",
4293
+ "summary.js"
4285
4294
  ]
4286
4295
  }
4287
4296
  },
4288
- "version": "0.17.3"
4297
+ "version": "0.19.0"
4289
4298
  }