Skip to content

fix(tugasna): correct CLI help text to match the API#91

Merged
sutisnamulyana merged 1 commit into
mainfrom
claude/tugasna-cli-mcp-too3y6
Jul 23, 2026
Merged

fix(tugasna): correct CLI help text to match the API#91
sutisnamulyana merged 1 commit into
mainfrom
claude/tugasna-cli-mcp-too3y6

Conversation

@sutisnamulyana

Copy link
Copy Markdown
Member

Summary

Fixes help-text drift in the sawala tugasna command group found during smoke testing. Help strings only — the CLI still passes the --data/--file body through verbatim, so no request behaviour changes.

Command Was Now
comment create / comment update body { body } body { text } (server field), + { parentId } to reply
item move { statusId?, position? } { statusId, position } — both required
backlog place { boardId, statusId?, position? } statusId required
item create / item update (no note) notes startDate/dueDate are epoch-ms numbers, not date strings

These match the Tugasna route schemas (TextBody = { text }, MoveBody = { statusId, position }, PlaceBody with required statusId, and epoch-ms z.number().int() dates).

Testing

  • npm run -w @sawala/cli typecheck — passes
  • npm run -w @sawala/cli test — 133 tests pass (existing tugasna tests assert paths/methods/bodies, unaffected by help-string changes)

Changeset

.changeset/tugasna-help-fixes.md@sawala/cli patch.

Companion backend fix (the delete-with-comments 500): sawala-tech/sawala-cloud-core#417.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QGdUAa2d3N3vDXrtLB7ZKM


Generated by Claude Code

The `sawala tugasna` help strings drifted from the Tugasna API:

- comment create/update documented the body as { body }; the server field is
  { text } (plus optional { parentId } to reply).
- item move documented { statusId?, position? }; both are required.
- backlog place documented statusId as optional; it is required.
- item create/update didn't note that startDate/dueDate are epoch-ms numbers,
  not date strings.

Help text only — the CLI still passes the --data/--file body through verbatim,
so no request behaviour changes. Adds a patch changeset.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QGdUAa2d3N3vDXrtLB7ZKM
@sutisnamulyana
sutisnamulyana merged commit a6de615 into main Jul 23, 2026
1 check passed
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.

2 participants