Skip to content

@W-20893788 Complete MRT API coverage with reorganized command structure#59

Merged
clavery merged 11 commits intomainfrom
feature/managed-runtime-complete-coverage
Jan 22, 2026
Merged

@W-20893788 Complete MRT API coverage with reorganized command structure#59
clavery merged 11 commits intomainfrom
feature/managed-runtime-complete-coverage

Conversation

@clavery
Copy link
Copy Markdown
Collaborator

@clavery clavery commented Jan 20, 2026

Summary

This PR completes the MRT (Managed Runtime) API coverage and reorganizes the CLI command structure for better usability.

Command Structure Reorganization

Reorganized MRT commands into a logical hierarchy based on scope (organization, project, environment):

mrt
├── org (list, b2c)              - Organization-level operations
├── project                      - Project management
│   ├── member                   - Team member management  
│   └── notification             - Deployment notifications
├── env                          - Environment management
│   ├── var                      - Environment variables
│   ├── redirect                 - URL redirects
│   └── access-control           - Access control headers
├── bundle                       - Bundle and deployment management
└── user                         - User profile and settings

Key Changes

Command Moves:

  • mrt pushmrt bundle deploy (with optional bundleId for deploying existing bundles)
  • mrt deploy/listmrt bundle history
  • mrt member/*mrt project member/*
  • mrt notification/*mrt project notification/*
  • mrt access-control/*mrt env access-control/*
  • mrt cache/invalidatemrt env invalidate
  • mrt b2c/org-infomrt org b2c
  • mrt b2c/target-infomrt env b2c

New Features:

  • mrt bundle deploy now combines push and deploy functionality
  • mrt bundle download now actually downloads the artifact (not just URL)
  • Improved topic descriptions throughout

Documentation:

  • Complete rewrite of docs/cli/mrt.md with all 40+ commands
  • Updated MRT skill with references for detailed command docs

@clavery clavery changed the title feat(mrt): Complete MRT API coverage with reorganized command structure @W-20893788 Complete MRT API coverage with reorganized command structure Jan 20, 2026
…rors

- Update push.test.ts to use the new listBundles({projectSlug}, auth) signature
- Change import style in download.ts to use named imports per eslint rules
@clavery clavery force-pushed the feature/managed-runtime-complete-coverage branch 2 times, most recently from dbb309f to 4bdd2b1 Compare January 21, 2026 02:54
@clavery clavery force-pushed the feature/managed-runtime-complete-coverage branch from 4bdd2b1 to f1c3a6e Compare January 21, 2026 02:55
@clavery clavery force-pushed the feature/managed-runtime-complete-coverage branch from 4a4d55f to f1c3a6e Compare January 21, 2026 05:57
Incorporates test infrastructure from main:
- SDK test-utils export with config-isolation
- CLI test helpers (test-setup.ts, stub-parse.ts)
- ESLint and Mocha config updates for testing
- 40+ new CLI command tests

Resolved conflict: removed mrt/push.ts (restructured to mrt/bundle/deploy.ts in this branch)
- Add tests for bundle commands (deploy, list, history, download)
- Add tests for project commands (list, get, create, update, delete)
- Add tests for project member commands (list, add)
- Add tests for project notification commands (list)
- Add tests for env commands (get, list, update)
- Add tests for user commands (profile, api-key)
- Add tests for org commands (list, b2c)
- Remove obsolete mrt/push.test.ts (command restructured to bundle/deploy)

Tests follow the patterns introduced in main branch using
createIsolatedConfigHooks, stubParse, and sinon for mocking.
@clavery clavery merged commit 253c1e9 into main Jan 22, 2026
3 checks 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.

1 participant