@aiyiran/myclaw 1.1.13 → 1.1.14
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/gateway.js
CHANGED
|
@@ -135,7 +135,7 @@ function start() {
|
|
|
135
135
|
stdio: 'ignore', shell: true,
|
|
136
136
|
});
|
|
137
137
|
} else {
|
|
138
|
-
execSync('nohup openclaw gateway > /tmp/openclaw-gateway.log 2>&1 &', {
|
|
138
|
+
execSync('nohup openclaw gateway run > /tmp/openclaw-gateway.log 2>&1 &', {
|
|
139
139
|
stdio: 'ignore', shell: true,
|
|
140
140
|
});
|
|
141
141
|
}
|
|
@@ -143,6 +143,16 @@ function start() {
|
|
|
143
143
|
// 等待启动完成
|
|
144
144
|
execSync(isWin ? 'timeout /t 3 /nobreak >nul' : 'sleep 3', { stdio: 'ignore' });
|
|
145
145
|
|
|
146
|
+
// 注册 LaunchAgent(仅 macOS,Docker/Linux 无 systemd 跳过)
|
|
147
|
+
if (process.platform === 'darwin') {
|
|
148
|
+
try {
|
|
149
|
+
execSync('openclaw gateway install', { stdio: 'pipe', timeout: 10000 });
|
|
150
|
+
console.log('[守卫] ' + colors.green + 'LaunchAgent 已注册' + colors.nc);
|
|
151
|
+
} catch (err) {
|
|
152
|
+
console.log('[守卫] ' + colors.yellow + '注册失败: ' + (err.message || err) + colors.nc);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
146
156
|
// 健康检查
|
|
147
157
|
try {
|
|
148
158
|
execSync('openclaw health', { stdio: 'pipe', timeout: 5000 });
|
package/injects/inject-image.js
CHANGED
|
@@ -43,11 +43,6 @@ function run(cliArgs) {
|
|
|
43
43
|
if (!config.agents) config.agents = {};
|
|
44
44
|
if (!config.agents.defaults) config.agents.defaults = {};
|
|
45
45
|
|
|
46
|
-
// 覆盖图像生成模型
|
|
47
|
-
config.agents.defaults.imageGenerationModel = {
|
|
48
|
-
primary: "openai/nano-banana-2-0.5k"
|
|
49
|
-
};
|
|
50
|
-
|
|
51
46
|
if (!config.agents.defaults.models) config.agents.defaults.models = {};
|
|
52
47
|
|
|
53
48
|
// 清理残留的 nano-banana 模型配置(如果有)
|
|
@@ -62,11 +57,9 @@ function run(cliArgs) {
|
|
|
62
57
|
// 验证写入
|
|
63
58
|
const verify = readConfig();
|
|
64
59
|
const writtenProviderUrl = verify.config.models?.providers?.openai?.baseUrl || '???';
|
|
65
|
-
const writtenImageDefault = verify.config.agents?.defaults?.imageGenerationModel?.primary || '???';
|
|
66
60
|
|
|
67
61
|
console.log('✅ 图像配置已注入');
|
|
68
62
|
console.log(' [验证] openai baseUrl: ' + writtenProviderUrl);
|
|
69
|
-
console.log(' [验证] image primary: ' + writtenImageDefault);
|
|
70
63
|
console.log('');
|
|
71
64
|
}
|
|
72
65
|
|
package/package.json
CHANGED
|
@@ -148,11 +148,6 @@ config.agents.defaults.model = {
|
|
|
148
148
|
primary: "minimax/MiniMax-M2.7-highspeed"
|
|
149
149
|
};
|
|
150
150
|
|
|
151
|
-
// 图片模型: 覆盖注入(myclaw image 和 myclaw minimax 互相覆盖)
|
|
152
|
-
config.agents.defaults.imageGenerationModel = {
|
|
153
|
-
primary: "minimax/image-01"
|
|
154
|
-
};
|
|
155
|
-
|
|
156
151
|
// 白名单: 增量添加
|
|
157
152
|
if (!config.agents.defaults.models) config.agents.defaults.models = {};
|
|
158
153
|
config.agents.defaults.models["minimax/MiniMax-M2.7-highspeed"] = {};
|