chaimi-keep-mcp 3.3.1-beta.2 → 3.3.1-beta.3
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/cli.js +8 -21
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -294,31 +294,18 @@ function configureAllAgents() {
|
|
|
294
294
|
*/
|
|
295
295
|
function showWelcome() {
|
|
296
296
|
const ver = CURRENT_VERSION;
|
|
297
|
-
const title = `柴米记账 MCP Server v${ver}`;
|
|
298
|
-
const pad = (76 - getDisplayWidth(title)) / 2;
|
|
299
|
-
const leftPad = ' '.repeat(Math.floor(pad));
|
|
300
|
-
const rightPad = ' '.repeat(Math.ceil(pad));
|
|
301
297
|
|
|
302
|
-
console.error('
|
|
303
|
-
console.error('
|
|
304
|
-
console.error(
|
|
305
|
-
console.error('
|
|
306
|
-
console.error('
|
|
307
|
-
console.error('
|
|
308
|
-
console.error('
|
|
309
|
-
console.error('
|
|
298
|
+
console.error('+--------------------------------------------------------+');
|
|
299
|
+
console.error('| |');
|
|
300
|
+
console.error(`| 柴米记账 MCP Server v${ver} |`);
|
|
301
|
+
console.error('| |');
|
|
302
|
+
console.error('| 支持: OpenClaw/hermes/WorkBuddy 等国产小龙虾 |');
|
|
303
|
+
console.error('| Claude/Cursor 等支持 MCP 的 Agent |');
|
|
304
|
+
console.error('| |');
|
|
305
|
+
console.error('+--------------------------------------------------------+');
|
|
310
306
|
console.error('');
|
|
311
307
|
}
|
|
312
308
|
|
|
313
|
-
// 计算字符串显示宽度(中文字符=2,英文=1)
|
|
314
|
-
function getDisplayWidth(str) {
|
|
315
|
-
let width = 0;
|
|
316
|
-
for (const char of str) {
|
|
317
|
-
width += (char.charCodeAt(0) > 127) ? 2 : 1;
|
|
318
|
-
}
|
|
319
|
-
return width;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
309
|
// 主程序
|
|
323
310
|
showWelcome();
|
|
324
311
|
configureAllAgents();
|