Skip to content

feat: add organization and folder CLI commands#765

Merged
toiroakr merged 6 commits intomainfrom
feat/org-folder-commands
Mar 23, 2026
Merged

feat: add organization and folder CLI commands#765
toiroakr merged 6 commits intomainfrom
feat/org-folder-commands

Conversation

@toiroakr
Copy link
Copy Markdown
Contributor

@toiroakr toiroakr commented Mar 16, 2026

Summary

  • Add organization list/get/update/tree commands for managing Tailor Platform organizations
  • Add organization folder list/get/create/update/delete commands for managing organization folders
  • organization tree displays recursive folder hierarchy with --depth and --json support
  • All commands support --organization-id / --folder-id with TAILOR_PLATFORM_ORGANIZATION_ID / TAILOR_PLATFORM_FOLDER_ID env fallbacks
  • Export programmatic APIs for all commands via @tailor-platform/sdk/cli
  • Extract promptUser standalone function from logger to work around tsgo generic method inference

Open with Devin

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 16, 2026

🦋 Changeset detected

Latest commit: b41c593

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@tailor-platform/sdk Minor
@tailor-platform/create-sdk Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@toiroakr toiroakr force-pushed the feat/org-folder-commands branch from 30a3153 to d908b36 Compare March 16, 2026 08:44
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 16, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@tailor-platform/create-sdk@765

commit: b41c593

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@toiroakr toiroakr force-pushed the feat/org-folder-commands branch from 5156ba6 to 231932d Compare March 19, 2026 13:32
@github-actions

This comment has been minimized.

devin-ai-integration[bot]

This comment was marked as resolved.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown

Code Metrics Report (packages/sdk)

main (b732b01) #765 (052dd48) +/-
Coverage 55.8% 54.9% -0.9%
Code to Test Ratio 1:0.4 1:0.4 -0.1
Details
  |                    | main (b732b01) | #765 (052dd48) |  +/-  |
  |--------------------|----------------|----------------|-------|
- | Coverage           |          55.8% |          54.9% | -0.9% |
  |   Files            |            322 |            334 |   +12 |
  |   Lines            |          10386 |          10594 |  +208 |
+ |   Covered          |           5797 |           5821 |   +24 |
- | Code to Test Ratio |          1:0.4 |          1:0.4 |  -0.1 |
  |   Code             |          60871 |          61638 |  +767 |
+ |   Test             |          24680 |          24684 |    +4 |

Code coverage of files in pull request scope (66.6% → 23.8%)

Files Coverage +/- Status
packages/sdk/src/cli/commands/organization/folder/create.ts 13.3% +13.3% added
packages/sdk/src/cli/commands/organization/folder/delete.ts 9.5% +9.5% added
packages/sdk/src/cli/commands/organization/folder/get.ts 14.2% +14.2% added
packages/sdk/src/cli/commands/organization/folder/index.ts 100.0% +100.0% added
packages/sdk/src/cli/commands/organization/folder/list.ts 7.4% +7.4% added
packages/sdk/src/cli/commands/organization/folder/update.ts 13.3% +13.3% added
packages/sdk/src/cli/commands/organization/get.ts 14.2% +14.2% added
packages/sdk/src/cli/commands/organization/index.ts 50.0% +50.0% added
packages/sdk/src/cli/commands/organization/list.ts 9.0% +9.0% added
packages/sdk/src/cli/commands/organization/transform.ts 80.0% +80.0% added
packages/sdk/src/cli/commands/organization/tree.ts 1.5% +1.5% added
packages/sdk/src/cli/commands/organization/update.ts 13.3% +13.3% added
packages/sdk/src/cli/index.ts 27.2% 0.0% modified
packages/sdk/src/cli/shared/args.ts 90.0% +0.5% modified

SDK Configure Bundle Size

main (b732b01) #765 (052dd48) +/-
configure-index-size 10.74KB 10.74KB 0KB
dependency-chunks-size 34KB 34KB 0KB
total-bundle-size 44.74KB 44.74KB 0KB

Runtime Performance

main (b732b01) #765 (052dd48) +/-
Generate Median 2,537ms 2,389ms -148ms
Generate Max 2,602ms 2,401ms -201ms
Apply Build Median 2,569ms 2,409ms -160ms
Apply Build Max 2,585ms 2,436ms -149ms

Type Performance (instantiations)

main (b732b01) #765 (052dd48) +/-
tailordb-basic 43,028 43,028 0
tailordb-optional 3,927 3,927 0
tailordb-relation 4,071 4,071 0
tailordb-validate 2,925 2,925 0
tailordb-hooks 5,790 5,790 0
tailordb-object 11,571 11,571 0
tailordb-enum 2,793 2,793 0
resolver-basic 9,239 9,239 0
resolver-nested 25,626 25,626 0
resolver-array 17,862 17,862 0
executor-schedule 4,244 4,244 0
executor-webhook 883 883 0
executor-record 4,847 4,847 0
executor-resolver 4,273 4,273 0
executor-operation-function 877 877 0
executor-operation-gql 879 879 0
executor-operation-webhook 898 898 0
executor-operation-workflow 2,290 2,290 0

Reported by octocov

@toiroakr toiroakr marked this pull request as ready for review March 22, 2026 13:42
@toiroakr toiroakr requested a review from remiposo as a code owner March 22, 2026 13:42
@claude
Copy link
Copy Markdown

claude bot commented Mar 22, 2026

📖 Docs Consistency Check

✅ No inconsistencies found between documentation and implementation.

Checked areas:

  • CLI Reference (packages/sdk/docs/cli-reference.md):

    • ✅ New environment variables documented (TAILOR_PLATFORM_ORGANIZATION_ID, TAILOR_PLATFORM_FOLDER_ID)
    • ✅ All organization and folder commands listed with correct descriptions
    • ✅ Proper links to detailed documentation
  • Organization Commands Documentation (packages/sdk/docs/cli/organization.md):

    • organization list - Options match implementation
    • organization get - Options match implementation
    • organization update - Options match implementation
    • organization tree - Options match implementation (including --depth and --json support)
    • organization folder list - Options match implementation
    • organization folder get - Options match implementation
    • organization folder create - Options match implementation
    • organization folder update - Options match implementation
    • organization folder delete - Options match implementation (including --yes flag)
  • Implementation Verified:

    • ✅ All command options (names, aliases, descriptions, required/optional status, defaults, env vars)
    • ✅ Shared args definitions (organizationArgs, folderArgs, confirmationArgs)
    • ✅ Command registration in main CLI index
    • ✅ Programmatic API exports in src/cli/lib.ts
    • ✅ Package.json exports configuration (./cli entry point)

Summary:
The documentation comprehensively and accurately reflects the implementation. All commands, options, environment variables, and programmatic APIs are properly documented with correct details.


@claude
Copy link
Copy Markdown

claude bot commented Mar 22, 2026

📖 Docs Consistency Check

✅ No inconsistencies found between documentation and implementation.

All CLI commands, options, environment variables, and programmatic APIs match between documentation and implementation. The PR correctly documents and implements organization and folder management commands.

Note: The PR description mentions "Extract promptUser standalone function" but this change is not present in the actual PR.

Copy link
Copy Markdown
Contributor

@remiposo remiposo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@toiroakr toiroakr merged commit 08b4d38 into main Mar 23, 2026
38 checks passed
@toiroakr toiroakr deleted the feat/org-folder-commands branch March 23, 2026 03:06
@tailor-pr-trigger tailor-pr-trigger bot mentioned this pull request Mar 23, 2026
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