From 4588f4bf54ae6eefd7a75904d81ce2256afb805d Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 1 Jul 2026 11:37:53 +0200 Subject: feat: tx add echoes transfer direction to stderr (v0.3.5) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Transfers are easy to reverse silently (swapped --from/--to), showing up later as a 2x balance discrepancy (ISSUES.md #5). On a transfer, tx add now prints "transfer: , " to stderr before writing, in both the real-write and --dry-run paths. stdout JSON and exit codes are unchanged, so the contract holds; PATCH bump. Withdrawals/deposits are unaffected. Co-Authored-By: Claude Opus 4.8 --- SKILL.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'SKILL.md') diff --git a/SKILL.md b/SKILL.md index e34f160..4cf40bb 100644 --- a/SKILL.md +++ b/SKILL.md @@ -92,6 +92,10 @@ firefly tx add 1800 --from Salary --to test01 --desc "June pay" ```bash firefly tx add 200 --from test01 --to Savings --type transfer ``` +For a transfer, `tx add` echoes `transfer: , ` to stderr +before writing (also in `--dry-run`) so a swapped `--from`/`--to` is caught +before it silently drifts balances by 2x the amount. stdout JSON is unchanged; +the hint is on stderr only. **Create an account** (when `tx add` errors that an account does not exist, and the user confirms it should be created): -- cgit v1.2.3