centy 0.0.16 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/tui/App.d.ts.map +1 -1
  2. package/dist/tui/App.js +13 -0
  3. package/dist/tui/App.js.map +1 -1
  4. package/dist/tui/components/domain/DocCreate.d.ts.map +1 -1
  5. package/dist/tui/components/domain/DocCreate.js +3 -2
  6. package/dist/tui/components/domain/DocCreate.js.map +1 -1
  7. package/dist/tui/components/domain/IssueCreate.d.ts.map +1 -1
  8. package/dist/tui/components/domain/IssueCreate.js +3 -2
  9. package/dist/tui/components/domain/IssueCreate.js.map +1 -1
  10. package/dist/tui/components/domain/IssueDetail.d.ts.map +1 -1
  11. package/dist/tui/components/domain/IssueDetail.js +8 -1
  12. package/dist/tui/components/domain/IssueDetail.js.map +1 -1
  13. package/dist/tui/components/domain/IssueEdit.d.ts +2 -0
  14. package/dist/tui/components/domain/IssueEdit.d.ts.map +1 -0
  15. package/dist/tui/components/domain/IssueEdit.js +245 -0
  16. package/dist/tui/components/domain/IssueEdit.js.map +1 -0
  17. package/dist/tui/components/domain/ProjectCreate.d.ts.map +1 -1
  18. package/dist/tui/components/domain/ProjectCreate.js +2 -1
  19. package/dist/tui/components/domain/ProjectCreate.js.map +1 -1
  20. package/dist/tui/hooks/useAutoSelectProject.d.ts +8 -0
  21. package/dist/tui/hooks/useAutoSelectProject.d.ts.map +1 -0
  22. package/dist/tui/hooks/useAutoSelectProject.js +48 -0
  23. package/dist/tui/hooks/useAutoSelectProject.js.map +1 -0
  24. package/dist/tui/services/daemon-service.d.ts +8 -1
  25. package/dist/tui/services/daemon-service.d.ts.map +1 -1
  26. package/dist/tui/services/daemon-service.js +24 -0
  27. package/dist/tui/services/daemon-service.js.map +1 -1
  28. package/dist/tui/types/views.d.ts +1 -1
  29. package/dist/tui/types/views.d.ts.map +1 -1
  30. package/dist/tui/types/views.js +1 -0
  31. package/dist/tui/types/views.js.map +1 -1
  32. package/oclif.manifest.json +153 -153
  33. package/package.json +1 -1
@@ -635,7 +635,52 @@
635
635
  "pr.js"
636
636
  ]
637
637
  },
638
- "delete:asset": {
638
+ "daemon:autostart": {
639
+ "aliases": [],
640
+ "args": {},
641
+ "description": "Configure daemon to start automatically on boot",
642
+ "examples": [
643
+ "<%= config.bin %> daemon autostart",
644
+ "<%= config.bin %> daemon autostart --enable",
645
+ "<%= config.bin %> daemon autostart --disable"
646
+ ],
647
+ "flags": {
648
+ "enable": {
649
+ "description": "Enable autostart on boot",
650
+ "exclusive": [
651
+ "disable"
652
+ ],
653
+ "name": "enable",
654
+ "allowNo": false,
655
+ "type": "boolean"
656
+ },
657
+ "disable": {
658
+ "description": "Disable autostart on boot",
659
+ "exclusive": [
660
+ "enable"
661
+ ],
662
+ "name": "disable",
663
+ "allowNo": false,
664
+ "type": "boolean"
665
+ }
666
+ },
667
+ "hasDynamicHelp": false,
668
+ "hiddenAliases": [],
669
+ "id": "daemon:autostart",
670
+ "pluginAlias": "centy",
671
+ "pluginName": "centy",
672
+ "pluginType": "core",
673
+ "strict": true,
674
+ "enableJsonFlag": false,
675
+ "isESM": true,
676
+ "relativePath": [
677
+ "dist",
678
+ "commands",
679
+ "daemon",
680
+ "autostart.js"
681
+ ]
682
+ },
683
+ "get:asset": {
639
684
  "aliases": [],
640
685
  "args": {
641
686
  "filename": {
@@ -644,11 +689,10 @@
644
689
  "required": true
645
690
  }
646
691
  },
647
- "description": "Delete an asset",
692
+ "description": "Get an asset and save it to a file",
648
693
  "examples": [
649
- "<%= config.bin %> delete asset screenshot.png --issue 1",
650
- "<%= config.bin %> delete asset logo.svg --shared",
651
- "<%= config.bin %> delete asset old-image.png --issue 1 --force"
694
+ "<%= config.bin %> get asset screenshot.png --issue 1 --output ./screenshot.png",
695
+ "<%= config.bin %> get asset logo.svg --shared --output ./logo.svg"
652
696
  ],
653
697
  "flags": {
654
698
  "issue": {
@@ -661,22 +705,23 @@
661
705
  },
662
706
  "shared": {
663
707
  "char": "s",
664
- "description": "Delete a shared asset",
708
+ "description": "Get a shared asset",
665
709
  "name": "shared",
666
710
  "allowNo": false,
667
711
  "type": "boolean"
668
712
  },
669
- "force": {
670
- "char": "f",
671
- "description": "Skip confirmation prompt",
672
- "name": "force",
673
- "allowNo": false,
674
- "type": "boolean"
713
+ "output": {
714
+ "char": "o",
715
+ "description": "Output file path (defaults to asset filename)",
716
+ "name": "output",
717
+ "hasDynamicHelp": false,
718
+ "multiple": false,
719
+ "type": "option"
675
720
  }
676
721
  },
677
722
  "hasDynamicHelp": false,
678
723
  "hiddenAliases": [],
679
- "id": "delete:asset",
724
+ "id": "get:asset",
680
725
  "pluginAlias": "centy",
681
726
  "pluginName": "centy",
682
727
  "pluginType": "core",
@@ -686,11 +731,11 @@
686
731
  "relativePath": [
687
732
  "dist",
688
733
  "commands",
689
- "delete",
734
+ "get",
690
735
  "asset.js"
691
736
  ]
692
737
  },
693
- "delete:doc": {
738
+ "get:doc": {
694
739
  "aliases": [],
695
740
  "args": {
696
741
  "slug": {
@@ -699,23 +744,22 @@
699
744
  "required": true
700
745
  }
701
746
  },
702
- "description": "Delete a documentation file",
747
+ "description": "Get a documentation file by slug",
703
748
  "examples": [
704
- "<%= config.bin %> delete doc getting-started",
705
- "<%= config.bin %> delete doc api-reference --force"
749
+ "<%= config.bin %> get doc getting-started",
750
+ "<%= config.bin %> get doc api-reference --json"
706
751
  ],
707
752
  "flags": {
708
- "force": {
709
- "char": "f",
710
- "description": "Skip confirmation prompt",
711
- "name": "force",
753
+ "json": {
754
+ "description": "Output as JSON",
755
+ "name": "json",
712
756
  "allowNo": false,
713
757
  "type": "boolean"
714
758
  }
715
759
  },
716
760
  "hasDynamicHelp": false,
717
761
  "hiddenAliases": [],
718
- "id": "delete:doc",
762
+ "id": "get:doc",
719
763
  "pluginAlias": "centy",
720
764
  "pluginName": "centy",
721
765
  "pluginType": "core",
@@ -725,11 +769,11 @@
725
769
  "relativePath": [
726
770
  "dist",
727
771
  "commands",
728
- "delete",
772
+ "get",
729
773
  "doc.js"
730
774
  ]
731
775
  },
732
- "delete:issue": {
776
+ "get:issue": {
733
777
  "aliases": [],
734
778
  "args": {
735
779
  "id": {
@@ -738,24 +782,23 @@
738
782
  "required": true
739
783
  }
740
784
  },
741
- "description": "Delete an issue",
785
+ "description": "Get a single issue by ID or display number",
742
786
  "examples": [
743
- "<%= config.bin %> delete issue 1",
744
- "<%= config.bin %> delete issue abc123-uuid",
745
- "<%= config.bin %> delete issue 1 --force"
787
+ "<%= config.bin %> get issue 1",
788
+ "<%= config.bin %> get issue abc123-uuid",
789
+ "<%= config.bin %> get issue 1 --json"
746
790
  ],
747
791
  "flags": {
748
- "force": {
749
- "char": "f",
750
- "description": "Skip confirmation prompt",
751
- "name": "force",
792
+ "json": {
793
+ "description": "Output as JSON",
794
+ "name": "json",
752
795
  "allowNo": false,
753
796
  "type": "boolean"
754
797
  }
755
798
  },
756
799
  "hasDynamicHelp": false,
757
800
  "hiddenAliases": [],
758
- "id": "delete:issue",
801
+ "id": "get:issue",
759
802
  "pluginAlias": "centy",
760
803
  "pluginName": "centy",
761
804
  "pluginType": "core",
@@ -765,11 +808,11 @@
765
808
  "relativePath": [
766
809
  "dist",
767
810
  "commands",
768
- "delete",
811
+ "get",
769
812
  "issue.js"
770
813
  ]
771
814
  },
772
- "delete:pr": {
815
+ "get:pr": {
773
816
  "aliases": [],
774
817
  "args": {
775
818
  "id": {
@@ -778,24 +821,23 @@
778
821
  "required": true
779
822
  }
780
823
  },
781
- "description": "Delete a pull request",
824
+ "description": "Get a single pull request by ID or display number",
782
825
  "examples": [
783
- "<%= config.bin %> delete pr 1",
784
- "<%= config.bin %> delete pr abc123-uuid",
785
- "<%= config.bin %> delete pr 1 --force"
826
+ "<%= config.bin %> get pr 1",
827
+ "<%= config.bin %> get pr abc123-uuid",
828
+ "<%= config.bin %> get pr 1 --json"
786
829
  ],
787
830
  "flags": {
788
- "force": {
789
- "char": "f",
790
- "description": "Skip confirmation prompt",
791
- "name": "force",
831
+ "json": {
832
+ "description": "Output as JSON",
833
+ "name": "json",
792
834
  "allowNo": false,
793
835
  "type": "boolean"
794
836
  }
795
837
  },
796
838
  "hasDynamicHelp": false,
797
839
  "hiddenAliases": [],
798
- "id": "delete:pr",
840
+ "id": "get:pr",
799
841
  "pluginAlias": "centy",
800
842
  "pluginName": "centy",
801
843
  "pluginType": "core",
@@ -805,42 +847,36 @@
805
847
  "relativePath": [
806
848
  "dist",
807
849
  "commands",
808
- "delete",
850
+ "get",
809
851
  "pr.js"
810
852
  ]
811
853
  },
812
- "daemon:autostart": {
854
+ "get:project": {
813
855
  "aliases": [],
814
- "args": {},
815
- "description": "Configure daemon to start automatically on boot",
856
+ "args": {
857
+ "path": {
858
+ "description": "Path to the project (defaults to current directory)",
859
+ "name": "path",
860
+ "required": false
861
+ }
862
+ },
863
+ "description": "Get info about a specific project",
816
864
  "examples": [
817
- "<%= config.bin %> daemon autostart",
818
- "<%= config.bin %> daemon autostart --enable",
819
- "<%= config.bin %> daemon autostart --disable"
865
+ "<%= config.bin %> get project",
866
+ "<%= config.bin %> get project /path/to/project",
867
+ "<%= config.bin %> get project --json"
820
868
  ],
821
869
  "flags": {
822
- "enable": {
823
- "description": "Enable autostart on boot",
824
- "exclusive": [
825
- "disable"
826
- ],
827
- "name": "enable",
828
- "allowNo": false,
829
- "type": "boolean"
830
- },
831
- "disable": {
832
- "description": "Disable autostart on boot",
833
- "exclusive": [
834
- "enable"
835
- ],
836
- "name": "disable",
870
+ "json": {
871
+ "description": "Output as JSON",
872
+ "name": "json",
837
873
  "allowNo": false,
838
874
  "type": "boolean"
839
875
  }
840
876
  },
841
877
  "hasDynamicHelp": false,
842
878
  "hiddenAliases": [],
843
- "id": "daemon:autostart",
879
+ "id": "get:project",
844
880
  "pluginAlias": "centy",
845
881
  "pluginName": "centy",
846
882
  "pluginType": "core",
@@ -850,11 +886,11 @@
850
886
  "relativePath": [
851
887
  "dist",
852
888
  "commands",
853
- "daemon",
854
- "autostart.js"
889
+ "get",
890
+ "project.js"
855
891
  ]
856
892
  },
857
- "get:asset": {
893
+ "delete:asset": {
858
894
  "aliases": [],
859
895
  "args": {
860
896
  "filename": {
@@ -863,10 +899,11 @@
863
899
  "required": true
864
900
  }
865
901
  },
866
- "description": "Get an asset and save it to a file",
902
+ "description": "Delete an asset",
867
903
  "examples": [
868
- "<%= config.bin %> get asset screenshot.png --issue 1 --output ./screenshot.png",
869
- "<%= config.bin %> get asset logo.svg --shared --output ./logo.svg"
904
+ "<%= config.bin %> delete asset screenshot.png --issue 1",
905
+ "<%= config.bin %> delete asset logo.svg --shared",
906
+ "<%= config.bin %> delete asset old-image.png --issue 1 --force"
870
907
  ],
871
908
  "flags": {
872
909
  "issue": {
@@ -879,23 +916,22 @@
879
916
  },
880
917
  "shared": {
881
918
  "char": "s",
882
- "description": "Get a shared asset",
919
+ "description": "Delete a shared asset",
883
920
  "name": "shared",
884
921
  "allowNo": false,
885
922
  "type": "boolean"
886
923
  },
887
- "output": {
888
- "char": "o",
889
- "description": "Output file path (defaults to asset filename)",
890
- "name": "output",
891
- "hasDynamicHelp": false,
892
- "multiple": false,
893
- "type": "option"
924
+ "force": {
925
+ "char": "f",
926
+ "description": "Skip confirmation prompt",
927
+ "name": "force",
928
+ "allowNo": false,
929
+ "type": "boolean"
894
930
  }
895
931
  },
896
932
  "hasDynamicHelp": false,
897
933
  "hiddenAliases": [],
898
- "id": "get:asset",
934
+ "id": "delete:asset",
899
935
  "pluginAlias": "centy",
900
936
  "pluginName": "centy",
901
937
  "pluginType": "core",
@@ -905,11 +941,11 @@
905
941
  "relativePath": [
906
942
  "dist",
907
943
  "commands",
908
- "get",
944
+ "delete",
909
945
  "asset.js"
910
946
  ]
911
947
  },
912
- "get:doc": {
948
+ "delete:doc": {
913
949
  "aliases": [],
914
950
  "args": {
915
951
  "slug": {
@@ -918,22 +954,23 @@
918
954
  "required": true
919
955
  }
920
956
  },
921
- "description": "Get a documentation file by slug",
957
+ "description": "Delete a documentation file",
922
958
  "examples": [
923
- "<%= config.bin %> get doc getting-started",
924
- "<%= config.bin %> get doc api-reference --json"
959
+ "<%= config.bin %> delete doc getting-started",
960
+ "<%= config.bin %> delete doc api-reference --force"
925
961
  ],
926
962
  "flags": {
927
- "json": {
928
- "description": "Output as JSON",
929
- "name": "json",
963
+ "force": {
964
+ "char": "f",
965
+ "description": "Skip confirmation prompt",
966
+ "name": "force",
930
967
  "allowNo": false,
931
968
  "type": "boolean"
932
969
  }
933
970
  },
934
971
  "hasDynamicHelp": false,
935
972
  "hiddenAliases": [],
936
- "id": "get:doc",
973
+ "id": "delete:doc",
937
974
  "pluginAlias": "centy",
938
975
  "pluginName": "centy",
939
976
  "pluginType": "core",
@@ -943,11 +980,11 @@
943
980
  "relativePath": [
944
981
  "dist",
945
982
  "commands",
946
- "get",
983
+ "delete",
947
984
  "doc.js"
948
985
  ]
949
986
  },
950
- "get:issue": {
987
+ "delete:issue": {
951
988
  "aliases": [],
952
989
  "args": {
953
990
  "id": {
@@ -956,23 +993,24 @@
956
993
  "required": true
957
994
  }
958
995
  },
959
- "description": "Get a single issue by ID or display number",
996
+ "description": "Delete an issue",
960
997
  "examples": [
961
- "<%= config.bin %> get issue 1",
962
- "<%= config.bin %> get issue abc123-uuid",
963
- "<%= config.bin %> get issue 1 --json"
998
+ "<%= config.bin %> delete issue 1",
999
+ "<%= config.bin %> delete issue abc123-uuid",
1000
+ "<%= config.bin %> delete issue 1 --force"
964
1001
  ],
965
1002
  "flags": {
966
- "json": {
967
- "description": "Output as JSON",
968
- "name": "json",
1003
+ "force": {
1004
+ "char": "f",
1005
+ "description": "Skip confirmation prompt",
1006
+ "name": "force",
969
1007
  "allowNo": false,
970
1008
  "type": "boolean"
971
1009
  }
972
1010
  },
973
1011
  "hasDynamicHelp": false,
974
1012
  "hiddenAliases": [],
975
- "id": "get:issue",
1013
+ "id": "delete:issue",
976
1014
  "pluginAlias": "centy",
977
1015
  "pluginName": "centy",
978
1016
  "pluginType": "core",
@@ -982,11 +1020,11 @@
982
1020
  "relativePath": [
983
1021
  "dist",
984
1022
  "commands",
985
- "get",
1023
+ "delete",
986
1024
  "issue.js"
987
1025
  ]
988
1026
  },
989
- "get:pr": {
1027
+ "delete:pr": {
990
1028
  "aliases": [],
991
1029
  "args": {
992
1030
  "id": {
@@ -995,23 +1033,24 @@
995
1033
  "required": true
996
1034
  }
997
1035
  },
998
- "description": "Get a single pull request by ID or display number",
1036
+ "description": "Delete a pull request",
999
1037
  "examples": [
1000
- "<%= config.bin %> get pr 1",
1001
- "<%= config.bin %> get pr abc123-uuid",
1002
- "<%= config.bin %> get pr 1 --json"
1038
+ "<%= config.bin %> delete pr 1",
1039
+ "<%= config.bin %> delete pr abc123-uuid",
1040
+ "<%= config.bin %> delete pr 1 --force"
1003
1041
  ],
1004
1042
  "flags": {
1005
- "json": {
1006
- "description": "Output as JSON",
1007
- "name": "json",
1043
+ "force": {
1044
+ "char": "f",
1045
+ "description": "Skip confirmation prompt",
1046
+ "name": "force",
1008
1047
  "allowNo": false,
1009
1048
  "type": "boolean"
1010
1049
  }
1011
1050
  },
1012
1051
  "hasDynamicHelp": false,
1013
1052
  "hiddenAliases": [],
1014
- "id": "get:pr",
1053
+ "id": "delete:pr",
1015
1054
  "pluginAlias": "centy",
1016
1055
  "pluginName": "centy",
1017
1056
  "pluginType": "core",
@@ -1021,49 +1060,10 @@
1021
1060
  "relativePath": [
1022
1061
  "dist",
1023
1062
  "commands",
1024
- "get",
1063
+ "delete",
1025
1064
  "pr.js"
1026
1065
  ]
1027
1066
  },
1028
- "get:project": {
1029
- "aliases": [],
1030
- "args": {
1031
- "path": {
1032
- "description": "Path to the project (defaults to current directory)",
1033
- "name": "path",
1034
- "required": false
1035
- }
1036
- },
1037
- "description": "Get info about a specific project",
1038
- "examples": [
1039
- "<%= config.bin %> get project",
1040
- "<%= config.bin %> get project /path/to/project",
1041
- "<%= config.bin %> get project --json"
1042
- ],
1043
- "flags": {
1044
- "json": {
1045
- "description": "Output as JSON",
1046
- "name": "json",
1047
- "allowNo": false,
1048
- "type": "boolean"
1049
- }
1050
- },
1051
- "hasDynamicHelp": false,
1052
- "hiddenAliases": [],
1053
- "id": "get:project",
1054
- "pluginAlias": "centy",
1055
- "pluginName": "centy",
1056
- "pluginType": "core",
1057
- "strict": true,
1058
- "enableJsonFlag": false,
1059
- "isESM": true,
1060
- "relativePath": [
1061
- "dist",
1062
- "commands",
1063
- "get",
1064
- "project.js"
1065
- ]
1066
- },
1067
1067
  "install:daemon": {
1068
1068
  "aliases": [],
1069
1069
  "args": {},
@@ -1743,5 +1743,5 @@
1743
1743
  ]
1744
1744
  }
1745
1745
  },
1746
- "version": "0.0.16"
1746
+ "version": "0.0.18"
1747
1747
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "centy",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "description": "CLI for managing project issues and docs via code in the .centy folder",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",