@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.
- package/CHANGELOG.md +12 -0
- package/dist/agents/components/chat/chat-quick-actions.config.d.ts +0 -8
- package/dist/agents/components/chat/chat-quick-actions.config.js +2 -1
- package/dist/agents/components/inputs/smart-input/InputActionButtons.d.ts +2 -2
- package/dist/agents/components/inputs/smart-input/InputActionButtons.js +3 -1
- package/dist/agents/components/inputs/smart-input/SmartAgentInputStacked.js +8 -3
- package/dist/agents/components/messages-display/AgentConversationDisplay.js +1 -1
- package/dist/agents/components/messages-display/assistant/AgentEmptyMessageDisplay.js +4 -4
- package/dist/agents/components/messages-display/assistant/AssistantMessageFooter.js +4 -2
- package/dist/agents/components/messages-display/assistant/AssistantNoAnswer.js +1 -1
- package/dist/agents/components/messages-display/assistant/BreathingOrb.js +1 -1
- package/dist/agents/components/messages-display/assistant/InPlaceAnswerEditor.js +1 -1
- package/dist/agents/components/messages-display/citations/MessageSourcesRow.js +1 -1
- package/dist/agents/components/messages-display/conversation-tools/ConversationFindBar.js +4 -4
- package/dist/agents/components/messages-display/message-options/EditHistoryDialog.js +7 -7
- package/dist/agents/components/messages-display/user/AgentUserMessage.js +4 -4
- package/dist/agents/components/messages-display/user/CollabNoteMessage.js +2 -2
- package/dist/agents/components/messages-display/user/FirstTurnVariables.js +3 -3
- package/dist/agents/components/messages-display/user/PendingSendMessage.js +4 -4
- package/dist/agents/components/messages-display/user/RemarksTranscriptView.js +7 -7
- package/dist/agents/components/messages-display/user/ResourceAttachmentTile.js +9 -9
- package/dist/agents/components/messages-display/user/ResourceEditableToggleSamples.js +4 -4
- package/dist/agents/components/messages-display/user/UserActionBar.js +3 -3
- package/dist/agents/components/messages-display/user/UserMessageAttachmentStyleComparison.js +12 -12
- package/dist/agents/components/messages-display/user/UserMessageChipsDemo.js +19 -19
- package/dist/agents/components/messages-display/user/UserMessageHybridTileSamples.js +22 -22
- package/dist/agents/components/run/AgentRunnerPage.js +4 -4
- package/dist/agents/components/run/AssistantError.js +1 -1
- package/dist/agents/components/run/AssistantWarning.js +1 -1
- package/dist/agents/components/run/GenerationJobCard.js +5 -5
- package/dist/agents/components/run/IncompleteNote.js +1 -1
- package/dist/agents/components/run/RunJobWorkingLine.js +1 -1
- package/dist/agents/components/shared/AgentConversationColumn.js +1 -1
- package/dist/agents/components/shared/AgentHeaderMobile.js +6 -6
- package/dist/agents/components/shared/AgentModeController.js +1 -1
- package/dist/agents/components/shared/AutoInjectionSwitch.js +6 -6
- package/dist/agents/components/shared/DesktopFilterPanel.js +8 -8
- package/dist/agents/components/shared/transcript-layout.d.ts +9 -8
- package/dist/agents/components/shared/transcript-layout.js +2 -2
- package/dist/agents/components/smart/AgentRunner.js +1 -1
- package/dist/agents/components/smart/CreateWithAiTabs.js +1 -1
- package/dist/cx-chat/components/agent/agents.d.ts +0 -5
- package/dist/cx-chat/components/agent/agents.js +4 -3
- package/dist/cx-chat/components/agent/local-agents.d.ts +0 -6
- package/dist/cx-chat/components/agent/local-agents.js +3 -2
- package/dist/host/request-headers.js +3 -1
- package/dist/surfaces/manifests/agent-builder.manifest.d.ts +8 -0
- package/dist/surfaces/manifests/agent-builder.manifest.js +62 -2
- package/dist/tool-call-visualization/components/ArtifactResultBar.js +4 -4
- package/dist/tool-call-visualization/components/ChatResultColumn.d.ts +1 -1
- package/dist/tool-call-visualization/components/ToolCallBatch.js +2 -2
- package/dist/tool-call-visualization/components/ToolCallVisualization.js +5 -5
- package/dist/tool-call-visualization/components/ToolTabBodies.js +12 -12
- package/dist/tool-call-visualization/components/ToolUpdatesOverlay.js +4 -4
- package/dist/tool-call-visualization/configured-rows/ConfiguredToolRow.js +8 -8
- package/dist/tool-call-visualization/configured-rows/CopyToolButton.js +1 -1
- package/dist/tool-call-visualization/configured-rows/ToolProgressView.js +7 -7
- package/dist/tool-call-visualization/configured-rows/field-components.js +6 -6
- package/dist/tool-call-visualization/registry/GenericRenderer.js +4 -4
- package/dist/tool-call-visualization/renderers/_shared-entity/EmptyResultCard.js +1 -1
- package/dist/tool-call-visualization/renderers/_shared-entity/EntityCard.js +5 -5
- package/dist/tool-call-visualization/renderers/_shared-entity/PartPeekPopover.js +2 -2
- package/dist/tool-call-visualization/renderers/_shared-entity/ToolGlyph.js +1 -1
- package/dist/tool-call-visualization/renderers/_shared-entity/ToolResultCard.js +6 -6
- package/dist/tool-call-visualization/renderers/agent-call/AgentCallInline.js +5 -5
- package/dist/tool-call-visualization/renderers/agent-call/CollabCallCard.js +4 -4
- package/dist/tool-call-visualization/renderers/agent-call/ImageGenerationResult.js +1 -1
- package/dist/tool-call-visualization/renderers/ask/AskInline.js +3 -3
- package/dist/tool-call-visualization/renderers/ask-person/AskPersonInline.js +2 -2
- package/dist/tool-call-visualization/renderers/cloud-browser/CloudBrowserRunCard.js +5 -5
- package/dist/tool-call-visualization/renderers/ctx/CtxBatchInline.js +3 -3
- package/dist/tool-call-visualization/renderers/ctx/CtxGetInline.js +2 -2
- package/dist/tool-call-visualization/renderers/ctx/CtxItemCard.js +3 -3
- package/dist/tool-call-visualization/renderers/ctx/CtxPatchInline.js +6 -6
- package/dist/tool-call-visualization/renderers/dictionary/DictEntryList.js +12 -12
- package/dist/tool-call-visualization/renderers/dictionary/DictionaryOverlay.js +5 -5
- package/dist/tool-call-visualization/renderers/fs/FsInline.js +7 -7
- package/dist/tool-call-visualization/renderers/news-api/NewsInline.js +17 -17
- package/dist/tool-call-visualization/renderers/news-api/NewsOverlay.js +12 -12
- package/dist/tool-call-visualization/renderers/random-wheel/RandomWheelInline.js +34 -34
- package/dist/tool-call-visualization/renderers/records/RecordsInline.js +1 -1
- package/dist/tool-call-visualization/renderers/research/ResearchInline.js +10 -10
- package/dist/tool-call-visualization/renderers/research/ResearchOverlay.js +19 -19
- package/dist/tool-call-visualization/renderers/research/SubagentReportBlock.js +11 -11
- package/dist/tool-call-visualization/renderers/scrape/ScrapeInline.js +18 -18
- package/dist/tool-call-visualization/renderers/scrape/ScrapeOverlay.js +17 -17
- package/dist/tool-call-visualization/renderers/search/SearchInline.js +30 -30
- package/dist/tool-call-visualization/renderers/search/SearchOverlay.js +40 -40
- package/dist/tool-call-visualization/renderers/shell/ShellInline.js +3 -3
- package/dist/tool-call-visualization/renderers/skill/SkillInline.js +5 -5
- package/dist/tool-call-visualization/renderers/sql/DbSchemaInline.js +7 -7
- package/dist/tool-call-visualization/renderers/sql/SqlInline.js +4 -4
- package/dist/tool-call-visualization/renderers/workbook/WorkbookGrid.js +4 -4
- package/dist/tool-call-visualization/renderers/workbook/WorkbookInline.js +2 -2
- package/dist/tool-call-visualization/renderers/workbook/WorkbookOverlay.js +7 -7
- package/dist/tool-call-visualization/renderers/working-document/PatchDiffInline.js +3 -3
- package/dist/tool-call-visualization/result-fields/EmptyResult.js +1 -1
- package/dist/tool-call-visualization/result-fields/KeyValueGrid.js +9 -9
- package/dist/tool-call-visualization/result-fields/ResultFile.js +4 -4
- package/dist/tool-call-visualization/result-fields/ResultJson.js +1 -1
- package/dist/tool-call-visualization/result-fields/ResultMedia.js +2 -2
- package/dist/tool-call-visualization/result-fields/ResultScalar.js +2 -2
- package/dist/tool-call-visualization/result-fields/ResultTable.js +10 -10
- package/dist/tool-call-visualization/result-fields/ResultValue.js +7 -7
- package/dist/tool-call-visualization/result-fields/ShortId.js +3 -3
- package/dist/tool-call-visualization/result-fields/ToolErrorCard.js +4 -4
- package/dist/tool-call-visualization/result-fields/UrlChips.js +3 -3
- package/dist/tool-call-visualization/surface-write/SurfaceWriteDiff.js +2 -2
- package/dist/tool-call-visualization/surface-write/SurfaceWriteStress.js +1 -1
- package/dist/tool-call-visualization/window-panel/ToolCallWindowPanel.js +9 -9
- package/dist/ui/mandates-storage/mandateStorage.d.ts +420 -0
- package/dist/ui/mandates-storage/shortcutStorage.d.ts +105 -0
- package/dist/ui/projectCreateAiDebug.d.ts +0 -5
- package/dist/ui/projectCreateAiDebug.js +2 -1
- package/package.json +23 -13
|
@@ -24,8 +24,8 @@ const SubagentReportBlock = ({
|
|
|
24
24
|
const effectiveView = streaming ? "partial" : view;
|
|
25
25
|
const scrollRef = useAutoScrollOnStream(report, streaming);
|
|
26
26
|
const hasReport = report.trim().length > 0;
|
|
27
|
-
return /* @__PURE__ */ jsxs("div", { className: "mx-auto w-[94%] overflow-hidden rounded-xl border border-primary/20 bg-
|
|
28
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 border-b border-
|
|
27
|
+
return /* @__PURE__ */ jsxs("div", { className: "mx-auto w-[94%] overflow-hidden rounded-xl border border-primary/20 bg-card shadow-sm", children: [
|
|
28
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 border-b border-border bg-primary/5 px-3 py-2", children: [
|
|
29
29
|
/* @__PURE__ */ jsxs(
|
|
30
30
|
"button",
|
|
31
31
|
{
|
|
@@ -34,19 +34,19 @@ const SubagentReportBlock = ({
|
|
|
34
34
|
className: "flex min-w-0 flex-1 items-center gap-2 text-left",
|
|
35
35
|
"aria-expanded": effectiveView !== "none",
|
|
36
36
|
children: [
|
|
37
|
-
effectiveView === "none" ? /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4 flex-shrink-0 text-
|
|
38
|
-
/* @__PURE__ */ jsx(AGENT_ICON, { className: "h-4 w-4 flex-shrink-0 text-
|
|
37
|
+
effectiveView === "none" ? /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4 flex-shrink-0 text-muted-foreground" }) : /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 flex-shrink-0 text-muted-foreground" }),
|
|
38
|
+
/* @__PURE__ */ jsx(AGENT_ICON, { className: "h-4 w-4 flex-shrink-0 text-primary" }),
|
|
39
39
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
40
40
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
41
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm font-semibold text-
|
|
41
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-semibold text-foreground", children: "Research report" }),
|
|
42
42
|
/* @__PURE__ */ jsx(Badge, { tone: "primary", children: "Sub-agent" })
|
|
43
43
|
] }),
|
|
44
|
-
queries && queries.length > 0 && /* @__PURE__ */ jsx("div", { className: "truncate text-xs text-
|
|
44
|
+
queries && queries.length > 0 && /* @__PURE__ */ jsx("div", { className: "truncate text-xs text-muted-foreground", children: queries.join(" \xB7 ") })
|
|
45
45
|
] })
|
|
46
46
|
]
|
|
47
47
|
}
|
|
48
48
|
),
|
|
49
|
-
streaming ? /* @__PURE__ */ jsxs("span", { className: "flex flex-shrink-0 items-center gap-1.5 text-xs font-medium text-
|
|
49
|
+
streaming ? /* @__PURE__ */ jsxs("span", { className: "flex flex-shrink-0 items-center gap-1.5 text-xs font-medium text-primary", children: [
|
|
50
50
|
/* @__PURE__ */ jsx("span", { className: "h-1.5 w-1.5 rounded-full bg-primary animate-pulse" }),
|
|
51
51
|
"Streaming"
|
|
52
52
|
] }) : effectiveView !== "none" && /* @__PURE__ */ jsx(
|
|
@@ -54,7 +54,7 @@ const SubagentReportBlock = ({
|
|
|
54
54
|
{
|
|
55
55
|
type: "button",
|
|
56
56
|
onClick: () => setView((v) => v === "full" ? "partial" : "full"),
|
|
57
|
-
className: "flex flex-shrink-0 items-center gap-1 rounded-md border border-
|
|
57
|
+
className: "flex flex-shrink-0 items-center gap-1 rounded-md border border-border bg-background px-2 py-1 text-xs text-muted-foreground transition-colors hover:bg-muted/50",
|
|
58
58
|
title: view === "full" ? "Collapse to a window" : "Expand fully",
|
|
59
59
|
children: view === "full" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
60
60
|
/* @__PURE__ */ jsx(Minimize2, { className: "h-3 w-3" }),
|
|
@@ -84,8 +84,8 @@ const SubagentReportBlock = ({
|
|
|
84
84
|
hideCopyButton: true,
|
|
85
85
|
className: "text-sm"
|
|
86
86
|
}
|
|
87
|
-
) : /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 py-6 text-sm text-
|
|
88
|
-
/* @__PURE__ */ jsx(FileText, { className: "h-4 w-4 text-
|
|
87
|
+
) : /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 py-6 text-sm text-muted-foreground", children: [
|
|
88
|
+
/* @__PURE__ */ jsx(FileText, { className: "h-4 w-4 text-primary" }),
|
|
89
89
|
"Synthesizing the report\u2026"
|
|
90
90
|
] })
|
|
91
91
|
}
|
|
@@ -116,7 +116,7 @@ const SubagentReportBlock = ({
|
|
|
116
116
|
) })
|
|
117
117
|
}
|
|
118
118
|
)
|
|
119
|
-
) : /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 p-4 text-sm text-
|
|
119
|
+
) : /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 p-4 text-sm text-muted-foreground", children: [
|
|
120
120
|
/* @__PURE__ */ jsx(FileText, { className: "h-4 w-4" }),
|
|
121
121
|
"No report was produced."
|
|
122
122
|
] }) })
|
|
@@ -27,7 +27,7 @@ const Favicon = ({
|
|
|
27
27
|
const [failed, setFailed] = useState(false);
|
|
28
28
|
const src = url ? getFaviconUrl(url) : "";
|
|
29
29
|
if (failed || !src)
|
|
30
|
-
return /* @__PURE__ */ jsx(Globe, { className: cn("text-
|
|
30
|
+
return /* @__PURE__ */ jsx(Globe, { className: cn("text-muted-foreground", className) });
|
|
31
31
|
return (
|
|
32
32
|
// eslint-disable-next-line @next/next/no-img-element -- favicon service, not owned media
|
|
33
33
|
/* @__PURE__ */ jsx(
|
|
@@ -79,9 +79,9 @@ const PulsingDots = () => /* @__PURE__ */ jsxs("span", { className: "flex gap-0.
|
|
|
79
79
|
)
|
|
80
80
|
] });
|
|
81
81
|
const ContentSkeleton = () => /* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
82
|
-
/* @__PURE__ */ jsx("div", { className: "h-2.5 w-3/4 rounded bg-
|
|
83
|
-
/* @__PURE__ */ jsx("div", { className: "h-2.5 w-full rounded bg-
|
|
84
|
-
/* @__PURE__ */ jsx("div", { className: "h-2.5 w-5/6 rounded bg-
|
|
82
|
+
/* @__PURE__ */ jsx("div", { className: "h-2.5 w-3/4 rounded bg-muted", style: { animation: "pulse 1.6s ease-in-out infinite" } }),
|
|
83
|
+
/* @__PURE__ */ jsx("div", { className: "h-2.5 w-full rounded bg-muted", style: { animation: "pulse 1.6s ease-in-out infinite 0.15s" } }),
|
|
84
|
+
/* @__PURE__ */ jsx("div", { className: "h-2.5 w-5/6 rounded bg-muted", style: { animation: "pulse 1.6s ease-in-out infinite 0.3s" } })
|
|
85
85
|
] });
|
|
86
86
|
const PageCardHeader = ({ url, domain, reading }) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
87
87
|
/* @__PURE__ */ jsx(Favicon, { url, className: "h-4 w-4 flex-shrink-0" }),
|
|
@@ -98,9 +98,9 @@ const PageCardHeader = ({ url, domain, reading }) => /* @__PURE__ */ jsxs("div",
|
|
|
98
98
|
}
|
|
99
99
|
),
|
|
100
100
|
reading ? /* @__PURE__ */ jsxs("span", { className: "flex flex-shrink-0 items-center gap-1.5", children: [
|
|
101
|
-
/* @__PURE__ */ jsx("span", { className: "text-xs font-medium text-
|
|
101
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs font-medium text-primary", children: "Reading" }),
|
|
102
102
|
/* @__PURE__ */ jsx(PulsingDots, {})
|
|
103
|
-
] }) : /* @__PURE__ */ jsx(BookOpenCheck, { className: "h-3.5 w-3.5 flex-shrink-0 text-
|
|
103
|
+
] }) : /* @__PURE__ */ jsx(BookOpenCheck, { className: "h-3.5 w-3.5 flex-shrink-0 text-primary" })
|
|
104
104
|
] });
|
|
105
105
|
const ReadingCard = ({
|
|
106
106
|
url,
|
|
@@ -128,14 +128,14 @@ const ReadPageCard = ({ page, index, onOpen }) => {
|
|
|
128
128
|
return /* @__PURE__ */ jsxs(
|
|
129
129
|
"div",
|
|
130
130
|
{
|
|
131
|
-
className: "animate-in fade-in slide-in-from-bottom-1 overflow-hidden rounded-lg border border-
|
|
131
|
+
className: "animate-in fade-in slide-in-from-bottom-1 overflow-hidden rounded-lg border border-border bg-card",
|
|
132
132
|
style: {
|
|
133
133
|
animationDelay: `${Math.min(index, 8) * 70}ms`,
|
|
134
134
|
animationDuration: "280ms",
|
|
135
135
|
animationFillMode: "backwards"
|
|
136
136
|
},
|
|
137
137
|
children: [
|
|
138
|
-
page.image && /* @__PURE__ */ jsx("div", { className: "relative h-32 w-full overflow-hidden border-b border-
|
|
138
|
+
page.image && /* @__PURE__ */ jsx("div", { className: "relative h-32 w-full overflow-hidden border-b border-border bg-muted", children: /* @__PURE__ */ jsx(
|
|
139
139
|
InlineMediaRef,
|
|
140
140
|
{
|
|
141
141
|
ref: { url: page.image },
|
|
@@ -157,16 +157,16 @@ const ReadPageCard = ({ page, index, onOpen }) => {
|
|
|
157
157
|
target: "_blank",
|
|
158
158
|
rel: "noopener noreferrer",
|
|
159
159
|
onClick: (e) => e.stopPropagation(),
|
|
160
|
-
className: "block text-sm font-semibold leading-snug text-
|
|
160
|
+
className: "block text-sm font-semibold leading-snug text-foreground hover:text-primary",
|
|
161
161
|
children: page.title
|
|
162
162
|
}
|
|
163
163
|
),
|
|
164
164
|
page.aiReview && /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-1.5 rounded-md border border-primary/15 bg-primary/5 px-2 py-1.5", children: [
|
|
165
|
-
/* @__PURE__ */ jsx(AGENT_ICON, { className: "mt-0.5 h-3 w-3 flex-shrink-0 text-
|
|
165
|
+
/* @__PURE__ */ jsx(AGENT_ICON, { className: "mt-0.5 h-3 w-3 flex-shrink-0 text-primary" }),
|
|
166
166
|
/* @__PURE__ */ jsx("span", { className: "text-xs leading-relaxed text-foreground/85", children: page.aiReview })
|
|
167
167
|
] }),
|
|
168
|
-
snippet && /* @__PURE__ */ jsx("p", { className: "line-clamp-3 whitespace-pre-wrap text-xs leading-relaxed text-
|
|
169
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 pt-0.5 text-xs text-
|
|
168
|
+
snippet && /* @__PURE__ */ jsx("p", { className: "line-clamp-3 whitespace-pre-wrap text-xs leading-relaxed text-muted-foreground", children: snippet }),
|
|
169
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 pt-0.5 text-xs text-muted-foreground", children: [
|
|
170
170
|
/* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1", children: [
|
|
171
171
|
/* @__PURE__ */ jsx(FileText, { className: "h-3 w-3" }),
|
|
172
172
|
formatCount(page.charCount),
|
|
@@ -227,8 +227,8 @@ const ScrapeInline = ({
|
|
|
227
227
|
const pendingUrls = browsingUrls.filter((u) => !readUrls.has(u));
|
|
228
228
|
const headerCount = browsingUrls.length || parsed.pages.length || 1;
|
|
229
229
|
return /* @__PURE__ */ jsxs("div", { className: "space-y-2.5", children: [
|
|
230
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-
|
|
231
|
-
/* @__PURE__ */ jsx(Loader2, { className: "h-4 w-4 animate-spin text-
|
|
230
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
|
|
231
|
+
/* @__PURE__ */ jsx(Loader2, { className: "h-4 w-4 animate-spin text-primary" }),
|
|
232
232
|
/* @__PURE__ */ jsxs("span", { className: "font-medium", children: [
|
|
233
233
|
"Reading ",
|
|
234
234
|
headerCount,
|
|
@@ -255,16 +255,16 @@ const ScrapeInline = ({
|
|
|
255
255
|
},
|
|
256
256
|
`reading-${url}-${i}`
|
|
257
257
|
)) : parsed.pages.length === 0 && // No URLs known yet — a single tasteful "working" card.
|
|
258
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2.5 rounded-lg border border-
|
|
259
|
-
/* @__PURE__ */ jsx(ScanText, { className: "h-4 w-4 flex-shrink-0 text-
|
|
260
|
-
/* @__PURE__ */ jsx("span", { className: "text-xs font-medium text-
|
|
258
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2.5 rounded-lg border border-border bg-muted/20 px-3 py-3", children: [
|
|
259
|
+
/* @__PURE__ */ jsx(ScanText, { className: "h-4 w-4 flex-shrink-0 text-primary" }),
|
|
260
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs font-medium text-muted-foreground", children: "Fetching page content\u2026" }),
|
|
261
261
|
/* @__PURE__ */ jsx("span", { className: "ml-auto", children: /* @__PURE__ */ jsx(PulsingDots, {}) })
|
|
262
262
|
] })
|
|
263
263
|
] })
|
|
264
264
|
] });
|
|
265
265
|
}
|
|
266
266
|
if (parsed.pages.length === 0) {
|
|
267
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 py-2 text-sm text-
|
|
267
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 py-2 text-sm text-muted-foreground", children: [
|
|
268
268
|
/* @__PURE__ */ jsx(FileText, { className: "h-4 w-4 flex-shrink-0" }),
|
|
269
269
|
/* @__PURE__ */ jsx("span", { children: "No page content captured." })
|
|
270
270
|
] });
|
|
@@ -21,7 +21,7 @@ const Favicon = ({
|
|
|
21
21
|
const [failed, setFailed] = useState(false);
|
|
22
22
|
const src = url ? getFaviconUrl(url) : "";
|
|
23
23
|
if (failed || !src)
|
|
24
|
-
return /* @__PURE__ */ jsx(Globe, { className: cn("text-
|
|
24
|
+
return /* @__PURE__ */ jsx(Globe, { className: cn("text-muted-foreground", className) });
|
|
25
25
|
return (
|
|
26
26
|
// eslint-disable-next-line @next/next/no-img-element -- favicon service, not owned media
|
|
27
27
|
/* @__PURE__ */ jsx(
|
|
@@ -41,30 +41,30 @@ const ScrapeOverlay = ({ entry }) => {
|
|
|
41
41
|
const [active, setActive] = useState(0);
|
|
42
42
|
const current = pages[active];
|
|
43
43
|
if (pages.length === 0) {
|
|
44
|
-
return /* @__PURE__ */ jsx("div", { className: "flex h-64 items-center justify-center text-
|
|
44
|
+
return /* @__PURE__ */ jsx("div", { className: "flex h-64 items-center justify-center text-muted-foreground", children: /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
|
|
45
45
|
/* @__PURE__ */ jsx(FileText, { className: "mx-auto mb-3 h-12 w-12 opacity-40" }),
|
|
46
46
|
/* @__PURE__ */ jsx("p", { className: "text-sm", children: "No page content captured" })
|
|
47
47
|
] }) });
|
|
48
48
|
}
|
|
49
49
|
return /* @__PURE__ */ jsxs("div", { className: "h-full w-full overflow-hidden bg-background", children: [
|
|
50
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 border-b border-
|
|
51
|
-
/* @__PURE__ */ jsx(BookOpenText, { className: "h-4 w-4 text-
|
|
52
|
-
/* @__PURE__ */ jsxs("span", { className: "text-sm font-medium text-
|
|
50
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 border-b border-border bg-muted/40 px-4 py-2.5", children: [
|
|
51
|
+
/* @__PURE__ */ jsx(BookOpenText, { className: "h-4 w-4 text-primary" }),
|
|
52
|
+
/* @__PURE__ */ jsxs("span", { className: "text-sm font-medium text-foreground", children: [
|
|
53
53
|
"Pages read",
|
|
54
54
|
" ",
|
|
55
|
-
/* @__PURE__ */ jsxs("span", { className: "text-
|
|
55
|
+
/* @__PURE__ */ jsxs("span", { className: "text-muted-foreground", children: [
|
|
56
56
|
"(",
|
|
57
57
|
pages.length,
|
|
58
58
|
")"
|
|
59
59
|
] })
|
|
60
60
|
] }),
|
|
61
|
-
parsed.totalChars > 0 && /* @__PURE__ */ jsxs("span", { className: "ml-auto text-xs tabular-nums text-
|
|
61
|
+
parsed.totalChars > 0 && /* @__PURE__ */ jsxs("span", { className: "ml-auto text-xs tabular-nums text-muted-foreground", children: [
|
|
62
62
|
formatCount(parsed.totalChars),
|
|
63
63
|
" chars total"
|
|
64
64
|
] })
|
|
65
65
|
] }),
|
|
66
66
|
/* @__PURE__ */ jsxs("div", { className: "flex h-[calc(100%-3rem)] flex-col md:flex-row", children: [
|
|
67
|
-
/* @__PURE__ */ jsx("div", { className: "flex-shrink-0 divide-y divide-border/60 overflow-y-auto border-b border-
|
|
67
|
+
/* @__PURE__ */ jsx("div", { className: "flex-shrink-0 divide-y divide-border/60 overflow-y-auto border-b border-border md:w-72 md:border-b-0 md:border-r", children: pages.map((p, i) => /* @__PURE__ */ jsxs(
|
|
68
68
|
"button",
|
|
69
69
|
{
|
|
70
70
|
type: "button",
|
|
@@ -81,12 +81,12 @@ const ScrapeOverlay = ({ entry }) => {
|
|
|
81
81
|
{
|
|
82
82
|
className: cn(
|
|
83
83
|
"truncate text-xs font-medium",
|
|
84
|
-
i === active ? "text-
|
|
84
|
+
i === active ? "text-primary" : "text-foreground"
|
|
85
85
|
),
|
|
86
86
|
children: p.title || p.domain
|
|
87
87
|
}
|
|
88
88
|
),
|
|
89
|
-
/* @__PURE__ */ jsxs("div", { className: "truncate text-xs text-
|
|
89
|
+
/* @__PURE__ */ jsxs("div", { className: "truncate text-xs text-muted-foreground", children: [
|
|
90
90
|
p.domain,
|
|
91
91
|
" \xB7 ",
|
|
92
92
|
formatCount(p.charCount),
|
|
@@ -98,7 +98,7 @@ const ScrapeOverlay = ({ entry }) => {
|
|
|
98
98
|
`${p.url}-${i}`
|
|
99
99
|
)) }),
|
|
100
100
|
/* @__PURE__ */ jsx("div", { className: "min-w-0 flex-1 overflow-y-auto p-4", children: current ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
101
|
-
current.image && /* @__PURE__ */ jsx("div", { className: "relative mb-4 h-48 w-full overflow-hidden rounded-md border border-
|
|
101
|
+
current.image && /* @__PURE__ */ jsx("div", { className: "relative mb-4 h-48 w-full overflow-hidden rounded-md border border-border bg-muted", children: /* @__PURE__ */ jsx(
|
|
102
102
|
InlineMediaRef,
|
|
103
103
|
{
|
|
104
104
|
ref: { url: current.image },
|
|
@@ -111,7 +111,7 @@ const ScrapeOverlay = ({ entry }) => {
|
|
|
111
111
|
className: "h-full w-full"
|
|
112
112
|
}
|
|
113
113
|
) }),
|
|
114
|
-
/* @__PURE__ */ jsxs("div", { className: "mb-3 flex items-start gap-2 border-b border-
|
|
114
|
+
/* @__PURE__ */ jsxs("div", { className: "mb-3 flex items-start gap-2 border-b border-border pb-3", children: [
|
|
115
115
|
/* @__PURE__ */ jsx(
|
|
116
116
|
Favicon,
|
|
117
117
|
{
|
|
@@ -120,14 +120,14 @@ const ScrapeOverlay = ({ entry }) => {
|
|
|
120
120
|
}
|
|
121
121
|
),
|
|
122
122
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
123
|
-
/* @__PURE__ */ jsx("div", { className: "text-sm font-semibold text-
|
|
123
|
+
/* @__PURE__ */ jsx("div", { className: "text-sm font-semibold text-foreground", children: current.title || current.domain }),
|
|
124
124
|
/* @__PURE__ */ jsxs(
|
|
125
125
|
"a",
|
|
126
126
|
{
|
|
127
127
|
href: current.url || void 0,
|
|
128
128
|
target: "_blank",
|
|
129
129
|
rel: "noopener noreferrer",
|
|
130
|
-
className: "inline-flex items-center gap-1 text-xs text-
|
|
130
|
+
className: "inline-flex items-center gap-1 text-xs text-primary hover:underline",
|
|
131
131
|
children: [
|
|
132
132
|
/* @__PURE__ */ jsx("span", { className: "truncate", children: current.url }),
|
|
133
133
|
/* @__PURE__ */ jsx(ExternalLink, { className: "h-3 w-3 flex-shrink-0" })
|
|
@@ -137,11 +137,11 @@ const ScrapeOverlay = ({ entry }) => {
|
|
|
137
137
|
] })
|
|
138
138
|
] }),
|
|
139
139
|
current.aiReview && /* @__PURE__ */ jsxs("div", { className: "mb-4 flex items-start gap-2 rounded-md border border-primary/15 bg-primary/5 p-3", children: [
|
|
140
|
-
/* @__PURE__ */ jsx(AGENT_ICON, { className: "mt-0.5 h-4 w-4 flex-shrink-0 text-
|
|
140
|
+
/* @__PURE__ */ jsx(AGENT_ICON, { className: "mt-0.5 h-4 w-4 flex-shrink-0 text-primary" }),
|
|
141
141
|
/* @__PURE__ */ jsx("div", { className: "text-sm leading-relaxed text-foreground/90", children: current.aiReview })
|
|
142
142
|
] }),
|
|
143
|
-
current.content ? /* @__PURE__ */ jsx("div", { className: "text-sm", children: /* @__PURE__ */ jsx(BasicMarkdownContent, { imagePolicy: "other", content: current.content }) }) : /* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
144
|
-
] }) : /* @__PURE__ */ jsxs("div", { className: "flex h-full items-center justify-center text-sm text-
|
|
143
|
+
current.content ? /* @__PURE__ */ jsx("div", { className: "text-sm", children: /* @__PURE__ */ jsx(BasicMarkdownContent, { imagePolicy: "other", content: current.content }) }) : /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "No page content captured." })
|
|
144
|
+
] }) : /* @__PURE__ */ jsxs("div", { className: "flex h-full items-center justify-center text-sm text-muted-foreground", children: [
|
|
145
145
|
/* @__PURE__ */ jsx(FileText, { className: "mr-2 h-4 w-4" }),
|
|
146
146
|
" Select a page"
|
|
147
147
|
] }) })
|
|
@@ -42,7 +42,7 @@ const Favicon = ({
|
|
|
42
42
|
"span",
|
|
43
43
|
{
|
|
44
44
|
className: cn(
|
|
45
|
-
"flex items-center justify-center bg-
|
|
45
|
+
"flex items-center justify-center bg-muted text-muted-foreground",
|
|
46
46
|
className
|
|
47
47
|
),
|
|
48
48
|
children: /* @__PURE__ */ jsx(Globe, { className: "h-1/2 w-1/2" })
|
|
@@ -67,7 +67,7 @@ const BreadcrumbPath = ({ url }) => {
|
|
|
67
67
|
const { origin, segments } = useMemo(() => getBreadcrumbParts(url), [url]);
|
|
68
68
|
return /* @__PURE__ */ jsxs("span", { className: "flex min-w-0 items-center gap-1 truncate text-xs leading-tight", children: [
|
|
69
69
|
/* @__PURE__ */ jsx("span", { className: "truncate text-success/90", children: origin }),
|
|
70
|
-
segments.map((seg, i) => /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1 truncate text-
|
|
70
|
+
segments.map((seg, i) => /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1 truncate text-muted-foreground", children: [
|
|
71
71
|
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground/50", children: "\u203A" }),
|
|
72
72
|
/* @__PURE__ */ jsx("span", { className: "truncate", children: seg })
|
|
73
73
|
] }, i))
|
|
@@ -82,11 +82,11 @@ const ResultRow = ({ source, index, onReadPage }) => {
|
|
|
82
82
|
className: "w-[380px]",
|
|
83
83
|
header: /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1.5 normal-case", children: [
|
|
84
84
|
/* @__PURE__ */ jsx(Favicon, { url: source.url, className: "h-4 w-4 rounded" }),
|
|
85
|
-
/* @__PURE__ */ jsx("span", { className: "truncate font-medium text-
|
|
85
|
+
/* @__PURE__ */ jsx("span", { className: "truncate font-medium text-foreground", children: siteName })
|
|
86
86
|
] }),
|
|
87
87
|
body: /* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
88
|
-
/* @__PURE__ */ jsx("div", { className: "font-medium leading-snug text-
|
|
89
|
-
source.snippet ? /* @__PURE__ */ jsx("div", { className: "max-h-56 overflow-y-auto whitespace-pre-wrap text-
|
|
88
|
+
/* @__PURE__ */ jsx("div", { className: "font-medium leading-snug text-foreground", children: source.title }),
|
|
89
|
+
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 })
|
|
90
90
|
] }),
|
|
91
91
|
children: /* @__PURE__ */ jsxs(
|
|
92
92
|
"div",
|
|
@@ -103,11 +103,11 @@ const ResultRow = ({ source, index, onReadPage }) => {
|
|
|
103
103
|
Favicon,
|
|
104
104
|
{
|
|
105
105
|
url: source.url,
|
|
106
|
-
className: "h-9 w-9 flex-shrink-0 rounded-full border border-
|
|
106
|
+
className: "h-9 w-9 flex-shrink-0 rounded-full border border-border bg-card p-1.5"
|
|
107
107
|
}
|
|
108
108
|
),
|
|
109
109
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
110
|
-
/* @__PURE__ */ jsx("div", { className: "truncate text-sm font-medium leading-tight text-
|
|
110
|
+
/* @__PURE__ */ jsx("div", { className: "truncate text-sm font-medium leading-tight text-foreground", children: siteName }),
|
|
111
111
|
/* @__PURE__ */ jsx(BreadcrumbPath, { url: source.url })
|
|
112
112
|
] })
|
|
113
113
|
] }),
|
|
@@ -120,13 +120,13 @@ const ResultRow = ({ source, index, onReadPage }) => {
|
|
|
120
120
|
onClick: (e) => e.stopPropagation(),
|
|
121
121
|
className: "group/link mt-1.5 flex items-start gap-1.5",
|
|
122
122
|
children: [
|
|
123
|
-
/* @__PURE__ */ jsx("span", { className: "text-lg font-medium leading-snug text-
|
|
124
|
-
/* @__PURE__ */ jsx(ExternalLink, { className: "mt-1.5 h-3.5 w-3.5 flex-shrink-0 text-
|
|
123
|
+
/* @__PURE__ */ jsx("span", { className: "text-lg font-medium leading-snug text-primary underline-offset-2 group-hover/link:underline", children: source.title }),
|
|
124
|
+
/* @__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" })
|
|
125
125
|
]
|
|
126
126
|
}
|
|
127
127
|
),
|
|
128
|
-
source.snippet && /* @__PURE__ */ jsx("p", { className: "mt-1 line-clamp-2 text-sm leading-relaxed text-
|
|
129
|
-
(date || onReadPage && source.url) && /* @__PURE__ */ jsxs("div", { className: "mt-1.5 flex items-center gap-3 text-xs text-
|
|
128
|
+
source.snippet && /* @__PURE__ */ jsx("p", { className: "mt-1 line-clamp-2 text-sm leading-relaxed text-muted-foreground", children: source.snippet }),
|
|
129
|
+
(date || onReadPage && source.url) && /* @__PURE__ */ jsxs("div", { className: "mt-1.5 flex items-center gap-3 text-xs text-muted-foreground", children: [
|
|
130
130
|
date && /* @__PURE__ */ jsx("span", { className: "opacity-80", children: date }),
|
|
131
131
|
onReadPage && source.url && /* @__PURE__ */ jsx(Button, { variant: "quiet", icon: /* @__PURE__ */ jsx(BookOpen, {}), onClick: (e) => {
|
|
132
132
|
e.stopPropagation();
|
|
@@ -148,8 +148,8 @@ const ViewAllButton = ({
|
|
|
148
148
|
}, className: "w-full", children: label });
|
|
149
149
|
const AnswerCard = ({ report, compact }) => /* @__PURE__ */ jsxs("div", { className: "rounded-lg border border-primary/15 bg-primary/5 p-3", children: [
|
|
150
150
|
/* @__PURE__ */ jsxs("div", { className: "mb-1.5 flex items-center gap-1.5", children: [
|
|
151
|
-
/* @__PURE__ */ jsx(Lightbulb, { className: "h-3.5 w-3.5 text-
|
|
152
|
-
/* @__PURE__ */ jsx("span", { className: "text-xs font-semibold text-
|
|
151
|
+
/* @__PURE__ */ jsx(Lightbulb, { className: "h-3.5 w-3.5 text-primary" }),
|
|
152
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs font-semibold text-foreground", children: "AI Matrx answer" })
|
|
153
153
|
] }),
|
|
154
154
|
/* @__PURE__ */ jsx(
|
|
155
155
|
"div",
|
|
@@ -189,7 +189,7 @@ const QueryHeader = ({
|
|
|
189
189
|
{
|
|
190
190
|
className: cn(
|
|
191
191
|
"flex items-center gap-2 border-b pb-1.5",
|
|
192
|
-
muted ? "border-border/60" : "border-
|
|
192
|
+
muted ? "border-border/60" : "border-border"
|
|
193
193
|
),
|
|
194
194
|
children: [
|
|
195
195
|
/* @__PURE__ */ jsx(
|
|
@@ -197,7 +197,7 @@ const QueryHeader = ({
|
|
|
197
197
|
{
|
|
198
198
|
className: cn(
|
|
199
199
|
"h-3.5 w-3.5 flex-shrink-0",
|
|
200
|
-
muted ? "text-
|
|
200
|
+
muted ? "text-muted-foreground" : "text-primary"
|
|
201
201
|
)
|
|
202
202
|
}
|
|
203
203
|
),
|
|
@@ -206,13 +206,13 @@ const QueryHeader = ({
|
|
|
206
206
|
{
|
|
207
207
|
className: cn(
|
|
208
208
|
"min-w-0 flex-1 truncate text-sm font-semibold",
|
|
209
|
-
muted ? "text-
|
|
209
|
+
muted ? "text-muted-foreground" : "text-foreground"
|
|
210
210
|
),
|
|
211
211
|
title: query,
|
|
212
212
|
children: query
|
|
213
213
|
}
|
|
214
214
|
),
|
|
215
|
-
/* @__PURE__ */ jsxs("span", { className: "flex-shrink-0 text-xs tabular-nums text-
|
|
215
|
+
/* @__PURE__ */ jsxs("span", { className: "flex-shrink-0 text-xs tabular-nums text-muted-foreground", children: [
|
|
216
216
|
count,
|
|
217
217
|
" ",
|
|
218
218
|
count === 1 ? "result" : "results"
|
|
@@ -234,14 +234,14 @@ const FoldedQuerySummary = ({ query, sources, onReadPage }) => {
|
|
|
234
234
|
const chips = rest.slice(0, FOLD_CHIPS);
|
|
235
235
|
const overflow = rest.length - chips.length;
|
|
236
236
|
const topSite = getSiteName(top.url) || top.domain;
|
|
237
|
-
return /* @__PURE__ */ jsxs("div", { className: "animate-in fade-in slide-in-from-bottom-1 space-y-2 rounded-lg border border-
|
|
237
|
+
return /* @__PURE__ */ jsxs("div", { className: "animate-in fade-in slide-in-from-bottom-1 space-y-2 rounded-lg border border-border bg-card/60 px-3 py-2.5", children: [
|
|
238
238
|
/* @__PURE__ */ jsx(QueryHeader, { query, count: sources.length, muted: true }),
|
|
239
239
|
/* @__PURE__ */ jsxs("div", { className: "group/fold flex items-start gap-2.5", children: [
|
|
240
240
|
/* @__PURE__ */ jsx(
|
|
241
241
|
Favicon,
|
|
242
242
|
{
|
|
243
243
|
url: top.url,
|
|
244
|
-
className: "mt-0.5 h-6 w-6 flex-shrink-0 rounded-full border border-
|
|
244
|
+
className: "mt-0.5 h-6 w-6 flex-shrink-0 rounded-full border border-border bg-card p-1"
|
|
245
245
|
}
|
|
246
246
|
),
|
|
247
247
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
@@ -252,7 +252,7 @@ const FoldedQuerySummary = ({ query, sources, onReadPage }) => {
|
|
|
252
252
|
target: "_blank",
|
|
253
253
|
rel: "noopener noreferrer",
|
|
254
254
|
onClick: (e) => e.stopPropagation(),
|
|
255
|
-
className: "line-clamp-1 text-sm font-medium text-
|
|
255
|
+
className: "line-clamp-1 text-sm font-medium text-primary underline-offset-2 hover:underline",
|
|
256
256
|
children: top.title
|
|
257
257
|
}
|
|
258
258
|
),
|
|
@@ -271,7 +271,7 @@ const FoldedQuerySummary = ({ query, sources, onReadPage }) => {
|
|
|
271
271
|
target: "_blank",
|
|
272
272
|
rel: "noopener noreferrer",
|
|
273
273
|
onClick: (e) => e.stopPropagation(),
|
|
274
|
-
className: "inline-flex max-w-[220px] items-center gap-1.5 rounded-full border border-
|
|
274
|
+
className: "inline-flex max-w-[220px] items-center gap-1.5 rounded-full border border-border bg-background px-2 py-0.5 text-xs text-muted-foreground transition-colors hover:border-primary/40 hover:text-foreground",
|
|
275
275
|
title: s.title,
|
|
276
276
|
children: [
|
|
277
277
|
/* @__PURE__ */ jsx(Favicon, { url: s.url, className: "h-3.5 w-3.5 flex-shrink-0 rounded-sm" }),
|
|
@@ -340,9 +340,9 @@ const SequentialQueryPlayer = ({ groups, revealKey, onReadPage }) => {
|
|
|
340
340
|
)),
|
|
341
341
|
activeGroup && /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
342
342
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
343
|
-
/* @__PURE__ */ jsx(Telescope, { className: "h-4 w-4 flex-shrink-0 text-
|
|
344
|
-
/* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate text-sm font-semibold text-
|
|
345
|
-
/* @__PURE__ */ jsxs("span", { className: "flex-shrink-0 text-xs tabular-nums text-
|
|
343
|
+
/* @__PURE__ */ jsx(Telescope, { className: "h-4 w-4 flex-shrink-0 text-primary" }),
|
|
344
|
+
/* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate text-sm font-semibold text-foreground", title: activeGroup.query, children: activeGroup.query }),
|
|
345
|
+
/* @__PURE__ */ jsxs("span", { className: "flex-shrink-0 text-xs tabular-nums text-muted-foreground", children: [
|
|
346
346
|
currentIndex + 1,
|
|
347
347
|
" of ",
|
|
348
348
|
groups.length
|
|
@@ -372,8 +372,8 @@ const SingleQueryLive = ({ query, sources, revealKey, onReadPage }) => {
|
|
|
372
372
|
});
|
|
373
373
|
return /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
374
374
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm", children: [
|
|
375
|
-
/* @__PURE__ */ jsx(Telescope, { className: "h-4 w-4 flex-shrink-0 text-
|
|
376
|
-
/* @__PURE__ */ jsx("span", { className: "min-w-0 truncate font-medium text-
|
|
375
|
+
/* @__PURE__ */ jsx(Telescope, { className: "h-4 w-4 flex-shrink-0 text-primary" }),
|
|
376
|
+
/* @__PURE__ */ jsx("span", { className: "min-w-0 truncate font-medium text-foreground", children: query ? `Searching \u201C${query}\u201D` : "Searching the web" }),
|
|
377
377
|
/* @__PURE__ */ jsx(PulsingDots, {})
|
|
378
378
|
] }),
|
|
379
379
|
sources.length > 0 ? /* @__PURE__ */ jsx(
|
|
@@ -385,12 +385,12 @@ const SingleQueryLive = ({ query, sources, revealKey, onReadPage }) => {
|
|
|
385
385
|
onReadPage,
|
|
386
386
|
limit: reveal.visibleCount
|
|
387
387
|
}
|
|
388
|
-
) : /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2.5 rounded-lg border border-
|
|
389
|
-
/* @__PURE__ */ jsx(Globe, { className: "h-4 w-4 flex-shrink-0 text-
|
|
390
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-
|
|
388
|
+
) : /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2.5 rounded-lg border border-border bg-muted/20 px-3 py-2.5", children: [
|
|
389
|
+
/* @__PURE__ */ jsx(Globe, { className: "h-4 w-4 flex-shrink-0 text-primary" }),
|
|
390
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-muted-foreground", children: "Scanning the web for the best results\u2026" }),
|
|
391
391
|
/* @__PURE__ */ jsx("span", { className: "ml-auto", children: /* @__PURE__ */ jsx(PulsingDots, {}) })
|
|
392
392
|
] }),
|
|
393
|
-
reveal.isRevealing && sources.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 px-1 text-xs text-
|
|
393
|
+
reveal.isRevealing && sources.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 px-1 text-xs text-muted-foreground", children: /* @__PURE__ */ jsxs("span", { children: [
|
|
394
394
|
Math.min(reveal.visibleCount, sources.length),
|
|
395
395
|
" of ",
|
|
396
396
|
sources.length,
|