@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,7 +24,7 @@ function ToolProgressView({ progress, phase, cfg }) {
|
|
|
24
24
|
}
|
|
25
25
|
);
|
|
26
26
|
}
|
|
27
|
-
const lineClass = "flex items-center gap-1.5 text-[11px] leading-snug text-
|
|
27
|
+
const lineClass = "flex items-center gap-1.5 text-[11px] leading-snug text-muted-foreground";
|
|
28
28
|
const wrapClass = "mt-1 ml-5 border-l border-border/50 pl-2 space-y-0.5";
|
|
29
29
|
function entryLabel(e) {
|
|
30
30
|
return e.label ?? e.step ?? e.status ?? "\u2026";
|
|
@@ -33,7 +33,7 @@ function PercentBar({ percent }) {
|
|
|
33
33
|
const pct = percent <= 1 ? percent * 100 : percent;
|
|
34
34
|
const clamped = Math.max(0, Math.min(100, pct));
|
|
35
35
|
return /* @__PURE__ */ jsxs("span", { className: "ml-auto inline-flex items-center gap-1", children: [
|
|
36
|
-
/* @__PURE__ */ jsx("span", { className: "h-1 w-16 overflow-hidden rounded-full bg-
|
|
36
|
+
/* @__PURE__ */ jsx("span", { className: "h-1 w-16 overflow-hidden rounded-full bg-muted", children: /* @__PURE__ */ jsx(
|
|
37
37
|
"span",
|
|
38
38
|
{
|
|
39
39
|
className: "block h-full rounded-full bg-primary/70 transition-all",
|
|
@@ -60,7 +60,7 @@ function LogProgress({
|
|
|
60
60
|
{
|
|
61
61
|
type: "button",
|
|
62
62
|
onClick: () => setOpen((v) => !v),
|
|
63
|
-
className: "inline-flex items-center gap-1 text-[10px] text-
|
|
63
|
+
className: "inline-flex items-center gap-1 text-[10px] text-muted-foreground hover:text-foreground",
|
|
64
64
|
children: [
|
|
65
65
|
open ? /* @__PURE__ */ jsx(ChevronDown, { className: "size-3" }) : /* @__PURE__ */ jsx(ChevronRight, { className: "size-3" }),
|
|
66
66
|
entries.length,
|
|
@@ -89,8 +89,8 @@ function LogProgress({
|
|
|
89
89
|
function ProgressLine({ e, active }) {
|
|
90
90
|
const errored = e.status === "error";
|
|
91
91
|
return /* @__PURE__ */ jsxs("div", { className: cn(lineClass, errored && "text-red-600 dark:text-red-400"), children: [
|
|
92
|
-
active ? /* @__PURE__ */ jsx(Loader2, { className: "size-3 shrink-0 animate-spin text-
|
|
93
|
-
/* @__PURE__ */ jsx("span", { className: cn(active ? "truncate text-
|
|
92
|
+
active ? /* @__PURE__ */ jsx(Loader2, { className: "size-3 shrink-0 animate-spin text-primary" }) : errored ? /* @__PURE__ */ jsx(AlertTriangle, { className: "size-3 shrink-0" }) : /* @__PURE__ */ jsx("span", { className: "size-3 shrink-0 text-center text-muted-foreground/40", children: "\xB7" }),
|
|
93
|
+
/* @__PURE__ */ jsx("span", { className: cn(active ? "truncate text-foreground" : "truncate"), children: entryLabel(e) }),
|
|
94
94
|
typeof e.percent === "number" && /* @__PURE__ */ jsx(PercentBar, { percent: e.percent })
|
|
95
95
|
] });
|
|
96
96
|
}
|
|
@@ -123,7 +123,7 @@ function StepsProgress({
|
|
|
123
123
|
className: cn(
|
|
124
124
|
lineClass,
|
|
125
125
|
status === "error" && "text-red-600 dark:text-red-400",
|
|
126
|
-
status === "done" && "text-
|
|
126
|
+
status === "done" && "text-foreground"
|
|
127
127
|
),
|
|
128
128
|
children: [
|
|
129
129
|
/* @__PURE__ */ jsx(StepIcon, { status }),
|
|
@@ -136,7 +136,7 @@ function StepsProgress({
|
|
|
136
136
|
}) });
|
|
137
137
|
}
|
|
138
138
|
function StepIcon({ status }) {
|
|
139
|
-
if (status === "active") return /* @__PURE__ */ jsx(Loader2, { className: "size-3 shrink-0 animate-spin text-
|
|
139
|
+
if (status === "active") return /* @__PURE__ */ jsx(Loader2, { className: "size-3 shrink-0 animate-spin text-primary" });
|
|
140
140
|
if (status === "done")
|
|
141
141
|
return /* @__PURE__ */ jsx(Check, { className: "size-3 shrink-0 text-emerald-600 dark:text-emerald-400" });
|
|
142
142
|
if (status === "error") return /* @__PURE__ */ jsx(AlertTriangle, { className: "size-3 shrink-0" });
|
|
@@ -68,7 +68,7 @@ const Base64Image = ({ value, className }) => {
|
|
|
68
68
|
className: "max-h-[28rem] w-full rounded-md border border-border/40 object-contain"
|
|
69
69
|
}
|
|
70
70
|
),
|
|
71
|
-
meta && /* @__PURE__ */ jsx("div", { className: "text-[10px] text-
|
|
71
|
+
meta && /* @__PURE__ */ jsx("div", { className: "text-[10px] text-muted-foreground", children: meta })
|
|
72
72
|
] });
|
|
73
73
|
};
|
|
74
74
|
function toDataUri(value) {
|
|
@@ -122,7 +122,7 @@ const Chips = ({ value, className }) => {
|
|
|
122
122
|
return /* @__PURE__ */ jsx("div", { className: cn("flex flex-wrap gap-1", className), children: items.map((item, i) => /* @__PURE__ */ jsx(
|
|
123
123
|
"span",
|
|
124
124
|
{
|
|
125
|
-
className: "inline-flex rounded-md border border-border/50 bg-muted/40 px-1.5 py-0.5 font-mono text-[10px] text-
|
|
125
|
+
className: "inline-flex rounded-md border border-border/50 bg-muted/40 px-1.5 py-0.5 font-mono text-[10px] text-foreground",
|
|
126
126
|
children: item
|
|
127
127
|
},
|
|
128
128
|
`${item}-${i}`
|
|
@@ -151,16 +151,16 @@ const TabCard = ({ value, className }) => {
|
|
|
151
151
|
className: "size-5 shrink-0 rounded-sm object-contain",
|
|
152
152
|
onError: () => setFaviconErr(true)
|
|
153
153
|
}
|
|
154
|
-
) : /* @__PURE__ */ jsx(Globe, { className: "size-5 shrink-0 text-
|
|
154
|
+
) : /* @__PURE__ */ jsx(Globe, { className: "size-5 shrink-0 text-muted-foreground" }),
|
|
155
155
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1 space-y-0.5", children: [
|
|
156
|
-
title && /* @__PURE__ */ jsx("div", { className: "truncate text-[12px] font-medium text-
|
|
156
|
+
title && /* @__PURE__ */ jsx("div", { className: "truncate text-[12px] font-medium text-foreground", children: title }),
|
|
157
157
|
url && /* @__PURE__ */ jsx(
|
|
158
158
|
"a",
|
|
159
159
|
{
|
|
160
160
|
href: url,
|
|
161
161
|
target: "_blank",
|
|
162
162
|
rel: "noreferrer noopener",
|
|
163
|
-
className: "block truncate text-[10px] text-
|
|
163
|
+
className: "block truncate text-[10px] text-muted-foreground hover:text-foreground hover:underline",
|
|
164
164
|
onClick: (e) => e.stopPropagation(),
|
|
165
165
|
children: url
|
|
166
166
|
}
|
|
@@ -201,7 +201,7 @@ const ExtractTableField = ({ value, className }) => {
|
|
|
201
201
|
);
|
|
202
202
|
}) }, r.index ?? ri)) })
|
|
203
203
|
] }),
|
|
204
|
-
obj.truncated === true && /* @__PURE__ */ jsx("div", { className: "border-t border-border/30 bg-muted/30 px-2 py-1 text-[10px] text-
|
|
204
|
+
obj.truncated === true && /* @__PURE__ */ jsx("div", { className: "border-t border-border/30 bg-muted/30 px-2 py-1 text-[10px] text-muted-foreground", children: "Table was truncated" })
|
|
205
205
|
] });
|
|
206
206
|
};
|
|
207
207
|
const fieldComponents = {
|
|
@@ -57,7 +57,7 @@ const ProgressLine = ({
|
|
|
57
57
|
return /* @__PURE__ */ jsx(
|
|
58
58
|
"div",
|
|
59
59
|
{
|
|
60
|
-
className: "flex min-w-0 items-center gap-2 text-xs text-
|
|
60
|
+
className: "flex min-w-0 items-center gap-2 text-xs text-muted-foreground animate-in fade-in slide-in-from-bottom-1 duration-300",
|
|
61
61
|
style: {
|
|
62
62
|
animationDelay: `${index * 60}ms`,
|
|
63
63
|
animationFillMode: "backwards"
|
|
@@ -89,7 +89,7 @@ const GenericRenderer = ({
|
|
|
89
89
|
);
|
|
90
90
|
}
|
|
91
91
|
if (isComplete && entry.result == null) {
|
|
92
|
-
return /* @__PURE__ */ jsx("div", { className: "text-xs text-
|
|
92
|
+
return /* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground", children: "Completed. No output was captured for this call." });
|
|
93
93
|
}
|
|
94
94
|
if (!isComplete || entry.result == null) {
|
|
95
95
|
const source = events && events.length > 0 ? collectMessages(events) : entry.latestMessage ? [entry.latestMessage] : [];
|
|
@@ -104,7 +104,7 @@ const GenericRenderer = ({
|
|
|
104
104
|
},
|
|
105
105
|
`${i}-${msg.slice(0, 16)}`
|
|
106
106
|
)) }) : null,
|
|
107
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-xs text-
|
|
107
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-xs text-muted-foreground", children: [
|
|
108
108
|
/* @__PURE__ */ jsx(Loader2, { className: "h-3.5 w-3.5 animate-spin" }),
|
|
109
109
|
/* @__PURE__ */ jsx("span", { children: "Working\u2026" })
|
|
110
110
|
] })
|
|
@@ -150,7 +150,7 @@ const GenericRenderer = ({
|
|
|
150
150
|
e.stopPropagation();
|
|
151
151
|
onOpenOverlay(`tool-group-${groupId}`);
|
|
152
152
|
},
|
|
153
|
-
className: "group flex w-full items-center justify-between gap-2 rounded border border-border/60 px-2 py-1 text-xs text-
|
|
153
|
+
className: "group flex w-full items-center justify-between gap-2 rounded border border-border/60 px-2 py-1 text-xs text-muted-foreground transition-colors hover:border-primary/40 hover:text-foreground",
|
|
154
154
|
children: [
|
|
155
155
|
/* @__PURE__ */ jsx("span", { children: "View complete result" }),
|
|
156
156
|
/* @__PURE__ */ jsx(Maximize2, { className: "h-3 w-3 shrink-0" })
|
|
@@ -23,7 +23,7 @@ function EmptyResultCard({
|
|
|
23
23
|
title,
|
|
24
24
|
subtitle: `${did} \xB7 nothing to show`,
|
|
25
25
|
actions,
|
|
26
|
-
children: /* @__PURE__ */ jsxs("div", { className: "px-3 py-2 text-xs leading-relaxed text-
|
|
26
|
+
children: /* @__PURE__ */ jsxs("div", { className: "px-3 py-2 text-xs leading-relaxed text-muted-foreground", children: [
|
|
27
27
|
did,
|
|
28
28
|
", but the tool returned nothing to open from here. ",
|
|
29
29
|
remedy
|
|
@@ -38,7 +38,7 @@ function EntityCard({
|
|
|
38
38
|
"div",
|
|
39
39
|
{
|
|
40
40
|
className: cn(
|
|
41
|
-
"overflow-hidden rounded-xl border border-
|
|
41
|
+
"overflow-hidden rounded-xl border border-border bg-card text-card-foreground",
|
|
42
42
|
className
|
|
43
43
|
),
|
|
44
44
|
children: [
|
|
@@ -61,7 +61,7 @@ function EntityCard({
|
|
|
61
61
|
children: [
|
|
62
62
|
/* @__PURE__ */ jsx(ToolGlyph, { icon, accent, size: "lg" }),
|
|
63
63
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
64
|
-
/* @__PURE__ */ jsx("div", { className: "truncate text-sm font-semibold leading-tight text-
|
|
64
|
+
/* @__PURE__ */ jsx("div", { className: "truncate text-sm font-semibold leading-tight text-foreground", children: title }),
|
|
65
65
|
subtitle || hoverAct ? /* @__PURE__ */ jsxs("div", { className: "relative mt-0.5 h-4 text-xs leading-tight", children: [
|
|
66
66
|
subtitle ? /* @__PURE__ */ jsx(
|
|
67
67
|
"span",
|
|
@@ -69,7 +69,7 @@ function EntityCard({
|
|
|
69
69
|
className: cn(
|
|
70
70
|
// Text only: it never takes the press meant for the hover action drawn over it
|
|
71
71
|
// (review 2: "Open in window" was covered by this span and could not be clicked).
|
|
72
|
-
"pointer-events-none absolute inset-0 truncate text-
|
|
72
|
+
"pointer-events-none absolute inset-0 truncate text-muted-foreground transition-opacity",
|
|
73
73
|
hoverAct && "group-hover/eh:opacity-0 group-focus-within/eh:opacity-0"
|
|
74
74
|
),
|
|
75
75
|
children: subtitle
|
|
@@ -84,7 +84,7 @@ function EntityCard({
|
|
|
84
84
|
hoverAct.onSelect?.();
|
|
85
85
|
},
|
|
86
86
|
"data-entity-hover-action": "",
|
|
87
|
-
className: "absolute inset-0 flex w-full items-center gap-1 truncate text-left font-medium text-
|
|
87
|
+
className: "absolute inset-0 flex w-full items-center gap-1 truncate text-left font-medium text-primary opacity-0 transition-opacity pointer-events-none group-hover/eh:pointer-events-auto group-hover/eh:opacity-100 focus-visible:pointer-events-auto focus-visible:opacity-100",
|
|
88
88
|
children: [
|
|
89
89
|
hoverAct.icon ? /* @__PURE__ */ jsx(hoverAct.icon, { className: "h-3 w-3 shrink-0" }) : null,
|
|
90
90
|
/* @__PURE__ */ jsx("span", { className: "truncate", children: hoverAct.label }),
|
|
@@ -150,7 +150,7 @@ function EntityCard({
|
|
|
150
150
|
"grid transition-[grid-template-rows] duration-300 ease-in-out",
|
|
151
151
|
open ? "grid-rows-[1fr]" : "grid-rows-[0fr]"
|
|
152
152
|
),
|
|
153
|
-
children: /* @__PURE__ */ jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ jsx("div", { className: "border-t border-
|
|
153
|
+
children: /* @__PURE__ */ jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ jsx("div", { className: "border-t border-border", children }) })
|
|
154
154
|
}
|
|
155
155
|
) : null
|
|
156
156
|
]
|
|
@@ -28,13 +28,13 @@ function PartPeekPopover({
|
|
|
28
28
|
"div",
|
|
29
29
|
{
|
|
30
30
|
className: cn(
|
|
31
|
-
"border-b border-
|
|
31
|
+
"border-b border-border px-3 py-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground",
|
|
32
32
|
headerClassName ?? "bg-muted/40"
|
|
33
33
|
),
|
|
34
34
|
children: header
|
|
35
35
|
}
|
|
36
36
|
) : null,
|
|
37
|
-
/* @__PURE__ */ jsx("div", { className: "px-3 py-2.5 text-xs leading-relaxed text-
|
|
37
|
+
/* @__PURE__ */ jsx("div", { className: "px-3 py-2.5 text-xs leading-relaxed text-foreground", children: body })
|
|
38
38
|
]
|
|
39
39
|
}
|
|
40
40
|
)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from "@ai-matrx/design-system";
|
|
3
3
|
const ACCENT_ICON = {
|
|
4
|
-
primary: "text-
|
|
4
|
+
primary: "text-primary",
|
|
5
5
|
blue: "text-blue-600 dark:text-blue-400",
|
|
6
6
|
violet: "text-violet-600 dark:text-violet-400",
|
|
7
7
|
cyan: "text-cyan-600 dark:text-cyan-400",
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import { cn } from "@ai-matrx/design-system";
|
|
17
17
|
function ToolResultCard({
|
|
18
18
|
icon: Icon,
|
|
19
|
-
iconClassName = "text-
|
|
19
|
+
iconClassName = "text-primary",
|
|
20
20
|
title,
|
|
21
21
|
sub,
|
|
22
22
|
children,
|
|
@@ -49,7 +49,7 @@ function ToolResultCard({
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
className: cn(
|
|
52
|
-
"flex w-full cursor-pointer items-center gap-3 border border-border/50 bg-
|
|
52
|
+
"flex w-full cursor-pointer items-center gap-3 border border-border/50 bg-card px-4 py-2.5 text-left transition-colors hover:bg-accent/30",
|
|
53
53
|
showBody ? "rounded-t-xl border-b-0" : "rounded-xl"
|
|
54
54
|
),
|
|
55
55
|
children: [
|
|
@@ -61,8 +61,8 @@ function ToolResultCard({
|
|
|
61
61
|
}
|
|
62
62
|
),
|
|
63
63
|
/* @__PURE__ */ jsxs("span", { className: "min-w-0 flex-1", children: [
|
|
64
|
-
/* @__PURE__ */ jsx("span", { className: "block break-words text-sm font-medium text-
|
|
65
|
-
sub && /* @__PURE__ */ jsx("span", { className: "block break-words text-xs text-
|
|
64
|
+
/* @__PURE__ */ jsx("span", { className: "block break-words text-sm font-medium text-foreground sm:truncate", children: title }),
|
|
65
|
+
sub && /* @__PURE__ */ jsx("span", { className: "block break-words text-xs text-muted-foreground sm:truncate", children: sub })
|
|
66
66
|
] }),
|
|
67
67
|
headerAction && /* @__PURE__ */ jsx(
|
|
68
68
|
"span",
|
|
@@ -81,7 +81,7 @@ function ToolResultCard({
|
|
|
81
81
|
tabIndex: 0,
|
|
82
82
|
onClick: (e) => e.stopPropagation(),
|
|
83
83
|
onKeyDown: (e) => e.stopPropagation(),
|
|
84
|
-
className: "flex min-h-11 shrink-0 cursor-pointer items-center gap-1.5 rounded-xl border border-border/70 bg-background/60 px-2.5 py-1.5 text-xs font-medium text-
|
|
84
|
+
className: "flex min-h-11 shrink-0 cursor-pointer items-center gap-1.5 rounded-xl border border-border/70 bg-background/60 px-2.5 py-1.5 text-xs font-medium text-muted-foreground transition-colors hover:bg-accent/40 hover:text-foreground sm:min-h-0",
|
|
85
85
|
"aria-label": "Open options",
|
|
86
86
|
children: [
|
|
87
87
|
/* @__PURE__ */ jsx(PanelRightOpen, { className: "size-3.5" }),
|
|
@@ -124,7 +124,7 @@ function ToolResultCard({
|
|
|
124
124
|
]
|
|
125
125
|
}
|
|
126
126
|
),
|
|
127
|
-
showBody && /* @__PURE__ */ jsx("div", { className: "overflow-hidden rounded-b-xl border border-t-0 border-border/50 bg-
|
|
127
|
+
showBody && /* @__PURE__ */ jsx("div", { className: "overflow-hidden rounded-b-xl border border-t-0 border-border/50 bg-card", children })
|
|
128
128
|
] });
|
|
129
129
|
}
|
|
130
130
|
var ToolResultCard_default = ToolResultCard;
|
|
@@ -54,19 +54,19 @@ function ImageGenerationLoading() {
|
|
|
54
54
|
className: "absolute -inset-8 rotate-12 bg-[linear-gradient(110deg,transparent_35%,color-mix(in_oklab,var(--color-background)_80%,transparent)_50%,transparent_65%)] bg-[length:200%_100%]"
|
|
55
55
|
}
|
|
56
56
|
),
|
|
57
|
-
/* @__PURE__ */ jsx(ImageIcon, { className: "relative h-8 w-8 text-
|
|
57
|
+
/* @__PURE__ */ jsx(ImageIcon, { className: "relative h-8 w-8 text-primary" }),
|
|
58
58
|
/* @__PURE__ */ jsx(Aperture, { className: "absolute right-2 top-2 h-4 w-4 text-violet-500 animate-pulse" }),
|
|
59
59
|
/* @__PURE__ */ jsx("span", { className: "absolute bottom-2 left-2 h-1.5 w-1.5 rounded-full bg-cyan-400 shadow-[0_0_10px_2px_rgb(34_211_238_/_0.55)]" })
|
|
60
60
|
] }),
|
|
61
61
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1 space-y-2.5", children: [
|
|
62
62
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
63
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-
|
|
64
|
-
/* @__PURE__ */ jsx("p", { className: "mt-0.5 text-xs leading-relaxed text-
|
|
63
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-foreground", children: "Composing your image" }),
|
|
64
|
+
/* @__PURE__ */ jsx("p", { className: "mt-0.5 text-xs leading-relaxed text-muted-foreground", children: "Building the scene, details, lighting, and final finish." })
|
|
65
65
|
] }),
|
|
66
66
|
/* @__PURE__ */ jsx("div", { className: "flex gap-1.5", "aria-hidden": "true", children: [0, 1, 2, 3].map((step) => /* @__PURE__ */ jsx(
|
|
67
67
|
"span",
|
|
68
68
|
{
|
|
69
|
-
className: "h-1 flex-1 overflow-hidden rounded-full bg-
|
|
69
|
+
className: "h-1 flex-1 overflow-hidden rounded-full bg-muted",
|
|
70
70
|
children: /* @__PURE__ */ jsx(
|
|
71
71
|
"span",
|
|
72
72
|
{
|
|
@@ -94,7 +94,7 @@ function AgentCallLiveChild(props) {
|
|
|
94
94
|
if (!requestId || !child || !child.text.trim()) {
|
|
95
95
|
return /* @__PURE__ */ jsx(GenericRenderer, { ...props });
|
|
96
96
|
}
|
|
97
|
-
return /* @__PURE__ */ jsx("div", { className: "max-h-64 overflow-y-auto rounded-md border border-
|
|
97
|
+
return /* @__PURE__ */ jsx("div", { className: "max-h-64 overflow-y-auto rounded-md border border-border bg-background/60 px-3 py-2", children: /* @__PURE__ */ jsx(
|
|
98
98
|
MarkdownStream,
|
|
99
99
|
{
|
|
100
100
|
imagePolicy: "ai",
|
|
@@ -43,7 +43,7 @@ function CollabCallCard(props) {
|
|
|
43
43
|
return /* @__PURE__ */ jsxs("div", { className: "overflow-hidden rounded-xl border border-violet-500/20 bg-violet-500/[0.04] dark:bg-violet-400/[0.05]", children: [
|
|
44
44
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-x-2 gap-y-1 px-3 py-2", children: [
|
|
45
45
|
/* @__PURE__ */ jsx(Handshake, { className: "h-4 w-4 shrink-0 text-violet-600 dark:text-violet-400" }),
|
|
46
|
-
/* @__PURE__ */ jsxs("span", { className: "min-w-0 text-sm font-medium text-
|
|
46
|
+
/* @__PURE__ */ jsxs("span", { className: "min-w-0 text-sm font-medium text-foreground", children: [
|
|
47
47
|
agentLabel,
|
|
48
48
|
" ",
|
|
49
49
|
isActive ? "is reviewing" : "reviewed",
|
|
@@ -68,14 +68,14 @@ function CollabCallCard(props) {
|
|
|
68
68
|
label: MODE_CHIP[info.historyMode]
|
|
69
69
|
}
|
|
70
70
|
),
|
|
71
|
-
info.messagesIncluded !== null && /* @__PURE__ */ jsxs("span", { className: "text-xs text-
|
|
71
|
+
info.messagesIncluded !== null && /* @__PURE__ */ jsxs("span", { className: "text-xs text-muted-foreground", children: [
|
|
72
72
|
info.messagesIncluded,
|
|
73
73
|
" message",
|
|
74
74
|
info.messagesIncluded === 1 ? "" : "s",
|
|
75
75
|
" shared"
|
|
76
76
|
] })
|
|
77
77
|
] }),
|
|
78
|
-
showLiveStream && /* @__PURE__ */ jsx("div", { className: "mx-3 mb-2 max-h-64 overflow-y-auto rounded-md border border-
|
|
78
|
+
showLiveStream && /* @__PURE__ */ jsx("div", { className: "mx-3 mb-2 max-h-64 overflow-y-auto rounded-md border border-border bg-background/60 px-3 py-2", children: /* @__PURE__ */ jsx(
|
|
79
79
|
MarkdownStream,
|
|
80
80
|
{
|
|
81
81
|
imagePolicy: "ai",
|
|
@@ -112,7 +112,7 @@ function CollabCallCard(props) {
|
|
|
112
112
|
labelClassName: "text-xs"
|
|
113
113
|
}
|
|
114
114
|
),
|
|
115
|
-
info.remember?.status === "queued" && /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1.5 text-xs text-
|
|
115
|
+
info.remember?.status === "queued" && /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1.5 text-xs text-muted-foreground", children: [
|
|
116
116
|
/* @__PURE__ */ jsx(Inbox, { className: "h-3.5 w-3.5 shrink-0 text-violet-600 dark:text-violet-400" }),
|
|
117
117
|
"Note queued for ",
|
|
118
118
|
isCurrentSource ? "this conversation" : sourceTitle ?? "the source conversation",
|
|
@@ -41,7 +41,7 @@ const ImageGenerationResult = (props) => {
|
|
|
41
41
|
e.stopPropagation();
|
|
42
42
|
onOpenOverlay(`tool-group-${groupId}`);
|
|
43
43
|
},
|
|
44
|
-
className: "group flex w-full items-center justify-between gap-2 rounded border border-border/60 px-2 py-1 text-xs text-
|
|
44
|
+
className: "group flex w-full items-center justify-between gap-2 rounded border border-border/60 px-2 py-1 text-xs text-muted-foreground transition-colors hover:border-primary/40 hover:text-foreground",
|
|
45
45
|
children: [
|
|
46
46
|
/* @__PURE__ */ jsx("span", { children: "View complete result" }),
|
|
47
47
|
/* @__PURE__ */ jsx(Maximize2, { className: "h-3 w-3 shrink-0" })
|
|
@@ -117,10 +117,10 @@ const AskInline = (props) => {
|
|
|
117
117
|
{
|
|
118
118
|
className: cn("px-4 py-2", i > 0 && "border-t border-border/30"),
|
|
119
119
|
children: [
|
|
120
|
-
/* @__PURE__ */ jsx("p", { className: "text-[13px] leading-snug text-
|
|
120
|
+
/* @__PURE__ */ jsx("p", { className: "text-[13px] leading-snug text-foreground", children: qa.question }),
|
|
121
121
|
/* @__PURE__ */ jsxs("p", { className: "mt-1 flex items-start gap-1.5 text-[13px] leading-snug", children: [
|
|
122
|
-
/* @__PURE__ */ jsx(CornerDownRight, { className: "mt-0.5 size-3 shrink-0 text-
|
|
123
|
-
qa.answer !== null ? /* @__PURE__ */ jsx("span", { className: "font-medium text-
|
|
122
|
+
/* @__PURE__ */ jsx(CornerDownRight, { className: "mt-0.5 size-3 shrink-0 text-muted-foreground" }),
|
|
123
|
+
qa.answer !== null ? /* @__PURE__ */ jsx("span", { className: "font-medium text-foreground", children: qa.answer }) : /* @__PURE__ */ jsx("span", { className: "italic text-muted-foreground", children: "Awaiting answer" })
|
|
124
124
|
] })
|
|
125
125
|
]
|
|
126
126
|
},
|
|
@@ -50,12 +50,12 @@ const AskPersonInline = (props) => {
|
|
|
50
50
|
"No longer needed"
|
|
51
51
|
) : lookup.phase === "unreachable" ? "Could not load this ask" : null;
|
|
52
52
|
const body = open ? /* @__PURE__ */ jsx("div", { "data-parked-ask": "", children: /* @__PURE__ */ jsx(ActionRequestInlineAnswer, { request: open, onAnswered: rereadConversation }) }) : lookup.phase === "unreachable" ? /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-3 p-4", children: [
|
|
53
|
-
/* @__PURE__ */ jsxs("p", { className: "text-sm text-
|
|
53
|
+
/* @__PURE__ */ jsxs("p", { className: "text-sm text-muted-foreground", children: [
|
|
54
54
|
"We could not reach your agent just now. Nothing was lost \u2014 try again.",
|
|
55
55
|
/* @__PURE__ */ jsx(ErrorAlchemyMenu, {})
|
|
56
56
|
] }),
|
|
57
57
|
/* @__PURE__ */ jsx(Button, { size: "sm", variant: "outline", onClick: lookup.retry, children: "Try again" })
|
|
58
|
-
] }) : lookup.phase === "closed" && cannotLook ? /* @__PURE__ */ jsx("p", { className: "p-4 text-sm text-
|
|
58
|
+
] }) : lookup.phase === "closed" && cannotLook ? /* @__PURE__ */ jsx("p", { className: "p-4 text-sm text-muted-foreground", children: "Open this ask from the chat to answer it." }) : lookup.phase === "closed" ? /* @__PURE__ */ jsx("p", { className: "p-4 text-sm text-muted-foreground", children: isTerminal(entry) && !parked ? "Done \u2014 your agent has what it asked for." : "This ask is no longer open." }) : /* @__PURE__ */ jsx("p", { className: "p-4 text-sm text-muted-foreground", children: sub });
|
|
59
59
|
if (!onToggleExpanded) {
|
|
60
60
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
61
61
|
open && open.render.form !== "questions" ? /* @__PURE__ */ jsx("p", { className: "px-4 pt-4 text-sm font-medium", children: open.render.title }) : null,
|
|
@@ -52,7 +52,7 @@ function ActivityUrl({ url }) {
|
|
|
52
52
|
target: "_blank",
|
|
53
53
|
rel: "noopener noreferrer",
|
|
54
54
|
onClick: (event) => event.stopPropagation(),
|
|
55
|
-
className: "inline-flex min-w-0 max-w-[min(22rem,48vw)] items-center gap-1 text-
|
|
55
|
+
className: "inline-flex min-w-0 max-w-[min(22rem,48vw)] items-center gap-1 text-primary hover:underline",
|
|
56
56
|
title: url,
|
|
57
57
|
children: [
|
|
58
58
|
/* @__PURE__ */ jsx("span", { className: "truncate", children: label }),
|
|
@@ -94,7 +94,7 @@ function CloudBrowserRunCard({
|
|
|
94
94
|
{
|
|
95
95
|
className: cn(
|
|
96
96
|
"min-w-0 truncate",
|
|
97
|
-
activity.isError ? "text-destructive" : "text-
|
|
97
|
+
activity.isError ? "text-destructive" : "text-muted-foreground"
|
|
98
98
|
),
|
|
99
99
|
title: activity.label,
|
|
100
100
|
children: activity.label
|
|
@@ -106,12 +106,12 @@ function CloudBrowserRunCard({
|
|
|
106
106
|
] }, entries[index]?.callId ?? index);
|
|
107
107
|
}) }),
|
|
108
108
|
/* @__PURE__ */ jsxs("details", { className: "group/details mt-1.5 border-t border-border/40 pt-1.5", children: [
|
|
109
|
-
/* @__PURE__ */ jsxs("summary", { className: "flex w-fit cursor-pointer list-none items-center gap-1.5 rounded px-1 py-0.5 text-[11px] text-
|
|
109
|
+
/* @__PURE__ */ jsxs("summary", { className: "flex w-fit cursor-pointer list-none items-center gap-1.5 rounded px-1 py-0.5 text-[11px] text-muted-foreground transition-colors hover:bg-accent/40 hover:text-foreground [&::-webkit-details-marker]:hidden", children: [
|
|
110
110
|
/* @__PURE__ */ jsx(SlidersHorizontal, { className: "size-3" }),
|
|
111
111
|
"Details"
|
|
112
112
|
] }),
|
|
113
113
|
/* @__PURE__ */ jsx("div", { className: "mt-1.5 max-h-64 space-y-2 overflow-y-auto rounded-md bg-muted/30 p-2 scrollbar-thin", children: entries.map((entry, index) => /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
114
|
-
/* @__PURE__ */ jsxs("p", { className: "mb-1 text-[10px] font-medium uppercase tracking-wide text-
|
|
114
|
+
/* @__PURE__ */ jsxs("p", { className: "mb-1 text-[10px] font-medium uppercase tracking-wide text-muted-foreground", children: [
|
|
115
115
|
"Step ",
|
|
116
116
|
index + 1
|
|
117
117
|
] }),
|
|
@@ -121,7 +121,7 @@ function CloudBrowserRunCard({
|
|
|
121
121
|
] });
|
|
122
122
|
if (compact) {
|
|
123
123
|
return /* @__PURE__ */ jsxs("div", { className: cn("mb-1 w-full min-w-0", className), children: [
|
|
124
|
-
/* @__PURE__ */ jsxs("div", { className: "flex min-h-7 min-w-0 items-center gap-1.5 text-[12px] text-
|
|
124
|
+
/* @__PURE__ */ jsxs("div", { className: "flex min-h-7 min-w-0 items-center gap-1.5 text-[12px] text-muted-foreground", children: [
|
|
125
125
|
/* @__PURE__ */ jsx(Globe2, { className: "size-3.5 shrink-0 text-info" }),
|
|
126
126
|
/* @__PURE__ */ jsx(Tile, { variant: "quiet", title: `Continued browsing \xB7 ${entries.length} actions`, end: expanded ? /* @__PURE__ */ jsx(ChevronDown, {}) : /* @__PURE__ */ jsx(ChevronRight, {}), onClick: onToggleExpanded, "aria-expanded": expanded, className: "min-w-0" }),
|
|
127
127
|
latestUrl && /* @__PURE__ */ jsx("span", { className: "hidden min-w-0 flex-1 sm:block", children: /* @__PURE__ */ jsx(ActivityUrl, { url: latestUrl }) }),
|
|
@@ -74,7 +74,7 @@ const CtxBatchInline = ({
|
|
|
74
74
|
);
|
|
75
75
|
}
|
|
76
76
|
if (!isTerminal(entry)) {
|
|
77
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 py-1.5 text-xs text-
|
|
77
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 py-1.5 text-xs text-muted-foreground animate-in fade-in", children: [
|
|
78
78
|
/* @__PURE__ */ jsx(Layers, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
79
79
|
/* @__PURE__ */ jsx("span", { children: "Reviewing context" })
|
|
80
80
|
] });
|
|
@@ -86,10 +86,10 @@ const CtxBatchInline = ({
|
|
|
86
86
|
const shown = parsed.results.slice(0, cap);
|
|
87
87
|
const remaining = parsed.results.length - shown.length;
|
|
88
88
|
return /* @__PURE__ */ jsxs("div", { className: "space-y-2 animate-in fade-in", children: [
|
|
89
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-xs text-
|
|
89
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-xs text-muted-foreground", children: [
|
|
90
90
|
/* @__PURE__ */ jsx(Layers, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
91
91
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
92
|
-
/* @__PURE__ */ jsx("span", { className: "font-semibold tabular-nums text-
|
|
92
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold tabular-nums text-foreground", children: parsed.count }),
|
|
93
93
|
" ",
|
|
94
94
|
"of",
|
|
95
95
|
" ",
|
|
@@ -49,12 +49,12 @@ const CtxGetInline = ({
|
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
51
|
if (view.kind === "loading") {
|
|
52
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 py-1.5 text-xs text-
|
|
52
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 py-1.5 text-xs text-muted-foreground animate-in fade-in", children: [
|
|
53
53
|
/* @__PURE__ */ jsx(Search, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
54
54
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
55
55
|
"Looking up",
|
|
56
56
|
" ",
|
|
57
|
-
keyArg ? /* @__PURE__ */ jsx("span", { className: "text-
|
|
57
|
+
keyArg ? /* @__PURE__ */ jsx("span", { className: "text-foreground", children: contextEntryLabel({ key: keyArg }) }) : "context"
|
|
58
58
|
] })
|
|
59
59
|
] });
|
|
60
60
|
}
|
|
@@ -52,16 +52,16 @@ const CtxItemCard = ({
|
|
|
52
52
|
"div",
|
|
53
53
|
{
|
|
54
54
|
className: cn(
|
|
55
|
-
"rounded-lg border border-
|
|
55
|
+
"rounded-lg border border-border bg-card p-3 space-y-2",
|
|
56
56
|
className
|
|
57
57
|
),
|
|
58
58
|
children: [
|
|
59
59
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
60
|
-
/* @__PURE__ */ jsx("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center rounded bg-
|
|
60
|
+
/* @__PURE__ */ jsx("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center rounded bg-muted text-muted-foreground", children: /* @__PURE__ */ jsx(Icon, { className: "h-3.5 w-3.5" }) }),
|
|
61
61
|
/* @__PURE__ */ jsx(
|
|
62
62
|
"span",
|
|
63
63
|
{
|
|
64
|
-
className: "min-w-0 truncate font-medium text-
|
|
64
|
+
className: "min-w-0 truncate font-medium text-foreground",
|
|
65
65
|
title: showKey ? item.key : void 0,
|
|
66
66
|
children: label
|
|
67
67
|
}
|
|
@@ -62,26 +62,26 @@ const CtxPatchConfirmation = ({
|
|
|
62
62
|
);
|
|
63
63
|
}
|
|
64
64
|
if (!isTerminal(entry)) {
|
|
65
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 py-1.5 text-xs text-
|
|
65
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 py-1.5 text-xs text-muted-foreground animate-in fade-in", children: [
|
|
66
66
|
/* @__PURE__ */ jsx(FilePen, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
67
67
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
68
68
|
"Updating",
|
|
69
69
|
" ",
|
|
70
|
-
data.key ? /* @__PURE__ */ jsx("span", { className: "text-
|
|
70
|
+
data.key ? /* @__PURE__ */ jsx("span", { className: "text-foreground", children: contextEntryLabel({ key: data.key }) }) : "context"
|
|
71
71
|
] })
|
|
72
72
|
] });
|
|
73
73
|
}
|
|
74
|
-
return /* @__PURE__ */ jsxs("div", { className: "rounded-lg border border-
|
|
74
|
+
return /* @__PURE__ */ jsxs("div", { className: "rounded-lg border border-border bg-card p-3 space-y-2 animate-in fade-in", children: [
|
|
75
75
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
76
|
-
/* @__PURE__ */ jsx(CheckCircle2, { className: "h-4 w-4 shrink-0 text-
|
|
77
|
-
/* @__PURE__ */ jsxs("span", { className: "text-sm text-
|
|
76
|
+
/* @__PURE__ */ jsx(CheckCircle2, { className: "h-4 w-4 shrink-0 text-primary" }),
|
|
77
|
+
/* @__PURE__ */ jsxs("span", { className: "text-sm text-foreground", children: [
|
|
78
78
|
"Updated",
|
|
79
79
|
" ",
|
|
80
80
|
/* @__PURE__ */ jsx("span", { className: "font-medium", children: data.key ? contextEntryLabel({ key: data.key }) : "context" })
|
|
81
81
|
] }),
|
|
82
82
|
data.command && /* @__PURE__ */ jsx(Badge, { variant: "secondary", className: "ml-auto font-mono font-normal", children: data.command })
|
|
83
83
|
] }),
|
|
84
|
-
data.preview != null && /* @__PURE__ */ jsx("div", { className: "min-w-0 border-t border-
|
|
84
|
+
data.preview != null && /* @__PURE__ */ jsx("div", { className: "min-w-0 border-t border-border pt-2", children: /* @__PURE__ */ jsx(ResultValue, { value: data.preview, density }) })
|
|
85
85
|
] });
|
|
86
86
|
};
|
|
87
87
|
export {
|
|
@@ -6,18 +6,18 @@ function hasDetail(e) {
|
|
|
6
6
|
}
|
|
7
7
|
function DictPeekBody({ e }) {
|
|
8
8
|
return /* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
9
|
-
e.pronunciation || e.ipa ? /* @__PURE__ */ jsxs("div", { className: "font-mono text-
|
|
9
|
+
e.pronunciation || e.ipa ? /* @__PURE__ */ jsxs("div", { className: "font-mono text-muted-foreground", children: [
|
|
10
10
|
e.pronunciation ? `/${e.pronunciation}/` : "",
|
|
11
11
|
e.ipa ? ` ${e.ipa}` : ""
|
|
12
12
|
] }) : null,
|
|
13
|
-
e.definition ? /* @__PURE__ */ jsx("div", { className: "text-
|
|
14
|
-
e.soundsLike.length ? /* @__PURE__ */ jsxs("div", { className: "text-
|
|
15
|
-
/* @__PURE__ */ jsx("span", { className: "font-medium text-
|
|
13
|
+
e.definition ? /* @__PURE__ */ jsx("div", { className: "text-foreground", children: e.definition }) : null,
|
|
14
|
+
e.soundsLike.length ? /* @__PURE__ */ jsxs("div", { className: "text-muted-foreground", children: [
|
|
15
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-foreground", children: "Sounds like:" }),
|
|
16
16
|
" ",
|
|
17
17
|
e.soundsLike.join(", ")
|
|
18
18
|
] }) : null,
|
|
19
|
-
e.category ? /* @__PURE__ */ jsxs("div", { className: "text-
|
|
20
|
-
/* @__PURE__ */ jsx("span", { className: "font-medium text-
|
|
19
|
+
e.category ? /* @__PURE__ */ jsxs("div", { className: "text-muted-foreground", children: [
|
|
20
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-foreground", children: "Category:" }),
|
|
21
21
|
" ",
|
|
22
22
|
e.category
|
|
23
23
|
] }) : null
|
|
@@ -27,16 +27,16 @@ function DictEntryList({ entries }) {
|
|
|
27
27
|
return /* @__PURE__ */ jsx("div", { className: "divide-y divide-border", children: entries.map((e, i) => {
|
|
28
28
|
const row = /* @__PURE__ */ jsxs("div", { className: "px-3 py-2 transition-colors hover:bg-muted/40", children: [
|
|
29
29
|
/* @__PURE__ */ jsxs("div", { className: "flex items-baseline gap-2", children: [
|
|
30
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-
|
|
31
|
-
e.pronunciation ? /* @__PURE__ */ jsxs("span", { className: "text-xs text-
|
|
30
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-foreground", children: e.term }),
|
|
31
|
+
e.pronunciation ? /* @__PURE__ */ jsxs("span", { className: "text-xs text-muted-foreground", children: [
|
|
32
32
|
"/",
|
|
33
33
|
e.pronunciation,
|
|
34
34
|
"/"
|
|
35
|
-
] }) : e.ipa ? /* @__PURE__ */ jsx("span", { className: "text-xs text-
|
|
36
|
-
e.category ? /* @__PURE__ */ jsx("span", { className: "ml-auto shrink-0 rounded-full bg-
|
|
35
|
+
] }) : e.ipa ? /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: e.ipa }) : null,
|
|
36
|
+
e.category ? /* @__PURE__ */ jsx("span", { className: "ml-auto shrink-0 rounded-full bg-muted px-1.5 py-0.5 text-[10px] font-medium text-muted-foreground", children: e.category }) : null
|
|
37
37
|
] }),
|
|
38
|
-
e.definition ? /* @__PURE__ */ jsx("p", { className: "mt-0.5 line-clamp-2 text-xs text-
|
|
39
|
-
e.soundsLike.length ? /* @__PURE__ */ jsxs("p", { className: "mt-0.5 text-[11px] text-
|
|
38
|
+
e.definition ? /* @__PURE__ */ jsx("p", { className: "mt-0.5 line-clamp-2 text-xs text-muted-foreground", children: e.definition }) : null,
|
|
39
|
+
e.soundsLike.length ? /* @__PURE__ */ jsxs("p", { className: "mt-0.5 text-[11px] text-muted-foreground", children: [
|
|
40
40
|
"Sounds like: ",
|
|
41
41
|
e.soundsLike.join(", ")
|
|
42
42
|
] }) : null
|