Skip to content

feat: archive an account and mark it banned with a note (0.53.0) - #180

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

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

Conversation

@sh1pt-actions-fleet

Copy link
Copy Markdown
Contributor

Adds myna account archive <account> [--banned] [--note "..."] and myna account restore <account> so an account can be retired without deleting its credentials (first use: mastodon:[email protected], whose login the instance disabled).

Never posted to once archived

  • all and a bare network name leave it out; naming it by id or handle is refused with the note (and is never mis-read as post text by myna post)
  • postPaced / postToAll refuse it as a last gate; --rotate never picks it
  • archiving cancels its pending queue entries with the note recorded as lastError and trims it from shared entries; the scheduler does the same at send time
  • listAccounts() excludes archived by default, so engage, follow, graph, upvote, hubs and plugin tasks skip it; includeArchived is used for myna accounts, bundles/sync, login and the API/MCP account lists
  • saveAccount keeps the archive across token refreshes and re-logins

Visible

  • myna accounts has a STATUS column (active / archived YYYY-MM-DD / banned YYYY-MM-DD) plus the notes; myna accounts --archived lists only archived ones; --json includes the archived object

Stored on the account record in the vault as archived: { at, banned?, note? }, outside creds and meta.

Tests: packages/core/test/account-archive.test.ts (all / explicit / network targets, poster gates, rotation, scheduler cancel + trim, dropQueuedFor, save keeps archive, restore) and apps/cli/test/account-archive.test.ts (end to end CLI). Full release test line: 906 pass, 0 fail; tsc clean.

Version bumped to 0.53.0 in all six files.

🤖 Generated with Claude Code

… note (0.53.0)

`myna account archive <account> [--banned] [--note "..."]` and
`myna account restore <account>`. The archive (at, banned, note) lives on the
account record in the vault, outside creds and meta.

An archived account is never posted to:
- resolveTargets("all") and a network name leave it out; naming it by id or
  handle throws ArchivedAccountError with the note
- postPaced/postToAll refuse it as a last gate; --rotate never picks it
- archiving cancels its pending queue entries with the note as lastError and
  trims it out of shared ones; the daemon does the same at send time
- listAccounts() excludes archived by default, so engage/follow/graph/upvote/
  hubs/plugin tasks skip it; includeArchived for the list, bundles, login
- saveAccount keeps the archive across token refreshes and re-logins

`myna accounts` shows a STATUS column and the notes; `--archived` lists only
archived ones.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sh1pt-actions-fleet
sh1pt-actions-fleet Bot merged commit 79b4bd7 into main Nov 2, 2026
2 checks passed
@sh1pt-actions-fleet
sh1pt-actions-fleet Bot deleted the feat/account-archive branch November 2, 2026 19:02
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