输出诊断日志到 stderr(stdout 保留给 JSON-RPC)
(msg: str)
| 59 | |
| 60 | |
| 61 | def log(msg: str): |
| 62 | """输出诊断日志到 stderr(stdout 保留给 JSON-RPC)""" |
| 63 | ts = datetime.now().strftime("%H:%M:%S") |
| 64 | print(f"[{ts}] [AHP-Server] {msg}", file=sys.stderr, flush=True) |
| 65 | |
| 66 | |
| 67 | PRE_TOOL_PROMPT = """\ |
no outgoing calls
no test coverage detected