@bytevion/cli 0.5.0 → 0.5.1
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/compare.js +38 -3
- package/dist/lib/home.js +7 -1
- package/oclif.manifest.json +150 -150
- package/package.json +1 -1
package/dist/commands/compare.js
CHANGED
|
@@ -41,6 +41,42 @@ const num = (v) => (typeof v === 'number' && Number.isFinite(v) ? v : Number(v)
|
|
|
41
41
|
const usd = (v) => `$${num(v).toFixed(6)}`;
|
|
42
42
|
const tokensOf = (m) => num(m?.tokens_in) + num(m?.tokens_out);
|
|
43
43
|
const pad = (s, n) => s.padEnd(n);
|
|
44
|
+
const QUALITY_PASS = new Set(['quality_held', 'quality_improved', 'passed_verification']);
|
|
45
|
+
// The gateway scores each lane's quality in isolation; a soft "failed_verification" means
|
|
46
|
+
// an automated claim check was inconclusive, not that the answer is wrong or worse than
|
|
47
|
+
// direct. Render it as unverified rather than a scary raw state.
|
|
48
|
+
const qualityLabel = (s) => {
|
|
49
|
+
switch (s) {
|
|
50
|
+
case 'quality_held':
|
|
51
|
+
case 'quality_improved':
|
|
52
|
+
case 'passed_verification':
|
|
53
|
+
return 'held';
|
|
54
|
+
case 'failed_verification':
|
|
55
|
+
return 'unverified (auto-check inconclusive)';
|
|
56
|
+
case 'review':
|
|
57
|
+
return 'needs review';
|
|
58
|
+
case 'failed_guard':
|
|
59
|
+
return 'failed — output unusable';
|
|
60
|
+
case 'not_measured':
|
|
61
|
+
return 'not measured';
|
|
62
|
+
default:
|
|
63
|
+
return s;
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
const verdictLine = (dominance, quality, savingsPct, latencySaved) => {
|
|
67
|
+
const cheaper = savingsPct > 0;
|
|
68
|
+
const faster = latencySaved > 0;
|
|
69
|
+
const held = QUALITY_PASS.has(quality);
|
|
70
|
+
if (dominance === 'dominant')
|
|
71
|
+
return ui.theme.ok('Byte wins — cheaper, faster, quality held');
|
|
72
|
+
if (dominance === 'regressed')
|
|
73
|
+
return ui.theme.bad('Regressed — direct was the better choice here');
|
|
74
|
+
if (cheaper || faster) {
|
|
75
|
+
const wins = [cheaper ? `${savingsPct.toFixed(0)}% cheaper` : '', faster ? `${Math.abs(latencySaved)}ms faster` : ''].filter(Boolean).join(', ');
|
|
76
|
+
return ui.theme.ok(`Byte wins — ${wins}`) + (held ? '' : ui.theme.muted(' · quality unverified'));
|
|
77
|
+
}
|
|
78
|
+
return ui.theme.muted('Neutral — no clear difference');
|
|
79
|
+
};
|
|
44
80
|
class Compare extends base_1.BaseCommand {
|
|
45
81
|
static description = 'Prove the win: run a prompt direct vs through Byte and compare cost, latency, and quality.';
|
|
46
82
|
static examples = [
|
|
@@ -94,9 +130,8 @@ class Compare extends base_1.BaseCommand {
|
|
|
94
130
|
const sign = latencySaved >= 0 ? '−' : '+';
|
|
95
131
|
this.log(` Savings ${usd(savings)} (${savingsPct.toFixed(1)}%)`);
|
|
96
132
|
this.log(` Latency ${sign}${Math.abs(latencySaved)} ms`);
|
|
97
|
-
this.log(` Quality ${quality}`);
|
|
98
|
-
|
|
99
|
-
this.log(` Verdict ${verdict}`);
|
|
133
|
+
this.log(` Quality ${qualityLabel(quality)}`);
|
|
134
|
+
this.log(` Verdict ${verdictLine(dominance, quality, savingsPct, latencySaved)}`);
|
|
100
135
|
this.log('');
|
|
101
136
|
return { direct, byte, summary };
|
|
102
137
|
}
|
package/dist/lib/home.js
CHANGED
|
@@ -68,7 +68,13 @@ async function loadHomeData(api, byteKey, fallbackId) {
|
|
|
68
68
|
providers: conns.length || undefined,
|
|
69
69
|
models: models || undefined,
|
|
70
70
|
byteKey,
|
|
71
|
-
|
|
71
|
+
// The control plane reports a ready gateway as status:"ready" (and mirrors it in
|
|
72
|
+
// health.gateway). Accept "ready"/"ok"/ok so a healthy gateway is never shown as down.
|
|
73
|
+
gateway: health
|
|
74
|
+
? health.status === 'ready' || health.status === 'ok' || health.gateway === 'ready' || health.gateway === 'ok' || health.ok
|
|
75
|
+
? 'healthy'
|
|
76
|
+
: 'down'
|
|
77
|
+
: 'unknown',
|
|
72
78
|
savingsSeries: series.map((p) => num(p.savings_usd)),
|
|
73
79
|
savedTotal: series.reduce((a, p) => a + num(p.savings_usd), 0),
|
|
74
80
|
tokensTotal: series.reduce((a, p) => a + num(p.tokens_in) + num(p.tokens_out), 0),
|
package/oclif.manifest.json
CHANGED
|
@@ -1620,23 +1620,14 @@
|
|
|
1620
1620
|
"test.js"
|
|
1621
1621
|
]
|
|
1622
1622
|
},
|
|
1623
|
-
"
|
|
1623
|
+
"providers:add": {
|
|
1624
1624
|
"aliases": [],
|
|
1625
|
-
"args": {
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
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).",
|
|
1625
|
+
"args": {},
|
|
1626
|
+
"description": "Connect an upstream provider key (BYOK). Byte stores it encrypted and imports models.",
|
|
1627
|
+
"examples": [
|
|
1628
|
+
"<%= config.bin %> providers add --provider deepseek --api-key sk-...",
|
|
1629
|
+
"<%= config.bin %> providers add --provider custom --provider-base-url https://api.example.com/v1 --api-key ..."
|
|
1630
|
+
],
|
|
1640
1631
|
"flags": {
|
|
1641
1632
|
"json": {
|
|
1642
1633
|
"description": "Format output as json.",
|
|
@@ -1660,11 +1651,53 @@
|
|
|
1660
1651
|
"hasDynamicHelp": false,
|
|
1661
1652
|
"multiple": false,
|
|
1662
1653
|
"type": "option"
|
|
1654
|
+
},
|
|
1655
|
+
"provider": {
|
|
1656
|
+
"description": "Provider preset id (openai, deepseek, anthropic, …)",
|
|
1657
|
+
"name": "provider",
|
|
1658
|
+
"hasDynamicHelp": false,
|
|
1659
|
+
"multiple": false,
|
|
1660
|
+
"type": "option"
|
|
1661
|
+
},
|
|
1662
|
+
"api-key": {
|
|
1663
|
+
"description": "Upstream provider API key",
|
|
1664
|
+
"env": "BYTE_PROVIDER_KEY",
|
|
1665
|
+
"name": "api-key",
|
|
1666
|
+
"hasDynamicHelp": false,
|
|
1667
|
+
"multiple": false,
|
|
1668
|
+
"type": "option"
|
|
1669
|
+
},
|
|
1670
|
+
"provider-base-url": {
|
|
1671
|
+
"description": "Custom base URL (for --provider custom or to override)",
|
|
1672
|
+
"name": "provider-base-url",
|
|
1673
|
+
"hasDynamicHelp": false,
|
|
1674
|
+
"multiple": false,
|
|
1675
|
+
"type": "option"
|
|
1676
|
+
},
|
|
1677
|
+
"mode": {
|
|
1678
|
+
"description": "Gateway mode (byte_compatible/byte_messages/byte_generative)",
|
|
1679
|
+
"name": "mode",
|
|
1680
|
+
"hasDynamicHelp": false,
|
|
1681
|
+
"multiple": false,
|
|
1682
|
+
"type": "option"
|
|
1683
|
+
},
|
|
1684
|
+
"label": {
|
|
1685
|
+
"description": "Label for this connection",
|
|
1686
|
+
"name": "label",
|
|
1687
|
+
"hasDynamicHelp": false,
|
|
1688
|
+
"multiple": false,
|
|
1689
|
+
"type": "option"
|
|
1690
|
+
},
|
|
1691
|
+
"no-fetch": {
|
|
1692
|
+
"description": "Skip auto-importing the model list",
|
|
1693
|
+
"name": "no-fetch",
|
|
1694
|
+
"allowNo": false,
|
|
1695
|
+
"type": "boolean"
|
|
1663
1696
|
}
|
|
1664
1697
|
},
|
|
1665
1698
|
"hasDynamicHelp": false,
|
|
1666
1699
|
"hiddenAliases": [],
|
|
1667
|
-
"id": "
|
|
1700
|
+
"id": "providers:add",
|
|
1668
1701
|
"pluginAlias": "@bytevion/cli",
|
|
1669
1702
|
"pluginName": "@bytevion/cli",
|
|
1670
1703
|
"pluginType": "core",
|
|
@@ -1674,34 +1707,24 @@
|
|
|
1674
1707
|
"relativePath": [
|
|
1675
1708
|
"dist",
|
|
1676
1709
|
"commands",
|
|
1677
|
-
"
|
|
1678
|
-
"
|
|
1710
|
+
"providers",
|
|
1711
|
+
"add.js"
|
|
1679
1712
|
]
|
|
1680
1713
|
},
|
|
1681
|
-
"
|
|
1714
|
+
"providers:compare": {
|
|
1682
1715
|
"aliases": [],
|
|
1683
1716
|
"args": {
|
|
1684
|
-
"
|
|
1685
|
-
"description": "
|
|
1686
|
-
"name": "
|
|
1687
|
-
"required":
|
|
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
|
|
1717
|
+
"alias": {
|
|
1718
|
+
"description": "Model byte alias (omit when using --all)",
|
|
1719
|
+
"name": "alias",
|
|
1720
|
+
"required": false
|
|
1699
1721
|
}
|
|
1700
1722
|
},
|
|
1701
|
-
"description": "
|
|
1723
|
+
"description": "Enable (or disable) direct-vs-Byte comparison on imported models. Run with --all so `byte compare` works out of the box.",
|
|
1702
1724
|
"examples": [
|
|
1703
|
-
"<%= config.bin %>
|
|
1704
|
-
"<%= config.bin %>
|
|
1725
|
+
"<%= config.bin %> providers compare --all",
|
|
1726
|
+
"<%= config.bin %> providers compare byte-2-deepseek-v4-flash",
|
|
1727
|
+
"<%= config.bin %> providers compare byte-2-deepseek-v4-flash --off"
|
|
1705
1728
|
],
|
|
1706
1729
|
"flags": {
|
|
1707
1730
|
"json": {
|
|
@@ -1726,11 +1749,23 @@
|
|
|
1726
1749
|
"hasDynamicHelp": false,
|
|
1727
1750
|
"multiple": false,
|
|
1728
1751
|
"type": "option"
|
|
1752
|
+
},
|
|
1753
|
+
"all": {
|
|
1754
|
+
"description": "Apply to every priced model in the org",
|
|
1755
|
+
"name": "all",
|
|
1756
|
+
"allowNo": false,
|
|
1757
|
+
"type": "boolean"
|
|
1758
|
+
},
|
|
1759
|
+
"off": {
|
|
1760
|
+
"description": "Disable comparison instead of enabling it",
|
|
1761
|
+
"name": "off",
|
|
1762
|
+
"allowNo": false,
|
|
1763
|
+
"type": "boolean"
|
|
1729
1764
|
}
|
|
1730
1765
|
},
|
|
1731
1766
|
"hasDynamicHelp": false,
|
|
1732
1767
|
"hiddenAliases": [],
|
|
1733
|
-
"id": "
|
|
1768
|
+
"id": "providers:compare",
|
|
1734
1769
|
"pluginAlias": "@bytevion/cli",
|
|
1735
1770
|
"pluginName": "@bytevion/cli",
|
|
1736
1771
|
"pluginType": "core",
|
|
@@ -1740,14 +1775,14 @@
|
|
|
1740
1775
|
"relativePath": [
|
|
1741
1776
|
"dist",
|
|
1742
1777
|
"commands",
|
|
1743
|
-
"
|
|
1744
|
-
"
|
|
1778
|
+
"providers",
|
|
1779
|
+
"compare.js"
|
|
1745
1780
|
]
|
|
1746
1781
|
},
|
|
1747
|
-
"
|
|
1782
|
+
"providers:list": {
|
|
1748
1783
|
"aliases": [],
|
|
1749
1784
|
"args": {},
|
|
1750
|
-
"description": "
|
|
1785
|
+
"description": "List upstream provider connections for the current org.",
|
|
1751
1786
|
"flags": {
|
|
1752
1787
|
"json": {
|
|
1753
1788
|
"description": "Format output as json.",
|
|
@@ -1775,7 +1810,7 @@
|
|
|
1775
1810
|
},
|
|
1776
1811
|
"hasDynamicHelp": false,
|
|
1777
1812
|
"hiddenAliases": [],
|
|
1778
|
-
"id": "
|
|
1813
|
+
"id": "providers:list",
|
|
1779
1814
|
"pluginAlias": "@bytevion/cli",
|
|
1780
1815
|
"pluginName": "@bytevion/cli",
|
|
1781
1816
|
"pluginType": "core",
|
|
@@ -1785,18 +1820,20 @@
|
|
|
1785
1820
|
"relativePath": [
|
|
1786
1821
|
"dist",
|
|
1787
1822
|
"commands",
|
|
1788
|
-
"
|
|
1789
|
-
"
|
|
1823
|
+
"providers",
|
|
1824
|
+
"list.js"
|
|
1790
1825
|
]
|
|
1791
1826
|
},
|
|
1792
|
-
"providers:
|
|
1827
|
+
"providers:rotate": {
|
|
1793
1828
|
"aliases": [],
|
|
1794
|
-
"args": {
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1829
|
+
"args": {
|
|
1830
|
+
"id": {
|
|
1831
|
+
"description": "Connection id (see `byte providers list`)",
|
|
1832
|
+
"name": "id",
|
|
1833
|
+
"required": true
|
|
1834
|
+
}
|
|
1835
|
+
},
|
|
1836
|
+
"description": "Replace the upstream API key on a provider connection (keeps imported models).",
|
|
1800
1837
|
"flags": {
|
|
1801
1838
|
"json": {
|
|
1802
1839
|
"description": "Format output as json.",
|
|
@@ -1821,52 +1858,18 @@
|
|
|
1821
1858
|
"multiple": false,
|
|
1822
1859
|
"type": "option"
|
|
1823
1860
|
},
|
|
1824
|
-
"provider": {
|
|
1825
|
-
"description": "Provider preset id (openai, deepseek, anthropic, …)",
|
|
1826
|
-
"name": "provider",
|
|
1827
|
-
"hasDynamicHelp": false,
|
|
1828
|
-
"multiple": false,
|
|
1829
|
-
"type": "option"
|
|
1830
|
-
},
|
|
1831
1861
|
"api-key": {
|
|
1832
|
-
"description": "
|
|
1862
|
+
"description": "New upstream provider API key",
|
|
1833
1863
|
"env": "BYTE_PROVIDER_KEY",
|
|
1834
1864
|
"name": "api-key",
|
|
1835
1865
|
"hasDynamicHelp": false,
|
|
1836
1866
|
"multiple": false,
|
|
1837
1867
|
"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
1868
|
}
|
|
1866
1869
|
},
|
|
1867
1870
|
"hasDynamicHelp": false,
|
|
1868
1871
|
"hiddenAliases": [],
|
|
1869
|
-
"id": "providers:
|
|
1872
|
+
"id": "providers:rotate",
|
|
1870
1873
|
"pluginAlias": "@bytevion/cli",
|
|
1871
1874
|
"pluginName": "@bytevion/cli",
|
|
1872
1875
|
"pluginType": "core",
|
|
@@ -1877,24 +1880,19 @@
|
|
|
1877
1880
|
"dist",
|
|
1878
1881
|
"commands",
|
|
1879
1882
|
"providers",
|
|
1880
|
-
"
|
|
1883
|
+
"rotate.js"
|
|
1881
1884
|
]
|
|
1882
1885
|
},
|
|
1883
|
-
"providers:
|
|
1886
|
+
"providers:test": {
|
|
1884
1887
|
"aliases": [],
|
|
1885
1888
|
"args": {
|
|
1886
|
-
"
|
|
1887
|
-
"description": "
|
|
1888
|
-
"name": "
|
|
1889
|
-
"required":
|
|
1889
|
+
"id": {
|
|
1890
|
+
"description": "Connection id (see `byte providers list`)",
|
|
1891
|
+
"name": "id",
|
|
1892
|
+
"required": true
|
|
1890
1893
|
}
|
|
1891
1894
|
},
|
|
1892
|
-
"description": "
|
|
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
|
-
],
|
|
1895
|
+
"description": "Verify a provider connection by re-fetching its model list.",
|
|
1898
1896
|
"flags": {
|
|
1899
1897
|
"json": {
|
|
1900
1898
|
"description": "Format output as json.",
|
|
@@ -1918,23 +1916,11 @@
|
|
|
1918
1916
|
"hasDynamicHelp": false,
|
|
1919
1917
|
"multiple": false,
|
|
1920
1918
|
"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"
|
|
1933
1919
|
}
|
|
1934
1920
|
},
|
|
1935
1921
|
"hasDynamicHelp": false,
|
|
1936
1922
|
"hiddenAliases": [],
|
|
1937
|
-
"id": "providers:
|
|
1923
|
+
"id": "providers:test",
|
|
1938
1924
|
"pluginAlias": "@bytevion/cli",
|
|
1939
1925
|
"pluginName": "@bytevion/cli",
|
|
1940
1926
|
"pluginType": "core",
|
|
@@ -1945,13 +1931,26 @@
|
|
|
1945
1931
|
"dist",
|
|
1946
1932
|
"commands",
|
|
1947
1933
|
"providers",
|
|
1948
|
-
"
|
|
1934
|
+
"test.js"
|
|
1949
1935
|
]
|
|
1950
1936
|
},
|
|
1951
|
-
"
|
|
1937
|
+
"opt:preset": {
|
|
1952
1938
|
"aliases": [],
|
|
1953
|
-
"args": {
|
|
1954
|
-
|
|
1939
|
+
"args": {
|
|
1940
|
+
"preset": {
|
|
1941
|
+
"description": "Mode to apply",
|
|
1942
|
+
"name": "preset",
|
|
1943
|
+
"options": [
|
|
1944
|
+
"maximum",
|
|
1945
|
+
"max_savings",
|
|
1946
|
+
"balanced",
|
|
1947
|
+
"lowest_latency",
|
|
1948
|
+
"reliability_first"
|
|
1949
|
+
],
|
|
1950
|
+
"required": true
|
|
1951
|
+
}
|
|
1952
|
+
},
|
|
1953
|
+
"description": "Apply an optimization mode for the whole org (maximum, balanced, max_savings, lowest_latency, reliability_first).",
|
|
1955
1954
|
"flags": {
|
|
1956
1955
|
"json": {
|
|
1957
1956
|
"description": "Format output as json.",
|
|
@@ -1979,7 +1978,7 @@
|
|
|
1979
1978
|
},
|
|
1980
1979
|
"hasDynamicHelp": false,
|
|
1981
1980
|
"hiddenAliases": [],
|
|
1982
|
-
"id": "
|
|
1981
|
+
"id": "opt:preset",
|
|
1983
1982
|
"pluginAlias": "@bytevion/cli",
|
|
1984
1983
|
"pluginName": "@bytevion/cli",
|
|
1985
1984
|
"pluginType": "core",
|
|
@@ -1989,20 +1988,35 @@
|
|
|
1989
1988
|
"relativePath": [
|
|
1990
1989
|
"dist",
|
|
1991
1990
|
"commands",
|
|
1992
|
-
"
|
|
1993
|
-
"
|
|
1991
|
+
"opt",
|
|
1992
|
+
"preset.js"
|
|
1994
1993
|
]
|
|
1995
1994
|
},
|
|
1996
|
-
"
|
|
1995
|
+
"opt:set": {
|
|
1997
1996
|
"aliases": [],
|
|
1998
1997
|
"args": {
|
|
1999
|
-
"
|
|
2000
|
-
"description": "
|
|
2001
|
-
"name": "
|
|
1998
|
+
"flag": {
|
|
1999
|
+
"description": "Optimization field name",
|
|
2000
|
+
"name": "flag",
|
|
2001
|
+
"required": true
|
|
2002
|
+
},
|
|
2003
|
+
"value": {
|
|
2004
|
+
"description": "on or off",
|
|
2005
|
+
"name": "value",
|
|
2006
|
+
"options": [
|
|
2007
|
+
"on",
|
|
2008
|
+
"off",
|
|
2009
|
+
"true",
|
|
2010
|
+
"false"
|
|
2011
|
+
],
|
|
2002
2012
|
"required": true
|
|
2003
2013
|
}
|
|
2004
2014
|
},
|
|
2005
|
-
"description": "
|
|
2015
|
+
"description": "Toggle a single optimization layer on or off. See field names with `byte opt show --json`.",
|
|
2016
|
+
"examples": [
|
|
2017
|
+
"<%= config.bin %> opt set compression_enabled off",
|
|
2018
|
+
"<%= config.bin %> opt set response_cache_enabled on"
|
|
2019
|
+
],
|
|
2006
2020
|
"flags": {
|
|
2007
2021
|
"json": {
|
|
2008
2022
|
"description": "Format output as json.",
|
|
@@ -2026,19 +2040,11 @@
|
|
|
2026
2040
|
"hasDynamicHelp": false,
|
|
2027
2041
|
"multiple": false,
|
|
2028
2042
|
"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
2043
|
}
|
|
2038
2044
|
},
|
|
2039
2045
|
"hasDynamicHelp": false,
|
|
2040
2046
|
"hiddenAliases": [],
|
|
2041
|
-
"id": "
|
|
2047
|
+
"id": "opt:set",
|
|
2042
2048
|
"pluginAlias": "@bytevion/cli",
|
|
2043
2049
|
"pluginName": "@bytevion/cli",
|
|
2044
2050
|
"pluginType": "core",
|
|
@@ -2048,20 +2054,14 @@
|
|
|
2048
2054
|
"relativePath": [
|
|
2049
2055
|
"dist",
|
|
2050
2056
|
"commands",
|
|
2051
|
-
"
|
|
2052
|
-
"
|
|
2057
|
+
"opt",
|
|
2058
|
+
"set.js"
|
|
2053
2059
|
]
|
|
2054
2060
|
},
|
|
2055
|
-
"
|
|
2061
|
+
"opt:show": {
|
|
2056
2062
|
"aliases": [],
|
|
2057
|
-
"args": {
|
|
2058
|
-
|
|
2059
|
-
"description": "Connection id (see `byte providers list`)",
|
|
2060
|
-
"name": "id",
|
|
2061
|
-
"required": true
|
|
2062
|
-
}
|
|
2063
|
-
},
|
|
2064
|
-
"description": "Verify a provider connection by re-fetching its model list.",
|
|
2063
|
+
"args": {},
|
|
2064
|
+
"description": "Show the current optimization mode and every layer running on your requests.",
|
|
2065
2065
|
"flags": {
|
|
2066
2066
|
"json": {
|
|
2067
2067
|
"description": "Format output as json.",
|
|
@@ -2089,7 +2089,7 @@
|
|
|
2089
2089
|
},
|
|
2090
2090
|
"hasDynamicHelp": false,
|
|
2091
2091
|
"hiddenAliases": [],
|
|
2092
|
-
"id": "
|
|
2092
|
+
"id": "opt:show",
|
|
2093
2093
|
"pluginAlias": "@bytevion/cli",
|
|
2094
2094
|
"pluginName": "@bytevion/cli",
|
|
2095
2095
|
"pluginType": "core",
|
|
@@ -2099,8 +2099,8 @@
|
|
|
2099
2099
|
"relativePath": [
|
|
2100
2100
|
"dist",
|
|
2101
2101
|
"commands",
|
|
2102
|
-
"
|
|
2103
|
-
"
|
|
2102
|
+
"opt",
|
|
2103
|
+
"show.js"
|
|
2104
2104
|
]
|
|
2105
2105
|
},
|
|
2106
2106
|
"sessions": {
|
|
@@ -2200,5 +2200,5 @@
|
|
|
2200
2200
|
]
|
|
2201
2201
|
}
|
|
2202
2202
|
},
|
|
2203
|
-
"version": "0.5.
|
|
2203
|
+
"version": "0.5.1"
|
|
2204
2204
|
}
|