Repository navigation
feat: archive an account and mark it banned with a note (0.53.0) - #180
Merged
Merged
Conversation
… 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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
myna account archive <account> [--banned] [--note "..."]andmyna 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
alland 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 bymyna post)postPaced/postToAllrefuse it as a last gate;--rotatenever picks itlastErrorand trims it from shared entries; the scheduler does the same at send timelistAccounts()excludes archived by default, so engage, follow, graph, upvote, hubs and plugin tasks skip it;includeArchivedis used formyna accounts, bundles/sync, login and the API/MCP account listssaveAccountkeeps the archive across token refreshes and re-loginsVisible
myna accountshas a STATUS column (active/archived YYYY-MM-DD/banned YYYY-MM-DD) plus the notes;myna accounts --archivedlists only archived ones;--jsonincludes thearchivedobjectStored on the account record in the vault as
archived: { at, banned?, note? }, outsidecredsandmeta.Tests:
packages/core/test/account-archive.test.ts(all / explicit / network targets, poster gates, rotation, scheduler cancel + trim, dropQueuedFor, save keeps archive, restore) andapps/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