@respan/cli 0.17.2 → 0.18.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.
@@ -914,146 +914,6 @@
914
914
  "set.js"
915
915
  ]
916
916
  },
917
- "demo:clear": {
918
- "aliases": [],
919
- "args": {},
920
- "description": "Delete the sample prompts, datasets, and evaluators created by `respan demo`. Demo traces are left in place (each run is timestamped history). Idempotent — safe to re-run.",
921
- "examples": [
922
- "<%= config.bin %> demo clear",
923
- "<%= config.bin %> demo clear --yes"
924
- ],
925
- "flags": {
926
- "api-key": {
927
- "description": "API key (env: RESPAN_API_KEY)",
928
- "env": "RESPAN_API_KEY",
929
- "name": "api-key",
930
- "hasDynamicHelp": false,
931
- "multiple": false,
932
- "type": "option"
933
- },
934
- "base-url": {
935
- "description": "Temporary API base URL override for this command",
936
- "name": "base-url",
937
- "hasDynamicHelp": false,
938
- "multiple": false,
939
- "type": "option"
940
- },
941
- "profile": {
942
- "description": "Named profile to use",
943
- "name": "profile",
944
- "hasDynamicHelp": false,
945
- "multiple": false,
946
- "type": "option"
947
- },
948
- "json": {
949
- "description": "Output as JSON",
950
- "name": "json",
951
- "allowNo": false,
952
- "type": "boolean"
953
- },
954
- "csv": {
955
- "description": "Output as CSV",
956
- "name": "csv",
957
- "allowNo": false,
958
- "type": "boolean"
959
- },
960
- "verbose": {
961
- "char": "v",
962
- "description": "Show verbose output",
963
- "name": "verbose",
964
- "allowNo": false,
965
- "type": "boolean"
966
- },
967
- "yes": {
968
- "char": "y",
969
- "description": "Skip the confirmation prompt",
970
- "name": "yes",
971
- "allowNo": false,
972
- "type": "boolean"
973
- }
974
- },
975
- "hasDynamicHelp": false,
976
- "hiddenAliases": [],
977
- "id": "demo:clear",
978
- "pluginAlias": "@respan/cli",
979
- "pluginName": "@respan/cli",
980
- "pluginType": "core",
981
- "strict": true,
982
- "enableJsonFlag": false,
983
- "isESM": true,
984
- "relativePath": [
985
- "dist",
986
- "commands",
987
- "demo",
988
- "clear.js"
989
- ]
990
- },
991
- "demo": {
992
- "aliases": [],
993
- "args": {},
994
- "description": "Seed your account with sample data (prompts and traces) so you have something to explore. Idempotent — safe to re-run.",
995
- "examples": [
996
- "<%= config.bin %> demo"
997
- ],
998
- "flags": {
999
- "api-key": {
1000
- "description": "API key (env: RESPAN_API_KEY)",
1001
- "env": "RESPAN_API_KEY",
1002
- "name": "api-key",
1003
- "hasDynamicHelp": false,
1004
- "multiple": false,
1005
- "type": "option"
1006
- },
1007
- "base-url": {
1008
- "description": "Temporary API base URL override for this command",
1009
- "name": "base-url",
1010
- "hasDynamicHelp": false,
1011
- "multiple": false,
1012
- "type": "option"
1013
- },
1014
- "profile": {
1015
- "description": "Named profile to use",
1016
- "name": "profile",
1017
- "hasDynamicHelp": false,
1018
- "multiple": false,
1019
- "type": "option"
1020
- },
1021
- "json": {
1022
- "description": "Output as JSON",
1023
- "name": "json",
1024
- "allowNo": false,
1025
- "type": "boolean"
1026
- },
1027
- "csv": {
1028
- "description": "Output as CSV",
1029
- "name": "csv",
1030
- "allowNo": false,
1031
- "type": "boolean"
1032
- },
1033
- "verbose": {
1034
- "char": "v",
1035
- "description": "Show verbose output",
1036
- "name": "verbose",
1037
- "allowNo": false,
1038
- "type": "boolean"
1039
- }
1040
- },
1041
- "hasDynamicHelp": false,
1042
- "hiddenAliases": [],
1043
- "id": "demo",
1044
- "pluginAlias": "@respan/cli",
1045
- "pluginName": "@respan/cli",
1046
- "pluginType": "core",
1047
- "strict": true,
1048
- "enableJsonFlag": false,
1049
- "isESM": true,
1050
- "relativePath": [
1051
- "dist",
1052
- "commands",
1053
- "demo",
1054
- "index.js"
1055
- ]
1056
- },
1057
917
  "datasets:create-span": {
1058
918
  "aliases": [],
1059
919
  "args": {
@@ -1583,16 +1443,14 @@
1583
1443
  "update.js"
1584
1444
  ]
1585
1445
  },
1586
- "eval": {
1446
+ "demo:clear": {
1587
1447
  "aliases": [],
1588
- "args": {
1589
- "file": {
1590
- "description": "Path to eval JSON file",
1591
- "name": "file",
1592
- "required": true
1593
- }
1594
- },
1595
- "description": "Run an eval defined in a JSON file (creates prompt + dataset on the platform)",
1448
+ "args": {},
1449
+ "description": "Delete the sample prompts, datasets, and evaluators created by `respan demo`. Demo traces are left in place (each run is timestamped history). Idempotent — safe to re-run.",
1450
+ "examples": [
1451
+ "<%= config.bin %> demo clear",
1452
+ "<%= config.bin %> demo clear --yes"
1453
+ ],
1596
1454
  "flags": {
1597
1455
  "api-key": {
1598
1456
  "description": "API key (env: RESPAN_API_KEY)",
@@ -1634,11 +1492,18 @@
1634
1492
  "name": "verbose",
1635
1493
  "allowNo": false,
1636
1494
  "type": "boolean"
1495
+ },
1496
+ "yes": {
1497
+ "char": "y",
1498
+ "description": "Skip the confirmation prompt",
1499
+ "name": "yes",
1500
+ "allowNo": false,
1501
+ "type": "boolean"
1637
1502
  }
1638
1503
  },
1639
1504
  "hasDynamicHelp": false,
1640
1505
  "hiddenAliases": [],
1641
- "id": "eval",
1506
+ "id": "demo:clear",
1642
1507
  "pluginAlias": "@respan/cli",
1643
1508
  "pluginName": "@respan/cli",
1644
1509
  "pluginType": "core",
@@ -1648,14 +1513,17 @@
1648
1513
  "relativePath": [
1649
1514
  "dist",
1650
1515
  "commands",
1651
- "eval",
1652
- "index.js"
1516
+ "demo",
1517
+ "clear.js"
1653
1518
  ]
1654
1519
  },
1655
- "evaluators:create": {
1520
+ "demo": {
1656
1521
  "aliases": [],
1657
1522
  "args": {},
1658
- "description": "Create a new evaluator",
1523
+ "description": "Seed your account with sample data (prompts and traces) so you have something to explore. Idempotent — safe to re-run.",
1524
+ "examples": [
1525
+ "<%= config.bin %> demo"
1526
+ ],
1659
1527
  "flags": {
1660
1528
  "api-key": {
1661
1529
  "description": "API key (env: RESPAN_API_KEY)",
@@ -1697,40 +1565,11 @@
1697
1565
  "name": "verbose",
1698
1566
  "allowNo": false,
1699
1567
  "type": "boolean"
1700
- },
1701
- "name": {
1702
- "description": "Evaluator name",
1703
- "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
- "hasDynamicHelp": false,
1713
- "multiple": false,
1714
- "type": "option"
1715
- },
1716
- "description": {
1717
- "description": "Evaluator description",
1718
- "name": "description",
1719
- "hasDynamicHelp": false,
1720
- "multiple": false,
1721
- "type": "option"
1722
- },
1723
- "config": {
1724
- "description": "Evaluator config as JSON string",
1725
- "name": "config",
1726
- "hasDynamicHelp": false,
1727
- "multiple": false,
1728
- "type": "option"
1729
1568
  }
1730
1569
  },
1731
1570
  "hasDynamicHelp": false,
1732
1571
  "hiddenAliases": [],
1733
- "id": "evaluators:create",
1572
+ "id": "demo",
1734
1573
  "pluginAlias": "@respan/cli",
1735
1574
  "pluginName": "@respan/cli",
1736
1575
  "pluginType": "core",
@@ -1740,20 +1579,14 @@
1740
1579
  "relativePath": [
1741
1580
  "dist",
1742
1581
  "commands",
1743
- "evaluators",
1744
- "create.js"
1582
+ "demo",
1583
+ "index.js"
1745
1584
  ]
1746
1585
  },
1747
- "evaluators:get": {
1586
+ "experiments:create": {
1748
1587
  "aliases": [],
1749
- "args": {
1750
- "id": {
1751
- "description": "Evaluator ID",
1752
- "name": "id",
1753
- "required": true
1754
- }
1755
- },
1756
- "description": "Get a specific evaluator",
1588
+ "args": {},
1589
+ "description": "Create a new experiment",
1757
1590
  "flags": {
1758
1591
  "api-key": {
1759
1592
  "description": "API key (env: RESPAN_API_KEY)",
@@ -1795,11 +1628,41 @@
1795
1628
  "name": "verbose",
1796
1629
  "allowNo": false,
1797
1630
  "type": "boolean"
1631
+ },
1632
+ "name": {
1633
+ "description": "Experiment name",
1634
+ "name": "name",
1635
+ "required": true,
1636
+ "hasDynamicHelp": false,
1637
+ "multiple": false,
1638
+ "type": "option"
1639
+ },
1640
+ "dataset-id": {
1641
+ "description": "Dataset ID",
1642
+ "name": "dataset-id",
1643
+ "required": true,
1644
+ "hasDynamicHelp": false,
1645
+ "multiple": false,
1646
+ "type": "option"
1647
+ },
1648
+ "description": {
1649
+ "description": "Experiment description",
1650
+ "name": "description",
1651
+ "hasDynamicHelp": false,
1652
+ "multiple": false,
1653
+ "type": "option"
1654
+ },
1655
+ "workflows": {
1656
+ "description": "Workflows configuration as JSON string",
1657
+ "name": "workflows",
1658
+ "hasDynamicHelp": false,
1659
+ "multiple": false,
1660
+ "type": "option"
1798
1661
  }
1799
1662
  },
1800
1663
  "hasDynamicHelp": false,
1801
1664
  "hiddenAliases": [],
1802
- "id": "evaluators:get",
1665
+ "id": "experiments:create",
1803
1666
  "pluginAlias": "@respan/cli",
1804
1667
  "pluginName": "@respan/cli",
1805
1668
  "pluginType": "core",
@@ -1809,14 +1672,20 @@
1809
1672
  "relativePath": [
1810
1673
  "dist",
1811
1674
  "commands",
1812
- "evaluators",
1813
- "get.js"
1675
+ "experiments",
1676
+ "create.js"
1814
1677
  ]
1815
1678
  },
1816
- "evaluators:list": {
1679
+ "experiments:get": {
1817
1680
  "aliases": [],
1818
- "args": {},
1819
- "description": "List evaluators",
1681
+ "args": {
1682
+ "id": {
1683
+ "description": "Experiment ID",
1684
+ "name": "id",
1685
+ "required": true
1686
+ }
1687
+ },
1688
+ "description": "Get a specific experiment",
1820
1689
  "flags": {
1821
1690
  "api-key": {
1822
1691
  "description": "API key (env: RESPAN_API_KEY)",
@@ -1858,27 +1727,11 @@
1858
1727
  "name": "verbose",
1859
1728
  "allowNo": false,
1860
1729
  "type": "boolean"
1861
- },
1862
- "limit": {
1863
- "description": "Number of results per page",
1864
- "name": "limit",
1865
- "default": 20,
1866
- "hasDynamicHelp": false,
1867
- "multiple": false,
1868
- "type": "option"
1869
- },
1870
- "page": {
1871
- "description": "Page number",
1872
- "name": "page",
1873
- "default": 1,
1874
- "hasDynamicHelp": false,
1875
- "multiple": false,
1876
- "type": "option"
1877
1730
  }
1878
1731
  },
1879
1732
  "hasDynamicHelp": false,
1880
1733
  "hiddenAliases": [],
1881
- "id": "evaluators:list",
1734
+ "id": "experiments:get",
1882
1735
  "pluginAlias": "@respan/cli",
1883
1736
  "pluginName": "@respan/cli",
1884
1737
  "pluginType": "core",
@@ -1888,20 +1741,14 @@
1888
1741
  "relativePath": [
1889
1742
  "dist",
1890
1743
  "commands",
1891
- "evaluators",
1892
- "list.js"
1744
+ "experiments",
1745
+ "get.js"
1893
1746
  ]
1894
1747
  },
1895
- "evaluators:run": {
1748
+ "experiments:list": {
1896
1749
  "aliases": [],
1897
- "args": {
1898
- "id": {
1899
- "description": "Evaluator ID",
1900
- "name": "id",
1901
- "required": true
1902
- }
1903
- },
1904
- "description": "Run an evaluator",
1750
+ "args": {},
1751
+ "description": "List experiments",
1905
1752
  "flags": {
1906
1753
  "api-key": {
1907
1754
  "description": "API key (env: RESPAN_API_KEY)",
@@ -1944,23 +1791,18 @@
1944
1791
  "allowNo": false,
1945
1792
  "type": "boolean"
1946
1793
  },
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",
1794
+ "limit": {
1795
+ "description": "Number of results per page",
1796
+ "name": "limit",
1797
+ "default": 20,
1957
1798
  "hasDynamicHelp": false,
1958
1799
  "multiple": false,
1959
1800
  "type": "option"
1960
1801
  },
1961
- "params": {
1962
- "description": "Additional parameters as JSON string",
1963
- "name": "params",
1802
+ "page": {
1803
+ "description": "Page number",
1804
+ "name": "page",
1805
+ "default": 1,
1964
1806
  "hasDynamicHelp": false,
1965
1807
  "multiple": false,
1966
1808
  "type": "option"
@@ -1968,7 +1810,7 @@
1968
1810
  },
1969
1811
  "hasDynamicHelp": false,
1970
1812
  "hiddenAliases": [],
1971
- "id": "evaluators:run",
1813
+ "id": "experiments:list",
1972
1814
  "pluginAlias": "@respan/cli",
1973
1815
  "pluginName": "@respan/cli",
1974
1816
  "pluginType": "core",
@@ -1978,20 +1820,14 @@
1978
1820
  "relativePath": [
1979
1821
  "dist",
1980
1822
  "commands",
1981
- "evaluators",
1982
- "run.js"
1823
+ "experiments",
1824
+ "list.js"
1983
1825
  ]
1984
1826
  },
1985
- "evaluators:update": {
1827
+ "logs:create": {
1986
1828
  "aliases": [],
1987
- "args": {
1988
- "id": {
1989
- "description": "Evaluator ID",
1990
- "name": "id",
1991
- "required": true
1992
- }
1993
- },
1994
- "description": "Update an evaluator",
1829
+ "args": {},
1830
+ "description": "Create a log span",
1995
1831
  "flags": {
1996
1832
  "api-key": {
1997
1833
  "description": "API key (env: RESPAN_API_KEY)",
@@ -2034,23 +1870,31 @@
2034
1870
  "allowNo": false,
2035
1871
  "type": "boolean"
2036
1872
  },
2037
- "name": {
2038
- "description": "Evaluator name",
2039
- "name": "name",
1873
+ "input": {
1874
+ "description": "Input text or JSON",
1875
+ "name": "input",
1876
+ "required": true,
2040
1877
  "hasDynamicHelp": false,
2041
1878
  "multiple": false,
2042
1879
  "type": "option"
2043
1880
  },
2044
- "description": {
2045
- "description": "Evaluator description",
2046
- "name": "description",
1881
+ "output": {
1882
+ "description": "Output text or JSON",
1883
+ "name": "output",
2047
1884
  "hasDynamicHelp": false,
2048
1885
  "multiple": false,
2049
1886
  "type": "option"
2050
1887
  },
2051
- "config": {
2052
- "description": "Evaluator config as JSON string",
2053
- "name": "config",
1888
+ "model": {
1889
+ "description": "Model name",
1890
+ "name": "model",
1891
+ "hasDynamicHelp": false,
1892
+ "multiple": false,
1893
+ "type": "option"
1894
+ },
1895
+ "metadata": {
1896
+ "description": "Metadata as JSON string",
1897
+ "name": "metadata",
2054
1898
  "hasDynamicHelp": false,
2055
1899
  "multiple": false,
2056
1900
  "type": "option"
@@ -2058,7 +1902,7 @@
2058
1902
  },
2059
1903
  "hasDynamicHelp": false,
2060
1904
  "hiddenAliases": [],
2061
- "id": "evaluators:update",
1905
+ "id": "logs:create",
2062
1906
  "pluginAlias": "@respan/cli",
2063
1907
  "pluginName": "@respan/cli",
2064
1908
  "pluginType": "core",
@@ -2068,14 +1912,20 @@
2068
1912
  "relativePath": [
2069
1913
  "dist",
2070
1914
  "commands",
2071
- "evaluators",
2072
- "update.js"
1915
+ "logs",
1916
+ "create.js"
2073
1917
  ]
2074
1918
  },
2075
- "experiments:create": {
1919
+ "logs:get": {
2076
1920
  "aliases": [],
2077
- "args": {},
2078
- "description": "Create a new experiment",
1921
+ "args": {
1922
+ "id": {
1923
+ "description": "Span ID",
1924
+ "name": "id",
1925
+ "required": true
1926
+ }
1927
+ },
1928
+ "description": "Get a specific log span",
2079
1929
  "flags": {
2080
1930
  "api-key": {
2081
1931
  "description": "API key (env: RESPAN_API_KEY)",
@@ -2117,41 +1967,11 @@
2117
1967
  "name": "verbose",
2118
1968
  "allowNo": false,
2119
1969
  "type": "boolean"
2120
- },
2121
- "name": {
2122
- "description": "Experiment name",
2123
- "name": "name",
2124
- "required": true,
2125
- "hasDynamicHelp": false,
2126
- "multiple": false,
2127
- "type": "option"
2128
- },
2129
- "dataset-id": {
2130
- "description": "Dataset ID",
2131
- "name": "dataset-id",
2132
- "required": true,
2133
- "hasDynamicHelp": false,
2134
- "multiple": false,
2135
- "type": "option"
2136
- },
2137
- "description": {
2138
- "description": "Experiment description",
2139
- "name": "description",
2140
- "hasDynamicHelp": false,
2141
- "multiple": false,
2142
- "type": "option"
2143
- },
2144
- "workflows": {
2145
- "description": "Workflows configuration as JSON string",
2146
- "name": "workflows",
2147
- "hasDynamicHelp": false,
2148
- "multiple": false,
2149
- "type": "option"
2150
1970
  }
2151
1971
  },
2152
1972
  "hasDynamicHelp": false,
2153
1973
  "hiddenAliases": [],
2154
- "id": "experiments:create",
1974
+ "id": "logs:get",
2155
1975
  "pluginAlias": "@respan/cli",
2156
1976
  "pluginName": "@respan/cli",
2157
1977
  "pluginType": "core",
@@ -2161,20 +1981,14 @@
2161
1981
  "relativePath": [
2162
1982
  "dist",
2163
1983
  "commands",
2164
- "experiments",
2165
- "create.js"
1984
+ "logs",
1985
+ "get.js"
2166
1986
  ]
2167
1987
  },
2168
- "experiments:get": {
1988
+ "logs:list": {
2169
1989
  "aliases": [],
2170
- "args": {
2171
- "id": {
2172
- "description": "Experiment ID",
2173
- "name": "id",
2174
- "required": true
2175
- }
2176
- },
2177
- "description": "Get a specific experiment",
1990
+ "args": {},
1991
+ "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",
2178
1992
  "flags": {
2179
1993
  "api-key": {
2180
1994
  "description": "API key (env: RESPAN_API_KEY)",
@@ -2216,11 +2030,76 @@
2216
2030
  "name": "verbose",
2217
2031
  "allowNo": false,
2218
2032
  "type": "boolean"
2033
+ },
2034
+ "limit": {
2035
+ "description": "Number of results per page (max 1000)",
2036
+ "name": "limit",
2037
+ "default": 50,
2038
+ "hasDynamicHelp": false,
2039
+ "multiple": false,
2040
+ "type": "option"
2041
+ },
2042
+ "page": {
2043
+ "description": "Page number",
2044
+ "name": "page",
2045
+ "default": 1,
2046
+ "hasDynamicHelp": false,
2047
+ "multiple": false,
2048
+ "type": "option"
2049
+ },
2050
+ "sort-by": {
2051
+ "description": "Sort field (prefix with - for descending, e.g. -cost, -latency)",
2052
+ "name": "sort-by",
2053
+ "hasDynamicHelp": false,
2054
+ "multiple": false,
2055
+ "type": "option"
2056
+ },
2057
+ "start-time": {
2058
+ "description": "Start time filter (ISO 8601)",
2059
+ "name": "start-time",
2060
+ "hasDynamicHelp": false,
2061
+ "multiple": false,
2062
+ "type": "option"
2063
+ },
2064
+ "end-time": {
2065
+ "description": "End time filter (ISO 8601)",
2066
+ "name": "end-time",
2067
+ "hasDynamicHelp": false,
2068
+ "multiple": false,
2069
+ "type": "option"
2070
+ },
2071
+ "filter": {
2072
+ "description": "Filter in field:operator:value format (repeatable)",
2073
+ "name": "filter",
2074
+ "hasDynamicHelp": false,
2075
+ "multiple": true,
2076
+ "type": "option"
2077
+ },
2078
+ "all-envs": {
2079
+ "description": "Include all environments (true/false)",
2080
+ "name": "all-envs",
2081
+ "hasDynamicHelp": false,
2082
+ "multiple": false,
2083
+ "type": "option"
2084
+ },
2085
+ "is-test": {
2086
+ "description": "Filter by test (true) or production (false) environment",
2087
+ "name": "is-test",
2088
+ "hasDynamicHelp": false,
2089
+ "multiple": false,
2090
+ "type": "option"
2091
+ },
2092
+ "include-fields": {
2093
+ "description": "Comma-separated fields to include in response",
2094
+ "name": "include-fields",
2095
+ "hasDynamicHelp": false,
2096
+ "multiple": false,
2097
+ "type": "option"
2219
2098
  }
2220
2099
  },
2221
2100
  "hasDynamicHelp": false,
2222
2101
  "hiddenAliases": [],
2223
- "id": "experiments:get",
2102
+ "id": "logs:list",
2224
2103
  "pluginAlias": "@respan/cli",
2225
2104
  "pluginName": "@respan/cli",
2226
2105
  "pluginType": "core",
@@ -2230,14 +2109,14 @@
2230
2109
  "relativePath": [
2231
2110
  "dist",
2232
2111
  "commands",
2233
- "experiments",
2234
- "get.js"
2112
+ "logs",
2113
+ "list.js"
2235
2114
  ]
2236
2115
  },
2237
- "experiments:list": {
2116
+ "logs:summary": {
2238
2117
  "aliases": [],
2239
2118
  "args": {},
2240
- "description": "List experiments",
2119
+ "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",
2241
2120
  "flags": {
2242
2121
  "api-key": {
2243
2122
  "description": "API key (env: RESPAN_API_KEY)",
@@ -2280,18 +2159,39 @@
2280
2159
  "allowNo": false,
2281
2160
  "type": "boolean"
2282
2161
  },
2283
- "limit": {
2284
- "description": "Number of results per page",
2285
- "name": "limit",
2286
- "default": 20,
2162
+ "start-time": {
2163
+ "description": "Start time (ISO 8601)",
2164
+ "name": "start-time",
2165
+ "required": true,
2287
2166
  "hasDynamicHelp": false,
2288
2167
  "multiple": false,
2289
2168
  "type": "option"
2290
2169
  },
2291
- "page": {
2292
- "description": "Page number",
2293
- "name": "page",
2294
- "default": 1,
2170
+ "end-time": {
2171
+ "description": "End time (ISO 8601)",
2172
+ "name": "end-time",
2173
+ "required": true,
2174
+ "hasDynamicHelp": false,
2175
+ "multiple": false,
2176
+ "type": "option"
2177
+ },
2178
+ "filter": {
2179
+ "description": "Filter in field:operator:value format (repeatable)",
2180
+ "name": "filter",
2181
+ "hasDynamicHelp": false,
2182
+ "multiple": true,
2183
+ "type": "option"
2184
+ },
2185
+ "all-envs": {
2186
+ "description": "Include all environments (true/false)",
2187
+ "name": "all-envs",
2188
+ "hasDynamicHelp": false,
2189
+ "multiple": false,
2190
+ "type": "option"
2191
+ },
2192
+ "is-test": {
2193
+ "description": "Filter by test (true) or production (false) environment",
2194
+ "name": "is-test",
2295
2195
  "hasDynamicHelp": false,
2296
2196
  "multiple": false,
2297
2197
  "type": "option"
@@ -2299,7 +2199,7 @@
2299
2199
  },
2300
2200
  "hasDynamicHelp": false,
2301
2201
  "hiddenAliases": [],
2302
- "id": "experiments:list",
2202
+ "id": "logs:summary",
2303
2203
  "pluginAlias": "@respan/cli",
2304
2204
  "pluginName": "@respan/cli",
2305
2205
  "pluginType": "core",
@@ -2309,14 +2209,20 @@
2309
2209
  "relativePath": [
2310
2210
  "dist",
2311
2211
  "commands",
2312
- "experiments",
2313
- "list.js"
2212
+ "logs",
2213
+ "summary.js"
2314
2214
  ]
2315
2215
  },
2316
- "logs:create": {
2216
+ "prompts:create-version": {
2317
2217
  "aliases": [],
2318
- "args": {},
2319
- "description": "Create a log span",
2218
+ "args": {
2219
+ "prompt-id": {
2220
+ "description": "Prompt ID",
2221
+ "name": "prompt-id",
2222
+ "required": true
2223
+ }
2224
+ },
2225
+ "description": "Create a new version of a prompt",
2320
2226
  "flags": {
2321
2227
  "api-key": {
2322
2228
  "description": "API key (env: RESPAN_API_KEY)",
@@ -2359,31 +2265,31 @@
2359
2265
  "allowNo": false,
2360
2266
  "type": "boolean"
2361
2267
  },
2362
- "input": {
2363
- "description": "Input text or JSON",
2364
- "name": "input",
2268
+ "messages": {
2269
+ "description": "Messages as JSON array string",
2270
+ "name": "messages",
2365
2271
  "required": true,
2366
2272
  "hasDynamicHelp": false,
2367
2273
  "multiple": false,
2368
2274
  "type": "option"
2369
2275
  },
2370
- "output": {
2371
- "description": "Output text or JSON",
2372
- "name": "output",
2276
+ "model": {
2277
+ "description": "Model name",
2278
+ "name": "model",
2373
2279
  "hasDynamicHelp": false,
2374
2280
  "multiple": false,
2375
2281
  "type": "option"
2376
2282
  },
2377
- "model": {
2378
- "description": "Model name",
2379
- "name": "model",
2283
+ "temperature": {
2284
+ "description": "Temperature value",
2285
+ "name": "temperature",
2380
2286
  "hasDynamicHelp": false,
2381
2287
  "multiple": false,
2382
2288
  "type": "option"
2383
2289
  },
2384
- "metadata": {
2385
- "description": "Metadata as JSON string",
2386
- "name": "metadata",
2290
+ "max-tokens": {
2291
+ "description": "Max tokens",
2292
+ "name": "max-tokens",
2387
2293
  "hasDynamicHelp": false,
2388
2294
  "multiple": false,
2389
2295
  "type": "option"
@@ -2391,7 +2297,7 @@
2391
2297
  },
2392
2298
  "hasDynamicHelp": false,
2393
2299
  "hiddenAliases": [],
2394
- "id": "logs:create",
2300
+ "id": "prompts:create-version",
2395
2301
  "pluginAlias": "@respan/cli",
2396
2302
  "pluginName": "@respan/cli",
2397
2303
  "pluginType": "core",
@@ -2401,20 +2307,14 @@
2401
2307
  "relativePath": [
2402
2308
  "dist",
2403
2309
  "commands",
2404
- "logs",
2405
- "create.js"
2310
+ "prompts",
2311
+ "create-version.js"
2406
2312
  ]
2407
2313
  },
2408
- "logs:get": {
2314
+ "prompts:create": {
2409
2315
  "aliases": [],
2410
- "args": {
2411
- "id": {
2412
- "description": "Span ID",
2413
- "name": "id",
2414
- "required": true
2415
- }
2416
- },
2417
- "description": "Get a specific log span",
2316
+ "args": {},
2317
+ "description": "Create a new prompt",
2418
2318
  "flags": {
2419
2319
  "api-key": {
2420
2320
  "description": "API key (env: RESPAN_API_KEY)",
@@ -2456,11 +2356,26 @@
2456
2356
  "name": "verbose",
2457
2357
  "allowNo": false,
2458
2358
  "type": "boolean"
2359
+ },
2360
+ "name": {
2361
+ "description": "Prompt name",
2362
+ "name": "name",
2363
+ "required": true,
2364
+ "hasDynamicHelp": false,
2365
+ "multiple": false,
2366
+ "type": "option"
2367
+ },
2368
+ "description": {
2369
+ "description": "Prompt description",
2370
+ "name": "description",
2371
+ "hasDynamicHelp": false,
2372
+ "multiple": false,
2373
+ "type": "option"
2459
2374
  }
2460
2375
  },
2461
2376
  "hasDynamicHelp": false,
2462
2377
  "hiddenAliases": [],
2463
- "id": "logs:get",
2378
+ "id": "prompts:create",
2464
2379
  "pluginAlias": "@respan/cli",
2465
2380
  "pluginName": "@respan/cli",
2466
2381
  "pluginType": "core",
@@ -2470,14 +2385,20 @@
2470
2385
  "relativePath": [
2471
2386
  "dist",
2472
2387
  "commands",
2473
- "logs",
2474
- "get.js"
2388
+ "prompts",
2389
+ "create.js"
2475
2390
  ]
2476
2391
  },
2477
- "logs:list": {
2392
+ "prompts:get": {
2478
2393
  "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",
2394
+ "args": {
2395
+ "id": {
2396
+ "description": "Prompt ID",
2397
+ "name": "id",
2398
+ "required": true
2399
+ }
2400
+ },
2401
+ "description": "Get a specific prompt",
2481
2402
  "flags": {
2482
2403
  "api-key": {
2483
2404
  "description": "API key (env: RESPAN_API_KEY)",
@@ -2519,68 +2440,74 @@
2519
2440
  "name": "verbose",
2520
2441
  "allowNo": false,
2521
2442
  "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",
2443
+ }
2444
+ },
2445
+ "hasDynamicHelp": false,
2446
+ "hiddenAliases": [],
2447
+ "id": "prompts:get",
2448
+ "pluginAlias": "@respan/cli",
2449
+ "pluginName": "@respan/cli",
2450
+ "pluginType": "core",
2451
+ "strict": true,
2452
+ "enableJsonFlag": false,
2453
+ "isESM": true,
2454
+ "relativePath": [
2455
+ "dist",
2456
+ "commands",
2457
+ "prompts",
2458
+ "get.js"
2459
+ ]
2460
+ },
2461
+ "prompts:list": {
2462
+ "aliases": [],
2463
+ "args": {},
2464
+ "description": "List prompts",
2465
+ "flags": {
2466
+ "api-key": {
2467
+ "description": "API key (env: RESPAN_API_KEY)",
2468
+ "env": "RESPAN_API_KEY",
2469
+ "name": "api-key",
2542
2470
  "hasDynamicHelp": false,
2543
2471
  "multiple": false,
2544
2472
  "type": "option"
2545
2473
  },
2546
- "start-time": {
2547
- "description": "Start time filter (ISO 8601)",
2548
- "name": "start-time",
2474
+ "base-url": {
2475
+ "description": "Temporary API base URL override for this command",
2476
+ "name": "base-url",
2549
2477
  "hasDynamicHelp": false,
2550
2478
  "multiple": false,
2551
2479
  "type": "option"
2552
2480
  },
2553
- "end-time": {
2554
- "description": "End time filter (ISO 8601)",
2555
- "name": "end-time",
2481
+ "profile": {
2482
+ "description": "Named profile to use",
2483
+ "name": "profile",
2556
2484
  "hasDynamicHelp": false,
2557
2485
  "multiple": false,
2558
2486
  "type": "option"
2559
2487
  },
2560
- "filter": {
2561
- "description": "Filter in field:operator:value format (repeatable)",
2562
- "name": "filter",
2563
- "hasDynamicHelp": false,
2564
- "multiple": true,
2565
- "type": "option"
2488
+ "json": {
2489
+ "description": "Output as JSON",
2490
+ "name": "json",
2491
+ "allowNo": false,
2492
+ "type": "boolean"
2566
2493
  },
2567
- "all-envs": {
2568
- "description": "Include all environments (true/false)",
2569
- "name": "all-envs",
2570
- "hasDynamicHelp": false,
2571
- "multiple": false,
2572
- "type": "option"
2494
+ "csv": {
2495
+ "description": "Output as CSV",
2496
+ "name": "csv",
2497
+ "allowNo": false,
2498
+ "type": "boolean"
2573
2499
  },
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"
2500
+ "verbose": {
2501
+ "char": "v",
2502
+ "description": "Show verbose output",
2503
+ "name": "verbose",
2504
+ "allowNo": false,
2505
+ "type": "boolean"
2580
2506
  },
2581
- "include-fields": {
2582
- "description": "Comma-separated fields to include in response",
2583
- "name": "include-fields",
2507
+ "limit": {
2508
+ "description": "Number of results per page",
2509
+ "name": "limit",
2510
+ "default": 50,
2584
2511
  "hasDynamicHelp": false,
2585
2512
  "multiple": false,
2586
2513
  "type": "option"
@@ -2588,7 +2515,7 @@
2588
2515
  },
2589
2516
  "hasDynamicHelp": false,
2590
2517
  "hiddenAliases": [],
2591
- "id": "logs:list",
2518
+ "id": "prompts:list",
2592
2519
  "pluginAlias": "@respan/cli",
2593
2520
  "pluginName": "@respan/cli",
2594
2521
  "pluginType": "core",
@@ -2598,14 +2525,20 @@
2598
2525
  "relativePath": [
2599
2526
  "dist",
2600
2527
  "commands",
2601
- "logs",
2528
+ "prompts",
2602
2529
  "list.js"
2603
2530
  ]
2604
2531
  },
2605
- "logs:summary": {
2532
+ "prompts:update": {
2606
2533
  "aliases": [],
2607
- "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",
2534
+ "args": {
2535
+ "id": {
2536
+ "description": "Prompt ID",
2537
+ "name": "id",
2538
+ "required": true
2539
+ }
2540
+ },
2541
+ "description": "Update a prompt",
2609
2542
  "flags": {
2610
2543
  "api-key": {
2611
2544
  "description": "API key (env: RESPAN_API_KEY)",
@@ -2648,39 +2581,16 @@
2648
2581
  "allowNo": false,
2649
2582
  "type": "boolean"
2650
2583
  },
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",
2584
+ "name": {
2585
+ "description": "Prompt name",
2586
+ "name": "name",
2677
2587
  "hasDynamicHelp": false,
2678
2588
  "multiple": false,
2679
2589
  "type": "option"
2680
2590
  },
2681
- "is-test": {
2682
- "description": "Filter by test (true) or production (false) environment",
2683
- "name": "is-test",
2591
+ "description": {
2592
+ "description": "Prompt description",
2593
+ "name": "description",
2684
2594
  "hasDynamicHelp": false,
2685
2595
  "multiple": false,
2686
2596
  "type": "option"
@@ -2688,7 +2598,7 @@
2688
2598
  },
2689
2599
  "hasDynamicHelp": false,
2690
2600
  "hiddenAliases": [],
2691
- "id": "logs:summary",
2601
+ "id": "prompts:update",
2692
2602
  "pluginAlias": "@respan/cli",
2693
2603
  "pluginName": "@respan/cli",
2694
2604
  "pluginType": "core",
@@ -2698,11 +2608,11 @@
2698
2608
  "relativePath": [
2699
2609
  "dist",
2700
2610
  "commands",
2701
- "logs",
2702
- "summary.js"
2611
+ "prompts",
2612
+ "update.js"
2703
2613
  ]
2704
2614
  },
2705
- "prompts:create-version": {
2615
+ "prompts:versions": {
2706
2616
  "aliases": [],
2707
2617
  "args": {
2708
2618
  "prompt-id": {
@@ -2711,7 +2621,7 @@
2711
2621
  "required": true
2712
2622
  }
2713
2623
  },
2714
- "description": "Create a new version of a prompt",
2624
+ "description": "List versions of a prompt",
2715
2625
  "flags": {
2716
2626
  "api-key": {
2717
2627
  "description": "API key (env: RESPAN_API_KEY)",
@@ -2753,40 +2663,96 @@
2753
2663
  "name": "verbose",
2754
2664
  "allowNo": false,
2755
2665
  "type": "boolean"
2756
- },
2757
- "messages": {
2758
- "description": "Messages as JSON array string",
2759
- "name": "messages",
2760
- "required": true,
2666
+ }
2667
+ },
2668
+ "hasDynamicHelp": false,
2669
+ "hiddenAliases": [],
2670
+ "id": "prompts:versions",
2671
+ "pluginAlias": "@respan/cli",
2672
+ "pluginName": "@respan/cli",
2673
+ "pluginType": "core",
2674
+ "strict": true,
2675
+ "enableJsonFlag": false,
2676
+ "isESM": true,
2677
+ "relativePath": [
2678
+ "dist",
2679
+ "commands",
2680
+ "prompts",
2681
+ "versions.js"
2682
+ ]
2683
+ },
2684
+ "setup:doctor": {
2685
+ "aliases": [],
2686
+ "args": {},
2687
+ "description": "Diagnose coding-agent setup for Respan",
2688
+ "examples": [
2689
+ "respan setup doctor",
2690
+ "respan setup doctor --global"
2691
+ ],
2692
+ "flags": {
2693
+ "api-key": {
2694
+ "description": "API key (env: RESPAN_API_KEY)",
2695
+ "env": "RESPAN_API_KEY",
2696
+ "name": "api-key",
2761
2697
  "hasDynamicHelp": false,
2762
2698
  "multiple": false,
2763
2699
  "type": "option"
2764
2700
  },
2765
- "model": {
2766
- "description": "Model name",
2767
- "name": "model",
2701
+ "base-url": {
2702
+ "description": "Temporary API base URL override for this command",
2703
+ "name": "base-url",
2768
2704
  "hasDynamicHelp": false,
2769
2705
  "multiple": false,
2770
2706
  "type": "option"
2771
2707
  },
2772
- "temperature": {
2773
- "description": "Temperature value",
2774
- "name": "temperature",
2708
+ "profile": {
2709
+ "description": "Named profile to use",
2710
+ "name": "profile",
2775
2711
  "hasDynamicHelp": false,
2776
2712
  "multiple": false,
2777
2713
  "type": "option"
2778
2714
  },
2779
- "max-tokens": {
2780
- "description": "Max tokens",
2781
- "name": "max-tokens",
2782
- "hasDynamicHelp": false,
2783
- "multiple": false,
2784
- "type": "option"
2715
+ "json": {
2716
+ "description": "Output as JSON",
2717
+ "name": "json",
2718
+ "allowNo": false,
2719
+ "type": "boolean"
2720
+ },
2721
+ "csv": {
2722
+ "description": "Output as CSV",
2723
+ "name": "csv",
2724
+ "allowNo": false,
2725
+ "type": "boolean"
2726
+ },
2727
+ "verbose": {
2728
+ "char": "v",
2729
+ "description": "Show verbose output",
2730
+ "name": "verbose",
2731
+ "allowNo": false,
2732
+ "type": "boolean"
2733
+ },
2734
+ "local": {
2735
+ "description": "Check local project setup",
2736
+ "exclusive": [
2737
+ "global"
2738
+ ],
2739
+ "name": "local",
2740
+ "allowNo": false,
2741
+ "type": "boolean"
2742
+ },
2743
+ "global": {
2744
+ "description": "Check global setup",
2745
+ "exclusive": [
2746
+ "local"
2747
+ ],
2748
+ "name": "global",
2749
+ "allowNo": false,
2750
+ "type": "boolean"
2785
2751
  }
2786
2752
  },
2787
2753
  "hasDynamicHelp": false,
2788
2754
  "hiddenAliases": [],
2789
- "id": "prompts:create-version",
2755
+ "id": "setup:doctor",
2790
2756
  "pluginAlias": "@respan/cli",
2791
2757
  "pluginName": "@respan/cli",
2792
2758
  "pluginType": "core",
@@ -2796,14 +2762,19 @@
2796
2762
  "relativePath": [
2797
2763
  "dist",
2798
2764
  "commands",
2799
- "prompts",
2800
- "create-version.js"
2765
+ "setup",
2766
+ "doctor.js"
2801
2767
  ]
2802
2768
  },
2803
- "prompts:create": {
2769
+ "setup:gateway": {
2804
2770
  "aliases": [],
2805
2771
  "args": {},
2806
- "description": "Create a new prompt",
2772
+ "description": "Deprecated gateway setup entry point. Prints the official gateway setup prompt.",
2773
+ "examples": [
2774
+ "respan setup gateway",
2775
+ "respan setup gateway --agent claude-code",
2776
+ "respan setup gateway --no-instrument"
2777
+ ],
2807
2778
  "flags": {
2808
2779
  "api-key": {
2809
2780
  "description": "API key (env: RESPAN_API_KEY)",
@@ -2846,48 +2817,47 @@
2846
2817
  "allowNo": false,
2847
2818
  "type": "boolean"
2848
2819
  },
2849
- "name": {
2850
- "description": "Prompt name",
2851
- "name": "name",
2852
- "required": true,
2820
+ "agent": {
2821
+ "description": "Deprecated compatibility flag; no agent is launched",
2822
+ "name": "agent",
2853
2823
  "hasDynamicHelp": false,
2854
2824
  "multiple": false,
2855
2825
  "type": "option"
2856
2826
  },
2857
- "description": {
2858
- "description": "Prompt description",
2859
- "name": "description",
2860
- "hasDynamicHelp": false,
2861
- "multiple": false,
2862
- "type": "option"
2827
+ "no-instrument": {
2828
+ "description": "Deprecated compatibility flag; setup only prints a prompt",
2829
+ "name": "no-instrument",
2830
+ "allowNo": false,
2831
+ "type": "boolean"
2863
2832
  }
2864
2833
  },
2865
2834
  "hasDynamicHelp": false,
2866
2835
  "hiddenAliases": [],
2867
- "id": "prompts:create",
2836
+ "id": "setup:gateway",
2868
2837
  "pluginAlias": "@respan/cli",
2869
2838
  "pluginName": "@respan/cli",
2870
2839
  "pluginType": "core",
2871
2840
  "strict": true,
2872
- "enableJsonFlag": false,
2873
2841
  "isESM": true,
2874
2842
  "relativePath": [
2875
2843
  "dist",
2876
2844
  "commands",
2877
- "prompts",
2878
- "create.js"
2845
+ "setup",
2846
+ "gateway.js"
2879
2847
  ]
2880
2848
  },
2881
- "prompts:get": {
2849
+ "setup": {
2882
2850
  "aliases": [],
2883
- "args": {
2884
- "id": {
2885
- "description": "Prompt ID",
2886
- "name": "id",
2887
- "required": true
2888
- }
2889
- },
2890
- "description": "Get a specific prompt",
2851
+ "args": {},
2852
+ "description": "Deprecated setup entry point. Prints tracing and gateway setup prompts.",
2853
+ "examples": [
2854
+ "npx @respan/cli setup",
2855
+ "respan setup",
2856
+ "respan setup tracing",
2857
+ "respan setup gateway",
2858
+ "respan setup --agent claude-code",
2859
+ "respan setup --no-instrument"
2860
+ ],
2891
2861
  "flags": {
2892
2862
  "api-key": {
2893
2863
  "description": "API key (env: RESPAN_API_KEY)",
@@ -2929,28 +2899,45 @@
2929
2899
  "name": "verbose",
2930
2900
  "allowNo": false,
2931
2901
  "type": "boolean"
2902
+ },
2903
+ "agent": {
2904
+ "description": "Deprecated compatibility flag; no agent is launched",
2905
+ "name": "agent",
2906
+ "hasDynamicHelp": false,
2907
+ "multiple": false,
2908
+ "type": "option"
2909
+ },
2910
+ "no-instrument": {
2911
+ "description": "Deprecated compatibility flag; setup only prints a prompt",
2912
+ "name": "no-instrument",
2913
+ "allowNo": false,
2914
+ "type": "boolean"
2932
2915
  }
2933
2916
  },
2934
2917
  "hasDynamicHelp": false,
2935
2918
  "hiddenAliases": [],
2936
- "id": "prompts:get",
2919
+ "id": "setup",
2937
2920
  "pluginAlias": "@respan/cli",
2938
2921
  "pluginName": "@respan/cli",
2939
2922
  "pluginType": "core",
2940
2923
  "strict": true,
2941
- "enableJsonFlag": false,
2942
2924
  "isESM": true,
2943
2925
  "relativePath": [
2944
2926
  "dist",
2945
2927
  "commands",
2946
- "prompts",
2947
- "get.js"
2928
+ "setup",
2929
+ "index.js"
2948
2930
  ]
2949
2931
  },
2950
- "prompts:list": {
2932
+ "setup:tracing": {
2951
2933
  "aliases": [],
2952
2934
  "args": {},
2953
- "description": "List prompts",
2935
+ "description": "Deprecated tracing setup entry point. Prints the official tracing setup prompt.",
2936
+ "examples": [
2937
+ "respan setup tracing",
2938
+ "respan setup tracing --agent claude-code",
2939
+ "respan setup tracing --no-instrument"
2940
+ ],
2954
2941
  "flags": {
2955
2942
  "api-key": {
2956
2943
  "description": "API key (env: RESPAN_API_KEY)",
@@ -2993,41 +2980,45 @@
2993
2980
  "allowNo": false,
2994
2981
  "type": "boolean"
2995
2982
  },
2996
- "limit": {
2997
- "description": "Number of results per page",
2998
- "name": "limit",
2999
- "default": 50,
2983
+ "agent": {
2984
+ "description": "Deprecated compatibility flag; no agent is launched",
2985
+ "name": "agent",
3000
2986
  "hasDynamicHelp": false,
3001
2987
  "multiple": false,
3002
2988
  "type": "option"
2989
+ },
2990
+ "no-instrument": {
2991
+ "description": "Deprecated compatibility flag; setup only prints a prompt",
2992
+ "name": "no-instrument",
2993
+ "allowNo": false,
2994
+ "type": "boolean"
3003
2995
  }
3004
2996
  },
3005
2997
  "hasDynamicHelp": false,
3006
2998
  "hiddenAliases": [],
3007
- "id": "prompts:list",
2999
+ "id": "setup:tracing",
3008
3000
  "pluginAlias": "@respan/cli",
3009
3001
  "pluginName": "@respan/cli",
3010
3002
  "pluginType": "core",
3011
3003
  "strict": true,
3012
- "enableJsonFlag": false,
3013
3004
  "isESM": true,
3014
3005
  "relativePath": [
3015
3006
  "dist",
3016
3007
  "commands",
3017
- "prompts",
3018
- "list.js"
3008
+ "setup",
3009
+ "tracing.js"
3019
3010
  ]
3020
3011
  },
3021
- "prompts:update": {
3012
+ "tools:call": {
3022
3013
  "aliases": [],
3023
3014
  "args": {
3024
- "id": {
3025
- "description": "Prompt ID",
3026
- "name": "id",
3015
+ "name": {
3016
+ "description": "MCP tool name, e.g. log_list or trace_get",
3017
+ "name": "name",
3027
3018
  "required": true
3028
3019
  }
3029
3020
  },
3030
- "description": "Update a prompt",
3021
+ "description": "Call a Respan MCP tool with its exact tool name and JSON arguments. Writes execute immediately; inspect tools list --json before calling.",
3031
3022
  "flags": {
3032
3023
  "api-key": {
3033
3024
  "description": "API key (env: RESPAN_API_KEY)",
@@ -3070,16 +3061,29 @@
3070
3061
  "allowNo": false,
3071
3062
  "type": "boolean"
3072
3063
  },
3073
- "name": {
3074
- "description": "Prompt name",
3075
- "name": "name",
3064
+ "input": {
3065
+ "description": "JSON object of MCP tool arguments",
3066
+ "exclusive": [
3067
+ "input-file"
3068
+ ],
3069
+ "name": "input",
3076
3070
  "hasDynamicHelp": false,
3077
3071
  "multiple": false,
3078
3072
  "type": "option"
3079
3073
  },
3080
- "description": {
3081
- "description": "Prompt description",
3082
- "name": "description",
3074
+ "input-file": {
3075
+ "description": "File containing a JSON object of MCP tool arguments",
3076
+ "exclusive": [
3077
+ "input"
3078
+ ],
3079
+ "name": "input-file",
3080
+ "hasDynamicHelp": false,
3081
+ "multiple": false,
3082
+ "type": "option"
3083
+ },
3084
+ "mcp-url": {
3085
+ "description": "Custom MCP server URL (defaults to the active Platform or Enterprise server)",
3086
+ "name": "mcp-url",
3083
3087
  "hasDynamicHelp": false,
3084
3088
  "multiple": false,
3085
3089
  "type": "option"
@@ -3087,7 +3091,7 @@
3087
3091
  },
3088
3092
  "hasDynamicHelp": false,
3089
3093
  "hiddenAliases": [],
3090
- "id": "prompts:update",
3094
+ "id": "tools:call",
3091
3095
  "pluginAlias": "@respan/cli",
3092
3096
  "pluginName": "@respan/cli",
3093
3097
  "pluginType": "core",
@@ -3097,20 +3101,14 @@
3097
3101
  "relativePath": [
3098
3102
  "dist",
3099
3103
  "commands",
3100
- "prompts",
3101
- "update.js"
3104
+ "tools",
3105
+ "call.js"
3102
3106
  ]
3103
3107
  },
3104
- "prompts:versions": {
3108
+ "tools:list": {
3105
3109
  "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",
3110
+ "args": {},
3111
+ "description": "List the current Respan MCP tools, their input schemas, and annotations.",
3114
3112
  "flags": {
3115
3113
  "api-key": {
3116
3114
  "description": "API key (env: RESPAN_API_KEY)",
@@ -3152,11 +3150,31 @@
3152
3150
  "name": "verbose",
3153
3151
  "allowNo": false,
3154
3152
  "type": "boolean"
3153
+ },
3154
+ "category": {
3155
+ "description": "Filter by a category returned by the MCP server",
3156
+ "name": "category",
3157
+ "hasDynamicHelp": false,
3158
+ "multiple": false,
3159
+ "type": "option"
3160
+ },
3161
+ "categories": {
3162
+ "description": "List available categories and tool counts instead of tools",
3163
+ "name": "categories",
3164
+ "allowNo": false,
3165
+ "type": "boolean"
3166
+ },
3167
+ "mcp-url": {
3168
+ "description": "Custom MCP server URL (defaults to the active Platform or Enterprise server)",
3169
+ "name": "mcp-url",
3170
+ "hasDynamicHelp": false,
3171
+ "multiple": false,
3172
+ "type": "option"
3155
3173
  }
3156
3174
  },
3157
3175
  "hasDynamicHelp": false,
3158
3176
  "hiddenAliases": [],
3159
- "id": "prompts:versions",
3177
+ "id": "tools:list",
3160
3178
  "pluginAlias": "@respan/cli",
3161
3179
  "pluginName": "@respan/cli",
3162
3180
  "pluginType": "core",
@@ -3166,18 +3184,20 @@
3166
3184
  "relativePath": [
3167
3185
  "dist",
3168
3186
  "commands",
3169
- "prompts",
3170
- "versions.js"
3187
+ "tools",
3188
+ "list.js"
3171
3189
  ]
3172
3190
  },
3173
- "setup:doctor": {
3191
+ "traces:get": {
3174
3192
  "aliases": [],
3175
- "args": {},
3176
- "description": "Diagnose coding-agent setup for Respan",
3177
- "examples": [
3178
- "respan setup doctor",
3179
- "respan setup doctor --global"
3180
- ],
3193
+ "args": {
3194
+ "id": {
3195
+ "description": "Trace ID",
3196
+ "name": "id",
3197
+ "required": true
3198
+ }
3199
+ },
3200
+ "description": "Get a specific trace",
3181
3201
  "flags": {
3182
3202
  "api-key": {
3183
3203
  "description": "API key (env: RESPAN_API_KEY)",
@@ -3219,29 +3239,11 @@
3219
3239
  "name": "verbose",
3220
3240
  "allowNo": false,
3221
3241
  "type": "boolean"
3222
- },
3223
- "local": {
3224
- "description": "Check local project setup",
3225
- "exclusive": [
3226
- "global"
3227
- ],
3228
- "name": "local",
3229
- "allowNo": false,
3230
- "type": "boolean"
3231
- },
3232
- "global": {
3233
- "description": "Check global setup",
3234
- "exclusive": [
3235
- "local"
3236
- ],
3237
- "name": "global",
3238
- "allowNo": false,
3239
- "type": "boolean"
3240
3242
  }
3241
3243
  },
3242
3244
  "hasDynamicHelp": false,
3243
3245
  "hiddenAliases": [],
3244
- "id": "setup:doctor",
3246
+ "id": "traces:get",
3245
3247
  "pluginAlias": "@respan/cli",
3246
3248
  "pluginName": "@respan/cli",
3247
3249
  "pluginType": "core",
@@ -3251,19 +3253,14 @@
3251
3253
  "relativePath": [
3252
3254
  "dist",
3253
3255
  "commands",
3254
- "setup",
3255
- "doctor.js"
3256
+ "traces",
3257
+ "get.js"
3256
3258
  ]
3257
3259
  },
3258
- "setup:gateway": {
3260
+ "traces:list": {
3259
3261
  "aliases": [],
3260
3262
  "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
- ],
3263
+ "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",
3267
3264
  "flags": {
3268
3265
  "api-key": {
3269
3266
  "description": "API key (env: RESPAN_API_KEY)",
@@ -3306,47 +3303,79 @@
3306
3303
  "allowNo": false,
3307
3304
  "type": "boolean"
3308
3305
  },
3309
- "agent": {
3310
- "description": "Deprecated compatibility flag; no agent is launched",
3311
- "name": "agent",
3306
+ "limit": {
3307
+ "description": "Number of results per page",
3308
+ "name": "limit",
3309
+ "default": 10,
3312
3310
  "hasDynamicHelp": false,
3313
3311
  "multiple": false,
3314
3312
  "type": "option"
3315
3313
  },
3316
- "no-instrument": {
3317
- "description": "Deprecated compatibility flag; setup only prints a prompt",
3318
- "name": "no-instrument",
3319
- "allowNo": false,
3320
- "type": "boolean"
3314
+ "page": {
3315
+ "description": "Page number",
3316
+ "name": "page",
3317
+ "default": 1,
3318
+ "hasDynamicHelp": false,
3319
+ "multiple": false,
3320
+ "type": "option"
3321
+ },
3322
+ "sort-by": {
3323
+ "description": "Sort field (prefix with - for descending)",
3324
+ "name": "sort-by",
3325
+ "default": "-timestamp",
3326
+ "hasDynamicHelp": false,
3327
+ "multiple": false,
3328
+ "type": "option"
3329
+ },
3330
+ "start-time": {
3331
+ "description": "Start time filter (ISO 8601)",
3332
+ "name": "start-time",
3333
+ "hasDynamicHelp": false,
3334
+ "multiple": false,
3335
+ "type": "option"
3336
+ },
3337
+ "end-time": {
3338
+ "description": "End time filter (ISO 8601)",
3339
+ "name": "end-time",
3340
+ "hasDynamicHelp": false,
3341
+ "multiple": false,
3342
+ "type": "option"
3343
+ },
3344
+ "environment": {
3345
+ "description": "Environment filter",
3346
+ "name": "environment",
3347
+ "hasDynamicHelp": false,
3348
+ "multiple": false,
3349
+ "type": "option"
3350
+ },
3351
+ "filter": {
3352
+ "description": "Filter in field:operator:value format (repeatable)",
3353
+ "name": "filter",
3354
+ "hasDynamicHelp": false,
3355
+ "multiple": true,
3356
+ "type": "option"
3321
3357
  }
3322
3358
  },
3323
3359
  "hasDynamicHelp": false,
3324
3360
  "hiddenAliases": [],
3325
- "id": "setup:gateway",
3361
+ "id": "traces:list",
3326
3362
  "pluginAlias": "@respan/cli",
3327
3363
  "pluginName": "@respan/cli",
3328
3364
  "pluginType": "core",
3329
3365
  "strict": true,
3366
+ "enableJsonFlag": false,
3330
3367
  "isESM": true,
3331
3368
  "relativePath": [
3332
3369
  "dist",
3333
3370
  "commands",
3334
- "setup",
3335
- "gateway.js"
3371
+ "traces",
3372
+ "list.js"
3336
3373
  ]
3337
3374
  },
3338
- "setup": {
3375
+ "traces:summary": {
3339
3376
  "aliases": [],
3340
3377
  "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
- ],
3378
+ "description": "Get a span-level summary of activity for a time range (counts, latency, cost, errors aggregated across spans)",
3350
3379
  "flags": {
3351
3380
  "api-key": {
3352
3381
  "description": "API key (env: RESPAN_API_KEY)",
@@ -3389,44 +3418,43 @@
3389
3418
  "allowNo": false,
3390
3419
  "type": "boolean"
3391
3420
  },
3392
- "agent": {
3393
- "description": "Deprecated compatibility flag; no agent is launched",
3394
- "name": "agent",
3421
+ "start-time": {
3422
+ "description": "Start time (ISO 8601)",
3423
+ "name": "start-time",
3424
+ "required": true,
3395
3425
  "hasDynamicHelp": false,
3396
3426
  "multiple": false,
3397
3427
  "type": "option"
3398
3428
  },
3399
- "no-instrument": {
3400
- "description": "Deprecated compatibility flag; setup only prints a prompt",
3401
- "name": "no-instrument",
3402
- "allowNo": false,
3403
- "type": "boolean"
3429
+ "end-time": {
3430
+ "description": "End time (ISO 8601)",
3431
+ "name": "end-time",
3432
+ "required": true,
3433
+ "hasDynamicHelp": false,
3434
+ "multiple": false,
3435
+ "type": "option"
3404
3436
  }
3405
3437
  },
3406
3438
  "hasDynamicHelp": false,
3407
3439
  "hiddenAliases": [],
3408
- "id": "setup",
3440
+ "id": "traces:summary",
3409
3441
  "pluginAlias": "@respan/cli",
3410
3442
  "pluginName": "@respan/cli",
3411
3443
  "pluginType": "core",
3412
3444
  "strict": true,
3445
+ "enableJsonFlag": false,
3413
3446
  "isESM": true,
3414
3447
  "relativePath": [
3415
3448
  "dist",
3416
3449
  "commands",
3417
- "setup",
3418
- "index.js"
3450
+ "traces",
3451
+ "summary.js"
3419
3452
  ]
3420
3453
  },
3421
- "setup:tracing": {
3454
+ "users:create": {
3422
3455
  "aliases": [],
3423
3456
  "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
- ],
3457
+ "description": "Create a new user (customer)",
3430
3458
  "flags": {
3431
3459
  "api-key": {
3432
3460
  "description": "API key (env: RESPAN_API_KEY)",
@@ -3469,45 +3497,62 @@
3469
3497
  "allowNo": false,
3470
3498
  "type": "boolean"
3471
3499
  },
3472
- "agent": {
3473
- "description": "Deprecated compatibility flag; no agent is launched",
3474
- "name": "agent",
3500
+ "identifier": {
3501
+ "description": "Customer identifier",
3502
+ "name": "identifier",
3503
+ "required": true,
3475
3504
  "hasDynamicHelp": false,
3476
3505
  "multiple": false,
3477
3506
  "type": "option"
3478
3507
  },
3479
- "no-instrument": {
3480
- "description": "Deprecated compatibility flag; setup only prints a prompt",
3481
- "name": "no-instrument",
3482
- "allowNo": false,
3483
- "type": "boolean"
3508
+ "name": {
3509
+ "description": "Customer name",
3510
+ "name": "name",
3511
+ "hasDynamicHelp": false,
3512
+ "multiple": false,
3513
+ "type": "option"
3514
+ },
3515
+ "email": {
3516
+ "description": "Customer email",
3517
+ "name": "email",
3518
+ "hasDynamicHelp": false,
3519
+ "multiple": false,
3520
+ "type": "option"
3521
+ },
3522
+ "metadata": {
3523
+ "description": "Metadata as JSON string",
3524
+ "name": "metadata",
3525
+ "hasDynamicHelp": false,
3526
+ "multiple": false,
3527
+ "type": "option"
3484
3528
  }
3485
3529
  },
3486
3530
  "hasDynamicHelp": false,
3487
3531
  "hiddenAliases": [],
3488
- "id": "setup:tracing",
3532
+ "id": "users:create",
3489
3533
  "pluginAlias": "@respan/cli",
3490
3534
  "pluginName": "@respan/cli",
3491
3535
  "pluginType": "core",
3492
3536
  "strict": true,
3537
+ "enableJsonFlag": false,
3493
3538
  "isESM": true,
3494
3539
  "relativePath": [
3495
3540
  "dist",
3496
3541
  "commands",
3497
- "setup",
3498
- "tracing.js"
3542
+ "users",
3543
+ "create.js"
3499
3544
  ]
3500
3545
  },
3501
- "tools:call": {
3546
+ "users:get": {
3502
3547
  "aliases": [],
3503
3548
  "args": {
3504
- "name": {
3505
- "description": "MCP tool name, e.g. log_list or trace_get",
3506
- "name": "name",
3549
+ "id": {
3550
+ "description": "Customer identifier",
3551
+ "name": "id",
3507
3552
  "required": true
3508
3553
  }
3509
3554
  },
3510
- "description": "Call a Respan MCP tool with its exact tool name and JSON arguments. Writes execute immediately; inspect tools list --json before calling.",
3555
+ "description": "Get a specific user (customer)",
3511
3556
  "flags": {
3512
3557
  "api-key": {
3513
3558
  "description": "API key (env: RESPAN_API_KEY)",
@@ -3549,38 +3594,11 @@
3549
3594
  "name": "verbose",
3550
3595
  "allowNo": false,
3551
3596
  "type": "boolean"
3552
- },
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",
3569
- "hasDynamicHelp": false,
3570
- "multiple": false,
3571
- "type": "option"
3572
- },
3573
- "mcp-url": {
3574
- "description": "Custom MCP server URL (defaults to the active Platform or Enterprise server)",
3575
- "name": "mcp-url",
3576
- "hasDynamicHelp": false,
3577
- "multiple": false,
3578
- "type": "option"
3579
3597
  }
3580
3598
  },
3581
3599
  "hasDynamicHelp": false,
3582
3600
  "hiddenAliases": [],
3583
- "id": "tools:call",
3601
+ "id": "users:get",
3584
3602
  "pluginAlias": "@respan/cli",
3585
3603
  "pluginName": "@respan/cli",
3586
3604
  "pluginType": "core",
@@ -3590,14 +3608,14 @@
3590
3608
  "relativePath": [
3591
3609
  "dist",
3592
3610
  "commands",
3593
- "tools",
3594
- "call.js"
3611
+ "users",
3612
+ "get.js"
3595
3613
  ]
3596
3614
  },
3597
- "tools:list": {
3615
+ "users:list": {
3598
3616
  "aliases": [],
3599
3617
  "args": {},
3600
- "description": "List the current Respan MCP tools, their input schemas, and annotations.",
3618
+ "description": "List users (customers)",
3601
3619
  "flags": {
3602
3620
  "api-key": {
3603
3621
  "description": "API key (env: RESPAN_API_KEY)",
@@ -3640,22 +3658,32 @@
3640
3658
  "allowNo": false,
3641
3659
  "type": "boolean"
3642
3660
  },
3643
- "category": {
3644
- "description": "Filter by a category returned by the MCP server",
3645
- "name": "category",
3661
+ "limit": {
3662
+ "description": "Number of results per page",
3663
+ "name": "limit",
3664
+ "default": 20,
3646
3665
  "hasDynamicHelp": false,
3647
3666
  "multiple": false,
3648
3667
  "type": "option"
3649
3668
  },
3650
- "categories": {
3651
- "description": "List available categories and tool counts instead of tools",
3652
- "name": "categories",
3653
- "allowNo": false,
3654
- "type": "boolean"
3669
+ "page": {
3670
+ "description": "Page number",
3671
+ "name": "page",
3672
+ "default": 1,
3673
+ "hasDynamicHelp": false,
3674
+ "multiple": false,
3675
+ "type": "option"
3655
3676
  },
3656
- "mcp-url": {
3657
- "description": "Custom MCP server URL (defaults to the active Platform or Enterprise server)",
3658
- "name": "mcp-url",
3677
+ "sort-by": {
3678
+ "description": "Sort field",
3679
+ "name": "sort-by",
3680
+ "hasDynamicHelp": false,
3681
+ "multiple": false,
3682
+ "type": "option"
3683
+ },
3684
+ "environment": {
3685
+ "description": "Environment filter",
3686
+ "name": "environment",
3659
3687
  "hasDynamicHelp": false,
3660
3688
  "multiple": false,
3661
3689
  "type": "option"
@@ -3663,7 +3691,7 @@
3663
3691
  },
3664
3692
  "hasDynamicHelp": false,
3665
3693
  "hiddenAliases": [],
3666
- "id": "tools:list",
3694
+ "id": "users:list",
3667
3695
  "pluginAlias": "@respan/cli",
3668
3696
  "pluginName": "@respan/cli",
3669
3697
  "pluginType": "core",
@@ -3673,20 +3701,20 @@
3673
3701
  "relativePath": [
3674
3702
  "dist",
3675
3703
  "commands",
3676
- "tools",
3704
+ "users",
3677
3705
  "list.js"
3678
3706
  ]
3679
3707
  },
3680
- "traces:get": {
3708
+ "users:update": {
3681
3709
  "aliases": [],
3682
3710
  "args": {
3683
3711
  "id": {
3684
- "description": "Trace ID",
3712
+ "description": "Customer identifier",
3685
3713
  "name": "id",
3686
3714
  "required": true
3687
3715
  }
3688
3716
  },
3689
- "description": "Get a specific trace",
3717
+ "description": "Update a user (customer)",
3690
3718
  "flags": {
3691
3719
  "api-key": {
3692
3720
  "description": "API key (env: RESPAN_API_KEY)",
@@ -3728,11 +3756,32 @@
3728
3756
  "name": "verbose",
3729
3757
  "allowNo": false,
3730
3758
  "type": "boolean"
3759
+ },
3760
+ "name": {
3761
+ "description": "Customer name",
3762
+ "name": "name",
3763
+ "hasDynamicHelp": false,
3764
+ "multiple": false,
3765
+ "type": "option"
3766
+ },
3767
+ "email": {
3768
+ "description": "Customer email",
3769
+ "name": "email",
3770
+ "hasDynamicHelp": false,
3771
+ "multiple": false,
3772
+ "type": "option"
3773
+ },
3774
+ "metadata": {
3775
+ "description": "Metadata as JSON string",
3776
+ "name": "metadata",
3777
+ "hasDynamicHelp": false,
3778
+ "multiple": false,
3779
+ "type": "option"
3731
3780
  }
3732
3781
  },
3733
3782
  "hasDynamicHelp": false,
3734
3783
  "hiddenAliases": [],
3735
- "id": "traces:get",
3784
+ "id": "users:update",
3736
3785
  "pluginAlias": "@respan/cli",
3737
3786
  "pluginName": "@respan/cli",
3738
3787
  "pluginType": "core",
@@ -3742,14 +3791,14 @@
3742
3791
  "relativePath": [
3743
3792
  "dist",
3744
3793
  "commands",
3745
- "traces",
3746
- "get.js"
3794
+ "users",
3795
+ "update.js"
3747
3796
  ]
3748
3797
  },
3749
- "traces:list": {
3798
+ "evaluators:create": {
3750
3799
  "aliases": [],
3751
3800
  "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",
3801
+ "description": "Create a new evaluator",
3753
3802
  "flags": {
3754
3803
  "api-key": {
3755
3804
  "description": "API key (env: RESPAN_API_KEY)",
@@ -3792,62 +3841,39 @@
3792
3841
  "allowNo": false,
3793
3842
  "type": "boolean"
3794
3843
  },
3795
- "limit": {
3796
- "description": "Number of results per page",
3797
- "name": "limit",
3798
- "default": 10,
3799
- "hasDynamicHelp": false,
3800
- "multiple": false,
3801
- "type": "option"
3802
- },
3803
- "page": {
3804
- "description": "Page number",
3805
- "name": "page",
3806
- "default": 1,
3807
- "hasDynamicHelp": false,
3808
- "multiple": false,
3809
- "type": "option"
3810
- },
3811
- "sort-by": {
3812
- "description": "Sort field (prefix with - for descending)",
3813
- "name": "sort-by",
3814
- "default": "-timestamp",
3844
+ "name": {
3845
+ "description": "Evaluator name",
3846
+ "name": "name",
3847
+ "required": true,
3815
3848
  "hasDynamicHelp": false,
3816
3849
  "multiple": false,
3817
3850
  "type": "option"
3818
3851
  },
3819
- "start-time": {
3820
- "description": "Start time filter (ISO 8601)",
3821
- "name": "start-time",
3852
+ "type": {
3853
+ "description": "Evaluator type",
3854
+ "name": "type",
3822
3855
  "hasDynamicHelp": false,
3823
3856
  "multiple": false,
3824
3857
  "type": "option"
3825
3858
  },
3826
- "end-time": {
3827
- "description": "End time filter (ISO 8601)",
3828
- "name": "end-time",
3859
+ "description": {
3860
+ "description": "Evaluator description",
3861
+ "name": "description",
3829
3862
  "hasDynamicHelp": false,
3830
3863
  "multiple": false,
3831
3864
  "type": "option"
3832
3865
  },
3833
- "environment": {
3834
- "description": "Environment filter",
3835
- "name": "environment",
3866
+ "config": {
3867
+ "description": "Evaluator config as JSON string",
3868
+ "name": "config",
3836
3869
  "hasDynamicHelp": false,
3837
3870
  "multiple": false,
3838
3871
  "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
3872
  }
3847
3873
  },
3848
3874
  "hasDynamicHelp": false,
3849
3875
  "hiddenAliases": [],
3850
- "id": "traces:list",
3876
+ "id": "evaluators:create",
3851
3877
  "pluginAlias": "@respan/cli",
3852
3878
  "pluginName": "@respan/cli",
3853
3879
  "pluginType": "core",
@@ -3857,14 +3883,20 @@
3857
3883
  "relativePath": [
3858
3884
  "dist",
3859
3885
  "commands",
3860
- "traces",
3861
- "list.js"
3886
+ "evaluators",
3887
+ "create.js"
3862
3888
  ]
3863
3889
  },
3864
- "traces:summary": {
3890
+ "evaluators:get": {
3865
3891
  "aliases": [],
3866
- "args": {},
3867
- "description": "Get a span-level summary of activity for a time range (counts, latency, cost, errors aggregated across spans)",
3892
+ "args": {
3893
+ "id": {
3894
+ "description": "Evaluator ID",
3895
+ "name": "id",
3896
+ "required": true
3897
+ }
3898
+ },
3899
+ "description": "Get a specific evaluator",
3868
3900
  "flags": {
3869
3901
  "api-key": {
3870
3902
  "description": "API key (env: RESPAN_API_KEY)",
@@ -3906,27 +3938,11 @@
3906
3938
  "name": "verbose",
3907
3939
  "allowNo": false,
3908
3940
  "type": "boolean"
3909
- },
3910
- "start-time": {
3911
- "description": "Start time (ISO 8601)",
3912
- "name": "start-time",
3913
- "required": true,
3914
- "hasDynamicHelp": false,
3915
- "multiple": false,
3916
- "type": "option"
3917
- },
3918
- "end-time": {
3919
- "description": "End time (ISO 8601)",
3920
- "name": "end-time",
3921
- "required": true,
3922
- "hasDynamicHelp": false,
3923
- "multiple": false,
3924
- "type": "option"
3925
3941
  }
3926
3942
  },
3927
3943
  "hasDynamicHelp": false,
3928
3944
  "hiddenAliases": [],
3929
- "id": "traces:summary",
3945
+ "id": "evaluators:get",
3930
3946
  "pluginAlias": "@respan/cli",
3931
3947
  "pluginName": "@respan/cli",
3932
3948
  "pluginType": "core",
@@ -3936,14 +3952,14 @@
3936
3952
  "relativePath": [
3937
3953
  "dist",
3938
3954
  "commands",
3939
- "traces",
3940
- "summary.js"
3955
+ "evaluators",
3956
+ "get.js"
3941
3957
  ]
3942
3958
  },
3943
- "users:create": {
3959
+ "evaluators:list": {
3944
3960
  "aliases": [],
3945
3961
  "args": {},
3946
- "description": "Create a new user (customer)",
3962
+ "description": "List evaluators",
3947
3963
  "flags": {
3948
3964
  "api-key": {
3949
3965
  "description": "API key (env: RESPAN_API_KEY)",
@@ -3986,31 +4002,18 @@
3986
4002
  "allowNo": false,
3987
4003
  "type": "boolean"
3988
4004
  },
3989
- "identifier": {
3990
- "description": "Customer identifier",
3991
- "name": "identifier",
3992
- "required": true,
3993
- "hasDynamicHelp": false,
3994
- "multiple": false,
3995
- "type": "option"
3996
- },
3997
- "name": {
3998
- "description": "Customer name",
3999
- "name": "name",
4000
- "hasDynamicHelp": false,
4001
- "multiple": false,
4002
- "type": "option"
4003
- },
4004
- "email": {
4005
- "description": "Customer email",
4006
- "name": "email",
4005
+ "limit": {
4006
+ "description": "Number of results per page",
4007
+ "name": "limit",
4008
+ "default": 20,
4007
4009
  "hasDynamicHelp": false,
4008
4010
  "multiple": false,
4009
4011
  "type": "option"
4010
4012
  },
4011
- "metadata": {
4012
- "description": "Metadata as JSON string",
4013
- "name": "metadata",
4013
+ "page": {
4014
+ "description": "Page number",
4015
+ "name": "page",
4016
+ "default": 1,
4014
4017
  "hasDynamicHelp": false,
4015
4018
  "multiple": false,
4016
4019
  "type": "option"
@@ -4018,7 +4021,7 @@
4018
4021
  },
4019
4022
  "hasDynamicHelp": false,
4020
4023
  "hiddenAliases": [],
4021
- "id": "users:create",
4024
+ "id": "evaluators:list",
4022
4025
  "pluginAlias": "@respan/cli",
4023
4026
  "pluginName": "@respan/cli",
4024
4027
  "pluginType": "core",
@@ -4028,20 +4031,20 @@
4028
4031
  "relativePath": [
4029
4032
  "dist",
4030
4033
  "commands",
4031
- "users",
4032
- "create.js"
4034
+ "evaluators",
4035
+ "list.js"
4033
4036
  ]
4034
4037
  },
4035
- "users:get": {
4038
+ "evaluators:run": {
4036
4039
  "aliases": [],
4037
4040
  "args": {
4038
4041
  "id": {
4039
- "description": "Customer identifier",
4042
+ "description": "Evaluator ID",
4040
4043
  "name": "id",
4041
4044
  "required": true
4042
4045
  }
4043
4046
  },
4044
- "description": "Get a specific user (customer)",
4047
+ "description": "Run an evaluator",
4045
4048
  "flags": {
4046
4049
  "api-key": {
4047
4050
  "description": "API key (env: RESPAN_API_KEY)",
@@ -4083,11 +4086,32 @@
4083
4086
  "name": "verbose",
4084
4087
  "allowNo": false,
4085
4088
  "type": "boolean"
4089
+ },
4090
+ "dataset-id": {
4091
+ "description": "Dataset ID to evaluate against",
4092
+ "name": "dataset-id",
4093
+ "hasDynamicHelp": false,
4094
+ "multiple": false,
4095
+ "type": "option"
4096
+ },
4097
+ "log-ids": {
4098
+ "description": "Comma-separated log/span IDs to evaluate",
4099
+ "name": "log-ids",
4100
+ "hasDynamicHelp": false,
4101
+ "multiple": false,
4102
+ "type": "option"
4103
+ },
4104
+ "params": {
4105
+ "description": "Additional parameters as JSON string",
4106
+ "name": "params",
4107
+ "hasDynamicHelp": false,
4108
+ "multiple": false,
4109
+ "type": "option"
4086
4110
  }
4087
4111
  },
4088
4112
  "hasDynamicHelp": false,
4089
4113
  "hiddenAliases": [],
4090
- "id": "users:get",
4114
+ "id": "evaluators:run",
4091
4115
  "pluginAlias": "@respan/cli",
4092
4116
  "pluginName": "@respan/cli",
4093
4117
  "pluginType": "core",
@@ -4097,14 +4121,20 @@
4097
4121
  "relativePath": [
4098
4122
  "dist",
4099
4123
  "commands",
4100
- "users",
4101
- "get.js"
4124
+ "evaluators",
4125
+ "run.js"
4102
4126
  ]
4103
4127
  },
4104
- "users:list": {
4128
+ "evaluators:update": {
4105
4129
  "aliases": [],
4106
- "args": {},
4107
- "description": "List users (customers)",
4130
+ "args": {
4131
+ "id": {
4132
+ "description": "Evaluator ID",
4133
+ "name": "id",
4134
+ "required": true
4135
+ }
4136
+ },
4137
+ "description": "Update an evaluator",
4108
4138
  "flags": {
4109
4139
  "api-key": {
4110
4140
  "description": "API key (env: RESPAN_API_KEY)",
@@ -4147,32 +4177,23 @@
4147
4177
  "allowNo": false,
4148
4178
  "type": "boolean"
4149
4179
  },
4150
- "limit": {
4151
- "description": "Number of results per page",
4152
- "name": "limit",
4153
- "default": 20,
4154
- "hasDynamicHelp": false,
4155
- "multiple": false,
4156
- "type": "option"
4157
- },
4158
- "page": {
4159
- "description": "Page number",
4160
- "name": "page",
4161
- "default": 1,
4180
+ "name": {
4181
+ "description": "Evaluator name",
4182
+ "name": "name",
4162
4183
  "hasDynamicHelp": false,
4163
4184
  "multiple": false,
4164
4185
  "type": "option"
4165
4186
  },
4166
- "sort-by": {
4167
- "description": "Sort field",
4168
- "name": "sort-by",
4187
+ "description": {
4188
+ "description": "Evaluator description",
4189
+ "name": "description",
4169
4190
  "hasDynamicHelp": false,
4170
4191
  "multiple": false,
4171
4192
  "type": "option"
4172
4193
  },
4173
- "environment": {
4174
- "description": "Environment filter",
4175
- "name": "environment",
4194
+ "config": {
4195
+ "description": "Evaluator config as JSON string",
4196
+ "name": "config",
4176
4197
  "hasDynamicHelp": false,
4177
4198
  "multiple": false,
4178
4199
  "type": "option"
@@ -4180,7 +4201,7 @@
4180
4201
  },
4181
4202
  "hasDynamicHelp": false,
4182
4203
  "hiddenAliases": [],
4183
- "id": "users:list",
4204
+ "id": "evaluators:update",
4184
4205
  "pluginAlias": "@respan/cli",
4185
4206
  "pluginName": "@respan/cli",
4186
4207
  "pluginType": "core",
@@ -4190,20 +4211,20 @@
4190
4211
  "relativePath": [
4191
4212
  "dist",
4192
4213
  "commands",
4193
- "users",
4194
- "list.js"
4214
+ "evaluators",
4215
+ "update.js"
4195
4216
  ]
4196
4217
  },
4197
- "users:update": {
4218
+ "eval": {
4198
4219
  "aliases": [],
4199
4220
  "args": {
4200
- "id": {
4201
- "description": "Customer identifier",
4202
- "name": "id",
4221
+ "file": {
4222
+ "description": "Path to eval JSON file",
4223
+ "name": "file",
4203
4224
  "required": true
4204
4225
  }
4205
4226
  },
4206
- "description": "Update a user (customer)",
4227
+ "description": "Run an eval defined in a JSON file (creates prompt + dataset on the platform)",
4207
4228
  "flags": {
4208
4229
  "api-key": {
4209
4230
  "description": "API key (env: RESPAN_API_KEY)",
@@ -4245,32 +4266,11 @@
4245
4266
  "name": "verbose",
4246
4267
  "allowNo": false,
4247
4268
  "type": "boolean"
4248
- },
4249
- "name": {
4250
- "description": "Customer name",
4251
- "name": "name",
4252
- "hasDynamicHelp": false,
4253
- "multiple": false,
4254
- "type": "option"
4255
- },
4256
- "email": {
4257
- "description": "Customer email",
4258
- "name": "email",
4259
- "hasDynamicHelp": false,
4260
- "multiple": false,
4261
- "type": "option"
4262
- },
4263
- "metadata": {
4264
- "description": "Metadata as JSON string",
4265
- "name": "metadata",
4266
- "hasDynamicHelp": false,
4267
- "multiple": false,
4268
- "type": "option"
4269
4269
  }
4270
4270
  },
4271
4271
  "hasDynamicHelp": false,
4272
4272
  "hiddenAliases": [],
4273
- "id": "users:update",
4273
+ "id": "eval",
4274
4274
  "pluginAlias": "@respan/cli",
4275
4275
  "pluginName": "@respan/cli",
4276
4276
  "pluginType": "core",
@@ -4280,10 +4280,10 @@
4280
4280
  "relativePath": [
4281
4281
  "dist",
4282
4282
  "commands",
4283
- "users",
4284
- "update.js"
4283
+ "eval",
4284
+ "index.js"
4285
4285
  ]
4286
4286
  }
4287
4287
  },
4288
- "version": "0.17.2"
4288
+ "version": "0.18.0"
4289
4289
  }