yymaxapi 1.0.7 → 1.0.8
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/yymaxapi.js +16 -16
- package/package.json +1 -1
package/bin/yymaxapi.js
CHANGED
|
@@ -1507,8 +1507,8 @@ async function presetClaude(paths, args = {}) {
|
|
|
1507
1507
|
name: 'selectedIndex',
|
|
1508
1508
|
message: '选择节点:',
|
|
1509
1509
|
choices: [
|
|
1510
|
-
{ name:
|
|
1511
|
-
new inquirer.Separator('
|
|
1510
|
+
{ name: `* 使用推荐节点 (${sorted[0].name}, ${sorted[0].latency}ms, 评分:${sorted[0].score})`, value: -1 },
|
|
1511
|
+
new inquirer.Separator(' ---- 或手动选择 ----'),
|
|
1512
1512
|
...sorted.map((e, i) => ({
|
|
1513
1513
|
name: `${e.name} - ${e.latency}ms (评分:${e.score})`,
|
|
1514
1514
|
value: i
|
|
@@ -1701,8 +1701,8 @@ async function presetCodex(paths, args = {}) {
|
|
|
1701
1701
|
name: 'selectedIndex',
|
|
1702
1702
|
message: '选择节点:',
|
|
1703
1703
|
choices: [
|
|
1704
|
-
{ name:
|
|
1705
|
-
new inquirer.Separator('
|
|
1704
|
+
{ name: `* 使用推荐节点 (${sorted[0].name}, ${sorted[0].latency}ms, 评分:${sorted[0].score})`, value: -1 },
|
|
1705
|
+
new inquirer.Separator(' ---- 或手动选择 ----'),
|
|
1706
1706
|
...sorted.map((e, i) => ({
|
|
1707
1707
|
name: `${e.name} - ${e.latency}ms (评分:${e.score})`,
|
|
1708
1708
|
value: i
|
|
@@ -1917,17 +1917,17 @@ async function main() {
|
|
|
1917
1917
|
pageSize: 10,
|
|
1918
1918
|
loop: false,
|
|
1919
1919
|
choices: [
|
|
1920
|
-
new inquirer.Separator(
|
|
1921
|
-
{ name: '
|
|
1922
|
-
{ name: '
|
|
1923
|
-
new inquirer.Separator(
|
|
1924
|
-
{ name: '
|
|
1925
|
-
{ name: '
|
|
1926
|
-
{ name: '
|
|
1927
|
-
new inquirer.Separator(
|
|
1928
|
-
{ name: '
|
|
1920
|
+
new inquirer.Separator(' -- 配置模型 --'),
|
|
1921
|
+
{ name: ' 激活 Claude', value: 'activate_claude' },
|
|
1922
|
+
{ name: ' 激活 Codex (GPT)', value: 'activate_codex' },
|
|
1923
|
+
new inquirer.Separator(' -- 工具 --'),
|
|
1924
|
+
{ name: ' 测试连接', value: 'test_connection' },
|
|
1925
|
+
{ name: ' 查看配置', value: 'view_config' },
|
|
1926
|
+
{ name: ' 恢复默认', value: 'restore' },
|
|
1927
|
+
new inquirer.Separator(' -- 安装 --'),
|
|
1928
|
+
{ name: ' 安装/更新 OpenClaw', value: 'install_openclaw' },
|
|
1929
1929
|
new inquirer.Separator(''),
|
|
1930
|
-
{ name:
|
|
1930
|
+
{ name: ' 退出', value: 'exit' }
|
|
1931
1931
|
]
|
|
1932
1932
|
}]);
|
|
1933
1933
|
|
|
@@ -2029,8 +2029,8 @@ async function selectNode(paths, type) {
|
|
|
2029
2029
|
name: 'selectedIndex',
|
|
2030
2030
|
message: '选择节点:',
|
|
2031
2031
|
choices: [
|
|
2032
|
-
{ name:
|
|
2033
|
-
new inquirer.Separator('
|
|
2032
|
+
{ name: `* 使用推荐节点 (${sorted[0].name}, 评分:${sorted[0].score})`, value: -1 },
|
|
2033
|
+
new inquirer.Separator(' ---- 或手动选择 ----'),
|
|
2034
2034
|
...sorted.map((e, i) => ({
|
|
2035
2035
|
name: `${e.name} - ${e.latency}ms (评分:${e.score})`,
|
|
2036
2036
|
value: i
|