fix: 品牌保护+知识库全量覆盖 - 6层防御解决传销问题 + 30+产品关键词补全
This commit is contained in:
29
mcp-server-ssh/check_voice_issue.cjs
Normal file
29
mcp-server-ssh/check_voice_issue.cjs
Normal file
@@ -0,0 +1,29 @@
|
||||
const { Client } = require('ssh2');
|
||||
const c = new Client();
|
||||
c.on('ready', () => {
|
||||
const cmd = [
|
||||
"echo '=== LAST SESSION VOICE LOGS ==='",
|
||||
"LAST_SID=$(grep 'upstream ready' /var/log/bigwo/server-out.log | tail -1 | grep -oP 'session=\\K[^ ]+')",
|
||||
"echo \"Last session: $LAST_SID\"",
|
||||
"grep \"$LAST_SID\" /var/log/bigwo/server-out.log | grep -v 'partial' | tail -40",
|
||||
"echo ''",
|
||||
"echo '=== START SESSION PAYLOAD EVIDENCE ==='",
|
||||
"grep -E 'buildStartSession|StartSession|model.*version|modelVersion|system_role' /var/log/bigwo/server-out.log | tail -10",
|
||||
"echo ''",
|
||||
"echo '=== UPSTREAM ASSISTANT TEXT ==='",
|
||||
"grep 'upstream assistant' /var/log/bigwo/server-out.log | tail -10",
|
||||
"echo ''",
|
||||
"echo '=== 旅游/江西 RELATED ==='",
|
||||
"grep -i '旅游\\|江西\\|景点' /var/log/bigwo/server-out.log | tail -10",
|
||||
"echo ''",
|
||||
"echo '=== processReply LOGS ==='",
|
||||
"grep 'processReply' /var/log/bigwo/server-out.log | tail -15",
|
||||
].join(' && ');
|
||||
c.exec(cmd, (err, s) => {
|
||||
if (err) { console.error(err); c.end(); return; }
|
||||
let o = '';
|
||||
s.on('data', (d) => (o += d));
|
||||
s.stderr.on('data', (d) => (o += d));
|
||||
s.on('close', () => { console.log(o); c.end(); });
|
||||
});
|
||||
}).connect({ host: '119.45.10.34', port: 22, username: 'root', password: '#xyzh%CS#2512@28' });
|
||||
Reference in New Issue
Block a user