|
| 1 | +================================================== |
| 2 | +New Features (2026-06-19) — CI Annotations & Clipboard History |
| 3 | +================================================== |
| 4 | + |
| 5 | +Two pure-standard-library utilities: emit CI annotations from results, and |
| 6 | +keep a searchable clipboard history. Full stack. |
| 7 | + |
| 8 | +.. contents:: |
| 9 | + :local: |
| 10 | + :depth: 2 |
| 11 | + |
| 12 | + |
| 13 | +CI workflow annotations |
| 14 | +====================== |
| 15 | + |
| 16 | +:: |
| 17 | + |
| 18 | + from je_auto_control import emit_annotations |
| 19 | + |
| 20 | + emit_annotations([ |
| 21 | + {"level": "error", "message": "step failed", |
| 22 | + "file": "flows/login.json", "line": 12, "title": "Login"}, |
| 23 | + ]) |
| 24 | + # prints: ::error file=flows/login.json,line=12,title=Login::step failed |
| 25 | + |
| 26 | +Converts result dicts (``{level, message, file?, line?, col?, title?}``) |
| 27 | +into GitHub Actions workflow commands so failures surface **inline** in a PR |
| 28 | +— no third-party reporter action required. ``level`` is ``error`` / |
| 29 | +``warning`` / ``notice``; values are escaped per GitHub's rules. Exposed as |
| 30 | +``AC_ci_annotations`` / ``ac_ci_annotations``. |
| 31 | + |
| 32 | + |
| 33 | +Clipboard history |
| 34 | +================ |
| 35 | + |
| 36 | +:: |
| 37 | + |
| 38 | + from je_auto_control import ClipboardHistory, default_clipboard_history |
| 39 | + |
| 40 | + default_clipboard_history.start() # poll the clipboard in the background |
| 41 | + default_clipboard_history.search("invoice") |
| 42 | + default_clipboard_history.get(0) # most recent entry |
| 43 | + |
| 44 | +A capped, newest-first ring buffer of distinct clipboard text entries with |
| 45 | +``add`` / ``snapshot`` / ``get`` / ``search`` / ``clear`` and an optional |
| 46 | +background poller (``start`` / ``stop`` / ``capture_once``). Exposed as |
| 47 | +``AC_clip_history_capture`` / ``AC_clip_history_list`` / |
| 48 | +``AC_clip_history_search`` / ``AC_clip_history_start`` / |
| 49 | +``AC_clip_history_stop`` (and ``ac_clip_history_*``). |
0 commit comments