agent-orchestrator/packages/plugins
i-trytoohard ea320312db
refactor(core): extract hasRecentCommits helper into @aoagents/ao-core (#1437)
* refactor(core): extract hasRecentCommits helper into @aoagents/ao-core

Deduplicate the byte-identical hasRecentCommits(workspacePath) helper
that was copy-pasted between agent-aider and agent-cursor. Exposes the
helper from core with a parameterized window so future agent plugins
using git-commit-based activity detection can share it.

Closes #1423

* test(core): make hasRecentCommits custom-window test discriminate on the parameter

The previous assertion passed the default (60) to hasRecentCommits, so a
bug where windowSeconds was silently ignored would still have passed.
Use a commit backdated ~2 minutes and assert both a 30s window excludes
it and a 600s window includes it — proving the parameter is forwarded
to `git log --since=...`.

Addresses Greptile review on #1437.

---------

Co-authored-by: Prateek <karnalprateek@gmail.com>
2026-05-05 18:58:53 +05:30
..
agent-aider refactor(core): extract hasRecentCommits helper into @aoagents/ao-core (#1437) 2026-05-05 18:58:53 +05:30
agent-claude-code chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
agent-codex chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
agent-cursor refactor(core): extract hasRecentCommits helper into @aoagents/ao-core (#1437) 2026-05-05 18:58:53 +05:30
agent-kimicode chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
agent-opencode chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
notifier-composio chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
notifier-desktop chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
notifier-discord chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
notifier-openclaw chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
notifier-slack chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
notifier-webhook chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
runtime-process chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
runtime-tmux refactor(spawn): plugin-owned preflight + collapse project resolution (#1622) 2026-05-04 14:03:26 +05:30
scm-github refactor(spawn): plugin-owned preflight + collapse project resolution (#1622) 2026-05-04 14:03:26 +05:30
scm-gitlab chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
terminal-iterm2 chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
terminal-web chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
tracker-github refactor(spawn): plugin-owned preflight + collapse project resolution (#1622) 2026-05-04 14:03:26 +05:30
tracker-gitlab chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
tracker-linear chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
workspace-clone chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30
workspace-worktree chore: release 0.4.0 (#1625) 2026-05-04 06:57:24 +05:30