@a-t-h-i/bot-lobby 0.6.48 → 0.6.50
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.
- package/README.md +2 -2
- package/THIRD_PARTY_NOTICES.md +4 -3
- package/package.json +9 -7
- package/prompts/designer.md +15 -1
- package/prompts/master.md +4 -1
- package/src/ask/project-styles.ts +64 -0
- package/src/ask/tool.ts +23 -4
- package/src/ask/types.ts +1 -1
- package/src/ask/web.ts +27 -6
- package/src/classifier/classifier.ts +14 -2
- package/src/classifier/hosts.ts +12 -18
- package/src/classifier/instance.ts +7 -4
- package/src/execution/delegation.ts +2 -1
- package/src/execution/pi-runner.ts +11 -2
- package/src/lobby/host.ts +6 -0
- package/src/lobby/keys.ts +2 -1
- package/src/lobby/service.ts +75 -7
- package/src/lobby/session-questions.ts +49 -0
- package/src/lobby/sessions.ts +66 -0
- package/src/pi/auto-compaction.ts +46 -19
- package/src/pi/events.ts +2 -0
- package/src/pi/fresh-context.ts +10 -8
- package/src/pi/plan-checklist.ts +47 -15
- package/src/pi/tools.ts +2 -2
- package/src/schemas/task.ts +14 -0
- package/src/state/persistence.ts +4 -1
- package/src/webui/api/index.ts +36 -2
- package/src/webui/api/lobby.ts +1 -1
- package/src/webui/api/plan-facts.ts +9 -4
- package/src/webui/api/sessions.ts +21 -0
- package/src/webui/api/tasks.ts +12 -1
- package/src/webui/api/terminal.ts +42 -0
- package/src/webui/dev/fake-service.ts +42 -1
- package/src/webui/palette-core.ts +228 -228
- package/src/webui/protocol.ts +29 -2
- package/src/webui/server.ts +16 -1
- package/src/webui/terminal.ts +292 -0
- package/src/workflow/workflow.ts +3 -2
- package/webui/dist/assets/TerminalView-BrP-ENHg.css +1 -0
- package/webui/dist/assets/TerminalView-D_j85u4O.js +16 -0
- package/webui/dist/assets/dm-sans-latin-wght-normal-Xz1IZZA0.woff2 +0 -0
- package/webui/dist/assets/figtree-latin-wght-normal-D_ZTVpCC.woff2 +0 -0
- package/webui/dist/assets/fira-code-latin-wght-normal-CHoedHDv.woff2 +0 -0
- package/webui/dist/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- package/webui/dist/assets/geist-mono-latin-wght-normal-XN7g48iV.woff2 +0 -0
- package/webui/dist/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2 +0 -0
- package/webui/dist/assets/index-BkM--P3x.js +115 -0
- package/webui/dist/assets/index-DrHXotS7.css +2 -0
- package/webui/dist/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- package/webui/dist/assets/manrope-latin-wght-normal-DHIcAJRg.woff2 +0 -0
- package/webui/dist/assets/nunito-latin-wght-normal-BzFMHfZw.woff2 +0 -0
- package/webui/dist/assets/outfit-latin-wght-normal-Bc-8i84L.woff2 +0 -0
- package/webui/dist/assets/plus-jakarta-sans-latin-wght-normal-eXO_dkmS.woff2 +0 -0
- package/webui/dist/assets/roboto-mono-latin-wght-normal-CZtBPCCa.woff2 +0 -0
- package/webui/dist/assets/source-code-pro-latin-wght-normal-BP8Zz55n.woff2 +0 -0
- package/webui/dist/assets/source-sans-3-latin-wght-normal-Bo_j9asI.woff2 +0 -0
- package/webui/dist/assets/space-grotesk-latin-wght-normal-BhU9QXUp.woff2 +0 -0
- package/webui/dist/build.json +110 -94
- package/webui/dist/index.html +2 -2
- package/webui/dist/assets/index-B5AnxwRU.css +0 -2
- package/webui/dist/assets/index-CznnCkjK.js +0 -114
|
@@ -647,276 +647,276 @@ export const PRESETS: readonly Palette[] = [
|
|
|
647
647
|
id: "graphite",
|
|
648
648
|
name: "Graphite",
|
|
649
649
|
light: {
|
|
650
|
-
"background": "
|
|
651
|
-
"foreground": "
|
|
652
|
-
"card": "
|
|
653
|
-
"card-foreground": "
|
|
654
|
-
"popover": "
|
|
655
|
-
"popover-foreground": "
|
|
656
|
-
"primary": "
|
|
657
|
-
"primary-foreground": "
|
|
658
|
-
"secondary": "
|
|
659
|
-
"secondary-foreground": "
|
|
660
|
-
"muted": "
|
|
661
|
-
"muted-foreground": "
|
|
662
|
-
"accent": "
|
|
663
|
-
"accent-foreground": "
|
|
664
|
-
"destructive": "
|
|
665
|
-
"border": "
|
|
666
|
-
"input": "
|
|
667
|
-
"ring": "
|
|
668
|
-
"chart-1": "
|
|
650
|
+
"background": "#fafafa",
|
|
651
|
+
"foreground": "#222222",
|
|
652
|
+
"card": "#fefefe",
|
|
653
|
+
"card-foreground": "#222222",
|
|
654
|
+
"popover": "#fefefe",
|
|
655
|
+
"popover-foreground": "#222222",
|
|
656
|
+
"primary": "#333333",
|
|
657
|
+
"primary-foreground": "#fcfcfc",
|
|
658
|
+
"secondary": "#ebebeb",
|
|
659
|
+
"secondary-foreground": "#222222",
|
|
660
|
+
"muted": "#f0f0f0",
|
|
661
|
+
"muted-foreground": "#5d5d5d",
|
|
662
|
+
"accent": "#e8e8e8",
|
|
663
|
+
"accent-foreground": "#222222",
|
|
664
|
+
"destructive": "#d02b31",
|
|
665
|
+
"border": "#dedede",
|
|
666
|
+
"input": "#cecece",
|
|
667
|
+
"ring": "#333333",
|
|
668
|
+
"chart-1": "#333333",
|
|
669
669
|
},
|
|
670
670
|
dark: {
|
|
671
|
-
"background": "
|
|
672
|
-
"foreground": "
|
|
673
|
-
"card": "
|
|
674
|
-
"card-foreground": "
|
|
675
|
-
"popover": "
|
|
676
|
-
"popover-foreground": "
|
|
677
|
-
"primary": "
|
|
678
|
-
"primary-foreground": "
|
|
679
|
-
"secondary": "
|
|
680
|
-
"secondary-foreground": "
|
|
681
|
-
"muted": "
|
|
682
|
-
"muted-foreground": "
|
|
683
|
-
"accent": "
|
|
684
|
-
"accent-foreground": "
|
|
685
|
-
"destructive": "
|
|
686
|
-
"border": "
|
|
687
|
-
"input": "
|
|
688
|
-
"ring": "
|
|
689
|
-
"chart-1": "
|
|
671
|
+
"background": "#121212",
|
|
672
|
+
"foreground": "#eeeeee",
|
|
673
|
+
"card": "#191919",
|
|
674
|
+
"card-foreground": "#eeeeee",
|
|
675
|
+
"popover": "#202020",
|
|
676
|
+
"popover-foreground": "#eeeeee",
|
|
677
|
+
"primary": "#e4e4e4",
|
|
678
|
+
"primary-foreground": "#121212",
|
|
679
|
+
"secondary": "#292929",
|
|
680
|
+
"secondary-foreground": "#eeeeee",
|
|
681
|
+
"muted": "#242424",
|
|
682
|
+
"muted-foreground": "#ababab",
|
|
683
|
+
"accent": "#333333",
|
|
684
|
+
"accent-foreground": "#eeeeee",
|
|
685
|
+
"destructive": "#f66c6d",
|
|
686
|
+
"border": "#333333",
|
|
687
|
+
"input": "#424242",
|
|
688
|
+
"ring": "#e4e4e4",
|
|
689
|
+
"chart-1": "#e4e4e4",
|
|
690
690
|
},
|
|
691
691
|
},
|
|
692
692
|
{
|
|
693
693
|
id: "lagoon",
|
|
694
694
|
name: "Lagoon",
|
|
695
695
|
light: {
|
|
696
|
-
"background": "
|
|
697
|
-
"foreground": "
|
|
698
|
-
"card": "
|
|
699
|
-
"card-foreground": "
|
|
700
|
-
"popover": "
|
|
701
|
-
"popover-foreground": "
|
|
702
|
-
"primary": "
|
|
703
|
-
"primary-foreground": "
|
|
704
|
-
"secondary": "
|
|
705
|
-
"secondary-foreground": "
|
|
706
|
-
"muted": "
|
|
707
|
-
"muted-foreground": "
|
|
708
|
-
"accent": "
|
|
709
|
-
"accent-foreground": "
|
|
710
|
-
"destructive": "
|
|
711
|
-
"border": "
|
|
712
|
-
"input": "
|
|
713
|
-
"ring": "
|
|
714
|
-
"chart-1": "
|
|
696
|
+
"background": "#f3fcfd",
|
|
697
|
+
"foreground": "#0e2627",
|
|
698
|
+
"card": "#fbffff",
|
|
699
|
+
"card-foreground": "#0e2627",
|
|
700
|
+
"popover": "#fbffff",
|
|
701
|
+
"popover-foreground": "#0e2627",
|
|
702
|
+
"primary": "#007780",
|
|
703
|
+
"primary-foreground": "#fcfcfc",
|
|
704
|
+
"secondary": "#d5f2f3",
|
|
705
|
+
"secondary-foreground": "#0e2627",
|
|
706
|
+
"muted": "#e3f4f5",
|
|
707
|
+
"muted-foreground": "#456466",
|
|
708
|
+
"accent": "#c3f2f4",
|
|
709
|
+
"accent-foreground": "#0e2627",
|
|
710
|
+
"destructive": "#d02b31",
|
|
711
|
+
"border": "#cde3e4",
|
|
712
|
+
"input": "#b8d4d5",
|
|
713
|
+
"ring": "#007780",
|
|
714
|
+
"chart-1": "#007780",
|
|
715
715
|
},
|
|
716
716
|
dark: {
|
|
717
|
-
"background": "
|
|
718
|
-
"foreground": "
|
|
719
|
-
"card": "
|
|
720
|
-
"card-foreground": "
|
|
721
|
-
"popover": "
|
|
722
|
-
"popover-foreground": "
|
|
723
|
-
"primary": "
|
|
724
|
-
"primary-foreground": "
|
|
725
|
-
"secondary": "
|
|
726
|
-
"secondary-foreground": "
|
|
727
|
-
"muted": "
|
|
728
|
-
"muted-foreground": "
|
|
729
|
-
"accent": "
|
|
730
|
-
"accent-foreground": "
|
|
731
|
-
"destructive": "
|
|
732
|
-
"border": "
|
|
733
|
-
"input": "
|
|
734
|
-
"ring": "
|
|
735
|
-
"chart-1": "
|
|
717
|
+
"background": "#041516",
|
|
718
|
+
"foreground": "#e8f1f1",
|
|
719
|
+
"card": "#091d1e",
|
|
720
|
+
"card-foreground": "#e8f1f1",
|
|
721
|
+
"popover": "#102425",
|
|
722
|
+
"popover-foreground": "#e8f1f1",
|
|
723
|
+
"primary": "#53c5cb",
|
|
724
|
+
"primary-foreground": "#041516",
|
|
725
|
+
"secondary": "#162d2f",
|
|
726
|
+
"secondary-foreground": "#e8f1f1",
|
|
727
|
+
"muted": "#152829",
|
|
728
|
+
"muted-foreground": "#9cafb0",
|
|
729
|
+
"accent": "#0c3a3c",
|
|
730
|
+
"accent-foreground": "#e8f1f1",
|
|
731
|
+
"destructive": "#f66c6d",
|
|
732
|
+
"border": "#203839",
|
|
733
|
+
"input": "#2f4749",
|
|
734
|
+
"ring": "#53c5cb",
|
|
735
|
+
"chart-1": "#53c5cb",
|
|
736
736
|
},
|
|
737
737
|
},
|
|
738
738
|
{
|
|
739
739
|
id: "dune",
|
|
740
740
|
name: "Dune",
|
|
741
741
|
light: {
|
|
742
|
-
"background": "
|
|
743
|
-
"foreground": "
|
|
744
|
-
"card": "
|
|
745
|
-
"card-foreground": "
|
|
746
|
-
"popover": "
|
|
747
|
-
"popover-foreground": "
|
|
748
|
-
"primary": "
|
|
749
|
-
"primary-foreground": "
|
|
750
|
-
"secondary": "
|
|
751
|
-
"secondary-foreground": "
|
|
752
|
-
"muted": "
|
|
753
|
-
"muted-foreground": "
|
|
754
|
-
"accent": "
|
|
755
|
-
"accent-foreground": "
|
|
756
|
-
"destructive": "
|
|
757
|
-
"border": "
|
|
758
|
-
"input": "
|
|
759
|
-
"ring": "
|
|
760
|
-
"chart-1": "
|
|
742
|
+
"background": "#fef9f3",
|
|
743
|
+
"foreground": "#2b1f11",
|
|
744
|
+
"card": "#fffefb",
|
|
745
|
+
"card-foreground": "#2b1f11",
|
|
746
|
+
"popover": "#fffefb",
|
|
747
|
+
"popover-foreground": "#2b1f11",
|
|
748
|
+
"primary": "#9d6300",
|
|
749
|
+
"primary-foreground": "#fcfcfc",
|
|
750
|
+
"secondary": "#f9e8d6",
|
|
751
|
+
"secondary-foreground": "#2b1f11",
|
|
752
|
+
"muted": "#f8eee4",
|
|
753
|
+
"muted-foreground": "#6b5a48",
|
|
754
|
+
"accent": "#fde3c6",
|
|
755
|
+
"accent-foreground": "#2b1f11",
|
|
756
|
+
"destructive": "#d02b31",
|
|
757
|
+
"border": "#e9dccd",
|
|
758
|
+
"input": "#dbcbb9",
|
|
759
|
+
"ring": "#9d6300",
|
|
760
|
+
"chart-1": "#9d6300",
|
|
761
761
|
},
|
|
762
762
|
dark: {
|
|
763
|
-
"background": "
|
|
764
|
-
"foreground": "
|
|
765
|
-
"card": "
|
|
766
|
-
"card-foreground": "
|
|
767
|
-
"popover": "
|
|
768
|
-
"popover-foreground": "
|
|
769
|
-
"primary": "
|
|
770
|
-
"primary-foreground": "
|
|
771
|
-
"secondary": "
|
|
772
|
-
"secondary-foreground": "
|
|
773
|
-
"muted": "
|
|
774
|
-
"muted-foreground": "
|
|
775
|
-
"accent": "
|
|
776
|
-
"accent-foreground": "
|
|
777
|
-
"destructive": "
|
|
778
|
-
"border": "
|
|
779
|
-
"input": "
|
|
780
|
-
"ring": "
|
|
781
|
-
"chart-1": "
|
|
763
|
+
"background": "#181006",
|
|
764
|
+
"foreground": "#f3ede8",
|
|
765
|
+
"card": "#21170c",
|
|
766
|
+
"card-foreground": "#f3ede8",
|
|
767
|
+
"popover": "#291e12",
|
|
768
|
+
"popover-foreground": "#f3ede8",
|
|
769
|
+
"primary": "#dba666",
|
|
770
|
+
"primary-foreground": "#181006",
|
|
771
|
+
"secondary": "#322618",
|
|
772
|
+
"secondary-foreground": "#f3ede8",
|
|
773
|
+
"muted": "#2c2217",
|
|
774
|
+
"muted-foreground": "#b4a99d",
|
|
775
|
+
"accent": "#422e16",
|
|
776
|
+
"accent-foreground": "#f3ede8",
|
|
777
|
+
"destructive": "#f66c6d",
|
|
778
|
+
"border": "#3d3022",
|
|
779
|
+
"input": "#4d4031",
|
|
780
|
+
"ring": "#dba666",
|
|
781
|
+
"chart-1": "#dba666",
|
|
782
782
|
},
|
|
783
783
|
},
|
|
784
784
|
{
|
|
785
785
|
id: "plum",
|
|
786
786
|
name: "Plum",
|
|
787
787
|
light: {
|
|
788
|
-
"background": "
|
|
789
|
-
"foreground": "
|
|
790
|
-
"card": "
|
|
791
|
-
"card-foreground": "
|
|
792
|
-
"popover": "
|
|
793
|
-
"popover-foreground": "
|
|
794
|
-
"primary": "
|
|
795
|
-
"primary-foreground": "
|
|
796
|
-
"secondary": "
|
|
797
|
-
"secondary-foreground": "
|
|
798
|
-
"muted": "
|
|
799
|
-
"muted-foreground": "
|
|
800
|
-
"accent": "
|
|
801
|
-
"accent-foreground": "
|
|
802
|
-
"destructive": "
|
|
803
|
-
"border": "
|
|
804
|
-
"input": "
|
|
805
|
-
"ring": "
|
|
806
|
-
"chart-1": "
|
|
788
|
+
"background": "#fef8ff",
|
|
789
|
+
"foreground": "#291c2c",
|
|
790
|
+
"card": "#fffdff",
|
|
791
|
+
"card-foreground": "#291c2c",
|
|
792
|
+
"popover": "#fffdff",
|
|
793
|
+
"popover-foreground": "#291c2c",
|
|
794
|
+
"primary": "#9553a4",
|
|
795
|
+
"primary-foreground": "#fcfcfc",
|
|
796
|
+
"secondary": "#f6e4fa",
|
|
797
|
+
"secondary-foreground": "#291c2c",
|
|
798
|
+
"muted": "#f7ecf9",
|
|
799
|
+
"muted-foreground": "#68566d",
|
|
800
|
+
"accent": "#f9dcff",
|
|
801
|
+
"accent-foreground": "#291c2c",
|
|
802
|
+
"destructive": "#d02b31",
|
|
803
|
+
"border": "#e7d8ea",
|
|
804
|
+
"input": "#d8c7dc",
|
|
805
|
+
"ring": "#9553a4",
|
|
806
|
+
"chart-1": "#9553a4",
|
|
807
807
|
},
|
|
808
808
|
dark: {
|
|
809
|
-
"background": "
|
|
810
|
-
"foreground": "
|
|
811
|
-
"card": "
|
|
812
|
-
"card-foreground": "
|
|
813
|
-
"popover": "
|
|
814
|
-
"popover-foreground": "
|
|
815
|
-
"primary": "
|
|
816
|
-
"primary-foreground": "
|
|
817
|
-
"secondary": "
|
|
818
|
-
"secondary-foreground": "
|
|
819
|
-
"muted": "
|
|
820
|
-
"muted-foreground": "
|
|
821
|
-
"accent": "
|
|
822
|
-
"accent-foreground": "
|
|
823
|
-
"destructive": "
|
|
824
|
-
"border": "
|
|
825
|
-
"input": "
|
|
826
|
-
"ring": "
|
|
827
|
-
"chart-1": "
|
|
809
|
+
"background": "#170d19",
|
|
810
|
+
"foreground": "#f2ecf3",
|
|
811
|
+
"card": "#201522",
|
|
812
|
+
"card-foreground": "#f2ecf3",
|
|
813
|
+
"popover": "#271c2a",
|
|
814
|
+
"popover-foreground": "#f2ecf3",
|
|
815
|
+
"primary": "#d398e0",
|
|
816
|
+
"primary-foreground": "#170d19",
|
|
817
|
+
"secondary": "#312334",
|
|
818
|
+
"secondary-foreground": "#f2ecf3",
|
|
819
|
+
"muted": "#2a202d",
|
|
820
|
+
"muted-foreground": "#b2a6b5",
|
|
821
|
+
"accent": "#3f2945",
|
|
822
|
+
"accent-foreground": "#f2ecf3",
|
|
823
|
+
"destructive": "#f66c6d",
|
|
824
|
+
"border": "#3b2d3e",
|
|
825
|
+
"input": "#4b3c4e",
|
|
826
|
+
"ring": "#d398e0",
|
|
827
|
+
"chart-1": "#d398e0",
|
|
828
828
|
},
|
|
829
829
|
},
|
|
830
830
|
{
|
|
831
831
|
id: "moss",
|
|
832
832
|
name: "Moss",
|
|
833
833
|
light: {
|
|
834
|
-
"background": "
|
|
835
|
-
"foreground": "
|
|
836
|
-
"card": "
|
|
837
|
-
"card-foreground": "
|
|
838
|
-
"popover": "
|
|
839
|
-
"popover-foreground": "
|
|
840
|
-
"primary": "
|
|
841
|
-
"primary-foreground": "
|
|
842
|
-
"secondary": "
|
|
843
|
-
"secondary-foreground": "
|
|
844
|
-
"muted": "
|
|
845
|
-
"muted-foreground": "
|
|
846
|
-
"accent": "
|
|
847
|
-
"accent-foreground": "
|
|
848
|
-
"destructive": "
|
|
849
|
-
"border": "
|
|
850
|
-
"input": "
|
|
851
|
-
"ring": "
|
|
852
|
-
"chart-1": "
|
|
834
|
+
"background": "#f8fcf6",
|
|
835
|
+
"foreground": "#1c2517",
|
|
836
|
+
"card": "#fdfffc",
|
|
837
|
+
"card-foreground": "#1c2517",
|
|
838
|
+
"popover": "#fdfffc",
|
|
839
|
+
"popover-foreground": "#1c2517",
|
|
840
|
+
"primary": "#4a7333",
|
|
841
|
+
"primary-foreground": "#fcfcfc",
|
|
842
|
+
"secondary": "#e3f0dd",
|
|
843
|
+
"secondary-foreground": "#1c2517",
|
|
844
|
+
"muted": "#ebf3e8",
|
|
845
|
+
"muted-foreground": "#56624f",
|
|
846
|
+
"accent": "#dcefd2",
|
|
847
|
+
"accent-foreground": "#1c2517",
|
|
848
|
+
"destructive": "#d02b31",
|
|
849
|
+
"border": "#d8e2d3",
|
|
850
|
+
"input": "#c6d2c0",
|
|
851
|
+
"ring": "#4a7333",
|
|
852
|
+
"chart-1": "#4a7333",
|
|
853
853
|
},
|
|
854
854
|
dark: {
|
|
855
|
-
"background": "
|
|
856
|
-
"foreground": "
|
|
857
|
-
"card": "
|
|
858
|
-
"card-foreground": "
|
|
859
|
-
"popover": "
|
|
860
|
-
"popover-foreground": "
|
|
861
|
-
"primary": "
|
|
862
|
-
"primary-foreground": "
|
|
863
|
-
"secondary": "
|
|
864
|
-
"secondary-foreground": "
|
|
865
|
-
"muted": "
|
|
866
|
-
"muted-foreground": "
|
|
867
|
-
"accent": "
|
|
868
|
-
"accent-foreground": "
|
|
869
|
-
"destructive": "
|
|
870
|
-
"border": "
|
|
871
|
-
"input": "
|
|
872
|
-
"ring": "
|
|
873
|
-
"chart-1": "
|
|
855
|
+
"background": "#0d140a",
|
|
856
|
+
"foreground": "#ecf0ea",
|
|
857
|
+
"card": "#151c11",
|
|
858
|
+
"card-foreground": "#ecf0ea",
|
|
859
|
+
"popover": "#1b2317",
|
|
860
|
+
"popover-foreground": "#ecf0ea",
|
|
861
|
+
"primary": "#97bf82",
|
|
862
|
+
"primary-foreground": "#0d140a",
|
|
863
|
+
"secondary": "#232c1e",
|
|
864
|
+
"secondary-foreground": "#ecf0ea",
|
|
865
|
+
"muted": "#1f271c",
|
|
866
|
+
"muted-foreground": "#a6aea1",
|
|
867
|
+
"accent": "#293821",
|
|
868
|
+
"accent-foreground": "#ecf0ea",
|
|
869
|
+
"destructive": "#f66c6d",
|
|
870
|
+
"border": "#2d3628",
|
|
871
|
+
"input": "#3c4637",
|
|
872
|
+
"ring": "#97bf82",
|
|
873
|
+
"chart-1": "#97bf82",
|
|
874
874
|
},
|
|
875
875
|
},
|
|
876
876
|
{
|
|
877
877
|
id: "crimson",
|
|
878
878
|
name: "Crimson",
|
|
879
879
|
light: {
|
|
880
|
-
"background": "
|
|
881
|
-
"foreground": "
|
|
882
|
-
"card": "
|
|
883
|
-
"card-foreground": "
|
|
884
|
-
"popover": "
|
|
885
|
-
"popover-foreground": "
|
|
886
|
-
"primary": "
|
|
887
|
-
"primary-foreground": "
|
|
888
|
-
"secondary": "
|
|
889
|
-
"secondary-foreground": "
|
|
890
|
-
"muted": "
|
|
891
|
-
"muted-foreground": "
|
|
892
|
-
"accent": "
|
|
893
|
-
"accent-foreground": "
|
|
894
|
-
"destructive": "
|
|
895
|
-
"border": "
|
|
896
|
-
"input": "
|
|
897
|
-
"ring": "
|
|
898
|
-
"chart-1": "
|
|
880
|
+
"background": "#fff7f6",
|
|
881
|
+
"foreground": "#331919",
|
|
882
|
+
"card": "#fffcfc",
|
|
883
|
+
"card-foreground": "#331919",
|
|
884
|
+
"popover": "#fffcfc",
|
|
885
|
+
"popover-foreground": "#331919",
|
|
886
|
+
"primary": "#c13a46",
|
|
887
|
+
"primary-foreground": "#fcfcfc",
|
|
888
|
+
"secondary": "#ffe1df",
|
|
889
|
+
"secondary-foreground": "#331919",
|
|
890
|
+
"muted": "#ffeae9",
|
|
891
|
+
"muted-foreground": "#785252",
|
|
892
|
+
"accent": "#ffd7d5",
|
|
893
|
+
"accent-foreground": "#331919",
|
|
894
|
+
"destructive": "#d02b31",
|
|
895
|
+
"border": "#f4d6d5",
|
|
896
|
+
"input": "#e9c3c2",
|
|
897
|
+
"ring": "#c13a46",
|
|
898
|
+
"chart-1": "#c13a46",
|
|
899
899
|
},
|
|
900
900
|
dark: {
|
|
901
|
-
"background": "
|
|
902
|
-
"foreground": "
|
|
903
|
-
"card": "
|
|
904
|
-
"card-foreground": "
|
|
905
|
-
"popover": "
|
|
906
|
-
"popover-foreground": "
|
|
907
|
-
"primary": "
|
|
908
|
-
"primary-foreground": "
|
|
909
|
-
"secondary": "
|
|
910
|
-
"secondary-foreground": "
|
|
911
|
-
"muted": "
|
|
912
|
-
"muted-foreground": "
|
|
913
|
-
"accent": "
|
|
914
|
-
"accent-foreground": "
|
|
915
|
-
"destructive": "
|
|
916
|
-
"border": "
|
|
917
|
-
"input": "
|
|
918
|
-
"ring": "
|
|
919
|
-
"chart-1": "
|
|
901
|
+
"background": "#1e0b0b",
|
|
902
|
+
"foreground": "#f8ebeb",
|
|
903
|
+
"card": "#281212",
|
|
904
|
+
"card-foreground": "#f8ebeb",
|
|
905
|
+
"popover": "#301919",
|
|
906
|
+
"popover-foreground": "#f8ebeb",
|
|
907
|
+
"primary": "#ff898b",
|
|
908
|
+
"primary-foreground": "#1e0b0b",
|
|
909
|
+
"secondary": "#3b2020",
|
|
910
|
+
"secondary-foreground": "#f8ebeb",
|
|
911
|
+
"muted": "#331d1d",
|
|
912
|
+
"muted-foreground": "#bea4a3",
|
|
913
|
+
"accent": "#502324",
|
|
914
|
+
"accent-foreground": "#f8ebeb",
|
|
915
|
+
"destructive": "#f66c6d",
|
|
916
|
+
"border": "#462a2a",
|
|
917
|
+
"input": "#573939",
|
|
918
|
+
"ring": "#ff898b",
|
|
919
|
+
"chart-1": "#ff898b",
|
|
920
920
|
},
|
|
921
921
|
},
|
|
922
922
|
]
|
package/src/webui/protocol.ts
CHANGED
|
@@ -218,6 +218,23 @@ export type StreamEvent =
|
|
|
218
218
|
| { type: "reply"; text: string }
|
|
219
219
|
| { type: "notice"; text: string; level: NoticeLevel };
|
|
220
220
|
|
|
221
|
+
/** A terminal the server runs (`terminal.*`): a shell in the project's folder. */
|
|
222
|
+
export interface TerminalInfo {
|
|
223
|
+
id: string;
|
|
224
|
+
title: string;
|
|
225
|
+
cwd: string;
|
|
226
|
+
alive: boolean;
|
|
227
|
+
/** The shell's exit code, once it ended. */
|
|
228
|
+
exitCode?: number;
|
|
229
|
+
startedAt: number;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/** One message on a terminal's stream (`GET /api/terminal.stream?id=…`). */
|
|
233
|
+
export type TerminalStreamEvent =
|
|
234
|
+
| { type: "reset"; data: string; alive: boolean; code?: number }
|
|
235
|
+
| { type: "data"; data: string }
|
|
236
|
+
| { type: "exit"; code?: number };
|
|
237
|
+
|
|
221
238
|
/** The planning session as `planner.get` describes it. */
|
|
222
239
|
export interface PlannerSnapshot {
|
|
223
240
|
/** Seats on the panel next round. */
|
|
@@ -324,6 +341,8 @@ export interface EntryRefInfo {
|
|
|
324
341
|
/** `tasks.get`: one task read whole, in the terminal's wording. */
|
|
325
342
|
export interface TaskDetail {
|
|
326
343
|
canAccept: boolean;
|
|
344
|
+
/** Open steps can be skipped (the user gives a reason). */
|
|
345
|
+
canSkip: boolean;
|
|
327
346
|
canForceClose: boolean;
|
|
328
347
|
timing?: TimingProjection;
|
|
329
348
|
delivery?: Delivery;
|
|
@@ -337,9 +356,9 @@ export interface TaskDetail {
|
|
|
337
356
|
planDetails?: string;
|
|
338
357
|
/**
|
|
339
358
|
* The plan as a checklist, in order; `current` is the step under way, `active` the steps a worker is on right now,
|
|
340
|
-
* each with its worker time (ms, as of the reply).
|
|
359
|
+
* each with its worker time (ms, as of the reply); `skip` carries the reason the user gave for skipping a step.
|
|
341
360
|
*/
|
|
342
|
-
steps: Array<{ text: string; status: "done" | "current" | "open"; active?: boolean; workedMs?: number; activeAgentCount?: number; agents?: StepAgentInfo[] }>;
|
|
361
|
+
steps: Array<{ text: string; status: "done" | "current" | "open" | "skipped"; skip?: { reason: string; at: string }; active?: boolean; workedMs?: number; activeAgentCount?: number; agents?: StepAgentInfo[] }>;
|
|
343
362
|
/** How long the task's agents have worked on it, idle time left out (ms, as of the reply); `running` while they work. */
|
|
344
363
|
work?: WorkClock;
|
|
345
364
|
amendments: string[];
|
|
@@ -520,6 +539,7 @@ export interface Api {
|
|
|
520
539
|
"tasks.open": { request: { taskId: string }; result: { sessionId?: string; key?: string; notice?: string } };
|
|
521
540
|
"tasks.resume": { request: { taskId: string }; result: { notice: string; key?: string } };
|
|
522
541
|
"tasks.accept": { request: { taskId: string }; result: { notice: string } };
|
|
542
|
+
"tasks.skipStep": { request: { taskId: string; step: number; text: string; reason: string }; result: { notice: string } };
|
|
523
543
|
"tasks.forceClose": { request: { taskId: string; title: string }; result: { notice: string } };
|
|
524
544
|
"tasks.resolveApproval": { request: { taskId: string; approvalId: string; decision: "approved" | "rejected"; note?: string }; result: { notice: string } };
|
|
525
545
|
"tasks.deliveryReview": { request: { taskId: string }; result: { delivery: Delivery } };
|
|
@@ -535,6 +555,13 @@ export interface Api {
|
|
|
535
555
|
"sessions.message": { request: { key?: string; sessionId?: string; text: string; attachments?: string[] }; result: { notice?: string } };
|
|
536
556
|
"sessions.switch": { request: { key?: string; sessionId?: string; claimTaskId?: string }; result: { notice: string } };
|
|
537
557
|
"sessions.answer": { request: { key: string; dialogId: string; answer: DialogAnswer }; result: { notice: string } };
|
|
558
|
+
"sessions.rename": { request: { key?: string; name: string }; result: { notice: string } };
|
|
559
|
+
"sessions.archive": { request: { key: string; archived?: boolean }; result: { notice: string } };
|
|
560
|
+
"terminal.list": { request: Record<string, never>; result: { available: boolean; reason?: string; terminals: TerminalInfo[] } };
|
|
561
|
+
"terminal.open": { request: { cols: number; rows: number }; result: TerminalInfo };
|
|
562
|
+
"terminal.input": { request: { id: string; data: string }; result: Record<string, never> };
|
|
563
|
+
"terminal.resize": { request: { id: string; cols: number; rows: number }; result: Record<string, never> };
|
|
564
|
+
"terminal.close": { request: { id: string }; result: Record<string, never> };
|
|
538
565
|
"prompts.list": { request: Record<string, never>; result: { prompts: WebPrompt[] } };
|
|
539
566
|
"prompts.answer": { request: { id: string; answer: unknown }; result: { notice?: string } };
|
|
540
567
|
"prompts.dismiss": { request: { id: string }; result: Record<string, never> };
|
package/src/webui/server.ts
CHANGED
|
@@ -27,7 +27,8 @@ import {
|
|
|
27
27
|
sessionCookie,
|
|
28
28
|
sessionValue,
|
|
29
29
|
} from "./auth.ts";
|
|
30
|
-
import { callName, HttpError, routeApiCall, sendError, sendJson } from "./api/index.ts";
|
|
30
|
+
import { applyBaseHeaders, callName, HttpError, routeApiCall, sendError, sendJson } from "./api/index.ts";
|
|
31
|
+
import { terminals } from "./terminal.ts";
|
|
31
32
|
import { distDir, serveStatic } from "./static.ts";
|
|
32
33
|
import { EventHub } from "./events.ts";
|
|
33
34
|
import { servePreview } from "./files.ts";
|
|
@@ -292,6 +293,19 @@ async function route(req: IncomingMessage, res: ServerResponse, state: RouteStat
|
|
|
292
293
|
openStream(req, res, url, state);
|
|
293
294
|
return;
|
|
294
295
|
}
|
|
296
|
+
if (url.pathname === "/api/terminal.stream") {
|
|
297
|
+
if (req.method !== "GET") {
|
|
298
|
+
sendError(res, "unsupported", "only GET", 405);
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
if (!isSignedIn(req.headers.cookie, state.session)) {
|
|
302
|
+
sendError(res, "unauthorized", "open the link Pi printed", 401);
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
305
|
+
applyBaseHeaders(res);
|
|
306
|
+
if (!terminals.stream(req, res, url.searchParams.get("id") ?? "")) sendError(res, "not_found", "no such terminal", 404);
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
295
309
|
await routeApi(req, res, url, state);
|
|
296
310
|
}
|
|
297
311
|
|
|
@@ -388,6 +402,7 @@ export async function startWebServer(options: WebServerOptions): Promise<WebServ
|
|
|
388
402
|
return `http://127.0.0.1:${state.port}/#token=${state.link}`;
|
|
389
403
|
},
|
|
390
404
|
close: async () => {
|
|
405
|
+
terminals.closeAll();
|
|
391
406
|
state.opener!.close();
|
|
392
407
|
state.registry!.close();
|
|
393
408
|
hub.close();
|