Description
工作区目录会生成多个 verify_facts[x].py 文件 [x]是不同数字
其中一个文件内容如下:
import sqlite3
import json
conn = sqlite3.connect(r'C:\Users\56841.local\share\mimocode\mimocode.db')
c = conn.cursor()
Search user parts for rules and directives
keywords = ["不要", "永远", "必须", "记住", "规则", "always", "never", "remember", "rule"]
for kw in keywords:
c.execute("""
SELECT p.session_id, substr(json_extract(p.data, '$.text'), 1, 300)
FROM part p
JOIN message m ON m.id = p.message_id
WHERE json_extract(m.data, '$.role') = 'user'
AND json_extract(p.data, '$.type') = 'text'
AND json_extract(p.data, '$.text') LIKE ?
LIMIT 5
""", (f'%{kw}%',))
results = c.fetchall()
if results:
print(f"\n=== Keyword: {kw} ===")
for r in results:
print(f" [{r[0]}] {r[1][:300]}")
Search for tool calls that wrote files (to verify code changes)
print("\n=== File writes ===")
c.execute("""
SELECT p.session_id, json_extract(p.data, '$.tool'), substr(json_extract(p.data, '$.state'), 1, 300)
FROM part p
WHERE json_extract(p.data, '$.type') = 'tool'
AND json_extract(p.data, '$.tool') IN ('write', 'edit')
ORDER BY p.time_created DESC
LIMIT 10
""")
for r in c.fetchall():
print(f" [{r[0]}] tool={r[1]} state={r[2][:300]}")
conn.close()
Plugins
none
MiMoCode version
0.1.3
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
Description
工作区目录会生成多个 verify_facts[x].py 文件 [x]是不同数字
其中一个文件内容如下:
import sqlite3
import json
conn = sqlite3.connect(r'C:\Users\56841.local\share\mimocode\mimocode.db')
c = conn.cursor()
Search user parts for rules and directives
keywords = ["不要", "永远", "必须", "记住", "规则", "always", "never", "remember", "rule"]
for kw in keywords:
c.execute("""
SELECT p.session_id, substr(json_extract(p.data, '$.text'), 1, 300)
FROM part p
JOIN message m ON m.id = p.message_id
WHERE json_extract(m.data, '$.role') = 'user'
AND json_extract(p.data, '$.type') = 'text'
AND json_extract(p.data, '$.text') LIKE ?
LIMIT 5
""", (f'%{kw}%',))
results = c.fetchall()
if results:
print(f"\n=== Keyword: {kw} ===")
for r in results:
print(f" [{r[0]}] {r[1][:300]}")
Search for tool calls that wrote files (to verify code changes)
print("\n=== File writes ===")
c.execute("""
SELECT p.session_id, json_extract(p.data, '$.tool'), substr(json_extract(p.data, '$.state'), 1, 300)
FROM part p
WHERE json_extract(p.data, '$.type') = 'tool'
AND json_extract(p.data, '$.tool') IN ('write', 'edit')
ORDER BY p.time_created DESC
LIMIT 10
""")
for r in c.fetchall():
print(f" [{r[0]}] tool={r[1]} state={r[2][:300]}")
conn.close()
Plugins
none
MiMoCode version
0.1.3
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response