@respan/cli 0.18.0 → 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.
@@ -6,7 +6,7 @@ export default class EvaluatorsRun extends BaseCommand {
6
6
  };
7
7
  static flags: {
8
8
  'dataset-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
- 'log-ids': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
+ 'span-ids': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
10
  params: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
11
  'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
12
  'base-url': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -20,8 +20,8 @@ class EvaluatorsRun extends BaseCommand {
20
20
  ...extra,
21
21
  evaluator_id: args.id,
22
22
  ...(flags['dataset-id'] ? { dataset_id: flags['dataset-id'] } : {}),
23
- ...(flags['log-ids']
24
- ? { log_ids: flags['log-ids'].split(',').map((s) => s.trim()) }
23
+ ...(flags['span-ids']
24
+ ? { log_ids: flags['span-ids'].split(',').map((s) => s.trim()) }
25
25
  : {}),
26
26
  }));
27
27
  this.log(JSON.stringify(data, null, 2));
@@ -36,7 +36,7 @@ EvaluatorsRun.args = { id: Args.string({ description: 'Evaluator ID', required:
36
36
  EvaluatorsRun.flags = {
37
37
  ...BaseCommand.baseFlags,
38
38
  'dataset-id': Flags.string({ description: 'Dataset ID to evaluate against' }),
39
- 'log-ids': Flags.string({ description: 'Comma-separated log/span IDs to evaluate' }),
39
+ 'span-ids': Flags.string({ description: 'Comma-separated span IDs to evaluate (--log-ids still works)', aliases: ['log-ids'] }),
40
40
  params: Flags.string({ description: 'Additional parameters as JSON string' }),
41
41
  };
42
42
  export default EvaluatorsRun;
@@ -1,8 +1,9 @@
1
1
  import { BaseCommand } from '../../lib/base-command.js';
2
2
  export default class LogsGet extends BaseCommand {
3
3
  static description: string;
4
+ static aliases: string[];
4
5
  static args: {
5
- id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
6
+ 'span-id': import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
6
7
  };
7
8
  static flags: {
8
9
  'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -6,7 +6,7 @@ class LogsGet extends BaseCommand {
6
6
  this.globalFlags = flags;
7
7
  try {
8
8
  const client = this.getClient();
9
- const data = await this.spin('Fetching span', () => client.spans.retrieveSpan({ Authorization: this.getAuthHeader(), unique_id: args.id }));
9
+ const data = await this.spin('Fetching span', () => client.spans.retrieveSpan({ Authorization: this.getAuthHeader(), unique_id: args['span-id'] }));
10
10
  this.log(JSON.stringify(data, null, 2));
11
11
  }
12
12
  catch (error) {
@@ -14,7 +14,8 @@ class LogsGet extends BaseCommand {
14
14
  }
15
15
  }
16
16
  }
17
- LogsGet.description = 'Get a specific log span';
18
- LogsGet.args = { id: Args.string({ description: 'Span ID', required: true }) };
17
+ LogsGet.description = 'Get one span by its span ID (also: respan spans get)';
18
+ LogsGet.aliases = ['spans:get'];
19
+ LogsGet.args = { 'span-id': Args.string({ description: 'Span ID (span_id in MCP)', required: true }) };
19
20
  LogsGet.flags = { ...BaseCommand.baseFlags };
20
21
  export default LogsGet;
@@ -1,5 +1,6 @@
1
1
  import { BaseCommand } from '../../lib/base-command.js';
2
2
  export default class LogsList extends BaseCommand {
3
+ static aliases: string[];
3
4
  static description: string;
4
5
  static flags: {
5
6
  limit: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
@@ -13,7 +13,7 @@ class LogsList extends BaseCommand {
13
13
  filters = parseFilters(flags.filter);
14
14
  }
15
15
  const oneHourAgo = new Date(Date.now() - 60 * 60 * 1000).toISOString();
16
- const data = await this.spin('Fetching logs', () => client.spans.listSpans({
16
+ const data = await this.spin('Fetching spans', () => client.spans.listSpans({
17
17
  Authorization: this.getAuthHeader(),
18
18
  start_time: flags['start-time'] || oneHourAgo,
19
19
  end_time: flags['end-time'] || new Date().toISOString(),
@@ -36,7 +36,8 @@ class LogsList extends BaseCommand {
36
36
  }
37
37
  }
38
38
  }
39
- LogsList.description = `List and filter LLM request logs (spans).
39
+ LogsList.aliases = ['spans:list'];
40
+ LogsList.description = `List and filter spans (LLM request logs). Also: respan spans list.
40
41
 
41
42
  Supports pagination, sorting, time range, and server-side filtering.
42
43
 
@@ -1,5 +1,6 @@
1
1
  import { BaseCommand } from '../../lib/base-command.js';
2
2
  export default class LogsSummary extends BaseCommand {
3
+ static aliases: string[];
3
4
  static description: string;
4
5
  static flags: {
5
6
  'start-time': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
@@ -26,7 +26,8 @@ class LogsSummary extends BaseCommand {
26
26
  }
27
27
  }
28
28
  }
29
- LogsSummary.description = `Get aggregated summary statistics for log spans in a time range.
29
+ LogsSummary.aliases = ['spans:summary'];
30
+ LogsSummary.description = `Get aggregated summary statistics for spans in a time range. Also: respan spans summary.
30
31
 
31
32
  Returns total cost, total tokens, request count, and score summaries.
32
33
 
@@ -21,7 +21,7 @@ class ToolsCall extends BaseCommand {
21
21
  }
22
22
  }
23
23
  ToolsCall.description = 'Call a Respan MCP tool with its exact tool name and JSON arguments. Writes execute immediately; inspect tools list --json before calling.';
24
- ToolsCall.args = { name: Args.string({ description: 'MCP tool name, e.g. log_list or trace_get', required: true }) };
24
+ ToolsCall.args = { name: Args.string({ description: 'MCP tool name, e.g. span_list or trace_get', required: true }) };
25
25
  ToolsCall.flags = {
26
26
  ...BaseCommand.baseFlags,
27
27
  input: Flags.string({ description: 'JSON object of MCP tool arguments', exclusive: ['input-file'] }),
@@ -2,7 +2,7 @@ import { BaseCommand } from '../../lib/base-command.js';
2
2
  export default class TracesGet extends BaseCommand {
3
3
  static description: string;
4
4
  static args: {
5
- id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
5
+ 'trace-id': import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
6
6
  };
7
7
  static flags: {
8
8
  'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
@@ -6,7 +6,7 @@ class TracesGet extends BaseCommand {
6
6
  this.globalFlags = flags;
7
7
  try {
8
8
  const client = this.getClient();
9
- const data = await this.spin('Fetching trace', () => client.traces.retrieveTrace({ Authorization: this.getAuthHeader(), trace_unique_id: args.id }));
9
+ const data = await this.spin('Fetching trace', () => client.traces.retrieveTrace({ Authorization: this.getAuthHeader(), trace_unique_id: args['trace-id'] }));
10
10
  this.log(JSON.stringify(data, null, 2));
11
11
  }
12
12
  catch (error) {
@@ -15,6 +15,6 @@ class TracesGet extends BaseCommand {
15
15
  }
16
16
  }
17
17
  TracesGet.description = 'Get a specific trace';
18
- TracesGet.args = { id: Args.string({ description: 'Trace ID', required: true }) };
18
+ TracesGet.args = { 'trace-id': Args.string({ description: 'Trace ID (trace_id in MCP)', required: true }) };
19
19
  TracesGet.flags = { ...BaseCommand.baseFlags };
20
20
  export default TracesGet;
@@ -1583,10 +1583,10 @@
1583
1583
  "index.js"
1584
1584
  ]
1585
1585
  },
1586
- "experiments:create": {
1586
+ "evaluators:create": {
1587
1587
  "aliases": [],
1588
1588
  "args": {},
1589
- "description": "Create a new experiment",
1589
+ "description": "Create a new evaluator",
1590
1590
  "flags": {
1591
1591
  "api-key": {
1592
1592
  "description": "API key (env: RESPAN_API_KEY)",
@@ -1630,31 +1630,30 @@
1630
1630
  "type": "boolean"
1631
1631
  },
1632
1632
  "name": {
1633
- "description": "Experiment name",
1633
+ "description": "Evaluator name",
1634
1634
  "name": "name",
1635
1635
  "required": true,
1636
1636
  "hasDynamicHelp": false,
1637
1637
  "multiple": false,
1638
1638
  "type": "option"
1639
1639
  },
1640
- "dataset-id": {
1641
- "description": "Dataset ID",
1642
- "name": "dataset-id",
1643
- "required": true,
1640
+ "type": {
1641
+ "description": "Evaluator type",
1642
+ "name": "type",
1644
1643
  "hasDynamicHelp": false,
1645
1644
  "multiple": false,
1646
1645
  "type": "option"
1647
1646
  },
1648
1647
  "description": {
1649
- "description": "Experiment description",
1648
+ "description": "Evaluator description",
1650
1649
  "name": "description",
1651
1650
  "hasDynamicHelp": false,
1652
1651
  "multiple": false,
1653
1652
  "type": "option"
1654
1653
  },
1655
- "workflows": {
1656
- "description": "Workflows configuration as JSON string",
1657
- "name": "workflows",
1654
+ "config": {
1655
+ "description": "Evaluator config as JSON string",
1656
+ "name": "config",
1658
1657
  "hasDynamicHelp": false,
1659
1658
  "multiple": false,
1660
1659
  "type": "option"
@@ -1662,7 +1661,7 @@
1662
1661
  },
1663
1662
  "hasDynamicHelp": false,
1664
1663
  "hiddenAliases": [],
1665
- "id": "experiments:create",
1664
+ "id": "evaluators:create",
1666
1665
  "pluginAlias": "@respan/cli",
1667
1666
  "pluginName": "@respan/cli",
1668
1667
  "pluginType": "core",
@@ -1672,20 +1671,20 @@
1672
1671
  "relativePath": [
1673
1672
  "dist",
1674
1673
  "commands",
1675
- "experiments",
1674
+ "evaluators",
1676
1675
  "create.js"
1677
1676
  ]
1678
1677
  },
1679
- "experiments:get": {
1678
+ "evaluators:get": {
1680
1679
  "aliases": [],
1681
1680
  "args": {
1682
1681
  "id": {
1683
- "description": "Experiment ID",
1682
+ "description": "Evaluator ID",
1684
1683
  "name": "id",
1685
1684
  "required": true
1686
1685
  }
1687
1686
  },
1688
- "description": "Get a specific experiment",
1687
+ "description": "Get a specific evaluator",
1689
1688
  "flags": {
1690
1689
  "api-key": {
1691
1690
  "description": "API key (env: RESPAN_API_KEY)",
@@ -1731,7 +1730,7 @@
1731
1730
  },
1732
1731
  "hasDynamicHelp": false,
1733
1732
  "hiddenAliases": [],
1734
- "id": "experiments:get",
1733
+ "id": "evaluators:get",
1735
1734
  "pluginAlias": "@respan/cli",
1736
1735
  "pluginName": "@respan/cli",
1737
1736
  "pluginType": "core",
@@ -1741,14 +1740,14 @@
1741
1740
  "relativePath": [
1742
1741
  "dist",
1743
1742
  "commands",
1744
- "experiments",
1743
+ "evaluators",
1745
1744
  "get.js"
1746
1745
  ]
1747
1746
  },
1748
- "experiments:list": {
1747
+ "evaluators:list": {
1749
1748
  "aliases": [],
1750
1749
  "args": {},
1751
- "description": "List experiments",
1750
+ "description": "List evaluators",
1752
1751
  "flags": {
1753
1752
  "api-key": {
1754
1753
  "description": "API key (env: RESPAN_API_KEY)",
@@ -1810,7 +1809,7 @@
1810
1809
  },
1811
1810
  "hasDynamicHelp": false,
1812
1811
  "hiddenAliases": [],
1813
- "id": "experiments:list",
1812
+ "id": "evaluators:list",
1814
1813
  "pluginAlias": "@respan/cli",
1815
1814
  "pluginName": "@respan/cli",
1816
1815
  "pluginType": "core",
@@ -1820,14 +1819,20 @@
1820
1819
  "relativePath": [
1821
1820
  "dist",
1822
1821
  "commands",
1823
- "experiments",
1822
+ "evaluators",
1824
1823
  "list.js"
1825
1824
  ]
1826
1825
  },
1827
- "logs:create": {
1826
+ "evaluators:run": {
1828
1827
  "aliases": [],
1829
- "args": {},
1830
- "description": "Create a log span",
1828
+ "args": {
1829
+ "id": {
1830
+ "description": "Evaluator ID",
1831
+ "name": "id",
1832
+ "required": true
1833
+ }
1834
+ },
1835
+ "description": "Run an evaluator",
1831
1836
  "flags": {
1832
1837
  "api-key": {
1833
1838
  "description": "API key (env: RESPAN_API_KEY)",
@@ -1870,31 +1875,26 @@
1870
1875
  "allowNo": false,
1871
1876
  "type": "boolean"
1872
1877
  },
1873
- "input": {
1874
- "description": "Input text or JSON",
1875
- "name": "input",
1876
- "required": true,
1877
- "hasDynamicHelp": false,
1878
- "multiple": false,
1879
- "type": "option"
1880
- },
1881
- "output": {
1882
- "description": "Output text or JSON",
1883
- "name": "output",
1878
+ "dataset-id": {
1879
+ "description": "Dataset ID to evaluate against",
1880
+ "name": "dataset-id",
1884
1881
  "hasDynamicHelp": false,
1885
1882
  "multiple": false,
1886
1883
  "type": "option"
1887
1884
  },
1888
- "model": {
1889
- "description": "Model name",
1890
- "name": "model",
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
1891
  "hasDynamicHelp": false,
1892
1892
  "multiple": false,
1893
1893
  "type": "option"
1894
1894
  },
1895
- "metadata": {
1896
- "description": "Metadata as JSON string",
1897
- "name": "metadata",
1895
+ "params": {
1896
+ "description": "Additional parameters as JSON string",
1897
+ "name": "params",
1898
1898
  "hasDynamicHelp": false,
1899
1899
  "multiple": false,
1900
1900
  "type": "option"
@@ -1902,7 +1902,7 @@
1902
1902
  },
1903
1903
  "hasDynamicHelp": false,
1904
1904
  "hiddenAliases": [],
1905
- "id": "logs:create",
1905
+ "id": "evaluators:run",
1906
1906
  "pluginAlias": "@respan/cli",
1907
1907
  "pluginName": "@respan/cli",
1908
1908
  "pluginType": "core",
@@ -1912,20 +1912,20 @@
1912
1912
  "relativePath": [
1913
1913
  "dist",
1914
1914
  "commands",
1915
- "logs",
1916
- "create.js"
1915
+ "evaluators",
1916
+ "run.js"
1917
1917
  ]
1918
1918
  },
1919
- "logs:get": {
1919
+ "evaluators:update": {
1920
1920
  "aliases": [],
1921
1921
  "args": {
1922
1922
  "id": {
1923
- "description": "Span ID",
1923
+ "description": "Evaluator ID",
1924
1924
  "name": "id",
1925
1925
  "required": true
1926
1926
  }
1927
1927
  },
1928
- "description": "Get a specific log span",
1928
+ "description": "Update an evaluator",
1929
1929
  "flags": {
1930
1930
  "api-key": {
1931
1931
  "description": "API key (env: RESPAN_API_KEY)",
@@ -1967,11 +1967,32 @@
1967
1967
  "name": "verbose",
1968
1968
  "allowNo": false,
1969
1969
  "type": "boolean"
1970
+ },
1971
+ "name": {
1972
+ "description": "Evaluator name",
1973
+ "name": "name",
1974
+ "hasDynamicHelp": false,
1975
+ "multiple": false,
1976
+ "type": "option"
1977
+ },
1978
+ "description": {
1979
+ "description": "Evaluator description",
1980
+ "name": "description",
1981
+ "hasDynamicHelp": false,
1982
+ "multiple": false,
1983
+ "type": "option"
1984
+ },
1985
+ "config": {
1986
+ "description": "Evaluator config as JSON string",
1987
+ "name": "config",
1988
+ "hasDynamicHelp": false,
1989
+ "multiple": false,
1990
+ "type": "option"
1970
1991
  }
1971
1992
  },
1972
1993
  "hasDynamicHelp": false,
1973
1994
  "hiddenAliases": [],
1974
- "id": "logs:get",
1995
+ "id": "evaluators:update",
1975
1996
  "pluginAlias": "@respan/cli",
1976
1997
  "pluginName": "@respan/cli",
1977
1998
  "pluginType": "core",
@@ -1981,14 +2002,20 @@
1981
2002
  "relativePath": [
1982
2003
  "dist",
1983
2004
  "commands",
1984
- "logs",
1985
- "get.js"
2005
+ "evaluators",
2006
+ "update.js"
1986
2007
  ]
1987
2008
  },
1988
- "logs:list": {
2009
+ "eval": {
1989
2010
  "aliases": [],
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",
2011
+ "args": {
2012
+ "file": {
2013
+ "description": "Path to eval JSON file",
2014
+ "name": "file",
2015
+ "required": true
2016
+ }
2017
+ },
2018
+ "description": "Run an eval defined in a JSON file (creates prompt + dataset on the platform)",
1992
2019
  "flags": {
1993
2020
  "api-key": {
1994
2021
  "description": "API key (env: RESPAN_API_KEY)",
@@ -2030,76 +2057,11 @@
2030
2057
  "name": "verbose",
2031
2058
  "allowNo": false,
2032
2059
  "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"
2098
2060
  }
2099
2061
  },
2100
2062
  "hasDynamicHelp": false,
2101
2063
  "hiddenAliases": [],
2102
- "id": "logs:list",
2064
+ "id": "eval",
2103
2065
  "pluginAlias": "@respan/cli",
2104
2066
  "pluginName": "@respan/cli",
2105
2067
  "pluginType": "core",
@@ -2109,14 +2071,14 @@
2109
2071
  "relativePath": [
2110
2072
  "dist",
2111
2073
  "commands",
2112
- "logs",
2113
- "list.js"
2074
+ "eval",
2075
+ "index.js"
2114
2076
  ]
2115
2077
  },
2116
- "logs:summary": {
2078
+ "experiments:create": {
2117
2079
  "aliases": [],
2118
2080
  "args": {},
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",
2081
+ "description": "Create a new experiment",
2120
2082
  "flags": {
2121
2083
  "api-key": {
2122
2084
  "description": "API key (env: RESPAN_API_KEY)",
@@ -2159,39 +2121,32 @@
2159
2121
  "allowNo": false,
2160
2122
  "type": "boolean"
2161
2123
  },
2162
- "start-time": {
2163
- "description": "Start time (ISO 8601)",
2164
- "name": "start-time",
2124
+ "name": {
2125
+ "description": "Experiment name",
2126
+ "name": "name",
2165
2127
  "required": true,
2166
2128
  "hasDynamicHelp": false,
2167
2129
  "multiple": false,
2168
2130
  "type": "option"
2169
2131
  },
2170
- "end-time": {
2171
- "description": "End time (ISO 8601)",
2172
- "name": "end-time",
2132
+ "dataset-id": {
2133
+ "description": "Dataset ID",
2134
+ "name": "dataset-id",
2173
2135
  "required": true,
2174
2136
  "hasDynamicHelp": false,
2175
2137
  "multiple": false,
2176
2138
  "type": "option"
2177
2139
  },
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",
2140
+ "description": {
2141
+ "description": "Experiment description",
2142
+ "name": "description",
2188
2143
  "hasDynamicHelp": false,
2189
2144
  "multiple": false,
2190
2145
  "type": "option"
2191
2146
  },
2192
- "is-test": {
2193
- "description": "Filter by test (true) or production (false) environment",
2194
- "name": "is-test",
2147
+ "workflows": {
2148
+ "description": "Workflows configuration as JSON string",
2149
+ "name": "workflows",
2195
2150
  "hasDynamicHelp": false,
2196
2151
  "multiple": false,
2197
2152
  "type": "option"
@@ -2199,7 +2154,7 @@
2199
2154
  },
2200
2155
  "hasDynamicHelp": false,
2201
2156
  "hiddenAliases": [],
2202
- "id": "logs:summary",
2157
+ "id": "experiments:create",
2203
2158
  "pluginAlias": "@respan/cli",
2204
2159
  "pluginName": "@respan/cli",
2205
2160
  "pluginType": "core",
@@ -2209,20 +2164,20 @@
2209
2164
  "relativePath": [
2210
2165
  "dist",
2211
2166
  "commands",
2212
- "logs",
2213
- "summary.js"
2167
+ "experiments",
2168
+ "create.js"
2214
2169
  ]
2215
2170
  },
2216
- "prompts:create-version": {
2171
+ "experiments:get": {
2217
2172
  "aliases": [],
2218
2173
  "args": {
2219
- "prompt-id": {
2220
- "description": "Prompt ID",
2221
- "name": "prompt-id",
2174
+ "id": {
2175
+ "description": "Experiment ID",
2176
+ "name": "id",
2222
2177
  "required": true
2223
2178
  }
2224
2179
  },
2225
- "description": "Create a new version of a prompt",
2180
+ "description": "Get a specific experiment",
2226
2181
  "flags": {
2227
2182
  "api-key": {
2228
2183
  "description": "API key (env: RESPAN_API_KEY)",
@@ -2264,13 +2219,161 @@
2264
2219
  "name": "verbose",
2265
2220
  "allowNo": false,
2266
2221
  "type": "boolean"
2267
- },
2268
- "messages": {
2269
- "description": "Messages as JSON array string",
2270
- "name": "messages",
2271
- "required": true,
2272
- "hasDynamicHelp": false,
2273
- "multiple": false,
2222
+ }
2223
+ },
2224
+ "hasDynamicHelp": false,
2225
+ "hiddenAliases": [],
2226
+ "id": "experiments:get",
2227
+ "pluginAlias": "@respan/cli",
2228
+ "pluginName": "@respan/cli",
2229
+ "pluginType": "core",
2230
+ "strict": true,
2231
+ "enableJsonFlag": false,
2232
+ "isESM": true,
2233
+ "relativePath": [
2234
+ "dist",
2235
+ "commands",
2236
+ "experiments",
2237
+ "get.js"
2238
+ ]
2239
+ },
2240
+ "experiments:list": {
2241
+ "aliases": [],
2242
+ "args": {},
2243
+ "description": "List experiments",
2244
+ "flags": {
2245
+ "api-key": {
2246
+ "description": "API key (env: RESPAN_API_KEY)",
2247
+ "env": "RESPAN_API_KEY",
2248
+ "name": "api-key",
2249
+ "hasDynamicHelp": false,
2250
+ "multiple": false,
2251
+ "type": "option"
2252
+ },
2253
+ "base-url": {
2254
+ "description": "Temporary API base URL override for this command",
2255
+ "name": "base-url",
2256
+ "hasDynamicHelp": false,
2257
+ "multiple": false,
2258
+ "type": "option"
2259
+ },
2260
+ "profile": {
2261
+ "description": "Named profile to use",
2262
+ "name": "profile",
2263
+ "hasDynamicHelp": false,
2264
+ "multiple": false,
2265
+ "type": "option"
2266
+ },
2267
+ "json": {
2268
+ "description": "Output as JSON",
2269
+ "name": "json",
2270
+ "allowNo": false,
2271
+ "type": "boolean"
2272
+ },
2273
+ "csv": {
2274
+ "description": "Output as CSV",
2275
+ "name": "csv",
2276
+ "allowNo": false,
2277
+ "type": "boolean"
2278
+ },
2279
+ "verbose": {
2280
+ "char": "v",
2281
+ "description": "Show verbose output",
2282
+ "name": "verbose",
2283
+ "allowNo": false,
2284
+ "type": "boolean"
2285
+ },
2286
+ "limit": {
2287
+ "description": "Number of results per page",
2288
+ "name": "limit",
2289
+ "default": 20,
2290
+ "hasDynamicHelp": false,
2291
+ "multiple": false,
2292
+ "type": "option"
2293
+ },
2294
+ "page": {
2295
+ "description": "Page number",
2296
+ "name": "page",
2297
+ "default": 1,
2298
+ "hasDynamicHelp": false,
2299
+ "multiple": false,
2300
+ "type": "option"
2301
+ }
2302
+ },
2303
+ "hasDynamicHelp": false,
2304
+ "hiddenAliases": [],
2305
+ "id": "experiments:list",
2306
+ "pluginAlias": "@respan/cli",
2307
+ "pluginName": "@respan/cli",
2308
+ "pluginType": "core",
2309
+ "strict": true,
2310
+ "enableJsonFlag": false,
2311
+ "isESM": true,
2312
+ "relativePath": [
2313
+ "dist",
2314
+ "commands",
2315
+ "experiments",
2316
+ "list.js"
2317
+ ]
2318
+ },
2319
+ "prompts:create-version": {
2320
+ "aliases": [],
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",
2329
+ "flags": {
2330
+ "api-key": {
2331
+ "description": "API key (env: RESPAN_API_KEY)",
2332
+ "env": "RESPAN_API_KEY",
2333
+ "name": "api-key",
2334
+ "hasDynamicHelp": false,
2335
+ "multiple": false,
2336
+ "type": "option"
2337
+ },
2338
+ "base-url": {
2339
+ "description": "Temporary API base URL override for this command",
2340
+ "name": "base-url",
2341
+ "hasDynamicHelp": false,
2342
+ "multiple": false,
2343
+ "type": "option"
2344
+ },
2345
+ "profile": {
2346
+ "description": "Named profile to use",
2347
+ "name": "profile",
2348
+ "hasDynamicHelp": false,
2349
+ "multiple": false,
2350
+ "type": "option"
2351
+ },
2352
+ "json": {
2353
+ "description": "Output as JSON",
2354
+ "name": "json",
2355
+ "allowNo": false,
2356
+ "type": "boolean"
2357
+ },
2358
+ "csv": {
2359
+ "description": "Output as CSV",
2360
+ "name": "csv",
2361
+ "allowNo": false,
2362
+ "type": "boolean"
2363
+ },
2364
+ "verbose": {
2365
+ "char": "v",
2366
+ "description": "Show verbose output",
2367
+ "name": "verbose",
2368
+ "allowNo": false,
2369
+ "type": "boolean"
2370
+ },
2371
+ "messages": {
2372
+ "description": "Messages as JSON array string",
2373
+ "name": "messages",
2374
+ "required": true,
2375
+ "hasDynamicHelp": false,
2376
+ "multiple": false,
2274
2377
  "type": "option"
2275
2378
  },
2276
2379
  "model": {
@@ -3013,7 +3116,7 @@
3013
3116
  "aliases": [],
3014
3117
  "args": {
3015
3118
  "name": {
3016
- "description": "MCP tool name, e.g. log_list or trace_get",
3119
+ "description": "MCP tool name, e.g. span_list or trace_get",
3017
3120
  "name": "name",
3018
3121
  "required": true
3019
3122
  }
@@ -3191,9 +3294,9 @@
3191
3294
  "traces:get": {
3192
3295
  "aliases": [],
3193
3296
  "args": {
3194
- "id": {
3195
- "description": "Trace ID",
3196
- "name": "id",
3297
+ "trace-id": {
3298
+ "description": "Trace ID (trace_id in MCP)",
3299
+ "name": "trace-id",
3197
3300
  "required": true
3198
3301
  }
3199
3302
  },
@@ -3795,10 +3898,10 @@
3795
3898
  "update.js"
3796
3899
  ]
3797
3900
  },
3798
- "evaluators:create": {
3901
+ "logs:create": {
3799
3902
  "aliases": [],
3800
3903
  "args": {},
3801
- "description": "Create a new evaluator",
3904
+ "description": "Create a log span",
3802
3905
  "flags": {
3803
3906
  "api-key": {
3804
3907
  "description": "API key (env: RESPAN_API_KEY)",
@@ -3841,31 +3944,31 @@
3841
3944
  "allowNo": false,
3842
3945
  "type": "boolean"
3843
3946
  },
3844
- "name": {
3845
- "description": "Evaluator name",
3846
- "name": "name",
3947
+ "input": {
3948
+ "description": "Input text or JSON",
3949
+ "name": "input",
3847
3950
  "required": true,
3848
3951
  "hasDynamicHelp": false,
3849
3952
  "multiple": false,
3850
3953
  "type": "option"
3851
3954
  },
3852
- "type": {
3853
- "description": "Evaluator type",
3854
- "name": "type",
3955
+ "output": {
3956
+ "description": "Output text or JSON",
3957
+ "name": "output",
3855
3958
  "hasDynamicHelp": false,
3856
3959
  "multiple": false,
3857
3960
  "type": "option"
3858
3961
  },
3859
- "description": {
3860
- "description": "Evaluator description",
3861
- "name": "description",
3962
+ "model": {
3963
+ "description": "Model name",
3964
+ "name": "model",
3862
3965
  "hasDynamicHelp": false,
3863
3966
  "multiple": false,
3864
3967
  "type": "option"
3865
3968
  },
3866
- "config": {
3867
- "description": "Evaluator config as JSON string",
3868
- "name": "config",
3969
+ "metadata": {
3970
+ "description": "Metadata as JSON string",
3971
+ "name": "metadata",
3869
3972
  "hasDynamicHelp": false,
3870
3973
  "multiple": false,
3871
3974
  "type": "option"
@@ -3873,7 +3976,7 @@
3873
3976
  },
3874
3977
  "hasDynamicHelp": false,
3875
3978
  "hiddenAliases": [],
3876
- "id": "evaluators:create",
3979
+ "id": "logs:create",
3877
3980
  "pluginAlias": "@respan/cli",
3878
3981
  "pluginName": "@respan/cli",
3879
3982
  "pluginType": "core",
@@ -3883,20 +3986,22 @@
3883
3986
  "relativePath": [
3884
3987
  "dist",
3885
3988
  "commands",
3886
- "evaluators",
3989
+ "logs",
3887
3990
  "create.js"
3888
3991
  ]
3889
3992
  },
3890
- "evaluators:get": {
3891
- "aliases": [],
3993
+ "logs:get": {
3994
+ "aliases": [
3995
+ "spans:get"
3996
+ ],
3892
3997
  "args": {
3893
- "id": {
3894
- "description": "Evaluator ID",
3895
- "name": "id",
3998
+ "span-id": {
3999
+ "description": "Span ID (span_id in MCP)",
4000
+ "name": "span-id",
3896
4001
  "required": true
3897
4002
  }
3898
4003
  },
3899
- "description": "Get a specific evaluator",
4004
+ "description": "Get one span by its span ID (also: respan spans get)",
3900
4005
  "flags": {
3901
4006
  "api-key": {
3902
4007
  "description": "API key (env: RESPAN_API_KEY)",
@@ -3942,7 +4047,7 @@
3942
4047
  },
3943
4048
  "hasDynamicHelp": false,
3944
4049
  "hiddenAliases": [],
3945
- "id": "evaluators:get",
4050
+ "id": "logs:get",
3946
4051
  "pluginAlias": "@respan/cli",
3947
4052
  "pluginName": "@respan/cli",
3948
4053
  "pluginType": "core",
@@ -3952,14 +4057,16 @@
3952
4057
  "relativePath": [
3953
4058
  "dist",
3954
4059
  "commands",
3955
- "evaluators",
4060
+ "logs",
3956
4061
  "get.js"
3957
4062
  ]
3958
4063
  },
3959
- "evaluators:list": {
3960
- "aliases": [],
4064
+ "logs:list": {
4065
+ "aliases": [
4066
+ "spans:list"
4067
+ ],
3961
4068
  "args": {},
3962
- "description": "List evaluators",
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",
3963
4070
  "flags": {
3964
4071
  "api-key": {
3965
4072
  "description": "API key (env: RESPAN_API_KEY)",
@@ -4003,9 +4110,9 @@
4003
4110
  "type": "boolean"
4004
4111
  },
4005
4112
  "limit": {
4006
- "description": "Number of results per page",
4113
+ "description": "Number of results per page (max 1000)",
4007
4114
  "name": "limit",
4008
- "default": 20,
4115
+ "default": 50,
4009
4116
  "hasDynamicHelp": false,
4010
4117
  "multiple": false,
4011
4118
  "type": "option"
@@ -4017,93 +4124,52 @@
4017
4124
  "hasDynamicHelp": false,
4018
4125
  "multiple": false,
4019
4126
  "type": "option"
4020
- }
4021
- },
4022
- "hasDynamicHelp": false,
4023
- "hiddenAliases": [],
4024
- "id": "evaluators:list",
4025
- "pluginAlias": "@respan/cli",
4026
- "pluginName": "@respan/cli",
4027
- "pluginType": "core",
4028
- "strict": true,
4029
- "enableJsonFlag": false,
4030
- "isESM": true,
4031
- "relativePath": [
4032
- "dist",
4033
- "commands",
4034
- "evaluators",
4035
- "list.js"
4036
- ]
4037
- },
4038
- "evaluators:run": {
4039
- "aliases": [],
4040
- "args": {
4041
- "id": {
4042
- "description": "Evaluator ID",
4043
- "name": "id",
4044
- "required": true
4045
- }
4046
- },
4047
- "description": "Run an evaluator",
4048
- "flags": {
4049
- "api-key": {
4050
- "description": "API key (env: RESPAN_API_KEY)",
4051
- "env": "RESPAN_API_KEY",
4052
- "name": "api-key",
4127
+ },
4128
+ "sort-by": {
4129
+ "description": "Sort field (prefix with - for descending, e.g. -cost, -latency)",
4130
+ "name": "sort-by",
4053
4131
  "hasDynamicHelp": false,
4054
4132
  "multiple": false,
4055
4133
  "type": "option"
4056
4134
  },
4057
- "base-url": {
4058
- "description": "Temporary API base URL override for this command",
4059
- "name": "base-url",
4135
+ "start-time": {
4136
+ "description": "Start time filter (ISO 8601)",
4137
+ "name": "start-time",
4060
4138
  "hasDynamicHelp": false,
4061
4139
  "multiple": false,
4062
4140
  "type": "option"
4063
4141
  },
4064
- "profile": {
4065
- "description": "Named profile to use",
4066
- "name": "profile",
4142
+ "end-time": {
4143
+ "description": "End time filter (ISO 8601)",
4144
+ "name": "end-time",
4067
4145
  "hasDynamicHelp": false,
4068
4146
  "multiple": false,
4069
4147
  "type": "option"
4070
4148
  },
4071
- "json": {
4072
- "description": "Output as JSON",
4073
- "name": "json",
4074
- "allowNo": false,
4075
- "type": "boolean"
4076
- },
4077
- "csv": {
4078
- "description": "Output as CSV",
4079
- "name": "csv",
4080
- "allowNo": false,
4081
- "type": "boolean"
4082
- },
4083
- "verbose": {
4084
- "char": "v",
4085
- "description": "Show verbose output",
4086
- "name": "verbose",
4087
- "allowNo": false,
4088
- "type": "boolean"
4149
+ "filter": {
4150
+ "description": "Filter in field:operator:value format (repeatable)",
4151
+ "name": "filter",
4152
+ "hasDynamicHelp": false,
4153
+ "multiple": true,
4154
+ "type": "option"
4089
4155
  },
4090
- "dataset-id": {
4091
- "description": "Dataset ID to evaluate against",
4092
- "name": "dataset-id",
4156
+ "all-envs": {
4157
+ "description": "Include all environments (true/false)",
4158
+ "name": "all-envs",
4093
4159
  "hasDynamicHelp": false,
4094
4160
  "multiple": false,
4095
4161
  "type": "option"
4096
4162
  },
4097
- "log-ids": {
4098
- "description": "Comma-separated log/span IDs to evaluate",
4099
- "name": "log-ids",
4163
+ "is-test": {
4164
+ "description": "Filter by test (true) or production (false) environment",
4165
+ "name": "is-test",
4100
4166
  "hasDynamicHelp": false,
4101
4167
  "multiple": false,
4102
4168
  "type": "option"
4103
4169
  },
4104
- "params": {
4105
- "description": "Additional parameters as JSON string",
4106
- "name": "params",
4170
+ "include-fields": {
4171
+ "description": "Comma-separated fields to include in response",
4172
+ "name": "include-fields",
4107
4173
  "hasDynamicHelp": false,
4108
4174
  "multiple": false,
4109
4175
  "type": "option"
@@ -4111,7 +4177,7 @@
4111
4177
  },
4112
4178
  "hasDynamicHelp": false,
4113
4179
  "hiddenAliases": [],
4114
- "id": "evaluators:run",
4180
+ "id": "logs:list",
4115
4181
  "pluginAlias": "@respan/cli",
4116
4182
  "pluginName": "@respan/cli",
4117
4183
  "pluginType": "core",
@@ -4121,20 +4187,16 @@
4121
4187
  "relativePath": [
4122
4188
  "dist",
4123
4189
  "commands",
4124
- "evaluators",
4125
- "run.js"
4190
+ "logs",
4191
+ "list.js"
4126
4192
  ]
4127
4193
  },
4128
- "evaluators:update": {
4129
- "aliases": [],
4130
- "args": {
4131
- "id": {
4132
- "description": "Evaluator ID",
4133
- "name": "id",
4134
- "required": true
4135
- }
4136
- },
4137
- "description": "Update an evaluator",
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",
4138
4200
  "flags": {
4139
4201
  "api-key": {
4140
4202
  "description": "API key (env: RESPAN_API_KEY)",
@@ -4177,100 +4239,47 @@
4177
4239
  "allowNo": false,
4178
4240
  "type": "boolean"
4179
4241
  },
4180
- "name": {
4181
- "description": "Evaluator name",
4182
- "name": "name",
4242
+ "start-time": {
4243
+ "description": "Start time (ISO 8601)",
4244
+ "name": "start-time",
4245
+ "required": true,
4183
4246
  "hasDynamicHelp": false,
4184
4247
  "multiple": false,
4185
4248
  "type": "option"
4186
4249
  },
4187
- "description": {
4188
- "description": "Evaluator description",
4189
- "name": "description",
4250
+ "end-time": {
4251
+ "description": "End time (ISO 8601)",
4252
+ "name": "end-time",
4253
+ "required": true,
4190
4254
  "hasDynamicHelp": false,
4191
4255
  "multiple": false,
4192
4256
  "type": "option"
4193
4257
  },
4194
- "config": {
4195
- "description": "Evaluator config as JSON string",
4196
- "name": "config",
4197
- "hasDynamicHelp": false,
4198
- "multiple": false,
4199
- "type": "option"
4200
- }
4201
- },
4202
- "hasDynamicHelp": false,
4203
- "hiddenAliases": [],
4204
- "id": "evaluators:update",
4205
- "pluginAlias": "@respan/cli",
4206
- "pluginName": "@respan/cli",
4207
- "pluginType": "core",
4208
- "strict": true,
4209
- "enableJsonFlag": false,
4210
- "isESM": true,
4211
- "relativePath": [
4212
- "dist",
4213
- "commands",
4214
- "evaluators",
4215
- "update.js"
4216
- ]
4217
- },
4218
- "eval": {
4219
- "aliases": [],
4220
- "args": {
4221
- "file": {
4222
- "description": "Path to eval JSON file",
4223
- "name": "file",
4224
- "required": true
4225
- }
4226
- },
4227
- "description": "Run an eval defined in a JSON file (creates prompt + dataset on the platform)",
4228
- "flags": {
4229
- "api-key": {
4230
- "description": "API key (env: RESPAN_API_KEY)",
4231
- "env": "RESPAN_API_KEY",
4232
- "name": "api-key",
4258
+ "filter": {
4259
+ "description": "Filter in field:operator:value format (repeatable)",
4260
+ "name": "filter",
4233
4261
  "hasDynamicHelp": false,
4234
- "multiple": false,
4262
+ "multiple": true,
4235
4263
  "type": "option"
4236
4264
  },
4237
- "base-url": {
4238
- "description": "Temporary API base URL override for this command",
4239
- "name": "base-url",
4265
+ "all-envs": {
4266
+ "description": "Include all environments (true/false)",
4267
+ "name": "all-envs",
4240
4268
  "hasDynamicHelp": false,
4241
4269
  "multiple": false,
4242
4270
  "type": "option"
4243
4271
  },
4244
- "profile": {
4245
- "description": "Named profile to use",
4246
- "name": "profile",
4272
+ "is-test": {
4273
+ "description": "Filter by test (true) or production (false) environment",
4274
+ "name": "is-test",
4247
4275
  "hasDynamicHelp": false,
4248
4276
  "multiple": false,
4249
4277
  "type": "option"
4250
- },
4251
- "json": {
4252
- "description": "Output as JSON",
4253
- "name": "json",
4254
- "allowNo": false,
4255
- "type": "boolean"
4256
- },
4257
- "csv": {
4258
- "description": "Output as CSV",
4259
- "name": "csv",
4260
- "allowNo": false,
4261
- "type": "boolean"
4262
- },
4263
- "verbose": {
4264
- "char": "v",
4265
- "description": "Show verbose output",
4266
- "name": "verbose",
4267
- "allowNo": false,
4268
- "type": "boolean"
4269
4278
  }
4270
4279
  },
4271
4280
  "hasDynamicHelp": false,
4272
4281
  "hiddenAliases": [],
4273
- "id": "eval",
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
- "eval",
4284
- "index.js"
4292
+ "logs",
4293
+ "summary.js"
4285
4294
  ]
4286
4295
  }
4287
4296
  },
4288
- "version": "0.18.0"
4297
+ "version": "0.19.0"
4289
4298
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@respan/cli",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "description": "Respan CLI - manage your LLM observability from the command line",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",