@agent-native/agentkit 0.3.2-nightly-20260927082735 → 0.4.0

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.
@@ -495,6 +495,26 @@ body:has(> [data-agent-native-composer-popover="true"]) > .fixed.inset-0 {
495
495
  color: var(--agentkit-palette-muted);
496
496
  }
497
497
 
498
+ .agentkit-chat {
499
+ position: relative;
500
+ }
501
+
502
+ .agentkit-file-drop-overlay {
503
+ position: absolute;
504
+ z-index: 8;
505
+ inset: 0;
506
+ display: grid;
507
+ place-items: center;
508
+ padding: 1rem;
509
+ border: 2px dashed var(--agentkit-accent);
510
+ border-radius: var(--agentkit-radius);
511
+ color: var(--agentkit-text);
512
+ background: color-mix(in srgb, var(--agentkit-canvas) 88%, transparent);
513
+ font-size: 0.875rem;
514
+ font-weight: 600;
515
+ pointer-events: none;
516
+ }
517
+
498
518
  .agentkit-chat[data-empty="true"] {
499
519
  grid-template-rows: minmax(0, 1fr) auto;
500
520
  }
@@ -603,6 +623,36 @@ body:has(> [data-agent-native-composer-popover="true"]) > .fixed.inset-0 {
603
623
  padding: 1.5rem 1rem;
604
624
  }
605
625
 
626
+ .agentkit-scroll-to-bottom-control {
627
+ position: sticky;
628
+ z-index: 2;
629
+ inset-block-end: 0.75rem;
630
+ display: flex;
631
+ block-size: 0;
632
+ justify-content: center;
633
+ margin-block-start: -2.25rem;
634
+ pointer-events: none;
635
+ }
636
+
637
+ .agentkit-scroll-to-bottom-control > * {
638
+ pointer-events: auto;
639
+ border: 1px solid var(--agentkit-border);
640
+ border-radius: 999px;
641
+ color: var(--agentkit-text);
642
+ background: var(--agentkit-surface);
643
+ box-shadow: 0 2px 8px
644
+ color-mix(in srgb, var(--agentkit-text) 14%, transparent);
645
+ }
646
+
647
+ .agentkit-visually-hidden {
648
+ position: absolute;
649
+ inline-size: 1px;
650
+ block-size: 1px;
651
+ overflow: hidden;
652
+ clip-path: inset(50%);
653
+ white-space: nowrap;
654
+ }
655
+
606
656
  .agentkit-message {
607
657
  display: flex;
608
658
  flex-direction: column;
@@ -645,6 +695,108 @@ body:has(> [data-agent-native-composer-popover="true"]) > .fixed.inset-0 {
645
695
  font-style: normal;
646
696
  }
647
697
 
698
+ .agentkit-user-message-text-content {
699
+ overflow-wrap: anywhere;
700
+ white-space: pre-wrap;
701
+ }
702
+
703
+ .agentkit-user-message-text-clip[data-clamped="true"] {
704
+ position: relative;
705
+ max-block-size: 200px;
706
+ overflow: hidden;
707
+ }
708
+
709
+ .agentkit-user-message-text-clip[data-clamped="true"]::after {
710
+ position: absolute;
711
+ inset-inline: 0;
712
+ inset-block-end: 0;
713
+ block-size: 3rem;
714
+ background: linear-gradient(to bottom, transparent, var(--agentkit-subtle));
715
+ content: "";
716
+ pointer-events: none;
717
+ }
718
+
719
+ .agentkit-mention {
720
+ display: inline-flex;
721
+ max-inline-size: 200px;
722
+ align-items: center;
723
+ gap: 0.25rem;
724
+ margin-inline: 0.125rem;
725
+ padding: 0.125rem 0.375rem;
726
+ border: 1px solid var(--agentkit-border);
727
+ border-radius: var(--agentkit-radius-inner);
728
+ color: var(--agentkit-text);
729
+ background: color-mix(in srgb, var(--agentkit-subtle) 75%, transparent);
730
+ font-size: 0.75rem;
731
+ font-weight: 550;
732
+ vertical-align: middle;
733
+ user-select: text;
734
+ }
735
+
736
+ .agentkit-mention-icon {
737
+ flex: none;
738
+ color: var(--agentkit-text-muted);
739
+ }
740
+
741
+ .agentkit-mention-label {
742
+ min-inline-size: 0;
743
+ overflow: hidden;
744
+ text-overflow: ellipsis;
745
+ white-space: nowrap;
746
+ }
747
+
748
+ .agentkit-message-expand {
749
+ position: relative;
750
+ z-index: 1;
751
+ margin-block-start: 0.25rem;
752
+ padding: 0.125rem 0.25rem;
753
+ border: 0;
754
+ border-radius: var(--agentkit-radius-inner);
755
+ color: var(--agentkit-text-muted);
756
+ background: transparent;
757
+ font: inherit;
758
+ font-size: 0.6875rem;
759
+ cursor: pointer;
760
+ }
761
+
762
+ .agentkit-message-expand:hover {
763
+ color: var(--agentkit-text);
764
+ }
765
+
766
+ .agentkit-image-attachment-trigger {
767
+ display: block;
768
+ inline-size: 4rem;
769
+ block-size: 4rem;
770
+ overflow: hidden;
771
+ padding: 0;
772
+ border: 1px solid var(--agentkit-border);
773
+ border-radius: var(--agentkit-radius-inner);
774
+ background: var(--agentkit-canvas);
775
+ cursor: zoom-in;
776
+ }
777
+
778
+ .agentkit-image-attachment-trigger img {
779
+ inline-size: 100%;
780
+ block-size: 100%;
781
+ object-fit: cover;
782
+ }
783
+
784
+ .agentkit-image-preview {
785
+ display: flex;
786
+ min-block-size: min(70vh, 35rem);
787
+ align-items: center;
788
+ justify-content: center;
789
+ padding: 1.5rem;
790
+ background: var(--agentkit-canvas);
791
+ }
792
+
793
+ .agentkit-image-preview img {
794
+ max-inline-size: 92vw;
795
+ max-block-size: 90vh;
796
+ border-radius: var(--agentkit-radius);
797
+ object-fit: contain;
798
+ }
799
+
648
800
  .agentkit-markdown {
649
801
  overflow-wrap: anywhere;
650
802
  }
@@ -750,71 +902,33 @@ body:has(> [data-agent-native-composer-popover="true"]) > .fixed.inset-0 {
750
902
 
751
903
  .agentkit-message-actions {
752
904
  display: flex;
905
+ inline-size: 100%;
753
906
  min-block-size: 1.5rem;
754
907
  align-items: center;
755
- gap: 0.125rem;
908
+ justify-content: space-between;
909
+ gap: 0.25rem;
910
+ flex-wrap: wrap;
756
911
  margin-block-start: 0.25rem;
757
912
  color: var(--agentkit-text-muted);
758
913
  opacity: 0;
759
914
  transition: opacity 140ms ease;
760
915
  }
761
916
 
762
- .agentkit-message:hover .agentkit-message-actions,
763
- .agentkit-message:focus-within .agentkit-message-actions {
764
- opacity: 1;
765
- }
766
-
767
- .agentkit-message-actions[data-action-mode="expanded"] {
768
- opacity: 1;
769
- }
770
-
771
- .agentkit-message-action-swap {
772
- display: grid;
773
- min-inline-size: max-content;
774
- grid-template-areas: "actions";
775
- overflow: hidden;
776
- }
777
-
778
- .agentkit-message-action-group {
779
- grid-area: actions;
917
+ .agentkit-message-actions-leading,
918
+ .agentkit-message-actions-trailing {
780
919
  display: flex;
920
+ min-inline-size: 0;
781
921
  align-items: center;
782
- justify-content: flex-end;
783
922
  gap: 0.125rem;
784
- transition:
785
- opacity 180ms ease,
786
- transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
787
- visibility 0s linear 180ms;
788
923
  }
789
924
 
790
- .agentkit-message-action-group--default {
791
- opacity: 1;
792
- transform: translateX(0);
793
- visibility: visible;
794
- }
795
-
796
- .agentkit-message-action-group--request-id {
797
- opacity: 0;
798
- transform: translateX(0.4rem);
799
- pointer-events: none;
800
- visibility: hidden;
801
- }
802
-
803
- .agentkit-message-actions[data-action-mode="expanded"]
804
- .agentkit-message-action-group--default {
805
- opacity: 0;
806
- transform: translateX(-0.4rem);
807
- pointer-events: none;
808
- visibility: hidden;
925
+ .agentkit-message-actions-trailing {
926
+ margin-inline-start: auto;
809
927
  }
810
928
 
811
- .agentkit-message-actions[data-action-mode="expanded"]
812
- .agentkit-message-action-group--request-id {
929
+ .agentkit-message:hover .agentkit-message-actions,
930
+ .agentkit-message:focus-within .agentkit-message-actions {
813
931
  opacity: 1;
814
- transform: translateX(0);
815
- pointer-events: auto;
816
- visibility: visible;
817
- transition-delay: 0s;
818
932
  }
819
933
 
820
934
  .agentkit-message-actions button {
@@ -878,6 +992,81 @@ body:has(> [data-agent-native-composer-popover="true"]) > .fixed.inset-0 {
878
992
  font-size: 0.6875rem;
879
993
  }
880
994
 
995
+ .agentkit-message-menu {
996
+ z-index: 20;
997
+ min-inline-size: 12rem;
998
+ padding: 0.25rem;
999
+ border: 1px solid var(--agentkit-border);
1000
+ border-radius: var(--agentkit-radius-inner);
1001
+ background: var(--agentkit-surface);
1002
+ box-shadow: 0 8px 24px
1003
+ color-mix(in srgb, var(--agentkit-text) 16%, transparent);
1004
+ }
1005
+
1006
+ .agentkit-message-menu-items {
1007
+ display: grid;
1008
+ gap: 0.125rem;
1009
+ }
1010
+
1011
+ .agentkit-message-actions .agentkit-message-menu-item {
1012
+ display: flex;
1013
+ inline-size: 100%;
1014
+ min-block-size: 2rem;
1015
+ align-items: center;
1016
+ justify-content: flex-start;
1017
+ gap: 0.5rem;
1018
+ padding: 0.375rem 0.5rem;
1019
+ border-radius: var(--radius-sm, var(--radius));
1020
+ text-align: start;
1021
+ }
1022
+
1023
+ .agentkit-message-menu-item:hover:not(:disabled) {
1024
+ background: var(--agentkit-subtle);
1025
+ }
1026
+
1027
+ .agentkit-message-menu-item:disabled {
1028
+ cursor: not-allowed;
1029
+ opacity: 0.55;
1030
+ }
1031
+
1032
+ .agentkit-branch-navigation {
1033
+ display: inline-flex;
1034
+ align-items: center;
1035
+ gap: 0.25rem;
1036
+ margin-inline-start: 0.375rem;
1037
+ font-size: 0.6875rem;
1038
+ }
1039
+
1040
+ .agentkit-feedback-popover {
1041
+ z-index: 20;
1042
+ width: min(20rem, calc(100vw - 2rem));
1043
+ padding: 0.75rem;
1044
+ border: 1px solid var(--agentkit-border);
1045
+ border-radius: var(--agentkit-radius-inner);
1046
+ color: var(--agentkit-text);
1047
+ background: var(--agentkit-surface);
1048
+ box-shadow: 0 8px 24px
1049
+ color-mix(in srgb, var(--agentkit-text) 16%, transparent);
1050
+ }
1051
+
1052
+ .agentkit-feedback-form {
1053
+ display: grid;
1054
+ gap: 0.625rem;
1055
+ }
1056
+
1057
+ .agentkit-feedback-textarea {
1058
+ inline-size: 100%;
1059
+ }
1060
+
1061
+ .agentkit-feedback-footer {
1062
+ display: flex;
1063
+ align-items: center;
1064
+ justify-content: space-between;
1065
+ gap: 0.75rem;
1066
+ color: var(--agentkit-text-muted);
1067
+ font-size: 0.6875rem;
1068
+ }
1069
+
881
1070
  .agentkit-icon {
882
1071
  inline-size: 1rem;
883
1072
  block-size: 1rem;
@@ -1342,6 +1531,13 @@ button.agentkit-object {
1342
1531
  text-decoration: none;
1343
1532
  }
1344
1533
 
1534
+ .agentkit-file--pasted-text {
1535
+ border: 1px solid var(--agentkit-border);
1536
+ border-radius: 999px;
1537
+ padding: 0.125rem 0.5rem;
1538
+ font-size: 0.75rem;
1539
+ }
1540
+
1345
1541
  .agentkit-annotations {
1346
1542
  display: flex;
1347
1543
  flex-wrap: wrap;
@@ -1528,7 +1724,6 @@ button.agentkit-object {
1528
1724
  }
1529
1725
 
1530
1726
  .agentkit-message-actions,
1531
- .agentkit-message-action-group,
1532
1727
  .agentkit-summary-chevron,
1533
1728
  .agentkit-disclosure-icon,
1534
1729
  .agentkit-reasoning-chevron,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-native/agentkit",
3
- "version": "0.3.2-nightly-20260927082735",
3
+ "version": "0.4.0",
4
4
  "description": "Provider-neutral AgentKit protocol, headless client, transports, and React runtime for composable agent-native conversations.",
5
5
  "homepage": "https://github.com/BuilderIO/agent-native#readme",
6
6
  "bugs": {
@@ -79,7 +79,7 @@
79
79
  "@tabler/icons-react": "3.44.0",
80
80
  "react-markdown": "^10.1.0",
81
81
  "remark-gfm": "^4.0.1",
82
- "@agent-native/toolkit": "0.22.2-nightly-20260927082735"
82
+ "@agent-native/toolkit": "0.22.2"
83
83
  },
84
84
  "devDependencies": {
85
85
  "@types/react": "^19.2.14",