@aiyiran/myclaw 1.1.207 → 1.1.209
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/index.js +11 -0
- package/injects/inject-minimax.js +1 -1
- package/injects/inject-zai.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1718,6 +1718,17 @@ const MENU_ITEMS = [
|
|
|
1718
1718
|
];
|
|
1719
1719
|
|
|
1720
1720
|
function runInteractiveMenu() {
|
|
1721
|
+
// 网页命令面板、管道和后台任务没有真实 TTY,stdin 因此不提供
|
|
1722
|
+
// setRawMode()。这类环境无法使用方向键菜单,直接给出可执行的命令提示,
|
|
1723
|
+
// 避免无参数调用 `myclaw` 时抛出 TypeError。
|
|
1724
|
+
if (!process.stdin.isTTY || typeof process.stdin.setRawMode !== 'function') {
|
|
1725
|
+
console.error('[' + colors.yellow + '提示' + colors.nc + '] 当前环境不是交互式终端,无法打开快捷菜单。');
|
|
1726
|
+
console.error('请直接输入完整命令,例如: mc up');
|
|
1727
|
+
showHelp();
|
|
1728
|
+
process.exitCode = 1;
|
|
1729
|
+
return;
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1721
1732
|
let cursor = 0;
|
|
1722
1733
|
let handler = null;
|
|
1723
1734
|
let resizeHandler = null;
|
|
@@ -30,7 +30,7 @@ const PROVIDER_ID = "minimax";
|
|
|
30
30
|
const DEFAULT_MODEL = "minimax/MiniMax-M2.7-highspeed";
|
|
31
31
|
|
|
32
32
|
// ── zai (智谱 GLM) 配置:仅 --beta 模式下附带注入 ──
|
|
33
|
-
const DEFAULT_ZAI_KEY = "
|
|
33
|
+
const DEFAULT_ZAI_KEY = "7b97a7f64d7c4ee98944604fb7772f8f.OrCZmBH16CGAOLtr";
|
|
34
34
|
const ZAI_BETA_MODELS = [
|
|
35
35
|
{
|
|
36
36
|
id: "glm-5.2",
|
package/injects/inject-zai.js
CHANGED
|
@@ -17,7 +17,7 @@ const fs = require('fs');
|
|
|
17
17
|
const path = require('path');
|
|
18
18
|
const os = require('os');
|
|
19
19
|
|
|
20
|
-
const DEFAULT_ZAI_KEY = "
|
|
20
|
+
const DEFAULT_ZAI_KEY = "7b97a7f64d7c4ee98944604fb7772f8f.OrCZmBH16CGAOLtr";
|
|
21
21
|
|
|
22
22
|
const PROVIDER_ID = "zai";
|
|
23
23
|
const DEFAULT_MODEL = "zai/glm-5.2";
|