@bytevion/cli 0.4.1 → 0.5.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.
Files changed (42) hide show
  1. package/dist/commands/connect.d.ts +12 -0
  2. package/dist/commands/connect.js +64 -0
  3. package/dist/commands/dash.d.ts +9 -0
  4. package/dist/commands/dash.js +120 -0
  5. package/dist/commands/integrate.d.ts +3 -0
  6. package/dist/commands/integrate.js +58 -6
  7. package/dist/commands/keys/rotate.d.ts +3 -0
  8. package/dist/commands/keys/rotate.js +9 -1
  9. package/dist/commands/mcp/add.d.ts +13 -0
  10. package/dist/commands/mcp/add.js +31 -0
  11. package/dist/commands/mcp/list.d.ts +5 -0
  12. package/dist/commands/mcp/list.js +22 -0
  13. package/dist/commands/mcp/remove.d.ts +11 -0
  14. package/dist/commands/mcp/remove.js +19 -0
  15. package/dist/commands/mcp/test.d.ts +11 -0
  16. package/dist/commands/mcp/test.js +20 -0
  17. package/dist/commands/providers/compare.d.ts +13 -0
  18. package/dist/commands/providers/compare.js +52 -0
  19. package/dist/commands/sync.d.ts +10 -0
  20. package/dist/commands/sync.js +39 -0
  21. package/dist/lib/api.d.ts +7 -0
  22. package/dist/lib/api.js +24 -0
  23. package/dist/lib/config-formats.d.ts +3 -0
  24. package/dist/lib/config-formats.js +88 -0
  25. package/dist/lib/detect.d.ts +9 -0
  26. package/dist/lib/detect.js +83 -0
  27. package/dist/lib/friendly.js +10 -0
  28. package/dist/lib/integrations.d.ts +1 -0
  29. package/dist/lib/integrations.js +33 -4
  30. package/dist/lib/paths.d.ts +2 -0
  31. package/dist/lib/paths.js +13 -0
  32. package/dist/lib/tui.d.ts +42 -0
  33. package/dist/lib/tui.js +10 -0
  34. package/dist/lib/wiring.d.ts +10 -0
  35. package/dist/lib/wiring.js +53 -0
  36. package/dist/tui/components/Dash.d.ts +16 -0
  37. package/dist/tui/components/Dash.js +53 -0
  38. package/dist/tui/contract.d.ts +42 -0
  39. package/dist/tui/index.d.ts +2 -1
  40. package/dist/tui/index.js +34 -0
  41. package/oclif.manifest.json +585 -96
  42. package/package.json +4 -1
@@ -62,6 +62,137 @@
62
62
  "compare.js"
63
63
  ]
64
64
  },
65
+ "connect": {
66
+ "aliases": [],
67
+ "args": {},
68
+ "description": "Detect installed coding agents and wire every one Byte can auto-configure — in one shot.",
69
+ "examples": [
70
+ "<%= config.bin %> connect",
71
+ "<%= config.bin %> connect --model byte-2-deepseek-v4-flash",
72
+ "<%= config.bin %> connect --only opencode,codex"
73
+ ],
74
+ "flags": {
75
+ "json": {
76
+ "description": "Format output as json.",
77
+ "helpGroup": "GLOBAL",
78
+ "name": "json",
79
+ "allowNo": false,
80
+ "type": "boolean"
81
+ },
82
+ "profile": {
83
+ "description": "Configuration profile to use",
84
+ "env": "BYTE_PROFILE",
85
+ "name": "profile",
86
+ "hasDynamicHelp": false,
87
+ "multiple": false,
88
+ "type": "option"
89
+ },
90
+ "base-url": {
91
+ "description": "Override the API base URL",
92
+ "env": "BYTE_BASE_URL",
93
+ "name": "base-url",
94
+ "hasDynamicHelp": false,
95
+ "multiple": false,
96
+ "type": "option"
97
+ },
98
+ "model": {
99
+ "description": "Model id (byte alias) to wire (default byte-default)",
100
+ "name": "model",
101
+ "hasDynamicHelp": false,
102
+ "multiple": false,
103
+ "type": "option"
104
+ },
105
+ "preset": {
106
+ "description": "Optimization preset to apply before wiring",
107
+ "name": "preset",
108
+ "hasDynamicHelp": false,
109
+ "multiple": false,
110
+ "options": [
111
+ "maximum",
112
+ "balanced",
113
+ "max_savings",
114
+ "lowest_latency",
115
+ "reliability_first"
116
+ ],
117
+ "type": "option"
118
+ },
119
+ "only": {
120
+ "description": "Comma-separated subset of tool keys to wire",
121
+ "name": "only",
122
+ "hasDynamicHelp": false,
123
+ "multiple": false,
124
+ "type": "option"
125
+ },
126
+ "yes": {
127
+ "char": "y",
128
+ "description": "Skip confirmation prompts",
129
+ "name": "yes",
130
+ "allowNo": false,
131
+ "type": "boolean"
132
+ }
133
+ },
134
+ "hasDynamicHelp": false,
135
+ "hiddenAliases": [],
136
+ "id": "connect",
137
+ "pluginAlias": "@bytevion/cli",
138
+ "pluginName": "@bytevion/cli",
139
+ "pluginType": "core",
140
+ "strict": true,
141
+ "enableJsonFlag": true,
142
+ "isESM": false,
143
+ "relativePath": [
144
+ "dist",
145
+ "commands",
146
+ "connect.js"
147
+ ]
148
+ },
149
+ "dash": {
150
+ "aliases": [
151
+ "monitor",
152
+ "top"
153
+ ],
154
+ "args": {},
155
+ "description": "Live terminal dashboard: savings, recent requests, optimizations, and gateway health.",
156
+ "flags": {
157
+ "json": {
158
+ "description": "Format output as json.",
159
+ "helpGroup": "GLOBAL",
160
+ "name": "json",
161
+ "allowNo": false,
162
+ "type": "boolean"
163
+ },
164
+ "profile": {
165
+ "description": "Configuration profile to use",
166
+ "env": "BYTE_PROFILE",
167
+ "name": "profile",
168
+ "hasDynamicHelp": false,
169
+ "multiple": false,
170
+ "type": "option"
171
+ },
172
+ "base-url": {
173
+ "description": "Override the API base URL",
174
+ "env": "BYTE_BASE_URL",
175
+ "name": "base-url",
176
+ "hasDynamicHelp": false,
177
+ "multiple": false,
178
+ "type": "option"
179
+ }
180
+ },
181
+ "hasDynamicHelp": false,
182
+ "hiddenAliases": [],
183
+ "id": "dash",
184
+ "pluginAlias": "@bytevion/cli",
185
+ "pluginName": "@bytevion/cli",
186
+ "pluginType": "core",
187
+ "strict": true,
188
+ "enableJsonFlag": true,
189
+ "isESM": false,
190
+ "relativePath": [
191
+ "dist",
192
+ "commands",
193
+ "dash.js"
194
+ ]
195
+ },
65
196
  "doctor": {
66
197
  "aliases": [],
67
198
  "args": {},
@@ -307,6 +438,12 @@
307
438
  "allowNo": false,
308
439
  "type": "boolean"
309
440
  },
441
+ "status": {
442
+ "description": "Show installed tools and whether each is wired / unwired / manual",
443
+ "name": "status",
444
+ "allowNo": false,
445
+ "type": "boolean"
446
+ },
310
447
  "shell": {
311
448
  "description": "Shell syntax for env output",
312
449
  "name": "shell",
@@ -704,6 +841,68 @@
704
841
  "stats.js"
705
842
  ]
706
843
  },
844
+ "sync": {
845
+ "aliases": [],
846
+ "args": {},
847
+ "description": "Re-apply your current Byte key/model to every wired coding agent (run after rotating a key or switching model).",
848
+ "examples": [
849
+ "<%= config.bin %> sync",
850
+ "<%= config.bin %> sync --model byte-2-deepseek-v4-flash"
851
+ ],
852
+ "flags": {
853
+ "json": {
854
+ "description": "Format output as json.",
855
+ "helpGroup": "GLOBAL",
856
+ "name": "json",
857
+ "allowNo": false,
858
+ "type": "boolean"
859
+ },
860
+ "profile": {
861
+ "description": "Configuration profile to use",
862
+ "env": "BYTE_PROFILE",
863
+ "name": "profile",
864
+ "hasDynamicHelp": false,
865
+ "multiple": false,
866
+ "type": "option"
867
+ },
868
+ "base-url": {
869
+ "description": "Override the API base URL",
870
+ "env": "BYTE_BASE_URL",
871
+ "name": "base-url",
872
+ "hasDynamicHelp": false,
873
+ "multiple": false,
874
+ "type": "option"
875
+ },
876
+ "model": {
877
+ "description": "Model id (byte alias) to wire (defaults to the last wired model)",
878
+ "name": "model",
879
+ "hasDynamicHelp": false,
880
+ "multiple": false,
881
+ "type": "option"
882
+ },
883
+ "yes": {
884
+ "char": "y",
885
+ "description": "Skip confirmation prompts",
886
+ "name": "yes",
887
+ "allowNo": false,
888
+ "type": "boolean"
889
+ }
890
+ },
891
+ "hasDynamicHelp": false,
892
+ "hiddenAliases": [],
893
+ "id": "sync",
894
+ "pluginAlias": "@bytevion/cli",
895
+ "pluginName": "@bytevion/cli",
896
+ "pluginType": "core",
897
+ "strict": true,
898
+ "enableJsonFlag": true,
899
+ "isESM": false,
900
+ "relativePath": [
901
+ "dist",
902
+ "commands",
903
+ "sync.js"
904
+ ]
905
+ },
707
906
  "usage": {
708
907
  "aliases": [],
709
908
  "args": {},
@@ -1181,6 +1380,12 @@
1181
1380
  "hasDynamicHelp": false,
1182
1381
  "multiple": false,
1183
1382
  "type": "option"
1383
+ },
1384
+ "sync": {
1385
+ "description": "Save the new secret to this profile and re-apply it to all wired tools (`byte sync`)",
1386
+ "name": "sync",
1387
+ "allowNo": false,
1388
+ "type": "boolean"
1184
1389
  }
1185
1390
  },
1186
1391
  "hasDynamicHelp": false,
@@ -1199,10 +1404,79 @@
1199
1404
  "rotate.js"
1200
1405
  ]
1201
1406
  },
1202
- "sessions": {
1407
+ "mcp:add": {
1408
+ "aliases": [],
1409
+ "args": {
1410
+ "name": {
1411
+ "description": "Short name (namespaces the tools)",
1412
+ "name": "name",
1413
+ "required": true
1414
+ }
1415
+ },
1416
+ "description": "Register an MCP server for Byte to host — its tools become available to your models (namespaced mcp__<name>__*).",
1417
+ "examples": [
1418
+ "<%= config.bin %> mcp add filesystem --url https://mcp.example.com/rpc"
1419
+ ],
1420
+ "flags": {
1421
+ "json": {
1422
+ "description": "Format output as json.",
1423
+ "helpGroup": "GLOBAL",
1424
+ "name": "json",
1425
+ "allowNo": false,
1426
+ "type": "boolean"
1427
+ },
1428
+ "profile": {
1429
+ "description": "Configuration profile to use",
1430
+ "env": "BYTE_PROFILE",
1431
+ "name": "profile",
1432
+ "hasDynamicHelp": false,
1433
+ "multiple": false,
1434
+ "type": "option"
1435
+ },
1436
+ "base-url": {
1437
+ "description": "Override the API base URL",
1438
+ "env": "BYTE_BASE_URL",
1439
+ "name": "base-url",
1440
+ "hasDynamicHelp": false,
1441
+ "multiple": false,
1442
+ "type": "option"
1443
+ },
1444
+ "url": {
1445
+ "description": "MCP server URL (streamable HTTP)",
1446
+ "name": "url",
1447
+ "required": true,
1448
+ "hasDynamicHelp": false,
1449
+ "multiple": false,
1450
+ "type": "option"
1451
+ },
1452
+ "header": {
1453
+ "description": "Auth header as KEY:VALUE (repeatable)",
1454
+ "name": "header",
1455
+ "hasDynamicHelp": false,
1456
+ "multiple": true,
1457
+ "type": "option"
1458
+ }
1459
+ },
1460
+ "hasDynamicHelp": false,
1461
+ "hiddenAliases": [],
1462
+ "id": "mcp:add",
1463
+ "pluginAlias": "@bytevion/cli",
1464
+ "pluginName": "@bytevion/cli",
1465
+ "pluginType": "core",
1466
+ "strict": true,
1467
+ "enableJsonFlag": true,
1468
+ "isESM": false,
1469
+ "relativePath": [
1470
+ "dist",
1471
+ "commands",
1472
+ "mcp",
1473
+ "add.js"
1474
+ ]
1475
+ },
1476
+ "mcp:list": {
1203
1477
  "aliases": [],
1204
1478
  "args": {},
1205
- "description": "List active terminal sessions (CLI tokens) for the org.",
1479
+ "description": "List the MCP servers registered for this org.",
1206
1480
  "flags": {
1207
1481
  "json": {
1208
1482
  "description": "Format output as json.",
@@ -1230,7 +1504,7 @@
1230
1504
  },
1231
1505
  "hasDynamicHelp": false,
1232
1506
  "hiddenAliases": [],
1233
- "id": "sessions",
1507
+ "id": "mcp:list",
1234
1508
  "pluginAlias": "@bytevion/cli",
1235
1509
  "pluginName": "@bytevion/cli",
1236
1510
  "pluginType": "core",
@@ -1240,20 +1514,20 @@
1240
1514
  "relativePath": [
1241
1515
  "dist",
1242
1516
  "commands",
1243
- "sessions",
1244
- "index.js"
1517
+ "mcp",
1518
+ "list.js"
1245
1519
  ]
1246
1520
  },
1247
- "sessions:revoke": {
1521
+ "mcp:remove": {
1248
1522
  "aliases": [],
1249
1523
  "args": {
1250
1524
  "id": {
1251
- "description": "Session id (see `byte sessions`)",
1525
+ "description": "Server id (see `byte mcp list`)",
1252
1526
  "name": "id",
1253
1527
  "required": true
1254
1528
  }
1255
1529
  },
1256
- "description": "Revoke a terminal session (CLI token) by id.",
1530
+ "description": "Remove a registered MCP server.",
1257
1531
  "flags": {
1258
1532
  "json": {
1259
1533
  "description": "Format output as json.",
@@ -1281,7 +1555,7 @@
1281
1555
  },
1282
1556
  "hasDynamicHelp": false,
1283
1557
  "hiddenAliases": [],
1284
- "id": "sessions:revoke",
1558
+ "id": "mcp:remove",
1285
1559
  "pluginAlias": "@bytevion/cli",
1286
1560
  "pluginName": "@bytevion/cli",
1287
1561
  "pluginType": "core",
@@ -1291,18 +1565,20 @@
1291
1565
  "relativePath": [
1292
1566
  "dist",
1293
1567
  "commands",
1294
- "sessions",
1295
- "revoke.js"
1568
+ "mcp",
1569
+ "remove.js"
1296
1570
  ]
1297
1571
  },
1298
- "providers:add": {
1572
+ "mcp:test": {
1299
1573
  "aliases": [],
1300
- "args": {},
1301
- "description": "Connect an upstream provider key (BYOK). Byte stores it encrypted and imports models.",
1302
- "examples": [
1303
- "<%= config.bin %> providers add --provider deepseek --api-key sk-...",
1304
- "<%= config.bin %> providers add --provider custom --provider-base-url https://api.example.com/v1 --api-key ..."
1305
- ],
1574
+ "args": {
1575
+ "id": {
1576
+ "description": "Server id (see `byte mcp list`)",
1577
+ "name": "id",
1578
+ "required": true
1579
+ }
1580
+ },
1581
+ "description": "Verify a registered MCP server by listing the tools it exposes.",
1306
1582
  "flags": {
1307
1583
  "json": {
1308
1584
  "description": "Format output as json.",
@@ -1326,7 +1602,225 @@
1326
1602
  "hasDynamicHelp": false,
1327
1603
  "multiple": false,
1328
1604
  "type": "option"
1329
- },
1605
+ }
1606
+ },
1607
+ "hasDynamicHelp": false,
1608
+ "hiddenAliases": [],
1609
+ "id": "mcp:test",
1610
+ "pluginAlias": "@bytevion/cli",
1611
+ "pluginName": "@bytevion/cli",
1612
+ "pluginType": "core",
1613
+ "strict": true,
1614
+ "enableJsonFlag": true,
1615
+ "isESM": false,
1616
+ "relativePath": [
1617
+ "dist",
1618
+ "commands",
1619
+ "mcp",
1620
+ "test.js"
1621
+ ]
1622
+ },
1623
+ "opt:preset": {
1624
+ "aliases": [],
1625
+ "args": {
1626
+ "preset": {
1627
+ "description": "Mode to apply",
1628
+ "name": "preset",
1629
+ "options": [
1630
+ "maximum",
1631
+ "max_savings",
1632
+ "balanced",
1633
+ "lowest_latency",
1634
+ "reliability_first"
1635
+ ],
1636
+ "required": true
1637
+ }
1638
+ },
1639
+ "description": "Apply an optimization mode for the whole org (maximum, balanced, max_savings, lowest_latency, reliability_first).",
1640
+ "flags": {
1641
+ "json": {
1642
+ "description": "Format output as json.",
1643
+ "helpGroup": "GLOBAL",
1644
+ "name": "json",
1645
+ "allowNo": false,
1646
+ "type": "boolean"
1647
+ },
1648
+ "profile": {
1649
+ "description": "Configuration profile to use",
1650
+ "env": "BYTE_PROFILE",
1651
+ "name": "profile",
1652
+ "hasDynamicHelp": false,
1653
+ "multiple": false,
1654
+ "type": "option"
1655
+ },
1656
+ "base-url": {
1657
+ "description": "Override the API base URL",
1658
+ "env": "BYTE_BASE_URL",
1659
+ "name": "base-url",
1660
+ "hasDynamicHelp": false,
1661
+ "multiple": false,
1662
+ "type": "option"
1663
+ }
1664
+ },
1665
+ "hasDynamicHelp": false,
1666
+ "hiddenAliases": [],
1667
+ "id": "opt:preset",
1668
+ "pluginAlias": "@bytevion/cli",
1669
+ "pluginName": "@bytevion/cli",
1670
+ "pluginType": "core",
1671
+ "strict": true,
1672
+ "enableJsonFlag": true,
1673
+ "isESM": false,
1674
+ "relativePath": [
1675
+ "dist",
1676
+ "commands",
1677
+ "opt",
1678
+ "preset.js"
1679
+ ]
1680
+ },
1681
+ "opt:set": {
1682
+ "aliases": [],
1683
+ "args": {
1684
+ "flag": {
1685
+ "description": "Optimization field name",
1686
+ "name": "flag",
1687
+ "required": true
1688
+ },
1689
+ "value": {
1690
+ "description": "on or off",
1691
+ "name": "value",
1692
+ "options": [
1693
+ "on",
1694
+ "off",
1695
+ "true",
1696
+ "false"
1697
+ ],
1698
+ "required": true
1699
+ }
1700
+ },
1701
+ "description": "Toggle a single optimization layer on or off. See field names with `byte opt show --json`.",
1702
+ "examples": [
1703
+ "<%= config.bin %> opt set compression_enabled off",
1704
+ "<%= config.bin %> opt set response_cache_enabled on"
1705
+ ],
1706
+ "flags": {
1707
+ "json": {
1708
+ "description": "Format output as json.",
1709
+ "helpGroup": "GLOBAL",
1710
+ "name": "json",
1711
+ "allowNo": false,
1712
+ "type": "boolean"
1713
+ },
1714
+ "profile": {
1715
+ "description": "Configuration profile to use",
1716
+ "env": "BYTE_PROFILE",
1717
+ "name": "profile",
1718
+ "hasDynamicHelp": false,
1719
+ "multiple": false,
1720
+ "type": "option"
1721
+ },
1722
+ "base-url": {
1723
+ "description": "Override the API base URL",
1724
+ "env": "BYTE_BASE_URL",
1725
+ "name": "base-url",
1726
+ "hasDynamicHelp": false,
1727
+ "multiple": false,
1728
+ "type": "option"
1729
+ }
1730
+ },
1731
+ "hasDynamicHelp": false,
1732
+ "hiddenAliases": [],
1733
+ "id": "opt:set",
1734
+ "pluginAlias": "@bytevion/cli",
1735
+ "pluginName": "@bytevion/cli",
1736
+ "pluginType": "core",
1737
+ "strict": true,
1738
+ "enableJsonFlag": true,
1739
+ "isESM": false,
1740
+ "relativePath": [
1741
+ "dist",
1742
+ "commands",
1743
+ "opt",
1744
+ "set.js"
1745
+ ]
1746
+ },
1747
+ "opt:show": {
1748
+ "aliases": [],
1749
+ "args": {},
1750
+ "description": "Show the current optimization mode and every layer running on your requests.",
1751
+ "flags": {
1752
+ "json": {
1753
+ "description": "Format output as json.",
1754
+ "helpGroup": "GLOBAL",
1755
+ "name": "json",
1756
+ "allowNo": false,
1757
+ "type": "boolean"
1758
+ },
1759
+ "profile": {
1760
+ "description": "Configuration profile to use",
1761
+ "env": "BYTE_PROFILE",
1762
+ "name": "profile",
1763
+ "hasDynamicHelp": false,
1764
+ "multiple": false,
1765
+ "type": "option"
1766
+ },
1767
+ "base-url": {
1768
+ "description": "Override the API base URL",
1769
+ "env": "BYTE_BASE_URL",
1770
+ "name": "base-url",
1771
+ "hasDynamicHelp": false,
1772
+ "multiple": false,
1773
+ "type": "option"
1774
+ }
1775
+ },
1776
+ "hasDynamicHelp": false,
1777
+ "hiddenAliases": [],
1778
+ "id": "opt:show",
1779
+ "pluginAlias": "@bytevion/cli",
1780
+ "pluginName": "@bytevion/cli",
1781
+ "pluginType": "core",
1782
+ "strict": true,
1783
+ "enableJsonFlag": true,
1784
+ "isESM": false,
1785
+ "relativePath": [
1786
+ "dist",
1787
+ "commands",
1788
+ "opt",
1789
+ "show.js"
1790
+ ]
1791
+ },
1792
+ "providers:add": {
1793
+ "aliases": [],
1794
+ "args": {},
1795
+ "description": "Connect an upstream provider key (BYOK). Byte stores it encrypted and imports models.",
1796
+ "examples": [
1797
+ "<%= config.bin %> providers add --provider deepseek --api-key sk-...",
1798
+ "<%= config.bin %> providers add --provider custom --provider-base-url https://api.example.com/v1 --api-key ..."
1799
+ ],
1800
+ "flags": {
1801
+ "json": {
1802
+ "description": "Format output as json.",
1803
+ "helpGroup": "GLOBAL",
1804
+ "name": "json",
1805
+ "allowNo": false,
1806
+ "type": "boolean"
1807
+ },
1808
+ "profile": {
1809
+ "description": "Configuration profile to use",
1810
+ "env": "BYTE_PROFILE",
1811
+ "name": "profile",
1812
+ "hasDynamicHelp": false,
1813
+ "multiple": false,
1814
+ "type": "option"
1815
+ },
1816
+ "base-url": {
1817
+ "description": "Override the API base URL",
1818
+ "env": "BYTE_BASE_URL",
1819
+ "name": "base-url",
1820
+ "hasDynamicHelp": false,
1821
+ "multiple": false,
1822
+ "type": "option"
1823
+ },
1330
1824
  "provider": {
1331
1825
  "description": "Provider preset id (openai, deepseek, anthropic, …)",
1332
1826
  "name": "provider",
@@ -1386,10 +1880,21 @@
1386
1880
  "add.js"
1387
1881
  ]
1388
1882
  },
1389
- "providers:list": {
1883
+ "providers:compare": {
1390
1884
  "aliases": [],
1391
- "args": {},
1392
- "description": "List upstream provider connections for the current org.",
1885
+ "args": {
1886
+ "alias": {
1887
+ "description": "Model byte alias (omit when using --all)",
1888
+ "name": "alias",
1889
+ "required": false
1890
+ }
1891
+ },
1892
+ "description": "Enable (or disable) direct-vs-Byte comparison on imported models. Run with --all so `byte compare` works out of the box.",
1893
+ "examples": [
1894
+ "<%= config.bin %> providers compare --all",
1895
+ "<%= config.bin %> providers compare byte-2-deepseek-v4-flash",
1896
+ "<%= config.bin %> providers compare byte-2-deepseek-v4-flash --off"
1897
+ ],
1393
1898
  "flags": {
1394
1899
  "json": {
1395
1900
  "description": "Format output as json.",
@@ -1413,11 +1918,23 @@
1413
1918
  "hasDynamicHelp": false,
1414
1919
  "multiple": false,
1415
1920
  "type": "option"
1921
+ },
1922
+ "all": {
1923
+ "description": "Apply to every priced model in the org",
1924
+ "name": "all",
1925
+ "allowNo": false,
1926
+ "type": "boolean"
1927
+ },
1928
+ "off": {
1929
+ "description": "Disable comparison instead of enabling it",
1930
+ "name": "off",
1931
+ "allowNo": false,
1932
+ "type": "boolean"
1416
1933
  }
1417
1934
  },
1418
1935
  "hasDynamicHelp": false,
1419
1936
  "hiddenAliases": [],
1420
- "id": "providers:list",
1937
+ "id": "providers:compare",
1421
1938
  "pluginAlias": "@bytevion/cli",
1422
1939
  "pluginName": "@bytevion/cli",
1423
1940
  "pluginType": "core",
@@ -1428,19 +1945,13 @@
1428
1945
  "dist",
1429
1946
  "commands",
1430
1947
  "providers",
1431
- "list.js"
1948
+ "compare.js"
1432
1949
  ]
1433
1950
  },
1434
- "providers:rotate": {
1951
+ "providers:list": {
1435
1952
  "aliases": [],
1436
- "args": {
1437
- "id": {
1438
- "description": "Connection id (see `byte providers list`)",
1439
- "name": "id",
1440
- "required": true
1441
- }
1442
- },
1443
- "description": "Replace the upstream API key on a provider connection (keeps imported models).",
1953
+ "args": {},
1954
+ "description": "List upstream provider connections for the current org.",
1444
1955
  "flags": {
1445
1956
  "json": {
1446
1957
  "description": "Format output as json.",
@@ -1464,19 +1975,11 @@
1464
1975
  "hasDynamicHelp": false,
1465
1976
  "multiple": false,
1466
1977
  "type": "option"
1467
- },
1468
- "api-key": {
1469
- "description": "New upstream provider API key",
1470
- "env": "BYTE_PROVIDER_KEY",
1471
- "name": "api-key",
1472
- "hasDynamicHelp": false,
1473
- "multiple": false,
1474
- "type": "option"
1475
1978
  }
1476
1979
  },
1477
1980
  "hasDynamicHelp": false,
1478
1981
  "hiddenAliases": [],
1479
- "id": "providers:rotate",
1982
+ "id": "providers:list",
1480
1983
  "pluginAlias": "@bytevion/cli",
1481
1984
  "pluginName": "@bytevion/cli",
1482
1985
  "pluginType": "core",
@@ -1487,10 +1990,10 @@
1487
1990
  "dist",
1488
1991
  "commands",
1489
1992
  "providers",
1490
- "rotate.js"
1993
+ "list.js"
1491
1994
  ]
1492
1995
  },
1493
- "providers:test": {
1996
+ "providers:rotate": {
1494
1997
  "aliases": [],
1495
1998
  "args": {
1496
1999
  "id": {
@@ -1499,7 +2002,7 @@
1499
2002
  "required": true
1500
2003
  }
1501
2004
  },
1502
- "description": "Verify a provider connection by re-fetching its model list.",
2005
+ "description": "Replace the upstream API key on a provider connection (keeps imported models).",
1503
2006
  "flags": {
1504
2007
  "json": {
1505
2008
  "description": "Format output as json.",
@@ -1523,11 +2026,19 @@
1523
2026
  "hasDynamicHelp": false,
1524
2027
  "multiple": false,
1525
2028
  "type": "option"
2029
+ },
2030
+ "api-key": {
2031
+ "description": "New upstream provider API key",
2032
+ "env": "BYTE_PROVIDER_KEY",
2033
+ "name": "api-key",
2034
+ "hasDynamicHelp": false,
2035
+ "multiple": false,
2036
+ "type": "option"
1526
2037
  }
1527
2038
  },
1528
2039
  "hasDynamicHelp": false,
1529
2040
  "hiddenAliases": [],
1530
- "id": "providers:test",
2041
+ "id": "providers:rotate",
1531
2042
  "pluginAlias": "@bytevion/cli",
1532
2043
  "pluginName": "@bytevion/cli",
1533
2044
  "pluginType": "core",
@@ -1538,26 +2049,19 @@
1538
2049
  "dist",
1539
2050
  "commands",
1540
2051
  "providers",
1541
- "test.js"
2052
+ "rotate.js"
1542
2053
  ]
1543
2054
  },
1544
- "opt:preset": {
2055
+ "providers:test": {
1545
2056
  "aliases": [],
1546
2057
  "args": {
1547
- "preset": {
1548
- "description": "Mode to apply",
1549
- "name": "preset",
1550
- "options": [
1551
- "maximum",
1552
- "max_savings",
1553
- "balanced",
1554
- "lowest_latency",
1555
- "reliability_first"
1556
- ],
2058
+ "id": {
2059
+ "description": "Connection id (see `byte providers list`)",
2060
+ "name": "id",
1557
2061
  "required": true
1558
2062
  }
1559
2063
  },
1560
- "description": "Apply an optimization mode for the whole org (maximum, balanced, max_savings, lowest_latency, reliability_first).",
2064
+ "description": "Verify a provider connection by re-fetching its model list.",
1561
2065
  "flags": {
1562
2066
  "json": {
1563
2067
  "description": "Format output as json.",
@@ -1585,7 +2089,7 @@
1585
2089
  },
1586
2090
  "hasDynamicHelp": false,
1587
2091
  "hiddenAliases": [],
1588
- "id": "opt:preset",
2092
+ "id": "providers:test",
1589
2093
  "pluginAlias": "@bytevion/cli",
1590
2094
  "pluginName": "@bytevion/cli",
1591
2095
  "pluginType": "core",
@@ -1595,35 +2099,14 @@
1595
2099
  "relativePath": [
1596
2100
  "dist",
1597
2101
  "commands",
1598
- "opt",
1599
- "preset.js"
2102
+ "providers",
2103
+ "test.js"
1600
2104
  ]
1601
2105
  },
1602
- "opt:set": {
2106
+ "sessions": {
1603
2107
  "aliases": [],
1604
- "args": {
1605
- "flag": {
1606
- "description": "Optimization field name",
1607
- "name": "flag",
1608
- "required": true
1609
- },
1610
- "value": {
1611
- "description": "on or off",
1612
- "name": "value",
1613
- "options": [
1614
- "on",
1615
- "off",
1616
- "true",
1617
- "false"
1618
- ],
1619
- "required": true
1620
- }
1621
- },
1622
- "description": "Toggle a single optimization layer on or off. See field names with `byte opt show --json`.",
1623
- "examples": [
1624
- "<%= config.bin %> opt set compression_enabled off",
1625
- "<%= config.bin %> opt set response_cache_enabled on"
1626
- ],
2108
+ "args": {},
2109
+ "description": "List active terminal sessions (CLI tokens) for the org.",
1627
2110
  "flags": {
1628
2111
  "json": {
1629
2112
  "description": "Format output as json.",
@@ -1651,7 +2134,7 @@
1651
2134
  },
1652
2135
  "hasDynamicHelp": false,
1653
2136
  "hiddenAliases": [],
1654
- "id": "opt:set",
2137
+ "id": "sessions",
1655
2138
  "pluginAlias": "@bytevion/cli",
1656
2139
  "pluginName": "@bytevion/cli",
1657
2140
  "pluginType": "core",
@@ -1661,14 +2144,20 @@
1661
2144
  "relativePath": [
1662
2145
  "dist",
1663
2146
  "commands",
1664
- "opt",
1665
- "set.js"
2147
+ "sessions",
2148
+ "index.js"
1666
2149
  ]
1667
2150
  },
1668
- "opt:show": {
2151
+ "sessions:revoke": {
1669
2152
  "aliases": [],
1670
- "args": {},
1671
- "description": "Show the current optimization mode and every layer running on your requests.",
2153
+ "args": {
2154
+ "id": {
2155
+ "description": "Session id (see `byte sessions`)",
2156
+ "name": "id",
2157
+ "required": true
2158
+ }
2159
+ },
2160
+ "description": "Revoke a terminal session (CLI token) by id.",
1672
2161
  "flags": {
1673
2162
  "json": {
1674
2163
  "description": "Format output as json.",
@@ -1696,7 +2185,7 @@
1696
2185
  },
1697
2186
  "hasDynamicHelp": false,
1698
2187
  "hiddenAliases": [],
1699
- "id": "opt:show",
2188
+ "id": "sessions:revoke",
1700
2189
  "pluginAlias": "@bytevion/cli",
1701
2190
  "pluginName": "@bytevion/cli",
1702
2191
  "pluginType": "core",
@@ -1706,10 +2195,10 @@
1706
2195
  "relativePath": [
1707
2196
  "dist",
1708
2197
  "commands",
1709
- "opt",
1710
- "show.js"
2198
+ "sessions",
2199
+ "revoke.js"
1711
2200
  ]
1712
2201
  }
1713
2202
  },
1714
- "version": "0.4.1"
2203
+ "version": "0.5.0"
1715
2204
  }