@trops/dash-core 0.1.316 → 0.1.317

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/dist/index.esm.js CHANGED
@@ -53769,11 +53769,36 @@ var WorkspaceMenu = function WorkspaceMenu(_ref) {
53769
53769
  * StreamingText
53770
53770
  *
53771
53771
  * Renders partial text with a blinking cursor while streaming is active.
53772
+ * Shows "Thinking..." when streaming has started but no text has arrived yet.
53772
53773
  */
53773
53774
  var StreamingText = function StreamingText(_ref) {
53774
53775
  var text = _ref.text,
53775
53776
  isStreaming = _ref.isStreaming;
53776
53777
  if (!text && !isStreaming) return null;
53778
+ if (isStreaming && !text) {
53779
+ return /*#__PURE__*/jsxs("span", {
53780
+ className: "flex items-center gap-2 text-gray-400 text-sm",
53781
+ children: [/*#__PURE__*/jsxs("span", {
53782
+ className: "inline-flex gap-1",
53783
+ children: [/*#__PURE__*/jsx("span", {
53784
+ className: "w-1.5 h-1.5 rounded-full bg-indigo-400 animate-bounce",
53785
+ style: {
53786
+ animationDelay: "0ms"
53787
+ }
53788
+ }), /*#__PURE__*/jsx("span", {
53789
+ className: "w-1.5 h-1.5 rounded-full bg-indigo-400 animate-bounce",
53790
+ style: {
53791
+ animationDelay: "150ms"
53792
+ }
53793
+ }), /*#__PURE__*/jsx("span", {
53794
+ className: "w-1.5 h-1.5 rounded-full bg-indigo-400 animate-bounce",
53795
+ style: {
53796
+ animationDelay: "300ms"
53797
+ }
53798
+ })]
53799
+ }), "Thinking..."]
53800
+ });
53801
+ }
53777
53802
  return /*#__PURE__*/jsxs("span", {
53778
53803
  className: "whitespace-pre-wrap break-words",
53779
53804
  children: [text, isStreaming && /*#__PURE__*/jsx("span", {
@@ -53873,15 +53898,18 @@ var MessageBubble = function MessageBubble(_ref2) {
53873
53898
  }).map(function (c) {
53874
53899
  return c.text;
53875
53900
  }).join("") : "";
53876
- return /*#__PURE__*/jsxs("div", {
53877
- className: "mb-4 pt-3 border-t border-gray-700/30",
53878
- children: [/*#__PURE__*/jsx("div", {
53879
- className: "text-[10px] font-semibold uppercase tracking-wider text-indigo-400 mb-1.5",
53880
- children: "You"
53881
- }), /*#__PURE__*/jsx("div", {
53882
- className: "text-sm text-gray-100 whitespace-pre-wrap break-words leading-relaxed",
53883
- children: text
53884
- })]
53901
+ return /*#__PURE__*/jsx("div", {
53902
+ className: "flex justify-end mb-4",
53903
+ children: /*#__PURE__*/jsxs("div", {
53904
+ className: "max-w-[85%]",
53905
+ children: [/*#__PURE__*/jsx("div", {
53906
+ className: "text-[10px] font-semibold uppercase tracking-wider text-indigo-400 mb-1 text-right",
53907
+ children: "You"
53908
+ }), /*#__PURE__*/jsx("div", {
53909
+ className: "px-3 py-2 rounded-lg bg-indigo-700/40 text-sm text-gray-100 whitespace-pre-wrap break-words leading-relaxed",
53910
+ children: text
53911
+ })]
53912
+ })
53885
53913
  });
53886
53914
  }
53887
53915
  if (role === "assistant") {
@@ -53922,10 +53950,10 @@ var MessageBubble = function MessageBubble(_ref2) {
53922
53950
  return /*#__PURE__*/jsxs("div", {
53923
53951
  className: "mb-4",
53924
53952
  children: [/*#__PURE__*/jsx("div", {
53925
- className: "text-[10px] font-semibold uppercase tracking-wider text-gray-500 mb-1.5",
53953
+ className: "text-[10px] font-semibold uppercase tracking-wider text-gray-500 mb-1",
53926
53954
  children: "Assistant"
53927
53955
  }), /*#__PURE__*/jsxs("div", {
53928
- className: "text-sm leading-relaxed",
53956
+ className: "text-sm leading-relaxed px-3 py-2 rounded-lg bg-gray-800/40",
53929
53957
  children: [isStreaming && /*#__PURE__*/jsx("div", {
53930
53958
  className: "text-gray-200",
53931
53959
  children: /*#__PURE__*/jsx(StreamingText, {
@@ -54143,7 +54171,9 @@ function ChatCore(_ref) {
54143
54171
  _ref$backend = _ref.backend,
54144
54172
  backend = _ref$backend === void 0 ? "anthropic" : _ref$backend,
54145
54173
  _ref$onPublishEvent = _ref.onPublishEvent,
54146
- onPublishEvent = _ref$onPublishEvent === void 0 ? null : _ref$onPublishEvent;
54174
+ onPublishEvent = _ref$onPublishEvent === void 0 ? null : _ref$onPublishEvent,
54175
+ _ref$hideToolsBanner = _ref.hideToolsBanner,
54176
+ hideToolsBanner = _ref$hideToolsBanner === void 0 ? false : _ref$hideToolsBanner;
54147
54177
  var mainApi = window.mainApi;
54148
54178
 
54149
54179
  // Conversation state
@@ -54608,7 +54638,7 @@ function ChatCore(_ref) {
54608
54638
  className: "px-3 py-1 text-xs rounded bg-yellow-800/60 hover:bg-yellow-700/60 text-yellow-200 border border-yellow-600/50 transition-colors",
54609
54639
  children: "Check Again"
54610
54640
  })]
54611
- }), isAnthropicBackend && !hasTools && apiKey && messages.length === 0 && /*#__PURE__*/jsx("div", {
54641
+ }), !hideToolsBanner && isAnthropicBackend && !hasTools && apiKey && messages.length === 0 && /*#__PURE__*/jsx("div", {
54612
54642
  className: "mx-3 mt-2 p-2 bg-gray-800/50 border border-gray-700 rounded text-gray-400 text-xs",
54613
54643
  children: "No MCP tools connected. Connect providers (GitHub, Slack, etc.) to enable tool-use."
54614
54644
  }), isCliBackend && cliAvailable && messages.length === 0 && /*#__PURE__*/jsx("div", {