Skip to content

feat(account): notion <profile> account remove - #28

Merged
leemour merged 2 commits into
mainfrom
feat/account-remove
Nov 18, 2026
Merged

leemour merged 2 commits into
mainfrom
feat/account-remove

Conversation

@leemour

@leemour leemour commented Nov 18, 2026

Copy link
Copy Markdown
Member

Task. The owner asked that every WireCat CLI can remove its accounts from Desktop. notion had only session end, so Desktop's catalog has remove: null for it.

What. notion <profile> account remove --keep-data|--delete-data through cli-core's accountRemoveCommand, the same hooks as ydisk-cli: forgets token:<profile> and the profile's settings, removes its state folder (chosen pages, sync checkpoint, snapshots) with --delete-data, and keeps or deletes the copied pages in the store. profileDir in src/library.ts is now exported for it. Regenerated docs/commands.md and contracts/wirecat.json. Changelog fragment under Added.

Testing. New integration test in src/library.test.ts: session start, sync, dry run changes nothing, --keep-data keeps the pages and forgets the token, --delete-data empties the store and removes the profile folder. pnpm test 307 passed, typecheck, lint, docs check.

🤖 Generated with Claude Code

leemour and others added 2 commits November 18, 2026 19:39
…d forgets it

WireCat Desktop removes an account with cli-core's account remove, and
notion had only session end. The command forgets the token
(token:<profile>), the profile's settings and its folder under the state
directory (chosen pages, sync checkpoint, snapshots), and keeps or deletes
the copied pages in the store. The token stays valid at Notion.

Same hooks as ydisk-cli's account remove.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leemour
leemour merged commit 5a5ae63 into main Nov 18, 2026
16 checks passed
@leemour
leemour deleted the feat/account-remove branch November 18, 2026 18:47
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