Commit 80c2524
refactor: normalize LATEST qualifier before send and reorder download_skill args
- Normalize qualifier to the canonical "LATEST" in _get_skill_download_url
before building the URL, so the value sent to the backend agrees with the
local .skill_version marker (skill_loader._canonical_qualifier) regardless
of input casing.
- Reorder download_skill / download_skill_async params to (target_dir, config,
qualifier) and sync the docstring arg order.
- Update tests to assert all LATEST casings produce the canonical URL.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: daoxun.yds <daoxun.yds@alibaba-inc.com>1 parent 1548b1d commit 80c2524
3 files changed
Lines changed: 42 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
652 | 652 | | |
653 | 653 | | |
654 | 654 | | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
655 | 665 | | |
656 | 666 | | |
657 | 667 | | |
658 | 668 | | |
659 | 669 | | |
660 | 670 | | |
661 | | - | |
662 | 671 | | |
| 672 | + | |
663 | 673 | | |
664 | 674 | | |
665 | 675 | | |
| |||
670 | 680 | | |
671 | 681 | | |
672 | 682 | | |
| 683 | + | |
673 | 684 | | |
674 | 685 | | |
675 | | - | |
676 | 686 | | |
677 | 687 | | |
678 | 688 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
822 | 822 | | |
823 | 823 | | |
824 | 824 | | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
825 | 835 | | |
826 | 836 | | |
827 | 837 | | |
828 | 838 | | |
829 | 839 | | |
830 | 840 | | |
831 | | - | |
832 | 841 | | |
| 842 | + | |
833 | 843 | | |
834 | 844 | | |
835 | 845 | | |
| |||
840 | 850 | | |
841 | 851 | | |
842 | 852 | | |
| 853 | + | |
843 | 854 | | |
844 | 855 | | |
845 | | - | |
846 | 856 | | |
847 | 857 | | |
848 | 858 | | |
| |||
895 | 905 | | |
896 | 906 | | |
897 | 907 | | |
898 | | - | |
899 | 908 | | |
| 909 | + | |
900 | 910 | | |
901 | 911 | | |
902 | 912 | | |
| |||
907 | 917 | | |
908 | 918 | | |
909 | 919 | | |
| 920 | + | |
910 | 921 | | |
911 | 922 | | |
912 | | - | |
913 | 923 | | |
914 | 924 | | |
915 | 925 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
494 | | - | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
495 | 498 | | |
496 | 499 | | |
497 | | - | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
498 | 508 | | |
499 | 509 | | |
500 | 510 | | |
501 | 511 | | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
508 | 516 | | |
509 | 517 | | |
510 | 518 | | |
| |||
0 commit comments