mirror of
https://ghfast.top/https://github.com/aeroxw/tick-stock-panel.git
synced 2026-09-12 15:34:16 +08:00
chore: drop probe debug instrumentation and ignore probe artifacts
Keep the Phase 1 CLI production-clean; local probe reports and debug NDJSON stay out of git. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -92,6 +92,8 @@ data/strategies/custom/
|
||||
backend._recheck*.py
|
||||
backend/_verify*.py
|
||||
backend/_desktop_run.log
|
||||
reports/tickflow_pro_probe/
|
||||
.cursor/debug-*.log
|
||||
|
||||
# ===== 打包产物 (本地构建的安装包,不入库) =====
|
||||
backend/TickFlowStockPanel-win-x64.zip
|
||||
|
||||
@@ -176,28 +176,6 @@ def main(argv: list[str] | None = None) -> int:
|
||||
dry_run = not args.live
|
||||
has_key = bool(os.environ.get("TICKFLOW_API_KEY", "").strip())
|
||||
gate = evaluate_gate(dry_run=dry_run, force=args.force, has_key=has_key)
|
||||
# #region agent log
|
||||
try:
|
||||
_dbg = Path(__file__).resolve().parents[2] / ".cursor" / "debug-976372.log"
|
||||
_dbg.parent.mkdir(parents=True, exist_ok=True)
|
||||
_dbg.open("a").write(
|
||||
json.dumps(
|
||||
{
|
||||
"sessionId": "976372",
|
||||
"runId": "phase1-scaffold",
|
||||
"hypothesisId": "H1",
|
||||
"location": "probe_tickflow_pro.py:main",
|
||||
"message": "probe gate decision",
|
||||
"data": asdict(gate),
|
||||
"timestamp": int(datetime.now(SHANGHAI).timestamp() * 1000),
|
||||
},
|
||||
ensure_ascii=False,
|
||||
)
|
||||
+ "\n"
|
||||
)
|
||||
except Exception:
|
||||
pass
|
||||
# #endregion
|
||||
print(json.dumps(asdict(gate), ensure_ascii=False))
|
||||
if not gate.allowed:
|
||||
return 2
|
||||
|
||||
Reference in New Issue
Block a user