@unson/brainbase-mcp 0.50.13 → 0.50.14

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.
@@ -733,3 +733,344 @@
733
733
  .bb-world-label.is-exit.is-restricted { border-color: #e3a1a7; color: #a1192a; }
734
734
  .bb-world-label.is-exit.is-unknown,
735
735
  .bb-world-label.is-exit.is-unavailable { color: var(--bb-color-muted); }
736
+
737
+
738
+ /*
739
+ * The pulse of the work (story-world-three-scales-v1): the panel whose contents follow the scale the
740
+ * viewer is at, and the small marks the map carries at each scale. Soft colours, one meaning each:
741
+ * mint = in progress / an agent moving, amber = waiting, grey = not started or not confirmed, green = done.
742
+ */
743
+ .bb-world {
744
+ --bb-world-flow-done: #a9d3ae;
745
+ --bb-world-flow-progress: #4fb8a4;
746
+ --bb-world-flow-waiting: #ecc46a;
747
+ --bb-world-flow-pending: #dfe5e8;
748
+ --bb-world-actor-tone: #9aa3a6;
749
+ }
750
+
751
+ .bb-world-pulse {
752
+ position: absolute;
753
+ left: 16px;
754
+ bottom: 16px;
755
+ z-index: 7;
756
+ display: flex;
757
+ flex-direction: column;
758
+ width: min(340px, calc(100% - 32px));
759
+ max-height: min(62%, 540px);
760
+ border: 1px solid color-mix(in srgb, var(--bb-color-border) 80%, transparent);
761
+ border-radius: 16px;
762
+ background: rgb(255 255 255 / 93%);
763
+ backdrop-filter: blur(8px);
764
+ box-shadow: 0 10px 30px rgb(32 41 57 / 12%);
765
+ color: var(--bb-color-ink);
766
+ font-family: var(--bb-font-sans);
767
+ font-size: 12px;
768
+ line-height: 1.6;
769
+ }
770
+
771
+ .bb-world--canvas .bb-world-pulse { bottom: 54px; }
772
+ .bb-world-pulse[hidden] { display: none; }
773
+ .bb-world-pulse *, .bb-world-pulse *::before { box-sizing: border-box; }
774
+ .bb-world-pulse button { font: inherit; color: inherit; cursor: pointer; }
775
+ .bb-world-pulse :focus-visible { outline: 2px solid var(--bb-color-focus); outline-offset: 2px; }
776
+
777
+ .bb-world-pulse-top {
778
+ display: flex;
779
+ align-items: center;
780
+ gap: 8px;
781
+ padding: 8px 8px 8px 14px;
782
+ }
783
+
784
+ .bb-world-pulse:not(.is-folded) .bb-world-pulse-top { border-bottom: 1px solid var(--bb-color-border); }
785
+
786
+ .bb-world-pulse-crumbs {
787
+ display: flex;
788
+ flex: 1;
789
+ flex-wrap: wrap;
790
+ align-items: center;
791
+ gap: 2px 4px;
792
+ min-width: 0;
793
+ }
794
+
795
+ .bb-world-pulse-crumb {
796
+ max-width: 100%;
797
+ overflow: hidden;
798
+ padding: 2px 6px;
799
+ border: 0;
800
+ border-radius: 999px;
801
+ background: none;
802
+ color: var(--bb-color-muted);
803
+ text-overflow: ellipsis;
804
+ white-space: nowrap;
805
+ }
806
+
807
+ button.bb-world-pulse-crumb:hover { background: var(--bb-color-accent-soft); color: var(--bb-color-ink); }
808
+ .bb-world-pulse-crumb.is-current { color: var(--bb-color-ink); font-weight: var(--bb-font-weight-medium); }
809
+ .bb-world-pulse-sep { color: var(--bb-color-muted); }
810
+
811
+ .bb-world-pulse-fold {
812
+ flex: none;
813
+ width: 28px;
814
+ height: 28px;
815
+ border: 0;
816
+ border-radius: 50%;
817
+ background: none;
818
+ color: var(--bb-color-muted);
819
+ }
820
+
821
+ .bb-world-pulse-fold:hover { background: var(--bb-color-accent-soft); }
822
+
823
+ .bb-world-pulse-body {
824
+ display: grid;
825
+ gap: 12px;
826
+ min-height: 0;
827
+ padding: 12px 14px 14px;
828
+ overflow-y: auto;
829
+ overscroll-behavior: contain;
830
+ }
831
+
832
+ .bb-world-pulse-body[hidden] { display: none; }
833
+ .bb-world-pulse-head h2 { margin: 0; font-size: 15px; font-weight: var(--bb-font-weight-medium); line-height: 1.4; }
834
+ .bb-world-pulse-head p { margin: 2px 0 0; color: var(--bb-color-muted); }
835
+ .bb-world-pulse-section { display: grid; gap: 8px; }
836
+ .bb-world-pulse-section h3 { margin: 0; color: var(--bb-color-muted); font-size: 11px; font-weight: var(--bb-font-weight-medium); letter-spacing: 0.04em; }
837
+ .bb-world-pulse-note { margin: 0; color: var(--bb-color-muted); }
838
+
839
+ .bb-world-flow { display: grid; gap: 6px; min-width: 0; flex: 1; }
840
+
841
+ .bb-world-flow-bar {
842
+ display: flex;
843
+ gap: 2px;
844
+ height: 8px;
845
+ overflow: hidden;
846
+ border-radius: 999px;
847
+ background: var(--bb-world-flow-pending);
848
+ }
849
+
850
+ .bb-world-flow-part { min-width: 4px; }
851
+ .bb-world-flow-part.is-done, .bb-world-flow-legend .is-done .bb-world-flow-dot { background: var(--bb-world-flow-done); }
852
+ .bb-world-flow-part.is-in_progress, .bb-world-flow-legend .is-in_progress .bb-world-flow-dot { background: var(--bb-world-flow-progress); }
853
+ .bb-world-flow-part.is-waiting, .bb-world-flow-legend .is-waiting .bb-world-flow-dot { background: var(--bb-world-flow-waiting); }
854
+ .bb-world-flow-part.is-pending, .bb-world-flow-legend .is-pending .bb-world-flow-dot { background: var(--bb-world-flow-pending); }
855
+
856
+ .bb-world-flow-legend {
857
+ display: flex;
858
+ flex-wrap: wrap;
859
+ gap: 2px 12px;
860
+ margin: 0;
861
+ padding: 0;
862
+ list-style: none;
863
+ }
864
+
865
+ .bb-world-flow-legend li { display: inline-flex; align-items: center; gap: 5px; }
866
+ .bb-world-flow-legend li.is-none { color: var(--bb-color-muted); }
867
+ .bb-world-flow-legend strong { font-weight: var(--bb-font-weight-medium); font-variant-numeric: tabular-nums; }
868
+ .bb-world-flow-dot { width: 8px; height: 8px; border-radius: 50%; }
869
+
870
+ .bb-world-pulse-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
871
+
872
+ .bb-world-pulse-row {
873
+ display: flex;
874
+ flex-wrap: wrap;
875
+ align-items: center;
876
+ gap: 4px 8px;
877
+ width: 100%;
878
+ padding: 7px 10px;
879
+ border: 1px solid transparent;
880
+ border-radius: 10px;
881
+ background: var(--bb-color-surface);
882
+ text-align: left;
883
+ transition: background-color 120ms ease, border-color 120ms ease;
884
+ }
885
+
886
+ .bb-world-pulse-row:hover { border-color: var(--bb-world-flow-progress); background: var(--bb-color-accent-soft); }
887
+ .bb-world-pulse-row.is-street { display: grid; gap: 5px; }
888
+ .bb-world-pulse-row-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
889
+ .bb-world-pulse-name { flex: 1; min-width: 0; overflow: hidden; font-weight: var(--bb-font-weight-medium); text-overflow: ellipsis; white-space: nowrap; }
890
+ .bb-world-pulse-name.is-unlabelled { color: var(--bb-color-muted); font-weight: inherit; }
891
+ .bb-world-pulse-row.is-work .bb-world-pulse-name { flex-basis: 100%; white-space: normal; }
892
+ .bb-world-pulse-count, .bb-world-pulse-quiet, .bb-world-pulse-who { color: var(--bb-color-muted); font-variant-numeric: tabular-nums; }
893
+
894
+ .bb-world-pulse-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
895
+ .bb-world-pulse-chips:empty { display: none; }
896
+
897
+ .bb-world-pulse-chip,
898
+ .bb-world-street-chip {
899
+ display: inline-flex;
900
+ align-items: center;
901
+ gap: 4px;
902
+ padding: 0 7px;
903
+ border-radius: 999px;
904
+ background: rgb(255 255 255 / 85%);
905
+ color: var(--bb-color-ink);
906
+ font-size: 11px;
907
+ font-weight: var(--bb-font-weight-regular, 400);
908
+ line-height: 1.6;
909
+ white-space: nowrap;
910
+ }
911
+
912
+ .bb-world-pulse-chip::before,
913
+ .bb-world-street-chip::before {
914
+ content: "";
915
+ width: 7px;
916
+ height: 7px;
917
+ border-radius: 50%;
918
+ background: var(--bb-world-flow-pending);
919
+ }
920
+
921
+ .bb-world-pulse-chip.is-in_progress::before, .bb-world-street-chip.is-in_progress::before { background: var(--bb-world-flow-progress); }
922
+ .bb-world-pulse-chip.is-waiting::before, .bb-world-street-chip.is-waiting::before { background: var(--bb-world-flow-waiting); }
923
+
924
+ .bb-world-pulse-actors { display: flex; align-items: center; gap: 8px; }
925
+ .bb-world-actor-marks { display: inline-flex; flex: none; }
926
+ .bb-world-actor-marks:empty { display: none; }
927
+
928
+ .bb-world-actor-mark {
929
+ position: relative;
930
+ display: inline-grid;
931
+ place-items: center;
932
+ flex: none;
933
+ width: 26px;
934
+ height: 26px;
935
+ border: 2px solid #ffffff;
936
+ border-radius: 50%;
937
+ background: var(--bb-world-actor-tone);
938
+ color: #ffffff;
939
+ font-size: 12px;
940
+ font-weight: var(--bb-font-weight-medium);
941
+ line-height: 1;
942
+ text-shadow: 0 1px 1px rgb(0 0 0 / 25%);
943
+ }
944
+
945
+ .bb-world-actor-mark.is-small { width: 20px; height: 20px; font-size: 10px; }
946
+ .bb-world-actor-marks .bb-world-actor-mark + .bb-world-actor-mark { margin-left: -6px; }
947
+
948
+ /* The light on an agent's mark: how it is there now. */
949
+ .bb-world-actor-mark::after {
950
+ content: "";
951
+ position: absolute;
952
+ right: -3px;
953
+ bottom: -3px;
954
+ width: 9px;
955
+ height: 9px;
956
+ border: 2px solid #ffffff;
957
+ border-radius: 50%;
958
+ background: #c3ccd0;
959
+ }
960
+
961
+ .bb-world-actor-mark.is-running::after { background: #3fc48f; animation: bb-world-breathe 2.2s ease-in-out infinite; }
962
+ .bb-world-actor-mark.is-waiting::after { background: var(--bb-world-flow-waiting); }
963
+ .bb-world-actor-mark.is-queued::after { background: #a9cdea; }
964
+ .bb-world-actor-mark.is-done::after { background: var(--bb-world-flow-done); }
965
+ .bb-world-actor-mark.is-quiet, .bb-world-actor-mark.is-unconfirmed { filter: saturate(0.55); }
966
+
967
+ @keyframes bb-world-breathe {
968
+ 50% { box-shadow: 0 0 0 4px rgb(63 196 143 / 28%); }
969
+ }
970
+
971
+ .bb-world-actor-cards { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
972
+
973
+ .bb-world-actor-card {
974
+ display: grid;
975
+ gap: 6px;
976
+ padding: 10px;
977
+ border: 1px solid var(--bb-color-border);
978
+ border-radius: 12px;
979
+ background: #ffffff;
980
+ }
981
+
982
+ .bb-world-actor-card.is-running { border-color: color-mix(in srgb, var(--bb-world-flow-progress) 55%, #ffffff); }
983
+ .bb-world-actor-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
984
+ .bb-world-actor-head strong { flex: 1; min-width: 0; overflow: hidden; font-weight: var(--bb-font-weight-medium); text-overflow: ellipsis; white-space: nowrap; }
985
+
986
+ .bb-world-presence {
987
+ flex: none;
988
+ padding: 0 8px;
989
+ border-radius: 999px;
990
+ background: var(--bb-color-surface);
991
+ color: var(--bb-color-muted);
992
+ font-size: 11px;
993
+ line-height: 1.7;
994
+ }
995
+
996
+ .bb-world-presence.is-running { background: #dff5ea; color: #136c4a; }
997
+ .bb-world-presence.is-waiting { background: #fdf1cf; color: #7a5a12; }
998
+ .bb-world-presence.is-quiet { border: 1px dashed #b3bcc0; background: none; }
999
+ .bb-world-presence.is-done { background: #e8f3e9; color: #3d6b45; }
1000
+
1001
+ .bb-world-actor-works { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
1002
+
1003
+ .bb-world-actor-work {
1004
+ display: grid;
1005
+ gap: 1px;
1006
+ width: 100%;
1007
+ padding: 5px 8px;
1008
+ border: 0;
1009
+ border-radius: 8px;
1010
+ background: var(--bb-color-surface);
1011
+ text-align: left;
1012
+ }
1013
+
1014
+ .bb-world-actor-work:hover { background: var(--bb-color-accent-soft); }
1015
+ .bb-world-actor-work-detail { color: var(--bb-color-muted); font-size: 11px; }
1016
+ .bb-world-actor-work-detail.is-running { color: #136c4a; }
1017
+ .bb-world-actor-work-detail.is-waiting { color: #7a5a12; }
1018
+
1019
+ /* On the map: the city's nameplate (the world), a street's sign (a business), a work's label (a street). */
1020
+ .bb-world-label .bb-world-pulse-chips { margin-left: 6px; vertical-align: 1px; }
1021
+ .bb-world-label .bb-world-pulse-chip { border: 1px solid var(--bb-color-border); background: #ffffff; }
1022
+ .bb-world-street-chip { margin-left: 6px; }
1023
+
1024
+ .bb-world-street-actor {
1025
+ display: inline-block;
1026
+ width: 10px;
1027
+ height: 10px;
1028
+ margin-left: 4px;
1029
+ border: 1.5px solid #ffffff;
1030
+ border-radius: 50%;
1031
+ background: var(--bb-world-actor-tone);
1032
+ vertical-align: -1px;
1033
+ }
1034
+
1035
+ .bb-world-street-actor.is-running { box-shadow: 0 0 0 2px rgb(125 232 187 / 75%); }
1036
+ .bb-world-street-actor.is-quiet, .bb-world-street-actor.is-unconfirmed { opacity: 0.6; }
1037
+
1038
+ .bb-world-site-title.is-full { display: none; }
1039
+ .bb-world-site-actors { display: inline-flex; gap: 6px; margin-left: 6px; }
1040
+ .bb-world-site-actor { display: inline-flex; align-items: center; gap: 3px; }
1041
+
1042
+ .bb-world-site-actor::before {
1043
+ content: "";
1044
+ width: 7px;
1045
+ height: 7px;
1046
+ border-radius: 50%;
1047
+ background: var(--bb-world-actor-tone);
1048
+ }
1049
+
1050
+ .bb-world-site-actor-state { display: none; padding: 0 5px; border-radius: 999px; background: var(--bb-color-surface); }
1051
+ .bb-world-site-actor.is-running .bb-world-site-actor-state { background: #dff5ea; color: #136c4a; }
1052
+ .bb-world-site-actor.is-waiting .bb-world-site-actor-state { background: #fdf1cf; color: #7a5a12; }
1053
+
1054
+ /* Close to a street its work is read in full: the whole title, then who is on it and how. */
1055
+ .bb-world-labels.is-street-mode .bb-world-label.is-site {
1056
+ padding: 4px 8px;
1057
+ border-radius: 9px;
1058
+ background: rgb(255 255 255 / 94%);
1059
+ color: var(--bb-color-ink);
1060
+ font-size: 11px;
1061
+ box-shadow: 0 3px 10px rgb(32 41 57 / 10%);
1062
+ }
1063
+
1064
+ .bb-world-labels.is-street-mode .bb-world-site-title.is-short { display: none; }
1065
+ .bb-world-labels.is-street-mode .bb-world-site-title.is-full { display: block; }
1066
+ .bb-world-labels.is-street-mode .bb-world-site-actors { display: flex; margin: 2px 0 0; }
1067
+ .bb-world-labels.is-street-mode .bb-world-site-actor-state { display: inline; }
1068
+
1069
+ @media (max-width: 640px) {
1070
+ .bb-world-pulse { left: 8px; width: min(300px, calc(100% - 16px)); max-height: 46%; }
1071
+ }
1072
+
1073
+ @media (prefers-reduced-motion: reduce) {
1074
+ .bb-world-actor-mark.is-running::after { animation: none; }
1075
+ .bb-world-pulse-row { transition: none; }
1076
+ }