@bytevion/cli 0.3.0 → 0.4.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/dist/commands/providers/add.js +10 -2
- package/dist/commands/run.js +1 -1
- package/dist/commands/setup.d.ts +1 -0
- package/dist/commands/setup.js +96 -1
- package/dist/hooks/init/home.js +24 -0
- package/dist/lib/api.d.ts +1 -0
- package/dist/lib/api.js +6 -0
- package/dist/lib/tui.d.ts +105 -0
- package/dist/lib/tui.gate.test.d.ts +1 -0
- package/dist/lib/tui.gate.test.js +96 -0
- package/dist/lib/tui.js +62 -0
- package/dist/tui/__tests__/home.render.test.d.ts +1 -0
- package/dist/tui/__tests__/home.render.test.js +59 -0
- package/dist/tui/__tests__/state.test.d.ts +1 -0
- package/dist/tui/__tests__/state.test.js +88 -0
- package/dist/tui/components/App.d.ts +7 -0
- package/dist/tui/components/App.js +129 -0
- package/dist/tui/components/Brand.d.ts +9 -0
- package/dist/tui/components/Brand.js +13 -0
- package/dist/tui/components/Card.d.ts +11 -0
- package/dist/tui/components/Card.js +12 -0
- package/dist/tui/components/DoneScreen.d.ts +11 -0
- package/dist/tui/components/DoneScreen.js +30 -0
- package/dist/tui/components/Home.d.ts +12 -0
- package/dist/tui/components/Home.js +144 -0
- package/dist/tui/components/KeyStep.d.ts +13 -0
- package/dist/tui/components/KeyStep.js +44 -0
- package/dist/tui/components/Panel.d.ts +11 -0
- package/dist/tui/components/Panel.js +12 -0
- package/dist/tui/components/Picker.d.ts +19 -0
- package/dist/tui/components/Picker.js +68 -0
- package/dist/tui/components/PresetStep.d.ts +12 -0
- package/dist/tui/components/PresetStep.js +26 -0
- package/dist/tui/components/ProviderStep.d.ts +20 -0
- package/dist/tui/components/ProviderStep.js +159 -0
- package/dist/tui/components/Stepper.d.ts +9 -0
- package/dist/tui/components/Stepper.js +29 -0
- package/dist/tui/contract.d.ts +99 -0
- package/dist/tui/contract.js +5 -0
- package/dist/tui/index.d.ts +3 -0
- package/dist/tui/index.js +78 -0
- package/dist/tui/package.json +1 -0
- package/dist/tui/state.d.ts +77 -0
- package/dist/tui/state.js +84 -0
- package/dist/tui/theme.d.ts +23 -0
- package/dist/tui/theme.js +49 -0
- package/oclif.manifest.json +151 -151
- package/package.json +13 -3
package/oclif.manifest.json
CHANGED
|
@@ -514,9 +514,9 @@
|
|
|
514
514
|
"type": "option"
|
|
515
515
|
},
|
|
516
516
|
"model": {
|
|
517
|
-
"description": "Model or Byte alias",
|
|
517
|
+
"description": "Model or Byte alias (default: auto — routes to your enabled model)",
|
|
518
518
|
"name": "model",
|
|
519
|
-
"default": "
|
|
519
|
+
"default": "auto",
|
|
520
520
|
"hasDynamicHelp": false,
|
|
521
521
|
"multiple": false,
|
|
522
522
|
"type": "option"
|
|
@@ -1199,23 +1199,14 @@
|
|
|
1199
1199
|
"rotate.js"
|
|
1200
1200
|
]
|
|
1201
1201
|
},
|
|
1202
|
-
"
|
|
1202
|
+
"providers:add": {
|
|
1203
1203
|
"aliases": [],
|
|
1204
|
-
"args": {
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
"max_savings",
|
|
1211
|
-
"balanced",
|
|
1212
|
-
"lowest_latency",
|
|
1213
|
-
"reliability_first"
|
|
1214
|
-
],
|
|
1215
|
-
"required": true
|
|
1216
|
-
}
|
|
1217
|
-
},
|
|
1218
|
-
"description": "Apply an optimization mode for the whole org (maximum, balanced, max_savings, lowest_latency, reliability_first).",
|
|
1204
|
+
"args": {},
|
|
1205
|
+
"description": "Connect an upstream provider key (BYOK). Byte stores it encrypted and imports models.",
|
|
1206
|
+
"examples": [
|
|
1207
|
+
"<%= config.bin %> providers add --provider deepseek --api-key sk-...",
|
|
1208
|
+
"<%= config.bin %> providers add --provider custom --provider-base-url https://api.example.com/v1 --api-key ..."
|
|
1209
|
+
],
|
|
1219
1210
|
"flags": {
|
|
1220
1211
|
"json": {
|
|
1221
1212
|
"description": "Format output as json.",
|
|
@@ -1239,11 +1230,53 @@
|
|
|
1239
1230
|
"hasDynamicHelp": false,
|
|
1240
1231
|
"multiple": false,
|
|
1241
1232
|
"type": "option"
|
|
1233
|
+
},
|
|
1234
|
+
"provider": {
|
|
1235
|
+
"description": "Provider preset id (openai, deepseek, anthropic, …)",
|
|
1236
|
+
"name": "provider",
|
|
1237
|
+
"hasDynamicHelp": false,
|
|
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",
|
|
1259
|
+
"hasDynamicHelp": false,
|
|
1260
|
+
"multiple": false,
|
|
1261
|
+
"type": "option"
|
|
1262
|
+
},
|
|
1263
|
+
"label": {
|
|
1264
|
+
"description": "Label for this connection",
|
|
1265
|
+
"name": "label",
|
|
1266
|
+
"hasDynamicHelp": false,
|
|
1267
|
+
"multiple": false,
|
|
1268
|
+
"type": "option"
|
|
1269
|
+
},
|
|
1270
|
+
"no-fetch": {
|
|
1271
|
+
"description": "Skip auto-importing the model list",
|
|
1272
|
+
"name": "no-fetch",
|
|
1273
|
+
"allowNo": false,
|
|
1274
|
+
"type": "boolean"
|
|
1242
1275
|
}
|
|
1243
1276
|
},
|
|
1244
1277
|
"hasDynamicHelp": false,
|
|
1245
1278
|
"hiddenAliases": [],
|
|
1246
|
-
"id": "
|
|
1279
|
+
"id": "providers:add",
|
|
1247
1280
|
"pluginAlias": "@bytevion/cli",
|
|
1248
1281
|
"pluginName": "@bytevion/cli",
|
|
1249
1282
|
"pluginType": "core",
|
|
@@ -1253,35 +1286,14 @@
|
|
|
1253
1286
|
"relativePath": [
|
|
1254
1287
|
"dist",
|
|
1255
1288
|
"commands",
|
|
1256
|
-
"
|
|
1257
|
-
"
|
|
1289
|
+
"providers",
|
|
1290
|
+
"add.js"
|
|
1258
1291
|
]
|
|
1259
1292
|
},
|
|
1260
|
-
"
|
|
1293
|
+
"providers:list": {
|
|
1261
1294
|
"aliases": [],
|
|
1262
|
-
"args": {
|
|
1263
|
-
|
|
1264
|
-
"description": "Optimization field name",
|
|
1265
|
-
"name": "flag",
|
|
1266
|
-
"required": true
|
|
1267
|
-
},
|
|
1268
|
-
"value": {
|
|
1269
|
-
"description": "on or off",
|
|
1270
|
-
"name": "value",
|
|
1271
|
-
"options": [
|
|
1272
|
-
"on",
|
|
1273
|
-
"off",
|
|
1274
|
-
"true",
|
|
1275
|
-
"false"
|
|
1276
|
-
],
|
|
1277
|
-
"required": true
|
|
1278
|
-
}
|
|
1279
|
-
},
|
|
1280
|
-
"description": "Toggle a single optimization layer on or off. See field names with `byte opt show --json`.",
|
|
1281
|
-
"examples": [
|
|
1282
|
-
"<%= config.bin %> opt set compression_enabled off",
|
|
1283
|
-
"<%= config.bin %> opt set response_cache_enabled on"
|
|
1284
|
-
],
|
|
1295
|
+
"args": {},
|
|
1296
|
+
"description": "List upstream provider connections for the current org.",
|
|
1285
1297
|
"flags": {
|
|
1286
1298
|
"json": {
|
|
1287
1299
|
"description": "Format output as json.",
|
|
@@ -1309,7 +1321,7 @@
|
|
|
1309
1321
|
},
|
|
1310
1322
|
"hasDynamicHelp": false,
|
|
1311
1323
|
"hiddenAliases": [],
|
|
1312
|
-
"id": "
|
|
1324
|
+
"id": "providers:list",
|
|
1313
1325
|
"pluginAlias": "@bytevion/cli",
|
|
1314
1326
|
"pluginName": "@bytevion/cli",
|
|
1315
1327
|
"pluginType": "core",
|
|
@@ -1319,14 +1331,20 @@
|
|
|
1319
1331
|
"relativePath": [
|
|
1320
1332
|
"dist",
|
|
1321
1333
|
"commands",
|
|
1322
|
-
"
|
|
1323
|
-
"
|
|
1334
|
+
"providers",
|
|
1335
|
+
"list.js"
|
|
1324
1336
|
]
|
|
1325
1337
|
},
|
|
1326
|
-
"
|
|
1338
|
+
"providers:rotate": {
|
|
1327
1339
|
"aliases": [],
|
|
1328
|
-
"args": {
|
|
1329
|
-
|
|
1340
|
+
"args": {
|
|
1341
|
+
"id": {
|
|
1342
|
+
"description": "Connection id (see `byte providers list`)",
|
|
1343
|
+
"name": "id",
|
|
1344
|
+
"required": true
|
|
1345
|
+
}
|
|
1346
|
+
},
|
|
1347
|
+
"description": "Replace the upstream API key on a provider connection (keeps imported models).",
|
|
1330
1348
|
"flags": {
|
|
1331
1349
|
"json": {
|
|
1332
1350
|
"description": "Format output as json.",
|
|
@@ -1350,11 +1368,19 @@
|
|
|
1350
1368
|
"hasDynamicHelp": false,
|
|
1351
1369
|
"multiple": false,
|
|
1352
1370
|
"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"
|
|
1353
1379
|
}
|
|
1354
1380
|
},
|
|
1355
1381
|
"hasDynamicHelp": false,
|
|
1356
1382
|
"hiddenAliases": [],
|
|
1357
|
-
"id": "
|
|
1383
|
+
"id": "providers:rotate",
|
|
1358
1384
|
"pluginAlias": "@bytevion/cli",
|
|
1359
1385
|
"pluginName": "@bytevion/cli",
|
|
1360
1386
|
"pluginType": "core",
|
|
@@ -1364,18 +1390,20 @@
|
|
|
1364
1390
|
"relativePath": [
|
|
1365
1391
|
"dist",
|
|
1366
1392
|
"commands",
|
|
1367
|
-
"
|
|
1368
|
-
"
|
|
1393
|
+
"providers",
|
|
1394
|
+
"rotate.js"
|
|
1369
1395
|
]
|
|
1370
1396
|
},
|
|
1371
|
-
"providers:
|
|
1397
|
+
"providers:test": {
|
|
1372
1398
|
"aliases": [],
|
|
1373
|
-
"args": {
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1399
|
+
"args": {
|
|
1400
|
+
"id": {
|
|
1401
|
+
"description": "Connection id (see `byte providers list`)",
|
|
1402
|
+
"name": "id",
|
|
1403
|
+
"required": true
|
|
1404
|
+
}
|
|
1405
|
+
},
|
|
1406
|
+
"description": "Verify a provider connection by re-fetching its model list.",
|
|
1379
1407
|
"flags": {
|
|
1380
1408
|
"json": {
|
|
1381
1409
|
"description": "Format output as json.",
|
|
@@ -1399,53 +1427,11 @@
|
|
|
1399
1427
|
"hasDynamicHelp": false,
|
|
1400
1428
|
"multiple": false,
|
|
1401
1429
|
"type": "option"
|
|
1402
|
-
},
|
|
1403
|
-
"provider": {
|
|
1404
|
-
"description": "Provider preset id (openai, deepseek, anthropic, …)",
|
|
1405
|
-
"name": "provider",
|
|
1406
|
-
"hasDynamicHelp": false,
|
|
1407
|
-
"multiple": false,
|
|
1408
|
-
"type": "option"
|
|
1409
|
-
},
|
|
1410
|
-
"api-key": {
|
|
1411
|
-
"description": "Upstream provider API key",
|
|
1412
|
-
"env": "BYTE_PROVIDER_KEY",
|
|
1413
|
-
"name": "api-key",
|
|
1414
|
-
"hasDynamicHelp": false,
|
|
1415
|
-
"multiple": false,
|
|
1416
|
-
"type": "option"
|
|
1417
|
-
},
|
|
1418
|
-
"provider-base-url": {
|
|
1419
|
-
"description": "Custom base URL (for --provider custom or to override)",
|
|
1420
|
-
"name": "provider-base-url",
|
|
1421
|
-
"hasDynamicHelp": false,
|
|
1422
|
-
"multiple": false,
|
|
1423
|
-
"type": "option"
|
|
1424
|
-
},
|
|
1425
|
-
"mode": {
|
|
1426
|
-
"description": "Gateway mode (byte_compatible/byte_messages/byte_generative)",
|
|
1427
|
-
"name": "mode",
|
|
1428
|
-
"hasDynamicHelp": false,
|
|
1429
|
-
"multiple": false,
|
|
1430
|
-
"type": "option"
|
|
1431
|
-
},
|
|
1432
|
-
"label": {
|
|
1433
|
-
"description": "Label for this connection",
|
|
1434
|
-
"name": "label",
|
|
1435
|
-
"hasDynamicHelp": false,
|
|
1436
|
-
"multiple": false,
|
|
1437
|
-
"type": "option"
|
|
1438
|
-
},
|
|
1439
|
-
"no-fetch": {
|
|
1440
|
-
"description": "Skip auto-importing the model list",
|
|
1441
|
-
"name": "no-fetch",
|
|
1442
|
-
"allowNo": false,
|
|
1443
|
-
"type": "boolean"
|
|
1444
1430
|
}
|
|
1445
1431
|
},
|
|
1446
1432
|
"hasDynamicHelp": false,
|
|
1447
1433
|
"hiddenAliases": [],
|
|
1448
|
-
"id": "providers:
|
|
1434
|
+
"id": "providers:test",
|
|
1449
1435
|
"pluginAlias": "@bytevion/cli",
|
|
1450
1436
|
"pluginName": "@bytevion/cli",
|
|
1451
1437
|
"pluginType": "core",
|
|
@@ -1456,13 +1442,13 @@
|
|
|
1456
1442
|
"dist",
|
|
1457
1443
|
"commands",
|
|
1458
1444
|
"providers",
|
|
1459
|
-
"
|
|
1445
|
+
"test.js"
|
|
1460
1446
|
]
|
|
1461
1447
|
},
|
|
1462
|
-
"
|
|
1448
|
+
"sessions": {
|
|
1463
1449
|
"aliases": [],
|
|
1464
1450
|
"args": {},
|
|
1465
|
-
"description": "List
|
|
1451
|
+
"description": "List active terminal sessions (CLI tokens) for the org.",
|
|
1466
1452
|
"flags": {
|
|
1467
1453
|
"json": {
|
|
1468
1454
|
"description": "Format output as json.",
|
|
@@ -1490,7 +1476,7 @@
|
|
|
1490
1476
|
},
|
|
1491
1477
|
"hasDynamicHelp": false,
|
|
1492
1478
|
"hiddenAliases": [],
|
|
1493
|
-
"id": "
|
|
1479
|
+
"id": "sessions",
|
|
1494
1480
|
"pluginAlias": "@bytevion/cli",
|
|
1495
1481
|
"pluginName": "@bytevion/cli",
|
|
1496
1482
|
"pluginType": "core",
|
|
@@ -1500,20 +1486,20 @@
|
|
|
1500
1486
|
"relativePath": [
|
|
1501
1487
|
"dist",
|
|
1502
1488
|
"commands",
|
|
1503
|
-
"
|
|
1504
|
-
"
|
|
1489
|
+
"sessions",
|
|
1490
|
+
"index.js"
|
|
1505
1491
|
]
|
|
1506
1492
|
},
|
|
1507
|
-
"
|
|
1493
|
+
"sessions:revoke": {
|
|
1508
1494
|
"aliases": [],
|
|
1509
1495
|
"args": {
|
|
1510
1496
|
"id": {
|
|
1511
|
-
"description": "
|
|
1497
|
+
"description": "Session id (see `byte sessions`)",
|
|
1512
1498
|
"name": "id",
|
|
1513
1499
|
"required": true
|
|
1514
1500
|
}
|
|
1515
1501
|
},
|
|
1516
|
-
"description": "
|
|
1502
|
+
"description": "Revoke a terminal session (CLI token) by id.",
|
|
1517
1503
|
"flags": {
|
|
1518
1504
|
"json": {
|
|
1519
1505
|
"description": "Format output as json.",
|
|
@@ -1537,19 +1523,11 @@
|
|
|
1537
1523
|
"hasDynamicHelp": false,
|
|
1538
1524
|
"multiple": false,
|
|
1539
1525
|
"type": "option"
|
|
1540
|
-
},
|
|
1541
|
-
"api-key": {
|
|
1542
|
-
"description": "New upstream provider API key",
|
|
1543
|
-
"env": "BYTE_PROVIDER_KEY",
|
|
1544
|
-
"name": "api-key",
|
|
1545
|
-
"hasDynamicHelp": false,
|
|
1546
|
-
"multiple": false,
|
|
1547
|
-
"type": "option"
|
|
1548
1526
|
}
|
|
1549
1527
|
},
|
|
1550
1528
|
"hasDynamicHelp": false,
|
|
1551
1529
|
"hiddenAliases": [],
|
|
1552
|
-
"id": "
|
|
1530
|
+
"id": "sessions:revoke",
|
|
1553
1531
|
"pluginAlias": "@bytevion/cli",
|
|
1554
1532
|
"pluginName": "@bytevion/cli",
|
|
1555
1533
|
"pluginType": "core",
|
|
@@ -1559,20 +1537,27 @@
|
|
|
1559
1537
|
"relativePath": [
|
|
1560
1538
|
"dist",
|
|
1561
1539
|
"commands",
|
|
1562
|
-
"
|
|
1563
|
-
"
|
|
1540
|
+
"sessions",
|
|
1541
|
+
"revoke.js"
|
|
1564
1542
|
]
|
|
1565
1543
|
},
|
|
1566
|
-
"
|
|
1544
|
+
"opt:preset": {
|
|
1567
1545
|
"aliases": [],
|
|
1568
1546
|
"args": {
|
|
1569
|
-
"
|
|
1570
|
-
"description": "
|
|
1571
|
-
"name": "
|
|
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
|
+
],
|
|
1572
1557
|
"required": true
|
|
1573
1558
|
}
|
|
1574
1559
|
},
|
|
1575
|
-
"description": "
|
|
1560
|
+
"description": "Apply an optimization mode for the whole org (maximum, balanced, max_savings, lowest_latency, reliability_first).",
|
|
1576
1561
|
"flags": {
|
|
1577
1562
|
"json": {
|
|
1578
1563
|
"description": "Format output as json.",
|
|
@@ -1600,7 +1585,7 @@
|
|
|
1600
1585
|
},
|
|
1601
1586
|
"hasDynamicHelp": false,
|
|
1602
1587
|
"hiddenAliases": [],
|
|
1603
|
-
"id": "
|
|
1588
|
+
"id": "opt:preset",
|
|
1604
1589
|
"pluginAlias": "@bytevion/cli",
|
|
1605
1590
|
"pluginName": "@bytevion/cli",
|
|
1606
1591
|
"pluginType": "core",
|
|
@@ -1610,14 +1595,35 @@
|
|
|
1610
1595
|
"relativePath": [
|
|
1611
1596
|
"dist",
|
|
1612
1597
|
"commands",
|
|
1613
|
-
"
|
|
1614
|
-
"
|
|
1598
|
+
"opt",
|
|
1599
|
+
"preset.js"
|
|
1615
1600
|
]
|
|
1616
1601
|
},
|
|
1617
|
-
"
|
|
1602
|
+
"opt:set": {
|
|
1618
1603
|
"aliases": [],
|
|
1619
|
-
"args": {
|
|
1620
|
-
|
|
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
|
+
],
|
|
1621
1627
|
"flags": {
|
|
1622
1628
|
"json": {
|
|
1623
1629
|
"description": "Format output as json.",
|
|
@@ -1645,7 +1651,7 @@
|
|
|
1645
1651
|
},
|
|
1646
1652
|
"hasDynamicHelp": false,
|
|
1647
1653
|
"hiddenAliases": [],
|
|
1648
|
-
"id": "
|
|
1654
|
+
"id": "opt:set",
|
|
1649
1655
|
"pluginAlias": "@bytevion/cli",
|
|
1650
1656
|
"pluginName": "@bytevion/cli",
|
|
1651
1657
|
"pluginType": "core",
|
|
@@ -1655,20 +1661,14 @@
|
|
|
1655
1661
|
"relativePath": [
|
|
1656
1662
|
"dist",
|
|
1657
1663
|
"commands",
|
|
1658
|
-
"
|
|
1659
|
-
"
|
|
1664
|
+
"opt",
|
|
1665
|
+
"set.js"
|
|
1660
1666
|
]
|
|
1661
1667
|
},
|
|
1662
|
-
"
|
|
1668
|
+
"opt:show": {
|
|
1663
1669
|
"aliases": [],
|
|
1664
|
-
"args": {
|
|
1665
|
-
|
|
1666
|
-
"description": "Session id (see `byte sessions`)",
|
|
1667
|
-
"name": "id",
|
|
1668
|
-
"required": true
|
|
1669
|
-
}
|
|
1670
|
-
},
|
|
1671
|
-
"description": "Revoke a terminal session (CLI token) by id.",
|
|
1670
|
+
"args": {},
|
|
1671
|
+
"description": "Show the current optimization mode and every layer running on your requests.",
|
|
1672
1672
|
"flags": {
|
|
1673
1673
|
"json": {
|
|
1674
1674
|
"description": "Format output as json.",
|
|
@@ -1696,7 +1696,7 @@
|
|
|
1696
1696
|
},
|
|
1697
1697
|
"hasDynamicHelp": false,
|
|
1698
1698
|
"hiddenAliases": [],
|
|
1699
|
-
"id": "
|
|
1699
|
+
"id": "opt:show",
|
|
1700
1700
|
"pluginAlias": "@bytevion/cli",
|
|
1701
1701
|
"pluginName": "@bytevion/cli",
|
|
1702
1702
|
"pluginType": "core",
|
|
@@ -1706,10 +1706,10 @@
|
|
|
1706
1706
|
"relativePath": [
|
|
1707
1707
|
"dist",
|
|
1708
1708
|
"commands",
|
|
1709
|
-
"
|
|
1710
|
-
"
|
|
1709
|
+
"opt",
|
|
1710
|
+
"show.js"
|
|
1711
1711
|
]
|
|
1712
1712
|
}
|
|
1713
1713
|
},
|
|
1714
|
-
"version": "0.
|
|
1714
|
+
"version": "0.4.0"
|
|
1715
1715
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bytevion/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Byte — control your LLM optimization gateway from the terminal.",
|
|
5
5
|
"author": "Byte",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -23,11 +23,18 @@
|
|
|
23
23
|
"@clack/prompts": "^1.5.0",
|
|
24
24
|
"@oclif/core": "^4.0.0",
|
|
25
25
|
"cli-table3": "^0.6.5",
|
|
26
|
-
"
|
|
26
|
+
"ink": "^7.0.5",
|
|
27
|
+
"ink-spinner": "^5.0.0",
|
|
28
|
+
"ink-text-input": "^6.0.0",
|
|
29
|
+
"picocolors": "^1.1.1",
|
|
30
|
+
"react": "^19.2.6"
|
|
27
31
|
},
|
|
28
32
|
"devDependencies": {
|
|
29
33
|
"@types/node": "^22.0.0",
|
|
34
|
+
"@types/react": "^19.2.15",
|
|
35
|
+
"ink-testing-library": "^4.0.0",
|
|
30
36
|
"oclif": "^4.14.0",
|
|
37
|
+
"tsx": "^4.22.3",
|
|
31
38
|
"typescript": "^5.5.0"
|
|
32
39
|
},
|
|
33
40
|
"oclif": {
|
|
@@ -66,7 +73,10 @@
|
|
|
66
73
|
}
|
|
67
74
|
},
|
|
68
75
|
"scripts": {
|
|
69
|
-
"build": "tsc -b && oclif manifest",
|
|
76
|
+
"build": "tsc -b && node scripts/tui-pkg.js && oclif manifest",
|
|
77
|
+
"test": "npm run build && npm run test:unit && npm run test:tui",
|
|
78
|
+
"test:unit": "tsx --test \"src/**/*.test.ts\" \"src/**/*.test.tsx\"",
|
|
79
|
+
"test:tui": "node --test \"src/**/*.test.mts\"",
|
|
70
80
|
"clean": "tsc -b --clean",
|
|
71
81
|
"prepublishOnly": "node -e \"const fs=require('fs');for(const f of (fs.existsSync('dist')?fs.readdirSync('dist'):[])){if(f.endsWith('.tar.gz')||f.endsWith('.tar.xz')||f.startsWith('SHA256SUMS'))fs.rmSync('dist/'+f,{force:true})}\"",
|
|
72
82
|
"prepack": "npm run build",
|