Add sawala tugasna CLI command group#89
Merged
Merged
Conversation
Introduces the Tugasna work-tracking surface to the platform CLI, calling the gateway's /cli/tugasna/* prefix. Covers the core CRUD: - board: list/get/create/update/delete/archive/unarchive + status create/update/delete/reorder - item (board-scoped): list/get/create/update/delete/move - backlog (project-scoped): list/create/get/update/children/place/unplace - comment (item-scoped): list/create/update/delete - tag list and timeline reads Follows the datana.ts house style: apiFetch to /cli/tugasna/projects/:projId, -f/--file or -d/--data bodies, --dry-run, and -y/--yes on destructive verbs. Registered in cli.ts; adds tests asserting method/path/body, --dry-run and the non-TTY confirmation refusal, plus a changeset. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QGdUAa2d3N3vDXrtLB7ZKM
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.
Summary
Adds a
sawala tugasnacommand group to the platform CLI (@sawala/cli), giving Tugasna work-tracking boards a CLI surface for the first time. Commands call the gateway's/cli/tugasna/*prefix, scoped to the active project (sawala project use <slug>).This is the core-CRUD, CLI-only pass. MCP tools and the remaining resources (labels, custom fields, checklists, item assignees, assignee-labels) are intentionally deferred to a follow-up.
What's included
New
packages/sawala/src/commands/tugasna.ts(modeled ondatana.ts), registered insrc/cli.ts:boardlist [--archived],get,create,update,delete,archive,unarchiveboard statuscreate,update,delete,reorderitem(board-scoped)list [--status --assignee],get,create,update,delete,movebacklog(project-scoped)list,create,get,update,children,place,unplacecomment(item-scoped)list,create,update,deletetag list,timelineHouse style matches
datana.ts:apiFetchto/cli/tugasna/projects/:projId/…usingctx.activeProjectId; request bodies via-f/--file(-= stdin) or-d/--data;--dry-runprints{ wouldSend }and writes nothing; destructive verbs require-y/--yes(refuse without a TTY).Testing
npm run typecheck— passes (all workspaces)npm run test— passes; addstest/tugasna.test.ts(23 tests) asserting method/path/body,--dry-run, and the non-TTY confirmation refusaltest/cli.test.tsto assert thetugasnacommand registersChangeset
.changeset/tugasna-cli.md—@sawala/climinor.🤖 Generated with Claude Code
https://claude.ai/code/session_01QGdUAa2d3N3vDXrtLB7ZKM
Generated by Claude Code