Commit fa310a9
LTRAC-446: ref(cli) - Replace channel picker with --update-site-url flag
Drop the channel-picker UX added to `project link` / `project create` and
the persisted `channelId` in project.json. The auto-update is now driven
by a single `--update-site-url <channelId>` flag (or
`CATALYST_UPDATE_SITE_URL` env) on `catalyst deploy`: when passed, the
deployed URL is PUT to that channel's site after the bundle goes live.
Also drop the GET-then-skip-when-equal optimization so the command
unconditionally PUTs the deployment URL when the flag is supplied — the
caller opted in explicitly, so always make the call.
The implementation collapses to: keep `updateChannelSiteUrl`, drop
`fetchChannels` and `fetchChannelSite`, and keep the soft-fail (warn +
re-auth hint) so a 401/403 doesn't sour an otherwise-successful deploy.
Refs LTRAC-446
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 65435dc commit fa310a9
8 files changed
Lines changed: 33 additions & 611 deletions
File tree
- packages/catalyst
- src/cli
- commands
- lib
- tests/mocks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
565 | | - | |
| 565 | + | |
566 | 566 | | |
567 | 567 | | |
568 | | - | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | 568 | | |
575 | 569 | | |
576 | 570 | | |
| |||
589 | 583 | | |
590 | 584 | | |
591 | 585 | | |
592 | | - | |
| 586 | + | |
593 | 587 | | |
| 588 | + | |
594 | 589 | | |
595 | 590 | | |
596 | 591 | | |
597 | 592 | | |
598 | | - | |
| 593 | + | |
599 | 594 | | |
| 595 | + | |
600 | 596 | | |
601 | 597 | | |
602 | 598 | | |
| |||
605 | 601 | | |
606 | 602 | | |
607 | 603 | | |
608 | | - | |
| 604 | + | |
609 | 605 | | |
| 606 | + | |
610 | 607 | | |
611 | 608 | | |
612 | 609 | | |
613 | 610 | | |
614 | 611 | | |
615 | 612 | | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
| 613 | + | |
629 | 614 | | |
630 | 615 | | |
631 | 616 | | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | 617 | | |
638 | 618 | | |
639 | 619 | | |
640 | 620 | | |
641 | 621 | | |
642 | 622 | | |
643 | 623 | | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | 624 | | |
673 | 625 | | |
674 | | - | |
| 626 | + | |
675 | 627 | | |
676 | 628 | | |
677 | 629 | | |
678 | 630 | | |
679 | 631 | | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | 632 | | |
684 | 633 | | |
685 | 634 | | |
686 | 635 | | |
687 | 636 | | |
688 | | - | |
| 637 | + | |
689 | 638 | | |
690 | 639 | | |
691 | | - | |
| 640 | + | |
692 | 641 | | |
693 | 642 | | |
694 | 643 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
416 | | - | |
| 415 | + | |
| 416 | + | |
417 | 417 | | |
418 | | - | |
| 418 | + | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
422 | 421 | | |
423 | 422 | | |
424 | 423 | | |
| |||
504 | 503 | | |
505 | 504 | | |
506 | 505 | | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
| 506 | + | |
512 | 507 | | |
513 | 508 | | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | 509 | | |
519 | 510 | | |
520 | 511 | | |
| |||
525 | 516 | | |
526 | 517 | | |
527 | 518 | | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
| 519 | + | |
| 520 | + | |
542 | 521 | | |
543 | 522 | | |
544 | | - | |
| 523 | + | |
545 | 524 | | |
546 | 525 | | |
547 | 526 | | |
| |||
0 commit comments