Skip to content

feat: repost-only mirror accounts (0.54.0) - #181

Merged
sh1pt-actions-fleet[bot] merged 1 commit into
mainfrom
feat/account-mirror
Nov 3, 2026
Merged

sh1pt-actions-fleet[bot] merged 1 commit into
mainfrom
feat/account-mirror

Conversation

@sh1pt-actions-fleet

Copy link
Copy Markdown
Contributor

Adds myna account mirror <account> --from <source> [--like] [--repost] [--restore] and --off.

  • A mirror never posts its own: every original-posting gate (resolveTargets for all / network / explicit, postPaced, postToAll, rotation, scheduler, newsletter web copy, evergreen, engage/upvote/follow via listAccounts) treats it like an archived account (isOffLimits).
  • New daemon job mirror (always registered, no-op without mirrors): reads the source's author feed every 5 min (new optional Network.authorFeed, implemented for Bluesky with getAuthorFeed), keeps only the source's own originals (no replies, no reposts), and reposts/likes each from the mirror via the existing repost / upvote adapter calls.
  • Exactly once: ledger in ~/.config/myna/mirror.json (pending with due time, per-action results, done); network viewer flags as a second check.
  • Paced: 1-10 min after the original, 2-5 min between actions, one per account per turn. First enable reaches back 24 h only.
  • --restore lifts an archive and sets the mirror in one vault write. myna accounts STATUS shows mirror of <source>.

Tests: packages/core/test/account-mirror.test.ts (exclusion, dedupe/exactly-once, replies/reposts ignored, 24 h window, --off, retries, --like only) and apps/cli/test/account-mirror.test.ts. Typecheck + full release test line green.

🤖 Generated with Claude Code

`myna account mirror <account> --from <source> [--like] [--repost] [--restore]`
and `myna account mirror <account> --off`.

A mirror never posts anything of its own: it is shut out of every original
posting path exactly like an archived account (all, network names, explicit
targets, rotation, --front/drip, the scheduler, newsletters, evergreen,
engage/upvote/follow loops). The new `mirror` daemon job reads the source's
author feed every five minutes (atproto getAuthorFeed via a new optional
`authorFeed` adapter method, Bluesky first) and, for each new original post
(not replies, not reposts), reposts and/or likes it from the mirror through the
existing repost/upvote adapter calls. Exactly once: every post is ledgered in
mirror.json the moment it is seen and each action is written back the moment
it succeeds; the network's viewer flags are a second check. Paced 1-10 min
after the original, 2-5 min apart, one per account per turn. First enable only
reaches back 24 hours.

`--restore` lifts an archive and sets the mirror in one vault write.
`myna accounts` shows `mirror of <source>`; `myna account mirror <account>`
shows pending/done.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sh1pt-actions-fleet
sh1pt-actions-fleet Bot merged commit d1b46ad into main Nov 3, 2026
2 checks passed
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