Open
Conversation
doistbot
reviewed
Apr 11, 2026
Member
doistbot
left a comment
There was a problem hiding this comment.
This PR introduces the new td folder command group, providing a complete set of CRUD operations for workspace-scoped folders along with excellent test coverage. These additions thoughtfully extend the CLI's capabilities by seamlessly integrating folder management with workspace auto-detection. A few adjustments are needed to ensure the --cursor flag is properly passed to the pagination function in the list command, and to include the 'folder' entity type argument for formatJson in mutating commands for consistent output formatting.
0da8a44 to
3ecfc8a
Compare
scottlovegrove
commented
Apr 11, 2026
3ecfc8a to
4f689a5
Compare
Adds `td folder` with list, view, create, update, and delete subcommands, exposing the SDK's folder CRUD endpoints for workspace folder management. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Pass startCursor to paginate() in folder list so --cursor works - Add 'folder' to EntityType and pass it to formatJson in create/update - Define FOLDER_ESSENTIAL_FIELDS for consistent JSON output Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove parseInt() wrappers and update test expectations to match the string-typed workspaceId from SDK v9. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
4f689a5 to
bd82746
Compare
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
td foldercommand group withlist,view,create,update, anddeletesubcommandsgetFolders,getFolder,addFolder,updateFolder,deleteFolder)listandcreaterequire a workspace ref (positional or--workspace), whileupdate/delete/viewsupportid:xxxdirectly or name-based lookup with--workspaceTest plan
folder.test.tscovering all subcommands, JSON output, dry-run, empty states, workspace auto-detection, and error casestd folder list <workspace>,td folder create <workspace> --name "Test",td folder view <ref>,td folder update <ref> --name "New",td folder delete <ref> --yes🤖 Generated with Claude Code