@duskmoon-dev/core 1.20.5 → 1.20.7

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.
@@ -5703,6 +5703,103 @@
5703
5703
  justify-self: end;
5704
5704
  }
5705
5705
 
5706
+ .chat-agent {
5707
+ align-items: start;
5708
+ row-gap: 0.5rem;
5709
+ padding: 0.75rem 0;
5710
+ min-inline-size: 0;
5711
+ color: var(--color-on-surface);
5712
+ }
5713
+
5714
+ .chat-agent:not(:has(> .chat-avatar)) {
5715
+ grid-template-columns: minmax(0, 1fr);
5716
+ }
5717
+
5718
+ .chat-agent:not(:has(> .chat-avatar)) > * {
5719
+ grid-column: 1;
5720
+ }
5721
+
5722
+ .chat-agent .chat-avatar {
5723
+ grid-row: 1;
5724
+ }
5725
+
5726
+ .chat-content {
5727
+ width: 100%;
5728
+ min-inline-size: 0;
5729
+ box-sizing: border-box;
5730
+ color: var(--color-on-surface);
5731
+ font-size: 0.9375rem;
5732
+ line-height: 1.6;
5733
+ overflow-wrap: anywhere;
5734
+ }
5735
+
5736
+ .chat-content pre {
5737
+ max-inline-size: 100%;
5738
+ min-inline-size: 0;
5739
+ overflow: auto;
5740
+ white-space: pre;
5741
+ }
5742
+
5743
+ .chat-content a {
5744
+ overflow-wrap: anywhere;
5745
+ text-decoration: underline;
5746
+ }
5747
+
5748
+ .chat-work {
5749
+ width: 100%;
5750
+ min-inline-size: 0;
5751
+ border: 0;
5752
+ padding: 0;
5753
+ background: transparent;
5754
+ }
5755
+
5756
+ .chat-work-summary {
5757
+ display: flex;
5758
+ flex-wrap: wrap;
5759
+ align-items: center;
5760
+ gap: 0.5rem;
5761
+ padding: 0.5rem 0;
5762
+ border-block-end: 1px solid var(--color-outline-variant);
5763
+ color: var(--color-on-surface-variant);
5764
+ font-size: 0.8125rem;
5765
+ line-height: 1.5;
5766
+ overflow-wrap: anywhere;
5767
+ list-style: none;
5768
+ cursor: pointer;
5769
+ }
5770
+
5771
+ .chat-work-summary::-webkit-details-marker {
5772
+ display: none;
5773
+ }
5774
+
5775
+ .chat-work-summary::after {
5776
+ content: "›";
5777
+ flex-shrink: 0;
5778
+ }
5779
+
5780
+ .chat-work[open] > .chat-work-summary::after {
5781
+ transform: rotate(90deg);
5782
+ }
5783
+
5784
+ .chat-work-summary:focus-visible {
5785
+ outline: none;
5786
+ box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
5787
+ }
5788
+
5789
+ .chat-work-body {
5790
+ display: flex;
5791
+ flex-direction: column;
5792
+ gap: 0.5rem;
5793
+ padding: 0.75rem 0;
5794
+ }
5795
+
5796
+ .chat-agent .chat-reasoning,
5797
+ .chat-agent .chat-tool {
5798
+ width: 100%;
5799
+ max-width: none;
5800
+ box-sizing: border-box;
5801
+ }
5802
+
5706
5803
  .chat-header,
5707
5804
  .chat-footer {
5708
5805
  color: var(--color-on-surface-variant);
@@ -5767,6 +5864,206 @@
5767
5864
  }
5768
5865
  }
5769
5866
 
5867
+ /** Waiting messages; the application owns dispatch, steer, and removal. */
5868
+ .chat-input-area {
5869
+ display: flex;
5870
+ flex-direction: column;
5871
+ min-inline-size: 0;
5872
+ box-sizing: border-box;
5873
+ color: var(--color-on-surface);
5874
+ }
5875
+
5876
+ .chat-input-area > .chat-queue {
5877
+ margin-inline: 0.75rem;
5878
+ margin-block-end: -0.5rem;
5879
+ padding: 0.125rem 0.5rem 0.625rem;
5880
+ border-block-end: 0;
5881
+ border-radius: var(--radius-xl) var(--radius-xl) 0 0;
5882
+ }
5883
+
5884
+ .chat-input-area > .chat-queue .chat-queue-header:not(.sr-only) {
5885
+ padding: 0.125rem 0 0.5rem;
5886
+ }
5887
+
5888
+ .chat-input-area > .chat-queue .chat-queue-list {
5889
+ padding: 0;
5890
+ }
5891
+
5892
+ .chat-queue {
5893
+ min-inline-size: 0;
5894
+ max-inline-size: 100%;
5895
+ box-sizing: border-box;
5896
+ border: 1px solid var(--color-outline-variant);
5897
+ border-radius: var(--radius-md);
5898
+ background-color: var(--color-surface-container-low);
5899
+ color: var(--color-on-surface);
5900
+ font-size: 0.875rem;
5901
+ line-height: 1.45;
5902
+ }
5903
+
5904
+ .chat-queue-header:not(.sr-only) {
5905
+ display: flex;
5906
+ flex-wrap: wrap;
5907
+ align-items: center;
5908
+ justify-content: space-between;
5909
+ gap: 0.5rem;
5910
+ padding: 0.625rem 0.875rem;
5911
+ }
5912
+
5913
+ .chat-queue-title {
5914
+ margin: 0;
5915
+ font-size: inherit;
5916
+ font-weight: 600;
5917
+ overflow-wrap: anywhere;
5918
+ }
5919
+
5920
+ .chat-queue-list {
5921
+ display: flex;
5922
+ flex-direction: column;
5923
+ gap: 0;
5924
+ max-block-size: 16rem;
5925
+ overflow-y: auto;
5926
+ overscroll-behavior: contain;
5927
+ margin: 0;
5928
+ padding: 0 0.875rem 0.875rem;
5929
+ box-sizing: border-box;
5930
+ list-style: none;
5931
+ }
5932
+
5933
+ .chat-queue-item {
5934
+ display: flex;
5935
+ flex-shrink: 0;
5936
+ flex-wrap: nowrap;
5937
+ align-items: center;
5938
+ gap: 0.375rem;
5939
+ min-inline-size: 0;
5940
+ max-inline-size: 100%;
5941
+ box-sizing: border-box;
5942
+ padding: 0.375rem 0.5rem;
5943
+ border: 0;
5944
+ background-color: transparent;
5945
+ }
5946
+
5947
+ .chat-queue-icon {
5948
+ flex-shrink: 0;
5949
+ inline-size: 1rem;
5950
+ block-size: 1rem;
5951
+ color: var(--color-on-surface-variant);
5952
+ }
5953
+
5954
+ .chat-queue-item-active .chat-queue-icon {
5955
+ color: var(--color-on-surface);
5956
+ }
5957
+
5958
+ .chat-queue-attachment {
5959
+ flex-shrink: 0;
5960
+ inline-size: 2rem;
5961
+ block-size: 2rem;
5962
+ object-fit: cover;
5963
+ border-radius: var(--radius-xs);
5964
+ }
5965
+
5966
+ .chat-queue-number {
5967
+ flex-shrink: 0;
5968
+ color: var(--color-on-surface-variant);
5969
+ font-variant-numeric: tabular-nums;
5970
+ }
5971
+
5972
+ .chat-queue-count {
5973
+ white-space: nowrap;
5974
+ }
5975
+
5976
+ .chat-queue-content {
5977
+ flex: 1 1 8rem;
5978
+ min-inline-size: 0;
5979
+ margin: 0;
5980
+ overflow: hidden;
5981
+ white-space: nowrap;
5982
+ text-overflow: ellipsis;
5983
+ }
5984
+
5985
+ .chat-queue-actions {
5986
+ flex-wrap: nowrap;
5987
+ flex-shrink: 0;
5988
+ margin-inline-start: auto;
5989
+ }
5990
+
5991
+ .chat-queue-steer,
5992
+ .chat-queue-remove {
5993
+ flex-shrink: 0;
5994
+ }
5995
+
5996
+ .chat-queue[hidden],
5997
+ .chat-queue-item[hidden] {
5998
+ display: none;
5999
+ }
6000
+
6001
+ .chat-composer {
6002
+ position: relative;
6003
+ display: flex;
6004
+ flex-direction: column;
6005
+ gap: 0.5rem;
6006
+ min-inline-size: 0;
6007
+ box-sizing: border-box;
6008
+ margin: 0;
6009
+ padding: 1rem;
6010
+ border: 1px solid currentColor;
6011
+ border-radius: var(--radius-xl);
6012
+ background-color: var(--color-surface-container-high);
6013
+ color: var(--color-on-surface);
6014
+ }
6015
+
6016
+ .chat-composer:focus-within {
6017
+ box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
6018
+ }
6019
+
6020
+ .chat-composer-input {
6021
+ display: block;
6022
+ width: 100%;
6023
+ min-inline-size: 0;
6024
+ min-block-size: 3rem;
6025
+ box-sizing: border-box;
6026
+ margin: 0;
6027
+ padding: 0;
6028
+ border: 0;
6029
+ outline: none;
6030
+ background-color: transparent;
6031
+ color: var(--color-on-surface);
6032
+ font: inherit;
6033
+ font-size: 0.9375rem;
6034
+ line-height: 1.5;
6035
+ resize: vertical;
6036
+ }
6037
+
6038
+ .chat-composer-input::placeholder {
6039
+ color: var(--color-on-surface-variant);
6040
+ opacity: 1;
6041
+ }
6042
+
6043
+ .chat-composer-actions {
6044
+ display: flex;
6045
+ flex-wrap: wrap;
6046
+ align-items: center;
6047
+ justify-content: flex-end;
6048
+ gap: 0.5rem;
6049
+ }
6050
+
6051
+ .chat-composer-hint {
6052
+ font-family: inherit;
6053
+ font-size: 0.75rem;
6054
+ font-weight: 400;
6055
+ opacity: 1;
6056
+ }
6057
+
6058
+ .chat-composer-primary { color: var(--color-primary); }
6059
+ .chat-composer-secondary { color: var(--color-secondary); }
6060
+ .chat-composer-tertiary { color: var(--color-tertiary); }
6061
+ .chat-composer-info { color: var(--color-info); }
6062
+ .chat-composer-success { color: var(--color-success); }
6063
+ .chat-composer-warning { color: var(--color-warning); }
6064
+ .chat-composer-error { color: var(--color-error); }
6065
+ .chat-composer-ghost { border-color: transparent; }
6066
+
5770
6067
  .chat-bubble {
5771
6068
  --chat-bubble-bg: var(--color-surface-container-highest);
5772
6069
  --chat-bubble-fg: var(--color-on-surface);
@@ -5792,40 +6089,29 @@
5792
6089
  .chat-bubble-content {
5793
6090
  min-width: 0;
5794
6091
  }
5795
- .chat-bubble pre { max-inline-size: 100%; min-inline-size: 0; overflow: auto; white-space: pre; }
5796
- .chat-bubble a { overflow-wrap: anywhere; text-decoration: underline; }
5797
-
5798
- .chat-start .chat-bubble::before,
5799
- .chat-end .chat-bubble::before {
5800
- content: "";
5801
- position: absolute;
5802
- inset-block-start: 0;
5803
- inline-size: 0.75rem;
5804
- block-size: 0.75rem;
5805
- background-color: var(--chat-bubble-bg);
5806
- mask-image: radial-gradient(ellipse at 0 100%, transparent 68%, black 72%);
5807
- pointer-events: none;
5808
- }
5809
6092
 
5810
- .chat-start .chat-bubble::before {
5811
- inset-inline-start: -0.5rem;
6093
+ .chat-bubble-collapsible > .chat-bubble-content {
6094
+ max-block-size: 6lh;
6095
+ overflow: hidden;
6096
+ white-space: pre-wrap;
5812
6097
  }
5813
6098
 
5814
- .chat-start .chat-bubble {
5815
- border-start-start-radius: 0;
6099
+ .chat-bubble-collapsible:has(> .chat-bubble-toggle[aria-expanded="true"]) > .chat-bubble-content {
6100
+ max-block-size: none;
6101
+ overflow: visible;
5816
6102
  }
5817
6103
 
5818
- .chat-end .chat-bubble::before {
5819
- inset-inline-end: -0.5rem;
5820
- transform: scaleX(-1);
6104
+ .chat-bubble-toggle {
6105
+ align-self: flex-end;
6106
+ color: inherit;
5821
6107
  }
5822
6108
 
5823
- .chat-end .chat-bubble {
5824
- border-start-end-radius: 0;
6109
+ .chat-bubble-toggle[hidden] {
6110
+ display: none;
5825
6111
  }
5826
6112
 
5827
- .chat-start:dir(rtl) .chat-bubble::before { transform: scaleX(-1); }
5828
- .chat-end:dir(rtl) .chat-bubble::before { transform: none; }
6113
+ .chat-bubble pre { max-inline-size: 100%; min-inline-size: 0; overflow: auto; white-space: pre; }
6114
+ .chat-bubble a { overflow-wrap: anywhere; text-decoration: underline; }
5829
6115
 
5830
6116
  .chat-bubble-primary {
5831
6117
  --chat-bubble-bg: var(--color-primary-container);
@@ -6095,6 +6381,7 @@
6095
6381
  animation-delay: 300ms;
6096
6382
  }
6097
6383
 
6384
+ .chat-streaming::after,
6098
6385
  .chat-bubble-streaming::after,
6099
6386
  .chat-bubble-content.chat-bubble-streaming::after {
6100
6387
  content: "";
@@ -6174,12 +6461,14 @@
6174
6461
  .chat-typing::before,
6175
6462
  .chat-typing::after,
6176
6463
  .chat-typing span,
6464
+ .chat-streaming::after,
6177
6465
  .chat-bubble-streaming::after,
6178
6466
  .chat-bubble-content.chat-bubble-streaming::after,
6179
6467
  .chat-tool-running .chat-tool-header::before {
6180
6468
  animation: none;
6181
6469
  }
6182
6470
 
6471
+ .chat-streaming::after,
6183
6472
  .chat-bubble-streaming::after,
6184
6473
  .chat-bubble-content.chat-bubble-streaming::after {
6185
6474
  opacity: 1;
@@ -21905,6 +22194,20 @@
21905
22194
  margin-block-end: 0.5rem;
21906
22195
  }
21907
22196
 
22197
+ /* Chat prose follows the bubble; embedded surfaces keep their own color pair. */
22198
+ .chat-bubble .markdown-body,
22199
+ .chat-bubble .markdown-body :is(a, blockquote, h6, del, s, figcaption) {
22200
+ color: inherit;
22201
+ }
22202
+
22203
+ .chat-bubble .markdown-body a {
22204
+ text-decoration: underline;
22205
+ }
22206
+
22207
+ .chat-bubble .markdown-body :is(code, pre, kbd, th, tr:nth-child(2n)) {
22208
+ color: var(--color-on-surface);
22209
+ }
22210
+
21908
22211
  /* ============================================
21909
22212
  * EDGE CASES (T042-T043)
21910
22213
  * ============================================ */
@@ -380,6 +380,20 @@
380
380
  margin-block-end: 0.5rem;
381
381
  }
382
382
 
383
+ /* Chat prose follows the bubble; embedded surfaces keep their own color pair. */
384
+ .chat-bubble .markdown-body,
385
+ .chat-bubble .markdown-body :is(a, blockquote, h6, del, s, figcaption) {
386
+ color: inherit;
387
+ }
388
+
389
+ .chat-bubble .markdown-body a {
390
+ text-decoration: underline;
391
+ }
392
+
393
+ .chat-bubble .markdown-body :is(code, pre, kbd, th, tr:nth-child(2n)) {
394
+ color: var(--color-on-surface);
395
+ }
396
+
383
397
  /* ============================================
384
398
  * EDGE CASES (T042-T043)
385
399
  * ============================================ */