Skip to content

Add timed input replay and declarative input-sequence DSL#232

Merged
JE-Chen merged 1 commit into
devfrom
feat/input-macro-batch
Jun 19, 2026
Merged

Add timed input replay and declarative input-sequence DSL#232
JE-Chen merged 1 commit into
devfrom
feat/input-macro-batch

Conversation

@JE-Chen

@JE-Chen JE-Chen commented Jun 19, 2026

Copy link
Copy Markdown
Member

Remaining-backlog batch 14 (round-6 input-macro agent) — full five layers + headless tests + EN/Zh v24 docs + README.

Feature (utils/input_macro, pure-stdlib)

  • Timed timeline replayreplay_timeline(events, speed=...): honor each event's delta_ms gap, scaled by speed, clamped to [min_gap,max_gap]; ops move/click/scroll/press/release/key. AC_replay_timeline + ac_replay_timeline.
  • Input-sequence DSLrun_sequence(steps): declarative press/hold/release chords + {op:repeat}/{op:wait}. AC_input_sequence + ac_input_sequence.
  • Both dispatch via an injectable sink and use an injectable sleep — unit-tested deterministically (fake clock + recording sink, no real input).

Verification

  • 5 tests pass; ruff clean; radon no CC≥C; bandit clean; PySide6-free.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 33 complexity · 0 duplication

Metric Results
Complexity 33
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@JE-Chen JE-Chen merged commit 7fa3ed5 into dev Jun 19, 2026
16 checks passed
@JE-Chen JE-Chen deleted the feat/input-macro-batch branch June 19, 2026 09:22
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant