@ai-matrx/chat 0.7.7 → 0.7.9

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.
Files changed (115) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/agents/components/chat/chat-quick-actions.config.d.ts +0 -8
  3. package/dist/agents/components/chat/chat-quick-actions.config.js +2 -1
  4. package/dist/agents/components/inputs/smart-input/InputActionButtons.d.ts +2 -2
  5. package/dist/agents/components/inputs/smart-input/InputActionButtons.js +3 -1
  6. package/dist/agents/components/inputs/smart-input/SmartAgentInputStacked.js +8 -3
  7. package/dist/agents/components/messages-display/AgentConversationDisplay.js +1 -1
  8. package/dist/agents/components/messages-display/assistant/AgentEmptyMessageDisplay.js +4 -4
  9. package/dist/agents/components/messages-display/assistant/AssistantMessageFooter.js +4 -2
  10. package/dist/agents/components/messages-display/assistant/AssistantNoAnswer.js +1 -1
  11. package/dist/agents/components/messages-display/assistant/BreathingOrb.js +1 -1
  12. package/dist/agents/components/messages-display/assistant/InPlaceAnswerEditor.js +1 -1
  13. package/dist/agents/components/messages-display/citations/MessageSourcesRow.js +1 -1
  14. package/dist/agents/components/messages-display/conversation-tools/ConversationFindBar.js +4 -4
  15. package/dist/agents/components/messages-display/message-options/EditHistoryDialog.js +7 -7
  16. package/dist/agents/components/messages-display/user/AgentUserMessage.js +4 -4
  17. package/dist/agents/components/messages-display/user/CollabNoteMessage.js +2 -2
  18. package/dist/agents/components/messages-display/user/FirstTurnVariables.js +3 -3
  19. package/dist/agents/components/messages-display/user/PendingSendMessage.js +4 -4
  20. package/dist/agents/components/messages-display/user/RemarksTranscriptView.js +7 -7
  21. package/dist/agents/components/messages-display/user/ResourceAttachmentTile.js +9 -9
  22. package/dist/agents/components/messages-display/user/ResourceEditableToggleSamples.js +4 -4
  23. package/dist/agents/components/messages-display/user/UserActionBar.js +3 -3
  24. package/dist/agents/components/messages-display/user/UserMessageAttachmentStyleComparison.js +12 -12
  25. package/dist/agents/components/messages-display/user/UserMessageChipsDemo.js +19 -19
  26. package/dist/agents/components/messages-display/user/UserMessageHybridTileSamples.js +22 -22
  27. package/dist/agents/components/run/AgentRunnerPage.js +4 -4
  28. package/dist/agents/components/run/AssistantError.js +1 -1
  29. package/dist/agents/components/run/AssistantWarning.js +1 -1
  30. package/dist/agents/components/run/GenerationJobCard.js +5 -5
  31. package/dist/agents/components/run/IncompleteNote.js +1 -1
  32. package/dist/agents/components/run/RunJobWorkingLine.js +1 -1
  33. package/dist/agents/components/shared/AgentConversationColumn.js +1 -1
  34. package/dist/agents/components/shared/AgentHeaderMobile.js +6 -6
  35. package/dist/agents/components/shared/AgentModeController.js +1 -1
  36. package/dist/agents/components/shared/AutoInjectionSwitch.js +6 -6
  37. package/dist/agents/components/shared/DesktopFilterPanel.js +8 -8
  38. package/dist/agents/components/shared/transcript-layout.d.ts +9 -8
  39. package/dist/agents/components/shared/transcript-layout.js +2 -2
  40. package/dist/agents/components/smart/AgentRunner.js +1 -1
  41. package/dist/agents/components/smart/CreateWithAiTabs.js +1 -1
  42. package/dist/cx-chat/components/agent/agents.d.ts +0 -5
  43. package/dist/cx-chat/components/agent/agents.js +4 -3
  44. package/dist/cx-chat/components/agent/local-agents.d.ts +0 -6
  45. package/dist/cx-chat/components/agent/local-agents.js +3 -2
  46. package/dist/host/request-headers.js +3 -1
  47. package/dist/surfaces/manifests/agent-builder.manifest.d.ts +8 -0
  48. package/dist/surfaces/manifests/agent-builder.manifest.js +62 -2
  49. package/dist/tool-call-visualization/components/ArtifactResultBar.js +4 -4
  50. package/dist/tool-call-visualization/components/ChatResultColumn.d.ts +1 -1
  51. package/dist/tool-call-visualization/components/ToolCallBatch.js +2 -2
  52. package/dist/tool-call-visualization/components/ToolCallVisualization.js +5 -5
  53. package/dist/tool-call-visualization/components/ToolTabBodies.js +12 -12
  54. package/dist/tool-call-visualization/components/ToolUpdatesOverlay.js +4 -4
  55. package/dist/tool-call-visualization/configured-rows/ConfiguredToolRow.js +8 -8
  56. package/dist/tool-call-visualization/configured-rows/CopyToolButton.js +1 -1
  57. package/dist/tool-call-visualization/configured-rows/ToolProgressView.js +7 -7
  58. package/dist/tool-call-visualization/configured-rows/field-components.js +6 -6
  59. package/dist/tool-call-visualization/registry/GenericRenderer.js +4 -4
  60. package/dist/tool-call-visualization/renderers/_shared-entity/EmptyResultCard.js +1 -1
  61. package/dist/tool-call-visualization/renderers/_shared-entity/EntityCard.js +5 -5
  62. package/dist/tool-call-visualization/renderers/_shared-entity/PartPeekPopover.js +2 -2
  63. package/dist/tool-call-visualization/renderers/_shared-entity/ToolGlyph.js +1 -1
  64. package/dist/tool-call-visualization/renderers/_shared-entity/ToolResultCard.js +6 -6
  65. package/dist/tool-call-visualization/renderers/agent-call/AgentCallInline.js +5 -5
  66. package/dist/tool-call-visualization/renderers/agent-call/CollabCallCard.js +4 -4
  67. package/dist/tool-call-visualization/renderers/agent-call/ImageGenerationResult.js +1 -1
  68. package/dist/tool-call-visualization/renderers/ask/AskInline.js +3 -3
  69. package/dist/tool-call-visualization/renderers/ask-person/AskPersonInline.js +2 -2
  70. package/dist/tool-call-visualization/renderers/cloud-browser/CloudBrowserRunCard.js +5 -5
  71. package/dist/tool-call-visualization/renderers/ctx/CtxBatchInline.js +3 -3
  72. package/dist/tool-call-visualization/renderers/ctx/CtxGetInline.js +2 -2
  73. package/dist/tool-call-visualization/renderers/ctx/CtxItemCard.js +3 -3
  74. package/dist/tool-call-visualization/renderers/ctx/CtxPatchInline.js +6 -6
  75. package/dist/tool-call-visualization/renderers/dictionary/DictEntryList.js +12 -12
  76. package/dist/tool-call-visualization/renderers/dictionary/DictionaryOverlay.js +5 -5
  77. package/dist/tool-call-visualization/renderers/fs/FsInline.js +7 -7
  78. package/dist/tool-call-visualization/renderers/news-api/NewsInline.js +17 -17
  79. package/dist/tool-call-visualization/renderers/news-api/NewsOverlay.js +12 -12
  80. package/dist/tool-call-visualization/renderers/random-wheel/RandomWheelInline.js +34 -34
  81. package/dist/tool-call-visualization/renderers/records/RecordsInline.js +1 -1
  82. package/dist/tool-call-visualization/renderers/research/ResearchInline.js +10 -10
  83. package/dist/tool-call-visualization/renderers/research/ResearchOverlay.js +19 -19
  84. package/dist/tool-call-visualization/renderers/research/SubagentReportBlock.js +11 -11
  85. package/dist/tool-call-visualization/renderers/scrape/ScrapeInline.js +18 -18
  86. package/dist/tool-call-visualization/renderers/scrape/ScrapeOverlay.js +17 -17
  87. package/dist/tool-call-visualization/renderers/search/SearchInline.js +30 -30
  88. package/dist/tool-call-visualization/renderers/search/SearchOverlay.js +40 -40
  89. package/dist/tool-call-visualization/renderers/shell/ShellInline.js +3 -3
  90. package/dist/tool-call-visualization/renderers/skill/SkillInline.js +5 -5
  91. package/dist/tool-call-visualization/renderers/sql/DbSchemaInline.js +7 -7
  92. package/dist/tool-call-visualization/renderers/sql/SqlInline.js +4 -4
  93. package/dist/tool-call-visualization/renderers/workbook/WorkbookGrid.js +4 -4
  94. package/dist/tool-call-visualization/renderers/workbook/WorkbookInline.js +2 -2
  95. package/dist/tool-call-visualization/renderers/workbook/WorkbookOverlay.js +7 -7
  96. package/dist/tool-call-visualization/renderers/working-document/PatchDiffInline.js +3 -3
  97. package/dist/tool-call-visualization/result-fields/EmptyResult.js +1 -1
  98. package/dist/tool-call-visualization/result-fields/KeyValueGrid.js +9 -9
  99. package/dist/tool-call-visualization/result-fields/ResultFile.js +4 -4
  100. package/dist/tool-call-visualization/result-fields/ResultJson.js +1 -1
  101. package/dist/tool-call-visualization/result-fields/ResultMedia.js +2 -2
  102. package/dist/tool-call-visualization/result-fields/ResultScalar.js +2 -2
  103. package/dist/tool-call-visualization/result-fields/ResultTable.js +10 -10
  104. package/dist/tool-call-visualization/result-fields/ResultValue.js +7 -7
  105. package/dist/tool-call-visualization/result-fields/ShortId.js +3 -3
  106. package/dist/tool-call-visualization/result-fields/ToolErrorCard.js +4 -4
  107. package/dist/tool-call-visualization/result-fields/UrlChips.js +3 -3
  108. package/dist/tool-call-visualization/surface-write/SurfaceWriteDiff.js +2 -2
  109. package/dist/tool-call-visualization/surface-write/SurfaceWriteStress.js +1 -1
  110. package/dist/tool-call-visualization/window-panel/ToolCallWindowPanel.js +9 -9
  111. package/dist/ui/mandates-storage/mandateStorage.d.ts +420 -0
  112. package/dist/ui/mandates-storage/shortcutStorage.d.ts +105 -0
  113. package/dist/ui/projectCreateAiDebug.d.ts +0 -5
  114. package/dist/ui/projectCreateAiDebug.js +2 -1
  115. package/package.json +23 -13
@@ -31,7 +31,7 @@ const Favicon = ({ url, className }) => {
31
31
  "span",
32
32
  {
33
33
  className: cn(
34
- "flex items-center justify-center bg-[var(--mx-chat-fill,hsl(var(--muted)))] text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]",
34
+ "flex items-center justify-center bg-muted text-muted-foreground",
35
35
  className
36
36
  ),
37
37
  children: /* @__PURE__ */ jsx(Globe, { className: "h-1/2 w-1/2" })
@@ -43,7 +43,7 @@ const BreadcrumbPath = ({ url }) => {
43
43
  const { origin, segments } = useMemo(() => getBreadcrumbParts(url), [url]);
44
44
  return /* @__PURE__ */ jsxs("span", { className: "flex min-w-0 items-center gap-1 truncate text-xs leading-tight", children: [
45
45
  /* @__PURE__ */ jsx("span", { className: "truncate text-success/90", children: origin }),
46
- segments.map((seg, i) => /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1 truncate text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: [
46
+ segments.map((seg, i) => /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1 truncate text-muted-foreground", children: [
47
47
  /* @__PURE__ */ jsx("span", { className: "text-muted-foreground/50", children: "\u203A" }),
48
48
  /* @__PURE__ */ jsx("span", { className: "truncate", children: seg })
49
49
  ] }, i))
@@ -59,11 +59,11 @@ const ResultRow = ({ source, rank }) => {
59
59
  className: "w-[380px]",
60
60
  header: /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1.5 normal-case", children: [
61
61
  /* @__PURE__ */ jsx(Favicon, { url: source.url, className: "h-4 w-4 rounded" }),
62
- /* @__PURE__ */ jsx("span", { className: "truncate font-medium text-[color:var(--mx-chat-text,hsl(var(--foreground)))]", children: siteName })
62
+ /* @__PURE__ */ jsx("span", { className: "truncate font-medium text-foreground", children: siteName })
63
63
  ] }),
64
64
  body: /* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
65
- /* @__PURE__ */ jsx("div", { className: "font-medium leading-snug text-[color:var(--mx-chat-text,hsl(var(--foreground)))]", children: source.title }),
66
- source.snippet ? /* @__PURE__ */ jsx("div", { className: "max-h-56 overflow-y-auto whitespace-pre-wrap text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: source.snippet }) : /* @__PURE__ */ jsx("div", { className: "text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: source.domain })
65
+ /* @__PURE__ */ jsx("div", { className: "font-medium leading-snug text-foreground", children: source.title }),
66
+ source.snippet ? /* @__PURE__ */ jsx("div", { className: "max-h-56 overflow-y-auto whitespace-pre-wrap text-muted-foreground", children: source.snippet }) : /* @__PURE__ */ jsx("div", { className: "text-muted-foreground", children: source.domain })
67
67
  ] }),
68
68
  children: /* @__PURE__ */ jsxs("div", { className: "group/result flex gap-3", children: [
69
69
  rank !== void 0 && /* @__PURE__ */ jsx("span", { className: "w-6 flex-shrink-0 pt-0.5 text-right text-xs tabular-nums text-muted-foreground/70", children: rank }),
@@ -73,11 +73,11 @@ const ResultRow = ({ source, rank }) => {
73
73
  Favicon,
74
74
  {
75
75
  url: source.url,
76
- className: "h-9 w-9 flex-shrink-0 rounded-full border border-[color:var(--mx-chat-border,hsl(var(--border)))] bg-[var(--mx-chat-card,hsl(var(--card)))] p-1.5"
76
+ className: "h-9 w-9 flex-shrink-0 rounded-full border border-border bg-card p-1.5"
77
77
  }
78
78
  ),
79
79
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
80
- /* @__PURE__ */ jsx("div", { className: "truncate text-sm font-medium leading-tight text-[color:var(--mx-chat-text,hsl(var(--foreground)))]", children: siteName }),
80
+ /* @__PURE__ */ jsx("div", { className: "truncate text-sm font-medium leading-tight text-foreground", children: siteName }),
81
81
  /* @__PURE__ */ jsx(BreadcrumbPath, { url: source.url })
82
82
  ] })
83
83
  ] }),
@@ -89,13 +89,13 @@ const ResultRow = ({ source, rank }) => {
89
89
  rel: "noopener noreferrer",
90
90
  className: "group/link mt-1.5 flex items-start gap-1.5",
91
91
  children: [
92
- /* @__PURE__ */ jsx("span", { className: "text-lg font-medium leading-snug text-[color:var(--mx-chat-accent,hsl(var(--primary)))] underline-offset-2 group-hover/link:underline", children: source.title }),
93
- /* @__PURE__ */ jsx(ExternalLink, { className: "mt-1.5 h-3.5 w-3.5 flex-shrink-0 text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))] opacity-0 transition-opacity group-hover/result:opacity-100" })
92
+ /* @__PURE__ */ jsx("span", { className: "text-lg font-medium leading-snug text-primary underline-offset-2 group-hover/link:underline", children: source.title }),
93
+ /* @__PURE__ */ jsx(ExternalLink, { className: "mt-1.5 h-3.5 w-3.5 flex-shrink-0 text-muted-foreground opacity-0 transition-opacity group-hover/result:opacity-100" })
94
94
  ]
95
95
  }
96
96
  ),
97
- source.snippet && /* @__PURE__ */ jsx("p", { className: "mt-1 line-clamp-2 text-sm leading-relaxed text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: source.snippet }),
98
- date && /* @__PURE__ */ jsx("div", { className: "mt-1.5 text-xs text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))] opacity-80", children: date })
97
+ source.snippet && /* @__PURE__ */ jsx("p", { className: "mt-1 line-clamp-2 text-sm leading-relaxed text-muted-foreground", children: source.snippet }),
98
+ date && /* @__PURE__ */ jsx("div", { className: "mt-1.5 text-xs text-muted-foreground opacity-80", children: date })
99
99
  ] })
100
100
  ] })
101
101
  }
@@ -113,12 +113,12 @@ function groupToSources(group) {
113
113
  const ReadingPane = ({ reads }) => {
114
114
  const [active, setActive] = useState(0);
115
115
  const current = reads[active];
116
- return /* @__PURE__ */ jsxs("div", { className: "overflow-hidden rounded-md border border-[color:var(--mx-chat-border,hsl(var(--border)))]", children: [
117
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 border-b border-[color:var(--mx-chat-border,hsl(var(--border)))] bg-muted/40 px-3 py-2", children: [
118
- /* @__PURE__ */ jsx(BookOpenText, { className: "h-4 w-4 text-[color:var(--mx-chat-accent,hsl(var(--primary)))]" }),
119
- /* @__PURE__ */ jsxs("span", { className: "text-sm font-medium text-[color:var(--mx-chat-text,hsl(var(--foreground)))]", children: [
116
+ return /* @__PURE__ */ jsxs("div", { className: "overflow-hidden rounded-md border border-border", children: [
117
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 border-b border-border bg-muted/40 px-3 py-2", children: [
118
+ /* @__PURE__ */ jsx(BookOpenText, { className: "h-4 w-4 text-primary" }),
119
+ /* @__PURE__ */ jsxs("span", { className: "text-sm font-medium text-foreground", children: [
120
120
  "Pages read ",
121
- /* @__PURE__ */ jsxs("span", { className: "text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: [
121
+ /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground", children: [
122
122
  "(",
123
123
  reads.length,
124
124
  ")"
@@ -126,7 +126,7 @@ const ReadingPane = ({ reads }) => {
126
126
  ] })
127
127
  ] }),
128
128
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col md:h-[420px] md:flex-row", children: [
129
- /* @__PURE__ */ jsx("div", { className: "flex-shrink-0 divide-y divide-border/60 overflow-y-auto border-b border-[color:var(--mx-chat-border,hsl(var(--border)))] md:w-64 md:border-b-0 md:border-r", children: reads.map((r, i) => /* @__PURE__ */ jsxs(
129
+ /* @__PURE__ */ jsx("div", { className: "flex-shrink-0 divide-y divide-border/60 overflow-y-auto border-b border-border md:w-64 md:border-b-0 md:border-r", children: reads.map((r, i) => /* @__PURE__ */ jsxs(
130
130
  "button",
131
131
  {
132
132
  type: "button",
@@ -143,7 +143,7 @@ const ReadingPane = ({ reads }) => {
143
143
  {
144
144
  className: cn(
145
145
  "truncate text-xs font-medium",
146
- i === active ? "text-[color:var(--mx-chat-accent,hsl(var(--primary)))]" : "text-[color:var(--mx-chat-text,hsl(var(--foreground)))]"
146
+ i === active ? "text-primary" : "text-foreground"
147
147
  ),
148
148
  children: r.title ?? getDomain(r.url)
149
149
  }
@@ -155,17 +155,17 @@ const ReadingPane = ({ reads }) => {
155
155
  `${r.url}-${i}`
156
156
  )) }),
157
157
  /* @__PURE__ */ jsx("div", { className: "min-w-0 flex-1 overflow-y-auto p-4", children: current ? /* @__PURE__ */ jsxs(Fragment, { children: [
158
- /* @__PURE__ */ jsxs("div", { className: "mb-3 flex items-start gap-2 border-b border-[color:var(--mx-chat-border,hsl(var(--border)))] pb-3", children: [
158
+ /* @__PURE__ */ jsxs("div", { className: "mb-3 flex items-start gap-2 border-b border-border pb-3", children: [
159
159
  /* @__PURE__ */ jsx(Favicon, { url: current.url, className: "mt-0.5 h-5 w-5 flex-shrink-0" }),
160
160
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
161
- /* @__PURE__ */ jsx("div", { className: "text-sm font-semibold text-[color:var(--mx-chat-text,hsl(var(--foreground)))]", children: current.title ?? getDomain(current.url) }),
161
+ /* @__PURE__ */ jsx("div", { className: "text-sm font-semibold text-foreground", children: current.title ?? getDomain(current.url) }),
162
162
  /* @__PURE__ */ jsxs(
163
163
  "a",
164
164
  {
165
165
  href: current.url || void 0,
166
166
  target: "_blank",
167
167
  rel: "noopener noreferrer",
168
- className: "inline-flex items-center gap-1 text-xs text-[color:var(--mx-chat-accent,hsl(var(--primary)))] hover:underline",
168
+ className: "inline-flex items-center gap-1 text-xs text-primary hover:underline",
169
169
  children: [
170
170
  /* @__PURE__ */ jsx("span", { className: "truncate", children: current.url }),
171
171
  /* @__PURE__ */ jsx(ExternalLink, { className: "h-3 w-3 flex-shrink-0" })
@@ -174,8 +174,8 @@ const ReadingPane = ({ reads }) => {
174
174
  )
175
175
  ] })
176
176
  ] }),
177
- current.text ? /* @__PURE__ */ jsx("div", { className: "text-sm", children: /* @__PURE__ */ jsx(BasicMarkdownContent, { imagePolicy: "other", content: current.text }) }) : /* @__PURE__ */ jsx("p", { className: "text-sm text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: "No page content captured." })
178
- ] }) : /* @__PURE__ */ jsxs("div", { className: "flex h-full items-center justify-center text-sm text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: [
177
+ current.text ? /* @__PURE__ */ jsx("div", { className: "text-sm", children: /* @__PURE__ */ jsx(BasicMarkdownContent, { imagePolicy: "other", content: current.text }) }) : /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "No page content captured." })
178
+ ] }) : /* @__PURE__ */ jsxs("div", { className: "flex h-full items-center justify-center text-sm text-muted-foreground", children: [
179
179
  /* @__PURE__ */ jsx(FileText, { className: "mr-2 h-4 w-4" }),
180
180
  " Select a page"
181
181
  ] }) })
@@ -213,7 +213,7 @@ const SearchOverlay = ({ entry }) => {
213
213
  const drilling = filter.trim().length > 0 || sortKey !== "relevance" || activeQuery !== null;
214
214
  const showGroupedBlocks = multiQuery && !drilling;
215
215
  if (sources.length === 0 && reads.length === 0 && !report) {
216
- return /* @__PURE__ */ jsx("div", { className: "flex h-64 items-center justify-center text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
216
+ return /* @__PURE__ */ jsx("div", { className: "flex h-64 items-center justify-center text-muted-foreground", children: /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
217
217
  /* @__PURE__ */ jsx(Search, { className: "mx-auto mb-3 h-12 w-12 opacity-40" }),
218
218
  /* @__PURE__ */ jsx("p", { className: "text-sm", children: "No search results available" })
219
219
  ] }) });
@@ -221,21 +221,21 @@ const SearchOverlay = ({ entry }) => {
221
221
  return /* @__PURE__ */ jsx("div", { className: "h-full w-full overflow-y-auto bg-background", children: /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-3xl space-y-5 p-4", children: [
222
222
  report && /* @__PURE__ */ jsxs("div", { className: "rounded-lg border border-primary/15 bg-primary/5 p-4", children: [
223
223
  /* @__PURE__ */ jsxs("div", { className: "mb-2 flex items-center gap-1.5", children: [
224
- /* @__PURE__ */ jsx(Lightbulb, { className: "h-4 w-4 text-[color:var(--mx-chat-accent,hsl(var(--primary)))]" }),
225
- /* @__PURE__ */ jsx("span", { className: "text-sm font-semibold text-[color:var(--mx-chat-text,hsl(var(--foreground)))]", children: "AI Matrx answer" })
224
+ /* @__PURE__ */ jsx(Lightbulb, { className: "h-4 w-4 text-primary" }),
225
+ /* @__PURE__ */ jsx("span", { className: "text-sm font-semibold text-foreground", children: "AI Matrx answer" })
226
226
  ] }),
227
227
  /* @__PURE__ */ jsx("div", { className: "text-sm leading-relaxed text-foreground/90", children: /* @__PURE__ */ jsx(BasicMarkdownContent, { imagePolicy: "ai", content: report }) })
228
228
  ] }),
229
- /* @__PURE__ */ jsxs("p", { className: "text-xs text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: [
229
+ /* @__PURE__ */ jsxs("p", { className: "text-xs text-muted-foreground", children: [
230
230
  "About ",
231
- /* @__PURE__ */ jsx("span", { className: "font-medium text-[color:var(--mx-chat-text,hsl(var(--foreground)))] tabular-nums", children: sources.length }),
231
+ /* @__PURE__ */ jsx("span", { className: "font-medium text-foreground tabular-nums", children: sources.length }),
232
232
  " ",
233
233
  sources.length === 1 ? "result" : "results",
234
234
  queries.length > 1 && /* @__PURE__ */ jsxs(Fragment, { children: [
235
235
  " ",
236
236
  "across",
237
237
  " ",
238
- /* @__PURE__ */ jsx("span", { className: "font-medium text-[color:var(--mx-chat-text,hsl(var(--foreground)))] tabular-nums", children: queries.length }),
238
+ /* @__PURE__ */ jsx("span", { className: "font-medium text-foreground tabular-nums", children: queries.length }),
239
239
  " ",
240
240
  "queries"
241
241
  ] }),
@@ -243,7 +243,7 @@ const SearchOverlay = ({ entry }) => {
243
243
  " ",
244
244
  "\xB7",
245
245
  " ",
246
- /* @__PURE__ */ jsx("span", { className: "font-medium text-[color:var(--mx-chat-text,hsl(var(--foreground)))] tabular-nums", children: reads.length }),
246
+ /* @__PURE__ */ jsx("span", { className: "font-medium text-foreground tabular-nums", children: reads.length }),
247
247
  " read"
248
248
  ] })
249
249
  ] }),
@@ -271,7 +271,7 @@ const SearchOverlay = ({ entry }) => {
271
271
  ] }),
272
272
  /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
273
273
  /* @__PURE__ */ jsxs("div", { className: "relative min-w-0 flex-1", children: [
274
- /* @__PURE__ */ jsx(Search, { className: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]" }),
274
+ /* @__PURE__ */ jsx(Search, { className: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
275
275
  /* @__PURE__ */ jsx(
276
276
  "input",
277
277
  {
@@ -279,12 +279,12 @@ const SearchOverlay = ({ entry }) => {
279
279
  value: filter,
280
280
  onChange: (e) => setFilter(e.target.value),
281
281
  placeholder: `Filter ${base.length} results\u2026`,
282
- className: "h-9 w-full max-w-md rounded-md border border-[color:var(--mx-chat-border,hsl(var(--border)))] bg-background pl-9 pr-3 text-base text-[color:var(--mx-chat-text,hsl(var(--foreground)))] placeholder:text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))] focus:outline-none focus:ring-2 focus:ring-ring sm:text-sm"
282
+ className: "h-9 w-full max-w-md rounded-md border border-border bg-background pl-9 pr-3 text-base text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring sm:text-sm"
283
283
  }
284
284
  )
285
285
  ] }),
286
286
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5", children: [
287
- /* @__PURE__ */ jsx(ArrowUpDown, { className: "h-4 w-4 text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]" }),
287
+ /* @__PURE__ */ jsx(ArrowUpDown, { className: "h-4 w-4 text-muted-foreground" }),
288
288
  /* @__PURE__ */ jsx(
289
289
  SegmentedControl,
290
290
  {
@@ -305,10 +305,10 @@ const SearchOverlay = ({ entry }) => {
305
305
  const blockSources = groupToSources(g);
306
306
  if (blockSources.length === 0) return null;
307
307
  return /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
308
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 border-b border-[color:var(--mx-chat-border,hsl(var(--border)))] pb-1.5", children: [
309
- /* @__PURE__ */ jsx(Search, { className: "h-3.5 w-3.5 flex-shrink-0 text-[color:var(--mx-chat-accent,hsl(var(--primary)))]" }),
310
- /* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate text-sm font-semibold text-[color:var(--mx-chat-text,hsl(var(--foreground)))]", title: g.query, children: g.query }),
311
- /* @__PURE__ */ jsxs("span", { className: "flex-shrink-0 text-xs tabular-nums text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: [
308
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 border-b border-border pb-1.5", children: [
309
+ /* @__PURE__ */ jsx(Search, { className: "h-3.5 w-3.5 flex-shrink-0 text-primary" }),
310
+ /* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate text-sm font-semibold text-foreground", title: g.query, children: g.query }),
311
+ /* @__PURE__ */ jsxs("span", { className: "flex-shrink-0 text-xs tabular-nums text-muted-foreground", children: [
312
312
  blockSources.length,
313
313
  " ",
314
314
  blockSources.length === 1 ? "result" : "results"
@@ -318,14 +318,14 @@ const SearchOverlay = ({ entry }) => {
318
318
  ] }, g.query);
319
319
  }) }) : /* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
320
320
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
321
- /* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-[color:var(--mx-chat-text,hsl(var(--foreground)))]", children: activeQuery ? "Results for query" : "All results" }),
322
- /* @__PURE__ */ jsxs("span", { className: "text-xs tabular-nums text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: [
321
+ /* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-foreground", children: activeQuery ? "Results for query" : "All results" }),
322
+ /* @__PURE__ */ jsxs("span", { className: "text-xs tabular-nums text-muted-foreground", children: [
323
323
  visible.length,
324
324
  " ",
325
325
  visible.length === 1 ? "result" : "results"
326
326
  ] })
327
327
  ] }),
328
- visible.length === 0 ? /* @__PURE__ */ jsx("div", { className: "rounded-md border border-[color:var(--mx-chat-border,hsl(var(--border)))] px-3 py-6 text-center text-xs text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: "No results match the filter" }) : /* @__PURE__ */ jsx("div", { className: "space-y-4 pt-1", children: visible.map((s, i) => /* @__PURE__ */ jsx(ResultRow, { rank: i + 1, source: s }, `${s.url}-${i}`)) })
328
+ visible.length === 0 ? /* @__PURE__ */ jsx("div", { className: "rounded-md border border-border px-3 py-6 text-center text-xs text-muted-foreground", children: "No results match the filter" }) : /* @__PURE__ */ jsx("div", { className: "space-y-4 pt-1", children: visible.map((s, i) => /* @__PURE__ */ jsx(ResultRow, { rank: i + 1, source: s }, `${s.url}-${i}`)) })
329
329
  ] })
330
330
  ] }) });
331
331
  };
@@ -36,7 +36,7 @@ const Chip = ({
36
36
  {
37
37
  className: cn(
38
38
  "text-xs tabular-nums",
39
- tone === "bad" ? "font-medium text-red-600 dark:text-red-400" : "text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]"
39
+ tone === "bad" ? "font-medium text-red-600 dark:text-red-400" : "text-muted-foreground"
40
40
  ),
41
41
  children
42
42
  }
@@ -79,7 +79,7 @@ const OutputBlock = ({ text, stream }) => {
79
79
  // `overflow-x-auto` on the block itself: a long line scrolls HERE
80
80
  // and never widens the transcript (the 390px rule).
81
81
  "max-h-80 overflow-auto whitespace-pre px-4 py-2 font-mono text-xs leading-relaxed",
82
- stream === "stderr" ? "text-amber-700 dark:text-amber-400" : "text-[color:var(--mx-chat-text,hsl(var(--foreground)))]"
82
+ stream === "stderr" ? "text-amber-700 dark:text-amber-400" : "text-foreground"
83
83
  ),
84
84
  children: shown.join("\n")
85
85
  }
@@ -107,7 +107,7 @@ const ShellResultCard = ({ command, result, ...shell }) => {
107
107
  result.backend === "durable_vfs" && /* @__PURE__ */ jsx(DurableVfsWarning, {}),
108
108
  result.stdout.trim() !== "" && /* @__PURE__ */ jsx(OutputBlock, { text: result.stdout, stream: "stdout" }),
109
109
  result.stderr.trim() !== "" && /* @__PURE__ */ jsx(OutputBlock, { text: result.stderr, stream: "stderr" }),
110
- result.stdout.trim() === "" && result.stderr.trim() === "" && /* @__PURE__ */ jsx("p", { className: "border-t border-border/30 px-4 py-2 text-xs text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: "No output." })
110
+ result.stdout.trim() === "" && result.stderr.trim() === "" && /* @__PURE__ */ jsx("p", { className: "border-t border-border/30 px-4 py-2 text-xs text-muted-foreground", children: "No output." })
111
111
  ] })
112
112
  }
113
113
  );
@@ -57,8 +57,8 @@ const SkillInline = (props) => {
57
57
  i > 0 && "border-t border-border/30"
58
58
  ),
59
59
  children: [
60
- /* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate text-[13px] text-[color:var(--mx-chat-text,hsl(var(--foreground)))]", children: h.label }),
61
- h.type && /* @__PURE__ */ jsx("span", { className: "shrink-0 text-xs text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: h.type })
60
+ /* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate text-[13px] text-foreground", children: h.label }),
61
+ h.type && /* @__PURE__ */ jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: h.type })
62
62
  ]
63
63
  },
64
64
  `${h.label}-${i}`
@@ -81,12 +81,12 @@ const SkillInline = (props) => {
81
81
  title: label,
82
82
  sub: ["Skill", type, version].filter(Boolean).join(" \xB7 "),
83
83
  children: (description || categories.length > 0 || triggers.length > 0) && /* @__PURE__ */ jsxs("div", { className: "space-y-2.5 px-4 py-3", children: [
84
- description && /* @__PURE__ */ jsx("p", { className: "whitespace-pre-line text-[13px] leading-relaxed text-[color:var(--mx-chat-text,hsl(var(--foreground)))]", children: description }),
84
+ description && /* @__PURE__ */ jsx("p", { className: "whitespace-pre-line text-[13px] leading-relaxed text-foreground", children: description }),
85
85
  (categories.length > 0 || triggers.length > 0) && /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-1.5", children: [
86
86
  categories.map((c) => /* @__PURE__ */ jsx(
87
87
  "span",
88
88
  {
89
- className: "rounded-md bg-[var(--mx-chat-fill,hsl(var(--muted)))] px-1.5 py-0.5 text-xs font-medium text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]",
89
+ className: "rounded-md bg-muted px-1.5 py-0.5 text-xs font-medium text-muted-foreground",
90
90
  children: c
91
91
  },
92
92
  `c-${c}`
@@ -94,7 +94,7 @@ const SkillInline = (props) => {
94
94
  triggers.map((t) => /* @__PURE__ */ jsx(
95
95
  "span",
96
96
  {
97
- className: "rounded-md border border-border/50 px-1.5 py-0.5 text-xs text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]",
97
+ className: "rounded-md border border-border/50 px-1.5 py-0.5 text-xs text-muted-foreground",
98
98
  children: t
99
99
  },
100
100
  `t-${t}`
@@ -17,22 +17,22 @@ const DbSchemaInline = ({
17
17
  return /* @__PURE__ */ jsx(ToolErrorCard, { entry, onOpenOverlay, toolGroupId });
18
18
  }
19
19
  if (!isTerminal(entry)) {
20
- return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 py-1.5 text-xs text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))] animate-in fade-in", children: [
20
+ return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 py-1.5 text-xs text-muted-foreground animate-in fade-in", children: [
21
21
  /* @__PURE__ */ jsx(Columns3, { className: "h-3.5 w-3.5 shrink-0" }),
22
22
  /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1", children: [
23
23
  "Reading schema for",
24
24
  " ",
25
- table ? /* @__PURE__ */ jsx("span", { className: "font-mono text-[color:var(--mx-chat-text,hsl(var(--foreground)))]", children: table }) : "table"
25
+ table ? /* @__PURE__ */ jsx("span", { className: "font-mono text-foreground", children: table }) : "table"
26
26
  ] }),
27
27
  /* @__PURE__ */ jsx(Loader2, { className: "h-3.5 w-3.5 shrink-0 animate-spin" })
28
28
  ] });
29
29
  }
30
30
  const result = resultAsObject(entry);
31
31
  const rows = result && Array.isArray(result.rows) ? result.rows : null;
32
- return /* @__PURE__ */ jsxs("div", { className: "rounded-lg border border-[color:var(--mx-chat-border,hsl(var(--border)))] bg-[var(--mx-chat-card,hsl(var(--card)))] p-3 space-y-2.5 animate-in fade-in", children: [
32
+ return /* @__PURE__ */ jsxs("div", { className: "rounded-lg border border-border bg-card p-3 space-y-2.5 animate-in fade-in", children: [
33
33
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
34
- /* @__PURE__ */ jsx(Columns3, { className: "h-4 w-4 shrink-0 text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]" }),
35
- /* @__PURE__ */ jsxs("span", { className: "text-sm text-[color:var(--mx-chat-text,hsl(var(--foreground)))]", children: [
34
+ /* @__PURE__ */ jsx(Columns3, { className: "h-4 w-4 shrink-0 text-muted-foreground" }),
35
+ /* @__PURE__ */ jsxs("span", { className: "text-sm text-foreground", children: [
36
36
  "Schema \xB7 ",
37
37
  /* @__PURE__ */ jsx("span", { className: "font-mono font-medium", children: table || "table" })
38
38
  ] }),
@@ -42,13 +42,13 @@ const DbSchemaInline = ({
42
42
  rows.length === 1 ? "column" : "columns"
43
43
  ] })
44
44
  ] }),
45
- rows ? rows.length > 0 ? /* @__PURE__ */ jsx("div", { className: "min-w-0 border-t border-[color:var(--mx-chat-border,hsl(var(--border)))] pt-2", children: /* @__PURE__ */ jsx(ResultValue, { value: rows, density: "inline" }) }) : /* @__PURE__ */ jsxs("p", { className: "border-t border-[color:var(--mx-chat-border,hsl(var(--border)))] pt-2 text-xs italic text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: [
45
+ rows ? rows.length > 0 ? /* @__PURE__ */ jsx("div", { className: "min-w-0 border-t border-border pt-2", children: /* @__PURE__ */ jsx(ResultValue, { value: rows, density: "inline" }) }) : /* @__PURE__ */ jsxs("p", { className: "border-t border-border pt-2 text-xs italic text-muted-foreground", children: [
46
46
  "No columns found for ",
47
47
  tableLabel,
48
48
  "."
49
49
  ] }) : entry.result != null ? (
50
50
  // Unexpected shape — surface it rather than hide it.
51
- /* @__PURE__ */ jsx("div", { className: "min-w-0 border-t border-[color:var(--mx-chat-border,hsl(var(--border)))] pt-2", children: /* @__PURE__ */ jsx(ToolResultValue, { value: entry.result, density: "inline" }) })
51
+ /* @__PURE__ */ jsx("div", { className: "min-w-0 border-t border-border pt-2", children: /* @__PURE__ */ jsx(ToolResultValue, { value: entry.result, density: "inline" }) })
52
52
  ) : null
53
53
  ] });
54
54
  };
@@ -40,7 +40,7 @@ const SourceDisclosure = ({ label, children }) => {
40
40
  CollapsibleTrigger,
41
41
  {
42
42
  onClick: (e) => e.stopPropagation(),
43
- className: "inline-flex items-center gap-1 text-[11px] font-medium text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))] hover:text-[color:var(--mx-chat-text,hsl(var(--foreground)))]",
43
+ className: "inline-flex items-center gap-1 text-[11px] font-medium text-muted-foreground hover:text-foreground",
44
44
  children: [
45
45
  open ? /* @__PURE__ */ jsx(ChevronDown, { className: "h-3 w-3" }) : /* @__PURE__ */ jsx(ChevronRight, { className: "h-3 w-3" }),
46
46
  open ? `Hide ${label}` : `Show ${label}`
@@ -92,15 +92,15 @@ const SqlInline = ({
92
92
  const idStrings = writeOutcome?.ids && writeOutcome.ids.every((v) => typeof v === "string") ? writeOutcome.ids : null;
93
93
  return /* @__PURE__ */ jsxs("div", { className: "min-w-0 space-y-2 animate-in fade-in", children: [
94
94
  resultRows && (resultRows.length > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
95
- /* @__PURE__ */ jsxs("p", { className: "text-xs text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: [
95
+ /* @__PURE__ */ jsxs("p", { className: "text-xs text-muted-foreground", children: [
96
96
  resultRows.length,
97
97
  " ",
98
98
  rowWord(resultRows.length)
99
99
  ] }),
100
100
  /* @__PURE__ */ jsx(ResultValue, { value: resultRows, density: "inline" })
101
- ] }) : /* @__PURE__ */ jsx("p", { className: "text-xs italic text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: "No rows returned." })),
101
+ ] }) : /* @__PURE__ */ jsx("p", { className: "text-xs italic text-muted-foreground", children: "No rows returned." })),
102
102
  !resultRows && writeOutcome && /* @__PURE__ */ jsxs(Fragment, { children: [
103
- /* @__PURE__ */ jsxs("p", { className: "flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: [
103
+ /* @__PURE__ */ jsxs("p", { className: "flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted-foreground", children: [
104
104
  writeOutcome.counts.map((c) => /* @__PURE__ */ jsxs("span", { children: [
105
105
  c.label,
106
106
  " ",
@@ -15,7 +15,7 @@ function WorkbookGrid({
15
15
  rows.reduce((m, r) => Math.max(m, Array.isArray(r) ? r.length : 0), 0)
16
16
  );
17
17
  if (!rows.length || colCount === 0) {
18
- return /* @__PURE__ */ jsx("div", { className: "px-3 py-6 text-center text-xs text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: "Empty sheet" });
18
+ return /* @__PURE__ */ jsx("div", { className: "px-3 py-6 text-center text-xs text-muted-foreground", children: "Empty sheet" });
19
19
  }
20
20
  const truncated = values.length > maxRows || rows.some((r) => Array.isArray(r) && r.length > maxCols);
21
21
  return /* @__PURE__ */ jsxs("div", { className: "overflow-auto", children: [
@@ -25,15 +25,15 @@ function WorkbookGrid({
25
25
  "td",
26
26
  {
27
27
  className: cn(
28
- "sm:max-w-[220px] sm:truncate whitespace-nowrap border border-[color:var(--mx-chat-border,hsl(var(--border)))] px-2 py-1 text-[color:var(--mx-chat-text,hsl(var(--foreground)))]",
29
- ci === 0 && "max-sm:sticky max-sm:left-0 max-sm:z-10 max-sm:bg-[var(--mx-chat-card,hsl(var(--card)))]"
28
+ "sm:max-w-[220px] sm:truncate whitespace-nowrap border border-border px-2 py-1 text-foreground",
29
+ ci === 0 && "max-sm:sticky max-sm:left-0 max-sm:z-10 max-sm:bg-card"
30
30
  ),
31
31
  children: cell == null ? "" : String(cell)
32
32
  },
33
33
  ci
34
34
  );
35
35
  }) }, ri)) }) }),
36
- truncated ? /* @__PURE__ */ jsxs("div", { className: "px-2 py-1 text-[10px] text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: [
36
+ truncated ? /* @__PURE__ */ jsxs("div", { className: "px-2 py-1 text-[10px] text-muted-foreground", children: [
37
37
  "Showing ",
38
38
  rows.length,
39
39
  " \xD7 ",
@@ -35,7 +35,7 @@ function WorkbookInline({
35
35
  href: "/workbooks",
36
36
  target: "_blank",
37
37
  rel: "noopener noreferrer",
38
- className: "font-medium text-[color:var(--mx-chat-text,hsl(var(--foreground)))] underline underline-offset-2",
38
+ className: "font-medium text-foreground underline underline-offset-2",
39
39
  children: "/workbooks"
40
40
  }
41
41
  ),
@@ -75,7 +75,7 @@ function WorkbookInline({
75
75
  subtitle,
76
76
  actions,
77
77
  children: wb.firstSheet ? /* @__PURE__ */ jsxs("div", { children: [
78
- wb.firstSheet.name ? /* @__PURE__ */ jsx("div", { className: "border-b border-[color:var(--mx-chat-border,hsl(var(--border)))] px-3 py-1.5 text-[11px] font-medium text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: wb.firstSheet.name }) : null,
78
+ wb.firstSheet.name ? /* @__PURE__ */ jsx("div", { className: "border-b border-border px-3 py-1.5 text-[11px] font-medium text-muted-foreground", children: wb.firstSheet.name }) : null,
79
79
  /* @__PURE__ */ jsx(WorkbookGrid, { values: wb.firstSheet.values, maxRows: 6, maxCols: 6 })
80
80
  ] }) : null
81
81
  }
@@ -7,11 +7,11 @@ import { WorkbookGrid } from "./WorkbookGrid.js";
7
7
  function WorkbookOverlay({ entry }) {
8
8
  const wb = useMemo(() => parseWorkbook(entry), [entry]);
9
9
  const name = wb.name ?? "Workbook";
10
- return /* @__PURE__ */ jsxs("div", { className: "flex h-full flex-col overflow-hidden bg-[var(--mx-chat-card,hsl(var(--card)))]", children: [
11
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 border-b border-[color:var(--mx-chat-border,hsl(var(--border)))] px-4 py-2", children: [
12
- /* @__PURE__ */ jsx(Sheet, { className: "h-4 w-4 shrink-0 text-[color:var(--mx-chat-accent,hsl(var(--primary)))]" }),
13
- /* @__PURE__ */ jsx("span", { className: "truncate text-sm font-medium text-[color:var(--mx-chat-text,hsl(var(--foreground)))]", children: name }),
14
- wb.firstSheet?.name ? /* @__PURE__ */ jsxs("span", { className: "text-xs text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: [
10
+ return /* @__PURE__ */ jsxs("div", { className: "flex h-full flex-col overflow-hidden bg-card", children: [
11
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 border-b border-border px-4 py-2", children: [
12
+ /* @__PURE__ */ jsx(Sheet, { className: "h-4 w-4 shrink-0 text-primary" }),
13
+ /* @__PURE__ */ jsx("span", { className: "truncate text-sm font-medium text-foreground", children: name }),
14
+ wb.firstSheet?.name ? /* @__PURE__ */ jsxs("span", { className: "text-xs text-muted-foreground", children: [
15
15
  "\xB7 ",
16
16
  wb.firstSheet.name
17
17
  ] }) : null,
@@ -21,7 +21,7 @@ function WorkbookOverlay({ entry }) {
21
21
  href: `/workbooks/${wb.id}`,
22
22
  target: "_blank",
23
23
  rel: "noopener noreferrer",
24
- className: "ml-auto inline-flex items-center gap-1.5 rounded-md border border-[color:var(--mx-chat-border,hsl(var(--border)))] px-3 py-1.5 text-sm font-medium text-[color:var(--mx-chat-text,hsl(var(--foreground)))] hover:bg-[var(--mx-chat-fill,hsl(var(--muted)))]",
24
+ className: "ml-auto inline-flex items-center gap-1.5 rounded-md border border-border px-3 py-1.5 text-sm font-medium text-foreground hover:bg-muted",
25
25
  children: [
26
26
  /* @__PURE__ */ jsx(ExternalLink, { className: "h-4 w-4" }),
27
27
  "Open full editor"
@@ -29,7 +29,7 @@ function WorkbookOverlay({ entry }) {
29
29
  }
30
30
  ) : null
31
31
  ] }),
32
- /* @__PURE__ */ jsx("div", { className: "flex-1 overflow-auto p-4", children: wb.firstSheet ? /* @__PURE__ */ jsx(WorkbookGrid, { values: wb.firstSheet.values, maxRows: 60, maxCols: 26 }) : /* @__PURE__ */ jsx("div", { className: "py-10 text-center text-sm text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: "No sheet data to preview." }) })
32
+ /* @__PURE__ */ jsx("div", { className: "flex-1 overflow-auto p-4", children: wb.firstSheet ? /* @__PURE__ */ jsx(WorkbookGrid, { values: wb.firstSheet.values, maxRows: 60, maxCols: 26 }) : /* @__PURE__ */ jsx("div", { className: "py-10 text-center text-sm text-muted-foreground", children: "No sheet data to preview." }) })
33
33
  ] });
34
34
  }
35
35
  export {
@@ -41,7 +41,7 @@ const Paper = ({
41
41
  "div",
42
42
  {
43
43
  className: cn(
44
- "max-h-96 w-full overflow-auto border border-border/50 bg-[var(--mx-chat-card,hsl(var(--card)))] px-5 py-4 shadow-xs",
44
+ "max-h-96 w-full overflow-auto border border-border/50 bg-card px-5 py-4 shadow-xs",
45
45
  // Attached: this sheet continues the ArtifactResultBar header above it —
46
46
  // square top, no top border, one continuous surface.
47
47
  attached ? "rounded-b-xl rounded-t-none border-t-0" : "rounded-xl"
@@ -87,12 +87,12 @@ const PatchDiffInline = (props) => {
87
87
  const isStructural = command !== null && STRUCTURAL_PATCH_COMMANDS.has(command);
88
88
  const hasText = after !== null && before !== null;
89
89
  if (isStructural || !hasText) {
90
- return /* @__PURE__ */ jsx("p", { className: "text-xs text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: isStructural ? "Structured update applied." : isTerminal(entry) ? "Updated." : "Updating\u2026" });
90
+ return /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: isStructural ? "Structured update applied." : isTerminal(entry) ? "Updated." : "Updating\u2026" });
91
91
  }
92
92
  const rewrite = isEffectivelyRewrite(before, after);
93
93
  return /* @__PURE__ */ jsx(Paper, { attached, children: rewrite ? (
94
94
  // Full rewrite (or fresh body): the final document, no highlights.
95
- /* @__PURE__ */ jsx("div", { className: `whitespace-pre-wrap break-words text-[color:var(--mx-chat-text,hsl(var(--foreground)))] ${PAPER_TEXT}`, children: after })
95
+ /* @__PURE__ */ jsx("div", { className: `whitespace-pre-wrap break-words text-foreground ${PAPER_TEXT}`, children: after })
96
96
  ) : /* @__PURE__ */ jsx(
97
97
  AnimatedDiffReveal,
98
98
  {
@@ -12,7 +12,7 @@ const EmptyResult = ({
12
12
  "div",
13
13
  {
14
14
  className: cn(
15
- "flex items-center gap-2 text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]",
15
+ "flex items-center gap-2 text-muted-foreground",
16
16
  full ? "flex-col justify-center py-10 text-sm" : "py-2 text-xs",
17
17
  className
18
18
  ),
@@ -80,7 +80,7 @@ function renderFieldValue(key, val, density, depth, embedMedia) {
80
80
  if (typeof val === "string") {
81
81
  const human = humanizeEnumValue(val);
82
82
  if (human) {
83
- return /* @__PURE__ */ jsx("span", { className: "text-sm text-[color:var(--mx-chat-text,hsl(var(--foreground)))]", title: val, children: human });
83
+ return /* @__PURE__ */ jsx("span", { className: "text-sm text-foreground", title: val, children: human });
84
84
  }
85
85
  }
86
86
  return /* @__PURE__ */ jsx(
@@ -99,7 +99,7 @@ const IdentifierListRow = ({
99
99
  ids
100
100
  }) => {
101
101
  const [open, setOpen] = React.useState(false);
102
- return /* @__PURE__ */ jsxs("div", { className: "text-xs text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: [
102
+ return /* @__PURE__ */ jsxs("div", { className: "text-xs text-muted-foreground", children: [
103
103
  /* @__PURE__ */ jsxs(Button, { variant: "quiet", onClick: (e) => {
104
104
  e.stopPropagation();
105
105
  setOpen((v) => !v);
@@ -122,7 +122,7 @@ function notApplicableSummary(names) {
122
122
  }
123
123
  const NotApplicableRow = ({ entries, labels, density, depth, embedMedia }) => {
124
124
  const [open, setOpen] = React.useState(false);
125
- return /* @__PURE__ */ jsxs("div", { className: "text-xs text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: [
125
+ return /* @__PURE__ */ jsxs("div", { className: "text-xs text-muted-foreground", children: [
126
126
  /* @__PURE__ */ jsxs(Button, { variant: "quiet", onClick: (e) => {
127
127
  e.stopPropagation();
128
128
  setOpen((v) => !v);
@@ -206,7 +206,7 @@ const KeyValueGridBody = ({
206
206
  /* @__PURE__ */ jsx(
207
207
  "dt",
208
208
  {
209
- className: "truncate text-xs font-medium text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]",
209
+ className: "truncate text-xs font-medium text-muted-foreground",
210
210
  title: fieldLabel(key, labels).description ?? key,
211
211
  children: fieldLabel(key, labels).label
212
212
  }
@@ -223,11 +223,11 @@ const KeyValueGridBody = ({
223
223
  chips.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex flex-wrap items-center gap-1.5", children: chips.map(([key, val]) => /* @__PURE__ */ jsxs(
224
224
  "span",
225
225
  {
226
- className: "inline-flex items-center gap-1 rounded-md bg-[var(--mx-chat-fill,hsl(var(--muted)))] px-1.5 py-0.5 text-xs",
226
+ className: "inline-flex items-center gap-1 rounded-md bg-muted px-1.5 py-0.5 text-xs",
227
227
  title: key,
228
228
  children: [
229
- /* @__PURE__ */ jsx("span", { className: "text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: fieldLabel(key, labels).label }),
230
- /* @__PURE__ */ jsx("span", { className: "font-medium tabular-nums text-[color:var(--mx-chat-text,hsl(var(--foreground)))]", children: formatMetaNumber(val) })
229
+ /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: fieldLabel(key, labels).label }),
230
+ /* @__PURE__ */ jsx("span", { className: "font-medium tabular-nums text-foreground", children: formatMetaNumber(val) })
231
231
  ]
232
232
  },
233
233
  key
@@ -236,7 +236,7 @@ const KeyValueGridBody = ({
236
236
  /* @__PURE__ */ jsx(
237
237
  "div",
238
238
  {
239
- className: "text-xs font-medium leading-none text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]",
239
+ className: "text-xs font-medium leading-none text-muted-foreground",
240
240
  title: fieldLabel(key, labels).description ?? key,
241
241
  children: fieldLabel(key, labels).label
242
242
  }
@@ -258,7 +258,7 @@ const KeyValueGridBody = ({
258
258
  },
259
259
  key
260
260
  )),
261
- ids.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex flex-wrap items-center gap-x-3 gap-y-1", children: ids.map(([key, val]) => /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1.5 text-xs text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))]", children: [
261
+ ids.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex flex-wrap items-center gap-x-3 gap-y-1", children: ids.map(([key, val]) => /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1.5 text-xs text-muted-foreground", children: [
262
262
  fieldLabel(key, labels).label,
263
263
  /* @__PURE__ */ jsx(ShortId, { value: val })
264
264
  ] }, key)) }),
@@ -76,14 +76,14 @@ const ResultFile = ({ file, density = "inline", className }) => {
76
76
  "div",
77
77
  {
78
78
  className: cn(
79
- "inline-flex max-w-full items-center gap-3 rounded-md border border-[color:var(--mx-chat-border,hsl(var(--border)))] bg-[var(--mx-chat-card,hsl(var(--card)))] px-3 py-2",
79
+ "inline-flex max-w-full items-center gap-3 rounded-md border border-border bg-card px-3 py-2",
80
80
  className
81
81
  ),
82
82
  children: [
83
83
  /* @__PURE__ */ jsx(FileIcon, { fileName: name, mimeType: file.mime_type ?? null, size: iconSize }),
84
84
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
85
- /* @__PURE__ */ jsx("p", { className: "truncate text-sm font-medium text-[color:var(--mx-chat-text,hsl(var(--foreground)))]", title: name, children: name }),
86
- metaParts.length > 0 ? /* @__PURE__ */ jsx("p", { className: "truncate text-xs text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))] tabular-nums", children: metaParts.join(" \xB7 ") }) : null
85
+ /* @__PURE__ */ jsx("p", { className: "truncate text-sm font-medium text-foreground", title: name, children: name }),
86
+ metaParts.length > 0 ? /* @__PURE__ */ jsx("p", { className: "truncate text-xs text-muted-foreground tabular-nums", children: metaParts.join(" \xB7 ") }) : null
87
87
  ] }),
88
88
  /* @__PURE__ */ jsxs("div", { className: "flex shrink-0 items-center gap-1", children: [
89
89
  openHref ? /* @__PURE__ */ jsx(
@@ -95,7 +95,7 @@ const ResultFile = ({ file, density = "inline", className }) => {
95
95
  onClick: (e) => e.stopPropagation(),
96
96
  "aria-label": openLabel,
97
97
  title: openLabel,
98
- className: "flex h-7 w-7 items-center justify-center rounded-md text-[color:var(--mx-chat-text-secondary,hsl(var(--muted-foreground)))] hover:bg-accent hover:text-[color:var(--mx-chat-text,hsl(var(--foreground)))]",
98
+ className: "flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground",
99
99
  children: /* @__PURE__ */ jsx(ExternalLink, { className: "h-4 w-4", "aria-hidden": "true" })
100
100
  }
101
101
  ) : null,
@@ -3,7 +3,7 @@ import { jsx } from "react/jsx-runtime";
3
3
  import { JsonInspector } from "../../host/ui-slots.js";
4
4
  import { KindDataGate } from "../../host/ui-slots.js";
5
5
  import { cn } from "@ai-matrx/design-system";
6
- const ResultJson = ({ data, className, showSource = false }) => /* @__PURE__ */ jsx(KindDataGate, { component: "ResultJson", data, showSource, children: /* @__PURE__ */ jsx("div", { className: cn("min-w-0 h-80 overflow-hidden rounded-md border border-[color:var(--mx-chat-border,hsl(var(--border)))] bg-[var(--mx-chat-card,hsl(var(--card)))]", className), children: /* @__PURE__ */ jsx(JsonInspector, { data, showSource: true }) }) });
6
+ const ResultJson = ({ data, className, showSource = false }) => /* @__PURE__ */ jsx(KindDataGate, { component: "ResultJson", data, showSource, children: /* @__PURE__ */ jsx("div", { className: cn("min-w-0 h-80 overflow-hidden rounded-md border border-border bg-card", className), children: /* @__PURE__ */ jsx(JsonInspector, { data, showSource: true }) }) });
7
7
  export {
8
8
  ResultJson
9
9
  };