@bytevion/cli 0.4.0 → 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.
- package/bin/postinstall.js +58 -0
- package/dist/commands/connect.d.ts +12 -0
- package/dist/commands/connect.js +64 -0
- package/dist/commands/dash.d.ts +9 -0
- package/dist/commands/dash.js +120 -0
- package/dist/commands/integrate.d.ts +3 -0
- package/dist/commands/integrate.js +58 -6
- package/dist/commands/keys/rotate.d.ts +3 -0
- package/dist/commands/keys/rotate.js +9 -1
- package/dist/commands/mcp/add.d.ts +13 -0
- package/dist/commands/mcp/add.js +31 -0
- package/dist/commands/mcp/list.d.ts +5 -0
- package/dist/commands/mcp/list.js +22 -0
- package/dist/commands/mcp/remove.d.ts +11 -0
- package/dist/commands/mcp/remove.js +19 -0
- package/dist/commands/mcp/test.d.ts +11 -0
- package/dist/commands/mcp/test.js +20 -0
- package/dist/commands/providers/compare.d.ts +13 -0
- package/dist/commands/providers/compare.js +52 -0
- package/dist/commands/sync.d.ts +10 -0
- package/dist/commands/sync.js +39 -0
- package/dist/lib/api.d.ts +7 -0
- package/dist/lib/api.js +24 -0
- package/dist/lib/config-formats.d.ts +3 -0
- package/dist/lib/config-formats.js +88 -0
- package/dist/lib/detect.d.ts +9 -0
- package/dist/lib/detect.js +83 -0
- package/dist/lib/friendly.js +10 -0
- package/dist/lib/integrations.d.ts +1 -0
- package/dist/lib/integrations.js +33 -4
- package/dist/lib/paths.d.ts +2 -0
- package/dist/lib/paths.js +13 -0
- package/dist/lib/tui.d.ts +42 -0
- package/dist/lib/tui.js +10 -0
- package/dist/lib/wiring.d.ts +10 -0
- package/dist/lib/wiring.js +53 -0
- package/dist/tui/components/Dash.d.ts +16 -0
- package/dist/tui/components/Dash.js +53 -0
- package/dist/tui/contract.d.ts +42 -0
- package/dist/tui/index.d.ts +2 -1
- package/dist/tui/index.js +34 -0
- package/oclif.manifest.json +617 -128
- package/package.json +7 -2
package/oclif.manifest.json
CHANGED
|
@@ -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,13 +1404,18 @@
|
|
|
1199
1404
|
"rotate.js"
|
|
1200
1405
|
]
|
|
1201
1406
|
},
|
|
1202
|
-
"
|
|
1407
|
+
"mcp:add": {
|
|
1203
1408
|
"aliases": [],
|
|
1204
|
-
"args": {
|
|
1205
|
-
|
|
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>__*).",
|
|
1206
1417
|
"examples": [
|
|
1207
|
-
"<%= config.bin %>
|
|
1208
|
-
"<%= config.bin %> providers add --provider custom --provider-base-url https://api.example.com/v1 --api-key ..."
|
|
1418
|
+
"<%= config.bin %> mcp add filesystem --url https://mcp.example.com/rpc"
|
|
1209
1419
|
],
|
|
1210
1420
|
"flags": {
|
|
1211
1421
|
"json": {
|
|
@@ -1231,52 +1441,25 @@
|
|
|
1231
1441
|
"multiple": false,
|
|
1232
1442
|
"type": "option"
|
|
1233
1443
|
},
|
|
1234
|
-
"
|
|
1235
|
-
"description": "
|
|
1236
|
-
"name": "
|
|
1237
|
-
"
|
|
1238
|
-
"multiple": false,
|
|
1239
|
-
"type": "option"
|
|
1240
|
-
},
|
|
1241
|
-
"api-key": {
|
|
1242
|
-
"description": "Upstream provider API key",
|
|
1243
|
-
"env": "BYTE_PROVIDER_KEY",
|
|
1244
|
-
"name": "api-key",
|
|
1245
|
-
"hasDynamicHelp": false,
|
|
1246
|
-
"multiple": false,
|
|
1247
|
-
"type": "option"
|
|
1248
|
-
},
|
|
1249
|
-
"provider-base-url": {
|
|
1250
|
-
"description": "Custom base URL (for --provider custom or to override)",
|
|
1251
|
-
"name": "provider-base-url",
|
|
1252
|
-
"hasDynamicHelp": false,
|
|
1253
|
-
"multiple": false,
|
|
1254
|
-
"type": "option"
|
|
1255
|
-
},
|
|
1256
|
-
"mode": {
|
|
1257
|
-
"description": "Gateway mode (byte_compatible/byte_messages/byte_generative)",
|
|
1258
|
-
"name": "mode",
|
|
1444
|
+
"url": {
|
|
1445
|
+
"description": "MCP server URL (streamable HTTP)",
|
|
1446
|
+
"name": "url",
|
|
1447
|
+
"required": true,
|
|
1259
1448
|
"hasDynamicHelp": false,
|
|
1260
1449
|
"multiple": false,
|
|
1261
1450
|
"type": "option"
|
|
1262
1451
|
},
|
|
1263
|
-
"
|
|
1264
|
-
"description": "
|
|
1265
|
-
"name": "
|
|
1452
|
+
"header": {
|
|
1453
|
+
"description": "Auth header as KEY:VALUE (repeatable)",
|
|
1454
|
+
"name": "header",
|
|
1266
1455
|
"hasDynamicHelp": false,
|
|
1267
|
-
"multiple":
|
|
1456
|
+
"multiple": true,
|
|
1268
1457
|
"type": "option"
|
|
1269
|
-
},
|
|
1270
|
-
"no-fetch": {
|
|
1271
|
-
"description": "Skip auto-importing the model list",
|
|
1272
|
-
"name": "no-fetch",
|
|
1273
|
-
"allowNo": false,
|
|
1274
|
-
"type": "boolean"
|
|
1275
1458
|
}
|
|
1276
1459
|
},
|
|
1277
1460
|
"hasDynamicHelp": false,
|
|
1278
1461
|
"hiddenAliases": [],
|
|
1279
|
-
"id": "
|
|
1462
|
+
"id": "mcp:add",
|
|
1280
1463
|
"pluginAlias": "@bytevion/cli",
|
|
1281
1464
|
"pluginName": "@bytevion/cli",
|
|
1282
1465
|
"pluginType": "core",
|
|
@@ -1286,14 +1469,14 @@
|
|
|
1286
1469
|
"relativePath": [
|
|
1287
1470
|
"dist",
|
|
1288
1471
|
"commands",
|
|
1289
|
-
"
|
|
1472
|
+
"mcp",
|
|
1290
1473
|
"add.js"
|
|
1291
1474
|
]
|
|
1292
1475
|
},
|
|
1293
|
-
"
|
|
1476
|
+
"mcp:list": {
|
|
1294
1477
|
"aliases": [],
|
|
1295
1478
|
"args": {},
|
|
1296
|
-
"description": "List
|
|
1479
|
+
"description": "List the MCP servers registered for this org.",
|
|
1297
1480
|
"flags": {
|
|
1298
1481
|
"json": {
|
|
1299
1482
|
"description": "Format output as json.",
|
|
@@ -1321,7 +1504,7 @@
|
|
|
1321
1504
|
},
|
|
1322
1505
|
"hasDynamicHelp": false,
|
|
1323
1506
|
"hiddenAliases": [],
|
|
1324
|
-
"id": "
|
|
1507
|
+
"id": "mcp:list",
|
|
1325
1508
|
"pluginAlias": "@bytevion/cli",
|
|
1326
1509
|
"pluginName": "@bytevion/cli",
|
|
1327
1510
|
"pluginType": "core",
|
|
@@ -1331,20 +1514,20 @@
|
|
|
1331
1514
|
"relativePath": [
|
|
1332
1515
|
"dist",
|
|
1333
1516
|
"commands",
|
|
1334
|
-
"
|
|
1517
|
+
"mcp",
|
|
1335
1518
|
"list.js"
|
|
1336
1519
|
]
|
|
1337
1520
|
},
|
|
1338
|
-
"
|
|
1521
|
+
"mcp:remove": {
|
|
1339
1522
|
"aliases": [],
|
|
1340
1523
|
"args": {
|
|
1341
1524
|
"id": {
|
|
1342
|
-
"description": "
|
|
1525
|
+
"description": "Server id (see `byte mcp list`)",
|
|
1343
1526
|
"name": "id",
|
|
1344
1527
|
"required": true
|
|
1345
1528
|
}
|
|
1346
1529
|
},
|
|
1347
|
-
"description": "
|
|
1530
|
+
"description": "Remove a registered MCP server.",
|
|
1348
1531
|
"flags": {
|
|
1349
1532
|
"json": {
|
|
1350
1533
|
"description": "Format output as json.",
|
|
@@ -1368,19 +1551,11 @@
|
|
|
1368
1551
|
"hasDynamicHelp": false,
|
|
1369
1552
|
"multiple": false,
|
|
1370
1553
|
"type": "option"
|
|
1371
|
-
},
|
|
1372
|
-
"api-key": {
|
|
1373
|
-
"description": "New upstream provider API key",
|
|
1374
|
-
"env": "BYTE_PROVIDER_KEY",
|
|
1375
|
-
"name": "api-key",
|
|
1376
|
-
"hasDynamicHelp": false,
|
|
1377
|
-
"multiple": false,
|
|
1378
|
-
"type": "option"
|
|
1379
1554
|
}
|
|
1380
1555
|
},
|
|
1381
1556
|
"hasDynamicHelp": false,
|
|
1382
1557
|
"hiddenAliases": [],
|
|
1383
|
-
"id": "
|
|
1558
|
+
"id": "mcp:remove",
|
|
1384
1559
|
"pluginAlias": "@bytevion/cli",
|
|
1385
1560
|
"pluginName": "@bytevion/cli",
|
|
1386
1561
|
"pluginType": "core",
|
|
@@ -1390,20 +1565,20 @@
|
|
|
1390
1565
|
"relativePath": [
|
|
1391
1566
|
"dist",
|
|
1392
1567
|
"commands",
|
|
1393
|
-
"
|
|
1394
|
-
"
|
|
1568
|
+
"mcp",
|
|
1569
|
+
"remove.js"
|
|
1395
1570
|
]
|
|
1396
1571
|
},
|
|
1397
|
-
"
|
|
1572
|
+
"mcp:test": {
|
|
1398
1573
|
"aliases": [],
|
|
1399
1574
|
"args": {
|
|
1400
1575
|
"id": {
|
|
1401
|
-
"description": "
|
|
1576
|
+
"description": "Server id (see `byte mcp list`)",
|
|
1402
1577
|
"name": "id",
|
|
1403
1578
|
"required": true
|
|
1404
1579
|
}
|
|
1405
1580
|
},
|
|
1406
|
-
"description": "Verify a
|
|
1581
|
+
"description": "Verify a registered MCP server by listing the tools it exposes.",
|
|
1407
1582
|
"flags": {
|
|
1408
1583
|
"json": {
|
|
1409
1584
|
"description": "Format output as json.",
|
|
@@ -1431,7 +1606,7 @@
|
|
|
1431
1606
|
},
|
|
1432
1607
|
"hasDynamicHelp": false,
|
|
1433
1608
|
"hiddenAliases": [],
|
|
1434
|
-
"id": "
|
|
1609
|
+
"id": "mcp:test",
|
|
1435
1610
|
"pluginAlias": "@bytevion/cli",
|
|
1436
1611
|
"pluginName": "@bytevion/cli",
|
|
1437
1612
|
"pluginType": "core",
|
|
@@ -1441,20 +1616,33 @@
|
|
|
1441
1616
|
"relativePath": [
|
|
1442
1617
|
"dist",
|
|
1443
1618
|
"commands",
|
|
1444
|
-
"
|
|
1619
|
+
"mcp",
|
|
1445
1620
|
"test.js"
|
|
1446
1621
|
]
|
|
1447
1622
|
},
|
|
1448
|
-
"
|
|
1623
|
+
"opt:preset": {
|
|
1449
1624
|
"aliases": [],
|
|
1450
|
-
"args": {
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
"
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
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,
|
|
1458
1646
|
"type": "boolean"
|
|
1459
1647
|
},
|
|
1460
1648
|
"profile": {
|
|
@@ -1476,7 +1664,7 @@
|
|
|
1476
1664
|
},
|
|
1477
1665
|
"hasDynamicHelp": false,
|
|
1478
1666
|
"hiddenAliases": [],
|
|
1479
|
-
"id": "
|
|
1667
|
+
"id": "opt:preset",
|
|
1480
1668
|
"pluginAlias": "@bytevion/cli",
|
|
1481
1669
|
"pluginName": "@bytevion/cli",
|
|
1482
1670
|
"pluginType": "core",
|
|
@@ -1486,20 +1674,35 @@
|
|
|
1486
1674
|
"relativePath": [
|
|
1487
1675
|
"dist",
|
|
1488
1676
|
"commands",
|
|
1489
|
-
"
|
|
1490
|
-
"
|
|
1677
|
+
"opt",
|
|
1678
|
+
"preset.js"
|
|
1491
1679
|
]
|
|
1492
1680
|
},
|
|
1493
|
-
"
|
|
1681
|
+
"opt:set": {
|
|
1494
1682
|
"aliases": [],
|
|
1495
1683
|
"args": {
|
|
1496
|
-
"
|
|
1497
|
-
"description": "
|
|
1498
|
-
"name": "
|
|
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
|
+
],
|
|
1499
1698
|
"required": true
|
|
1500
1699
|
}
|
|
1501
1700
|
},
|
|
1502
|
-
"description": "
|
|
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
|
+
],
|
|
1503
1706
|
"flags": {
|
|
1504
1707
|
"json": {
|
|
1505
1708
|
"description": "Format output as json.",
|
|
@@ -1527,7 +1730,7 @@
|
|
|
1527
1730
|
},
|
|
1528
1731
|
"hasDynamicHelp": false,
|
|
1529
1732
|
"hiddenAliases": [],
|
|
1530
|
-
"id": "
|
|
1733
|
+
"id": "opt:set",
|
|
1531
1734
|
"pluginAlias": "@bytevion/cli",
|
|
1532
1735
|
"pluginName": "@bytevion/cli",
|
|
1533
1736
|
"pluginType": "core",
|
|
@@ -1537,27 +1740,161 @@
|
|
|
1537
1740
|
"relativePath": [
|
|
1538
1741
|
"dist",
|
|
1539
1742
|
"commands",
|
|
1540
|
-
"
|
|
1541
|
-
"
|
|
1743
|
+
"opt",
|
|
1744
|
+
"set.js"
|
|
1542
1745
|
]
|
|
1543
1746
|
},
|
|
1544
|
-
"opt:
|
|
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
|
+
},
|
|
1824
|
+
"provider": {
|
|
1825
|
+
"description": "Provider preset id (openai, deepseek, anthropic, …)",
|
|
1826
|
+
"name": "provider",
|
|
1827
|
+
"hasDynamicHelp": false,
|
|
1828
|
+
"multiple": false,
|
|
1829
|
+
"type": "option"
|
|
1830
|
+
},
|
|
1831
|
+
"api-key": {
|
|
1832
|
+
"description": "Upstream provider API key",
|
|
1833
|
+
"env": "BYTE_PROVIDER_KEY",
|
|
1834
|
+
"name": "api-key",
|
|
1835
|
+
"hasDynamicHelp": false,
|
|
1836
|
+
"multiple": false,
|
|
1837
|
+
"type": "option"
|
|
1838
|
+
},
|
|
1839
|
+
"provider-base-url": {
|
|
1840
|
+
"description": "Custom base URL (for --provider custom or to override)",
|
|
1841
|
+
"name": "provider-base-url",
|
|
1842
|
+
"hasDynamicHelp": false,
|
|
1843
|
+
"multiple": false,
|
|
1844
|
+
"type": "option"
|
|
1845
|
+
},
|
|
1846
|
+
"mode": {
|
|
1847
|
+
"description": "Gateway mode (byte_compatible/byte_messages/byte_generative)",
|
|
1848
|
+
"name": "mode",
|
|
1849
|
+
"hasDynamicHelp": false,
|
|
1850
|
+
"multiple": false,
|
|
1851
|
+
"type": "option"
|
|
1852
|
+
},
|
|
1853
|
+
"label": {
|
|
1854
|
+
"description": "Label for this connection",
|
|
1855
|
+
"name": "label",
|
|
1856
|
+
"hasDynamicHelp": false,
|
|
1857
|
+
"multiple": false,
|
|
1858
|
+
"type": "option"
|
|
1859
|
+
},
|
|
1860
|
+
"no-fetch": {
|
|
1861
|
+
"description": "Skip auto-importing the model list",
|
|
1862
|
+
"name": "no-fetch",
|
|
1863
|
+
"allowNo": false,
|
|
1864
|
+
"type": "boolean"
|
|
1865
|
+
}
|
|
1866
|
+
},
|
|
1867
|
+
"hasDynamicHelp": false,
|
|
1868
|
+
"hiddenAliases": [],
|
|
1869
|
+
"id": "providers:add",
|
|
1870
|
+
"pluginAlias": "@bytevion/cli",
|
|
1871
|
+
"pluginName": "@bytevion/cli",
|
|
1872
|
+
"pluginType": "core",
|
|
1873
|
+
"strict": true,
|
|
1874
|
+
"enableJsonFlag": true,
|
|
1875
|
+
"isESM": false,
|
|
1876
|
+
"relativePath": [
|
|
1877
|
+
"dist",
|
|
1878
|
+
"commands",
|
|
1879
|
+
"providers",
|
|
1880
|
+
"add.js"
|
|
1881
|
+
]
|
|
1882
|
+
},
|
|
1883
|
+
"providers:compare": {
|
|
1545
1884
|
"aliases": [],
|
|
1546
1885
|
"args": {
|
|
1547
|
-
"
|
|
1548
|
-
"description": "
|
|
1549
|
-
"name": "
|
|
1550
|
-
"
|
|
1551
|
-
"maximum",
|
|
1552
|
-
"max_savings",
|
|
1553
|
-
"balanced",
|
|
1554
|
-
"lowest_latency",
|
|
1555
|
-
"reliability_first"
|
|
1556
|
-
],
|
|
1557
|
-
"required": true
|
|
1886
|
+
"alias": {
|
|
1887
|
+
"description": "Model byte alias (omit when using --all)",
|
|
1888
|
+
"name": "alias",
|
|
1889
|
+
"required": false
|
|
1558
1890
|
}
|
|
1559
1891
|
},
|
|
1560
|
-
"description": "
|
|
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
|
+
],
|
|
1561
1898
|
"flags": {
|
|
1562
1899
|
"json": {
|
|
1563
1900
|
"description": "Format output as json.",
|
|
@@ -1581,11 +1918,23 @@
|
|
|
1581
1918
|
"hasDynamicHelp": false,
|
|
1582
1919
|
"multiple": false,
|
|
1583
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"
|
|
1584
1933
|
}
|
|
1585
1934
|
},
|
|
1586
1935
|
"hasDynamicHelp": false,
|
|
1587
1936
|
"hiddenAliases": [],
|
|
1588
|
-
"id": "
|
|
1937
|
+
"id": "providers:compare",
|
|
1589
1938
|
"pluginAlias": "@bytevion/cli",
|
|
1590
1939
|
"pluginName": "@bytevion/cli",
|
|
1591
1940
|
"pluginType": "core",
|
|
@@ -1595,35 +1944,124 @@
|
|
|
1595
1944
|
"relativePath": [
|
|
1596
1945
|
"dist",
|
|
1597
1946
|
"commands",
|
|
1598
|
-
"
|
|
1599
|
-
"
|
|
1947
|
+
"providers",
|
|
1948
|
+
"compare.js"
|
|
1600
1949
|
]
|
|
1601
1950
|
},
|
|
1602
|
-
"
|
|
1951
|
+
"providers:list": {
|
|
1952
|
+
"aliases": [],
|
|
1953
|
+
"args": {},
|
|
1954
|
+
"description": "List upstream provider connections for the current org.",
|
|
1955
|
+
"flags": {
|
|
1956
|
+
"json": {
|
|
1957
|
+
"description": "Format output as json.",
|
|
1958
|
+
"helpGroup": "GLOBAL",
|
|
1959
|
+
"name": "json",
|
|
1960
|
+
"allowNo": false,
|
|
1961
|
+
"type": "boolean"
|
|
1962
|
+
},
|
|
1963
|
+
"profile": {
|
|
1964
|
+
"description": "Configuration profile to use",
|
|
1965
|
+
"env": "BYTE_PROFILE",
|
|
1966
|
+
"name": "profile",
|
|
1967
|
+
"hasDynamicHelp": false,
|
|
1968
|
+
"multiple": false,
|
|
1969
|
+
"type": "option"
|
|
1970
|
+
},
|
|
1971
|
+
"base-url": {
|
|
1972
|
+
"description": "Override the API base URL",
|
|
1973
|
+
"env": "BYTE_BASE_URL",
|
|
1974
|
+
"name": "base-url",
|
|
1975
|
+
"hasDynamicHelp": false,
|
|
1976
|
+
"multiple": false,
|
|
1977
|
+
"type": "option"
|
|
1978
|
+
}
|
|
1979
|
+
},
|
|
1980
|
+
"hasDynamicHelp": false,
|
|
1981
|
+
"hiddenAliases": [],
|
|
1982
|
+
"id": "providers:list",
|
|
1983
|
+
"pluginAlias": "@bytevion/cli",
|
|
1984
|
+
"pluginName": "@bytevion/cli",
|
|
1985
|
+
"pluginType": "core",
|
|
1986
|
+
"strict": true,
|
|
1987
|
+
"enableJsonFlag": true,
|
|
1988
|
+
"isESM": false,
|
|
1989
|
+
"relativePath": [
|
|
1990
|
+
"dist",
|
|
1991
|
+
"commands",
|
|
1992
|
+
"providers",
|
|
1993
|
+
"list.js"
|
|
1994
|
+
]
|
|
1995
|
+
},
|
|
1996
|
+
"providers:rotate": {
|
|
1603
1997
|
"aliases": [],
|
|
1604
1998
|
"args": {
|
|
1605
|
-
"
|
|
1606
|
-
"description": "
|
|
1607
|
-
"name": "
|
|
1999
|
+
"id": {
|
|
2000
|
+
"description": "Connection id (see `byte providers list`)",
|
|
2001
|
+
"name": "id",
|
|
1608
2002
|
"required": true
|
|
2003
|
+
}
|
|
2004
|
+
},
|
|
2005
|
+
"description": "Replace the upstream API key on a provider connection (keeps imported models).",
|
|
2006
|
+
"flags": {
|
|
2007
|
+
"json": {
|
|
2008
|
+
"description": "Format output as json.",
|
|
2009
|
+
"helpGroup": "GLOBAL",
|
|
2010
|
+
"name": "json",
|
|
2011
|
+
"allowNo": false,
|
|
2012
|
+
"type": "boolean"
|
|
1609
2013
|
},
|
|
1610
|
-
"
|
|
1611
|
-
"description": "
|
|
1612
|
-
"
|
|
1613
|
-
"
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
2014
|
+
"profile": {
|
|
2015
|
+
"description": "Configuration profile to use",
|
|
2016
|
+
"env": "BYTE_PROFILE",
|
|
2017
|
+
"name": "profile",
|
|
2018
|
+
"hasDynamicHelp": false,
|
|
2019
|
+
"multiple": false,
|
|
2020
|
+
"type": "option"
|
|
2021
|
+
},
|
|
2022
|
+
"base-url": {
|
|
2023
|
+
"description": "Override the API base URL",
|
|
2024
|
+
"env": "BYTE_BASE_URL",
|
|
2025
|
+
"name": "base-url",
|
|
2026
|
+
"hasDynamicHelp": false,
|
|
2027
|
+
"multiple": false,
|
|
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"
|
|
2037
|
+
}
|
|
2038
|
+
},
|
|
2039
|
+
"hasDynamicHelp": false,
|
|
2040
|
+
"hiddenAliases": [],
|
|
2041
|
+
"id": "providers:rotate",
|
|
2042
|
+
"pluginAlias": "@bytevion/cli",
|
|
2043
|
+
"pluginName": "@bytevion/cli",
|
|
2044
|
+
"pluginType": "core",
|
|
2045
|
+
"strict": true,
|
|
2046
|
+
"enableJsonFlag": true,
|
|
2047
|
+
"isESM": false,
|
|
2048
|
+
"relativePath": [
|
|
2049
|
+
"dist",
|
|
2050
|
+
"commands",
|
|
2051
|
+
"providers",
|
|
2052
|
+
"rotate.js"
|
|
2053
|
+
]
|
|
2054
|
+
},
|
|
2055
|
+
"providers:test": {
|
|
2056
|
+
"aliases": [],
|
|
2057
|
+
"args": {
|
|
2058
|
+
"id": {
|
|
2059
|
+
"description": "Connection id (see `byte providers list`)",
|
|
2060
|
+
"name": "id",
|
|
1619
2061
|
"required": true
|
|
1620
2062
|
}
|
|
1621
2063
|
},
|
|
1622
|
-
"description": "
|
|
1623
|
-
"examples": [
|
|
1624
|
-
"<%= config.bin %> opt set compression_enabled off",
|
|
1625
|
-
"<%= config.bin %> opt set response_cache_enabled on"
|
|
1626
|
-
],
|
|
2064
|
+
"description": "Verify a provider connection by re-fetching its model list.",
|
|
1627
2065
|
"flags": {
|
|
1628
2066
|
"json": {
|
|
1629
2067
|
"description": "Format output as json.",
|
|
@@ -1651,7 +2089,7 @@
|
|
|
1651
2089
|
},
|
|
1652
2090
|
"hasDynamicHelp": false,
|
|
1653
2091
|
"hiddenAliases": [],
|
|
1654
|
-
"id": "
|
|
2092
|
+
"id": "providers:test",
|
|
1655
2093
|
"pluginAlias": "@bytevion/cli",
|
|
1656
2094
|
"pluginName": "@bytevion/cli",
|
|
1657
2095
|
"pluginType": "core",
|
|
@@ -1661,14 +2099,14 @@
|
|
|
1661
2099
|
"relativePath": [
|
|
1662
2100
|
"dist",
|
|
1663
2101
|
"commands",
|
|
1664
|
-
"
|
|
1665
|
-
"
|
|
2102
|
+
"providers",
|
|
2103
|
+
"test.js"
|
|
1666
2104
|
]
|
|
1667
2105
|
},
|
|
1668
|
-
"
|
|
2106
|
+
"sessions": {
|
|
1669
2107
|
"aliases": [],
|
|
1670
2108
|
"args": {},
|
|
1671
|
-
"description": "
|
|
2109
|
+
"description": "List active terminal sessions (CLI tokens) for the org.",
|
|
1672
2110
|
"flags": {
|
|
1673
2111
|
"json": {
|
|
1674
2112
|
"description": "Format output as json.",
|
|
@@ -1696,7 +2134,7 @@
|
|
|
1696
2134
|
},
|
|
1697
2135
|
"hasDynamicHelp": false,
|
|
1698
2136
|
"hiddenAliases": [],
|
|
1699
|
-
"id": "
|
|
2137
|
+
"id": "sessions",
|
|
1700
2138
|
"pluginAlias": "@bytevion/cli",
|
|
1701
2139
|
"pluginName": "@bytevion/cli",
|
|
1702
2140
|
"pluginType": "core",
|
|
@@ -1706,10 +2144,61 @@
|
|
|
1706
2144
|
"relativePath": [
|
|
1707
2145
|
"dist",
|
|
1708
2146
|
"commands",
|
|
1709
|
-
"
|
|
1710
|
-
"
|
|
2147
|
+
"sessions",
|
|
2148
|
+
"index.js"
|
|
2149
|
+
]
|
|
2150
|
+
},
|
|
2151
|
+
"sessions:revoke": {
|
|
2152
|
+
"aliases": [],
|
|
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.",
|
|
2161
|
+
"flags": {
|
|
2162
|
+
"json": {
|
|
2163
|
+
"description": "Format output as json.",
|
|
2164
|
+
"helpGroup": "GLOBAL",
|
|
2165
|
+
"name": "json",
|
|
2166
|
+
"allowNo": false,
|
|
2167
|
+
"type": "boolean"
|
|
2168
|
+
},
|
|
2169
|
+
"profile": {
|
|
2170
|
+
"description": "Configuration profile to use",
|
|
2171
|
+
"env": "BYTE_PROFILE",
|
|
2172
|
+
"name": "profile",
|
|
2173
|
+
"hasDynamicHelp": false,
|
|
2174
|
+
"multiple": false,
|
|
2175
|
+
"type": "option"
|
|
2176
|
+
},
|
|
2177
|
+
"base-url": {
|
|
2178
|
+
"description": "Override the API base URL",
|
|
2179
|
+
"env": "BYTE_BASE_URL",
|
|
2180
|
+
"name": "base-url",
|
|
2181
|
+
"hasDynamicHelp": false,
|
|
2182
|
+
"multiple": false,
|
|
2183
|
+
"type": "option"
|
|
2184
|
+
}
|
|
2185
|
+
},
|
|
2186
|
+
"hasDynamicHelp": false,
|
|
2187
|
+
"hiddenAliases": [],
|
|
2188
|
+
"id": "sessions:revoke",
|
|
2189
|
+
"pluginAlias": "@bytevion/cli",
|
|
2190
|
+
"pluginName": "@bytevion/cli",
|
|
2191
|
+
"pluginType": "core",
|
|
2192
|
+
"strict": true,
|
|
2193
|
+
"enableJsonFlag": true,
|
|
2194
|
+
"isESM": false,
|
|
2195
|
+
"relativePath": [
|
|
2196
|
+
"dist",
|
|
2197
|
+
"commands",
|
|
2198
|
+
"sessions",
|
|
2199
|
+
"revoke.js"
|
|
1711
2200
|
]
|
|
1712
2201
|
}
|
|
1713
2202
|
},
|
|
1714
|
-
"version": "0.
|
|
2203
|
+
"version": "0.5.0"
|
|
1715
2204
|
}
|