Skip to content

fix(typefully): tag-only updates + safer aliases; add CLI tests#8

Merged
frankdilo merged 4 commits intomainfrom
fix/typefully-cli-alias-tags-tests
Feb 10, 2026
Merged

fix(typefully): tag-only updates + safer aliases; add CLI tests#8
frankdilo merged 4 commits intomainfrom
fix/typefully-cli-alias-tags-tests

Conversation

@frankdilo
Copy link
Contributor

@frankdilo frankdilo commented Feb 10, 2026

Summary

Fixes a bug where update-draft <id> --tags ... --social-set-id ... could overwrite the draft content with the literal flags/values.

Also adds hermetic CLI tests + CI so these edge cases stay covered.

Changes

  • Fix update-draft alias to only forward --text when text is actually provided (flag or positional), so tag-only updates don't touch content.
  • Add --tags support to drafts:update (including clearing tags with --tags "").
  • Harden alias/flag parsing to error cleanly when a value-taking flag is missing its value (no TypeError crash).
  • Make config:set-default honor --social-set-id / --social_set_id (help NOTE is now accurate).
  • Thread splitting now supports both LF and CRLF around ---.
  • Add node --test suite (mock HTTP server, hermetic HOME/cwd) and GitHub Actions matrix (Node 18/20/22).

Repro

  1. typefully create-draft "Test content" --social-set-id 100812
  2. typefully update-draft <id> --tags "owner/me" --social-set-id 100813

Expected: tags added, content unchanged.
Actual (before): content replaced by flags as text.

Testing

  • node --test

- Support tag-only drafts:update without modifying content\n- Harden create-draft/update-draft aliases (clean errors on missing values)\n- Honor --social-set-id/--social_set_id in config:set-default + other commands\n- Improve thread splitting to handle CRLF\n- Add hermetic node:test suite + GitHub Actions CI
Document changes in this branch (CLI fixes, new tests/CI).
- Move changelog into skill folder (skills/typefully/CHANGELOG.md)\n- Document that changelog entries must be user-facing only\n- Instruct agents to update the relevant skill changelog when changing CLI/skill behavior
@frankdilo frankdilo merged commit 7a8e7dc into main Feb 10, 2026
6 checks passed
@frankdilo frankdilo deleted the fix/typefully-cli-alias-tags-tests branch February 10, 2026 14:21
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