@ai-matrx/chat 0.7.7 → 0.7.8
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 +6 -0
- 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/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/package.json +10 -10
|
@@ -119,17 +119,17 @@ function DemoBubble({
|
|
|
119
119
|
}) {
|
|
120
120
|
return /* @__PURE__ */ jsxs("section", { className: cn("space-y-2", className), children: [
|
|
121
121
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
122
|
-
/* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-
|
|
123
|
-
description ? /* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
122
|
+
/* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-foreground", children: title }),
|
|
123
|
+
description ? /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground mt-0.5", children: description }) : null
|
|
124
124
|
] }),
|
|
125
|
-
/* @__PURE__ */ jsx("div", { className: "bg-
|
|
125
|
+
/* @__PURE__ */ jsx("div", { className: "bg-muted border border-border rounded-lg px-2 py-2 max-w-md", children: /* @__PURE__ */ jsx("div", { className: "space-y-1.5", children }) })
|
|
126
126
|
] });
|
|
127
127
|
}
|
|
128
128
|
function DemoAttachmentChip({ spec }) {
|
|
129
129
|
const Icon = ATTACHMENT_ICONS[spec.id] ?? FileText;
|
|
130
130
|
return /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
131
131
|
/* @__PURE__ */ jsx(Button, { variant: "outline", icon: /* @__PURE__ */ jsx(Icon, {}), title: spec.title, children: spec.title }),
|
|
132
|
-
spec.note ? /* @__PURE__ */ jsx("p", { className: "text-[10px] text-
|
|
132
|
+
spec.note ? /* @__PURE__ */ jsx("p", { className: "text-[10px] text-muted-foreground", children: spec.note }) : null
|
|
133
133
|
] });
|
|
134
134
|
}
|
|
135
135
|
function UserMessageChipsDemo() {
|
|
@@ -146,8 +146,8 @@ function UserMessageChipsDemo() {
|
|
|
146
146
|
}, [dispatch]);
|
|
147
147
|
return /* @__PURE__ */ jsx("div", { className: "min-h-dvh bg-textured", children: /* @__PURE__ */ jsxs("div", { className: "max-w-6xl mx-auto px-4 py-8 space-y-10", children: [
|
|
148
148
|
/* @__PURE__ */ jsxs("header", { className: "space-y-1", children: [
|
|
149
|
-
/* @__PURE__ */ jsx("h1", { className: "text-2xl font-bold text-
|
|
150
|
-
/* @__PURE__ */ jsxs("p", { className: "text-sm text-
|
|
149
|
+
/* @__PURE__ */ jsx("h1", { className: "text-2xl font-bold text-foreground", children: "User Message Chips" }),
|
|
150
|
+
/* @__PURE__ */ jsxs("p", { className: "text-sm text-muted-foreground", children: [
|
|
151
151
|
"Production tiles in",
|
|
152
152
|
" ",
|
|
153
153
|
/* @__PURE__ */ jsx("code", { className: "text-xs", children: "AgentUserMessage" }),
|
|
@@ -175,7 +175,7 @@ function UserMessageChipsDemo() {
|
|
|
175
175
|
parts: SUBMITTED_ATTACHMENT_PARTS
|
|
176
176
|
}
|
|
177
177
|
),
|
|
178
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
178
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-foreground whitespace-pre-wrap", children: "Please turn the attached research into an infographic prompt." })
|
|
179
179
|
]
|
|
180
180
|
}
|
|
181
181
|
),
|
|
@@ -188,7 +188,7 @@ function UserMessageChipsDemo() {
|
|
|
188
188
|
),
|
|
189
189
|
/* @__PURE__ */ jsx(UserMessageHybridTileSamples, { specs: DEMO_COMPARISON_ATTACHMENTS }),
|
|
190
190
|
/* @__PURE__ */ jsxs("div", { className: "space-y-6", children: [
|
|
191
|
-
/* @__PURE__ */ jsx("h2", { className: "text-base font-semibold text-
|
|
191
|
+
/* @__PURE__ */ jsx("h2", { className: "text-base font-semibold text-foreground border-b border-border pb-2", children: "Context policies" }),
|
|
192
192
|
/* @__PURE__ */ jsxs(
|
|
193
193
|
DemoBubble,
|
|
194
194
|
{
|
|
@@ -203,7 +203,7 @@ function UserMessageChipsDemo() {
|
|
|
203
203
|
entries: [DEMO_SINGLE_ENTRY]
|
|
204
204
|
}
|
|
205
205
|
),
|
|
206
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
206
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-foreground whitespace-pre-wrap", children: "Can you go ahead and get this working document ready?" })
|
|
207
207
|
]
|
|
208
208
|
}
|
|
209
209
|
),
|
|
@@ -221,14 +221,14 @@ function UserMessageChipsDemo() {
|
|
|
221
221
|
entries: DEMO_MULTI_ENTRIES
|
|
222
222
|
}
|
|
223
223
|
),
|
|
224
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
224
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-foreground whitespace-pre-wrap", children: "Here is everything attached \u2014 open the popover to browse each slot." })
|
|
225
225
|
]
|
|
226
226
|
}
|
|
227
227
|
),
|
|
228
228
|
/* @__PURE__ */ jsxs("section", { className: "space-y-3", children: [
|
|
229
229
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
230
|
-
/* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-
|
|
231
|
-
/* @__PURE__ */ jsxs("p", { className: "text-xs text-
|
|
230
|
+
/* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-foreground", children: "All context types" }),
|
|
231
|
+
/* @__PURE__ */ jsxs("p", { className: "text-xs text-muted-foreground mt-0.5", children: [
|
|
232
232
|
"One bubble per",
|
|
233
233
|
" ",
|
|
234
234
|
/* @__PURE__ */ jsx("code", { className: "text-[10px]", children: "ContextObjectType" }),
|
|
@@ -247,7 +247,7 @@ function UserMessageChipsDemo() {
|
|
|
247
247
|
] })
|
|
248
248
|
] }),
|
|
249
249
|
/* @__PURE__ */ jsxs("div", { className: "space-y-6", children: [
|
|
250
|
-
/* @__PURE__ */ jsx("h2", { className: "text-base font-semibold text-
|
|
250
|
+
/* @__PURE__ */ jsx("h2", { className: "text-base font-semibold text-foreground border-b border-border pb-2", children: "Resource attachments" }),
|
|
251
251
|
/* @__PURE__ */ jsxs(
|
|
252
252
|
DemoBubble,
|
|
253
253
|
{
|
|
@@ -261,7 +261,7 @@ function UserMessageChipsDemo() {
|
|
|
261
261
|
size: "xs"
|
|
262
262
|
}
|
|
263
263
|
) }),
|
|
264
|
-
/* @__PURE__ */ jsxs("p", { className: "text-[10px] text-
|
|
264
|
+
/* @__PURE__ */ jsxs("p", { className: "text-[10px] text-muted-foreground", children: [
|
|
265
265
|
"Fake UUID above \u2014 shows \u201CUnknown file\u201D fallback until a real file is in Redux. Swap in a real",
|
|
266
266
|
" ",
|
|
267
267
|
/* @__PURE__ */ jsx("code", { className: "text-[10px]", children: "file_id" }),
|
|
@@ -272,8 +272,8 @@ function UserMessageChipsDemo() {
|
|
|
272
272
|
),
|
|
273
273
|
/* @__PURE__ */ jsxs("section", { className: "space-y-3", children: [
|
|
274
274
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
275
|
-
/* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-
|
|
276
|
-
/* @__PURE__ */ jsxs("p", { className: "text-xs text-
|
|
275
|
+
/* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-foreground", children: "Legacy block chips" }),
|
|
276
|
+
/* @__PURE__ */ jsxs("p", { className: "text-xs text-muted-foreground mt-0.5", children: [
|
|
277
277
|
"Notes, tasks, webpages, tables, etc. \u2014 per-type pill + modal on click. Styled to match",
|
|
278
278
|
" ",
|
|
279
279
|
/* @__PURE__ */ jsx("code", { className: "text-[10px]", children: "AttachmentChip" }),
|
|
@@ -287,14 +287,14 @@ function UserMessageChipsDemo() {
|
|
|
287
287
|
className: "max-w-lg",
|
|
288
288
|
children: [
|
|
289
289
|
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-1", children: DEMO_LEGACY_ATTACHMENTS.map((spec) => /* @__PURE__ */ jsx(DemoAttachmentChip, { spec }, spec.id)) }),
|
|
290
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
290
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-foreground whitespace-pre-wrap", children: "Mixed attachments above a text line \u2014 same layout as production." })
|
|
291
291
|
]
|
|
292
292
|
}
|
|
293
293
|
)
|
|
294
294
|
] })
|
|
295
295
|
] }),
|
|
296
296
|
/* @__PURE__ */ jsxs("div", { className: "space-y-6", children: [
|
|
297
|
-
/* @__PURE__ */ jsx("h2", { className: "text-base font-semibold text-
|
|
297
|
+
/* @__PURE__ */ jsx("h2", { className: "text-base font-semibold text-foreground border-b border-border pb-2", children: "Combined (production layout)" }),
|
|
298
298
|
/* @__PURE__ */ jsxs(
|
|
299
299
|
DemoBubble,
|
|
300
300
|
{
|
|
@@ -323,7 +323,7 @@ function UserMessageChipsDemo() {
|
|
|
323
323
|
spec.id
|
|
324
324
|
);
|
|
325
325
|
}) }),
|
|
326
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
326
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-foreground whitespace-pre-wrap", children: "Can you go ahead and get this working document ready with the content and then let's talk about it?" })
|
|
327
327
|
]
|
|
328
328
|
}
|
|
329
329
|
)
|
|
@@ -107,7 +107,7 @@ function HybridTileStacked({ spec }) {
|
|
|
107
107
|
),
|
|
108
108
|
children: [
|
|
109
109
|
/* @__PURE__ */ jsx("div", { className: "flex-1 flex items-center justify-center min-h-0 p-1.5", children: isImage ? /* @__PURE__ */ jsx("div", { className: "h-full w-full rounded-md bg-gradient-to-br from-blue-200/80 to-indigo-300/60 dark:from-blue-800/50 dark:to-indigo-900/40 flex items-center justify-center", children: /* @__PURE__ */ jsx(ImageIcon, { className: cn("h-5 w-5", theme.icon) }) }) : /* @__PURE__ */ jsx(TileIcon, { spec, className: "h-5 w-5" }) }),
|
|
110
|
-
/* @__PURE__ */ jsx("div", { className: "px-1.5 py-1 border-t border-border/40 bg-background/30 dark:bg-black/10", children: /* @__PURE__ */ jsx("span", { className: "block text-[10px] leading-tight font-medium text-
|
|
110
|
+
/* @__PURE__ */ jsx("div", { className: "px-1.5 py-1 border-t border-border/40 bg-background/30 dark:bg-black/10", children: /* @__PURE__ */ jsx("span", { className: "block text-[10px] leading-tight font-medium text-foreground text-center truncate", children: truncateLabel(spec.title, 12) }) })
|
|
111
111
|
]
|
|
112
112
|
}
|
|
113
113
|
);
|
|
@@ -127,8 +127,8 @@ function HybridTileHorizontal({ spec }) {
|
|
|
127
127
|
children: [
|
|
128
128
|
/* @__PURE__ */ jsx("span", { className: "flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-background/40 dark:bg-black/15", children: /* @__PURE__ */ jsx(TileIcon, { spec, className: "h-3.5 w-3.5" }) }),
|
|
129
129
|
/* @__PURE__ */ jsxs("span", { className: "min-w-0 flex-1 text-left", children: [
|
|
130
|
-
/* @__PURE__ */ jsx("span", { className: "block text-[9px] uppercase tracking-wide text-
|
|
131
|
-
/* @__PURE__ */ jsx("span", { className: "block text-[10px] font-medium text-
|
|
130
|
+
/* @__PURE__ */ jsx("span", { className: "block text-[9px] uppercase tracking-wide text-muted-foreground leading-none mb-0.5", children: spec.label }),
|
|
131
|
+
/* @__PURE__ */ jsx("span", { className: "block text-[10px] font-medium text-foreground leading-tight truncate", children: truncateLabel(spec.title, 16) })
|
|
132
132
|
] })
|
|
133
133
|
]
|
|
134
134
|
}
|
|
@@ -177,7 +177,7 @@ function HybridTileStackedRowsBase({
|
|
|
177
177
|
{
|
|
178
178
|
className: cn(
|
|
179
179
|
config.typeClass,
|
|
180
|
-
"min-w-0 flex-1 truncate whitespace-nowrap text-
|
|
180
|
+
"min-w-0 flex-1 truncate whitespace-nowrap text-muted-foreground uppercase tracking-wide"
|
|
181
181
|
),
|
|
182
182
|
children: spec.label
|
|
183
183
|
}
|
|
@@ -188,7 +188,7 @@ function HybridTileStackedRowsBase({
|
|
|
188
188
|
{
|
|
189
189
|
className: cn(
|
|
190
190
|
config.titleClass,
|
|
191
|
-
"block w-full min-w-0 truncate whitespace-nowrap text-
|
|
191
|
+
"block w-full min-w-0 truncate whitespace-nowrap text-foreground font-medium"
|
|
192
192
|
),
|
|
193
193
|
children: spec.title
|
|
194
194
|
}
|
|
@@ -367,8 +367,8 @@ function HybridTileWide({ spec }) {
|
|
|
367
367
|
children: [
|
|
368
368
|
/* @__PURE__ */ jsx(TileIcon, { spec, className: "h-4 w-4 mt-0.5" }),
|
|
369
369
|
/* @__PURE__ */ jsxs("span", { className: "min-w-0 flex-1", children: [
|
|
370
|
-
/* @__PURE__ */ jsx("span", { className: "block text-[9px] font-medium text-
|
|
371
|
-
/* @__PURE__ */ jsx("span", { className: "block text-[11px] font-medium text-
|
|
370
|
+
/* @__PURE__ */ jsx("span", { className: "block text-[9px] font-medium text-muted-foreground leading-none", children: spec.label }),
|
|
371
|
+
/* @__PURE__ */ jsx("span", { className: "block text-[11px] font-medium text-foreground leading-snug line-clamp-2 mt-1", children: truncateLabel(spec.title, 22) })
|
|
372
372
|
] })
|
|
373
373
|
]
|
|
374
374
|
}
|
|
@@ -391,7 +391,7 @@ function HybridTileCaption({ spec }) {
|
|
|
391
391
|
children: isImage ? /* @__PURE__ */ jsx("div", { className: "h-full w-full rounded-md bg-gradient-to-br from-blue-200/80 to-indigo-300/60 dark:from-blue-800/50 dark:to-indigo-900/40 flex items-center justify-center", children: /* @__PURE__ */ jsx(ImageIcon, { className: cn("h-6 w-6", theme.icon) }) }) : /* @__PURE__ */ jsx(TileIcon, { spec, className: "h-6 w-6" })
|
|
392
392
|
}
|
|
393
393
|
),
|
|
394
|
-
/* @__PURE__ */ jsx("span", { className: "w-full text-[10px] text-
|
|
394
|
+
/* @__PURE__ */ jsx("span", { className: "w-full text-[10px] text-foreground font-medium text-center leading-tight line-clamp-2 px-0.5", children: truncateLabel(spec.title, 18) })
|
|
395
395
|
] });
|
|
396
396
|
}
|
|
397
397
|
const HYBRID_VARIANTS = [
|
|
@@ -438,12 +438,12 @@ function SampleBubble({
|
|
|
438
438
|
}) {
|
|
439
439
|
return /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
440
440
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
441
|
-
/* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-
|
|
442
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
441
|
+
/* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-foreground", children: title }),
|
|
442
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground mt-0.5", children: description })
|
|
443
443
|
] }),
|
|
444
|
-
/* @__PURE__ */ jsx("div", { className: "bg-
|
|
444
|
+
/* @__PURE__ */ jsx("div", { className: "bg-muted border border-border rounded-lg px-2 py-2", children: /* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
445
445
|
children,
|
|
446
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
446
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-foreground whitespace-pre-wrap pt-1", children: "Can you review these attachments and summarize next steps?" })
|
|
447
447
|
] }) })
|
|
448
448
|
] });
|
|
449
449
|
}
|
|
@@ -452,8 +452,8 @@ function UserMessageHybridTileSamples({
|
|
|
452
452
|
}) {
|
|
453
453
|
return /* @__PURE__ */ jsxs("section", { className: "space-y-4", children: [
|
|
454
454
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
455
|
-
/* @__PURE__ */ jsx("h2", { className: "text-base font-semibold text-
|
|
456
|
-
/* @__PURE__ */ jsxs("p", { className: "text-xs text-
|
|
455
|
+
/* @__PURE__ */ jsx("h2", { className: "text-base font-semibold text-foreground border-b border-border pb-2", children: "Hybrid tile samples" }),
|
|
456
|
+
/* @__PURE__ */ jsxs("p", { className: "text-xs text-muted-foreground mt-2 max-w-3xl", children: [
|
|
457
457
|
"Input-bar tints + old-chat",
|
|
458
458
|
" ",
|
|
459
459
|
/* @__PURE__ */ jsx("code", { className: "text-[10px]", children: "rounded-lg" }),
|
|
@@ -462,10 +462,10 @@ function UserMessageHybridTileSamples({
|
|
|
462
462
|
] }),
|
|
463
463
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
464
464
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
465
|
-
/* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-
|
|
465
|
+
/* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-foreground", children: "S8 \xB7 Adaptive \u2014 ship candidate" }),
|
|
466
466
|
/* @__PURE__ */ jsx(Badge, { tone: "primary", children: "Light 3D + dark glass" })
|
|
467
467
|
] }),
|
|
468
|
-
/* @__PURE__ */ jsxs("p", { className: "text-xs text-
|
|
468
|
+
/* @__PURE__ */ jsxs("p", { className: "text-xs text-muted-foreground max-w-3xl", children: [
|
|
469
469
|
"Combines S5 (3D raised) in light mode and S7 (glass ring + gradient) in dark mode. Icons sit directly on the tile \u2014 no inset plate. Wired into ",
|
|
470
470
|
/* @__PURE__ */ jsx("code", { className: "text-[10px]", children: "AgentUserMessage" }),
|
|
471
471
|
" via",
|
|
@@ -483,8 +483,8 @@ function UserMessageHybridTileSamples({
|
|
|
483
483
|
)
|
|
484
484
|
] }),
|
|
485
485
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
486
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap items-center gap-2", children: /* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-
|
|
487
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
486
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap items-center gap-2", children: /* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-foreground", children: "E3 \xB7 Style polish (exploration)" }) }),
|
|
487
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground max-w-3xl", children: "Historical S0\u2013S7 chrome on the E3 layout. Ship candidate is S8 above (adaptive shell + transparent icons)." }),
|
|
488
488
|
/* @__PURE__ */ jsx("div", { className: "grid gap-4 md:grid-cols-2 xl:grid-cols-2", children: E3_STYLE_VARIANTS.map((variant) => /* @__PURE__ */ jsx(
|
|
489
489
|
SampleBubble,
|
|
490
490
|
{
|
|
@@ -508,8 +508,8 @@ function UserMessageHybridTileSamples({
|
|
|
508
508
|
)) })
|
|
509
509
|
] }),
|
|
510
510
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
511
|
-
/* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-
|
|
512
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
511
|
+
/* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-foreground", children: "E refinements \u2014 layout pick (done)" }),
|
|
512
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground max-w-3xl", children: "Same layout: icon + type, then title. No wrap \u2014 truncate only. Title left edge aligns with icon left edge." }),
|
|
513
513
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-4 lg:grid-cols-3", children: [
|
|
514
514
|
/* @__PURE__ */ jsx(
|
|
515
515
|
SampleBubble,
|
|
@@ -556,8 +556,8 @@ function UserMessageHybridTileSamples({
|
|
|
556
556
|
] })
|
|
557
557
|
] }),
|
|
558
558
|
/* @__PURE__ */ jsx("div", { className: "grid gap-6 md:grid-cols-2", children: HYBRID_VARIANTS.map(({ id, title, description, Tile, gap }) => /* @__PURE__ */ jsx(SampleBubble, { title, description, children: /* @__PURE__ */ jsx("div", { className: cn("flex flex-wrap items-start", gap), children: specs.map((spec) => /* @__PURE__ */ jsx(Tile, { spec }, `${id}-${spec.id}`)) }) }, id)) }),
|
|
559
|
-
/* @__PURE__ */ jsx("div", { className: "rounded-lg border border-dashed border-
|
|
560
|
-
/* @__PURE__ */ jsx("span", { className: "font-medium text-
|
|
559
|
+
/* @__PURE__ */ jsx("div", { className: "rounded-lg border border-dashed border-border bg-card/50 px-3 py-2", children: /* @__PURE__ */ jsxs("p", { className: "text-[11px] text-muted-foreground", children: [
|
|
560
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-foreground", children: "Shared rules:" }),
|
|
561
561
|
" ",
|
|
562
562
|
/* @__PURE__ */ jsx("code", { className: "text-[10px]", children: "rounded-lg" }),
|
|
563
563
|
",",
|
|
@@ -191,8 +191,8 @@ function AgentRunnerPage({
|
|
|
191
191
|
/* @__PURE__ */ jsx(AlertTriangle, { className: "w-5 h-5" }),
|
|
192
192
|
/* @__PURE__ */ jsx("span", { className: "font-medium", children: "Couldn't reach the agent service" })
|
|
193
193
|
] }),
|
|
194
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
195
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
194
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground leading-snug", children: initError }),
|
|
195
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground leading-snug", children: "Your work is safe \u2014 anything you had typed will be restored once the agent loads." }),
|
|
196
196
|
/* @__PURE__ */ jsx(
|
|
197
197
|
Button,
|
|
198
198
|
{
|
|
@@ -209,8 +209,8 @@ function AgentRunnerPage({
|
|
|
209
209
|
const activeConversationId = conversationIdFromUrl ?? conversationId;
|
|
210
210
|
const isColdLoadingConversation = !!conversationIdFromUrl && coldLoadingConversationId === conversationIdFromUrl;
|
|
211
211
|
if (isInitializing || !activeConversationId) {
|
|
212
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center h-full gap-3 text-
|
|
213
|
-
/* @__PURE__ */ jsx(Loader2, { className: "w-5 h-5 animate-spin text-
|
|
212
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center h-full gap-3 text-muted-foreground", children: [
|
|
213
|
+
/* @__PURE__ */ jsx(Loader2, { className: "w-5 h-5 animate-spin text-primary" }),
|
|
214
214
|
/* @__PURE__ */ jsx("span", { className: "text-sm", children: "Loading agent..." })
|
|
215
215
|
] });
|
|
216
216
|
}
|
|
@@ -107,7 +107,7 @@ function AssistantError({
|
|
|
107
107
|
retry && /* @__PURE__ */ jsx(Button, { variant: "outline", icon: retrying ? /* @__PURE__ */ jsx(Loader2, { className: "animate-spin" }) : /* @__PURE__ */ jsx(RotateCw, {}), disabled: retrying, onClick: retry, children: retrying ? "Retrying\u2026" : "Retry" }),
|
|
108
108
|
hasDetails && /* @__PURE__ */ jsx(Button, { variant: "link", onClick: () => setShowDetails((v) => !v), children: showDetails ? "Hide details" : "Details" })
|
|
109
109
|
] }),
|
|
110
|
-
hasDetails && showDetails && /* @__PURE__ */ jsxs("div", { className: "mt-1 flex flex-col gap-0.5 rounded bg-muted/50 px-2 py-1.5 font-mono text-[11px] leading-relaxed text-
|
|
110
|
+
hasDetails && showDetails && /* @__PURE__ */ jsxs("div", { className: "mt-1 flex flex-col gap-0.5 rounded bg-muted/50 px-2 py-1.5 font-mono text-[11px] leading-relaxed text-muted-foreground", children: [
|
|
111
111
|
(errorType || code != null) && /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-x-3", children: [
|
|
112
112
|
errorType && /* @__PURE__ */ jsxs("span", { children: [
|
|
113
113
|
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground/60", children: "type: " }),
|
|
@@ -30,7 +30,7 @@ function AssistantWarning({ warning }) {
|
|
|
30
30
|
] }),
|
|
31
31
|
hasDetails && /* @__PURE__ */ jsx(Button, { variant: "link", onClick: () => setShowDetails((value) => !value), children: showDetails ? "Hide details" : "Details" })
|
|
32
32
|
] }),
|
|
33
|
-
hasDetails && showDetails && /* @__PURE__ */ jsxs("div", { className: "mt-1 flex flex-col gap-0.5 rounded bg-amber-500/10 px-2 py-1.5 font-mono text-[11px] leading-relaxed text-
|
|
33
|
+
hasDetails && showDetails && /* @__PURE__ */ jsxs("div", { className: "mt-1 flex flex-col gap-0.5 rounded bg-amber-500/10 px-2 py-1.5 font-mono text-[11px] leading-relaxed text-muted-foreground", children: [
|
|
34
34
|
warning.code && /* @__PURE__ */ jsxs("span", { children: [
|
|
35
35
|
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground/60", children: "code: " }),
|
|
36
36
|
warning.code
|
|
@@ -94,23 +94,23 @@ function GenerationJobCard({
|
|
|
94
94
|
"aria-live": "polite",
|
|
95
95
|
"data-testid": "generation-job-card",
|
|
96
96
|
className: cn(
|
|
97
|
-
"w-full max-w-md rounded-lg border border-
|
|
97
|
+
"w-full max-w-md rounded-lg border border-border bg-card p-3 text-sm",
|
|
98
98
|
className
|
|
99
99
|
),
|
|
100
100
|
children: [
|
|
101
101
|
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
102
|
-
/* @__PURE__ */ jsx(Clapperboard, { className: "h-4 w-4 shrink-0 text-
|
|
102
|
+
/* @__PURE__ */ jsx(Clapperboard, { className: "h-4 w-4 shrink-0 text-muted-foreground" }),
|
|
103
103
|
/* @__PURE__ */ jsxs("span", { className: "min-w-0 truncate", children: [
|
|
104
104
|
/* @__PURE__ */ jsx("span", { className: "font-medium", children: "Generating a video" }),
|
|
105
|
-
job.modelLabel && /* @__PURE__ */ jsxs("span", { className: "text-
|
|
105
|
+
job.modelLabel && /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground", children: [
|
|
106
106
|
" \xB7 ",
|
|
107
107
|
job.modelLabel
|
|
108
108
|
] })
|
|
109
109
|
] }),
|
|
110
|
-
elapsed && /* @__PURE__ */ jsx("span", { className: "ml-auto shrink-0 text-xs tabular-nums text-
|
|
110
|
+
elapsed && /* @__PURE__ */ jsx("span", { className: "ml-auto shrink-0 text-xs tabular-nums text-muted-foreground", children: elapsed })
|
|
111
111
|
] }),
|
|
112
112
|
/* @__PURE__ */ jsx(Progress, { value: null, "aria-label": "Generating a video", className: "mt-2 h-1.5" }),
|
|
113
|
-
/* @__PURE__ */ jsx("p", { className: "mt-2 text-xs text-
|
|
113
|
+
/* @__PURE__ */ jsx("p", { className: "mt-2 text-xs text-muted-foreground", "data-testid": "generation-job-facts", children: facts.join(" \xB7 ") })
|
|
114
114
|
]
|
|
115
115
|
}
|
|
116
116
|
);
|
|
@@ -13,7 +13,7 @@ function IncompleteNote({ label, detail }) {
|
|
|
13
13
|
] }),
|
|
14
14
|
detail && /* @__PURE__ */ jsx(Button, { variant: "link", onClick: () => setOpen((v) => !v), children: open ? "Hide details" : "Details" })
|
|
15
15
|
] }),
|
|
16
|
-
detail && open && /* @__PURE__ */ jsx("div", { className: "mt-1 rounded bg-amber-500/10 px-2 py-1.5 text-[11px] leading-relaxed text-
|
|
16
|
+
detail && open && /* @__PURE__ */ jsx("div", { className: "mt-1 rounded bg-amber-500/10 px-2 py-1.5 text-[11px] leading-relaxed text-muted-foreground", children: detail })
|
|
17
17
|
] });
|
|
18
18
|
}
|
|
19
19
|
export {
|
|
@@ -39,7 +39,7 @@ function RunJobWorkingLine({
|
|
|
39
39
|
className: "text-sm"
|
|
40
40
|
}
|
|
41
41
|
),
|
|
42
|
-
elapsed && /* @__PURE__ */ jsx("span", { className: "ml-2 text-xs tabular-nums text-
|
|
42
|
+
elapsed && /* @__PURE__ */ jsx("span", { className: "ml-2 text-xs tabular-nums text-muted-foreground", children: elapsed })
|
|
43
43
|
]
|
|
44
44
|
}
|
|
45
45
|
);
|
|
@@ -361,7 +361,7 @@ function AgentConversationColumn({
|
|
|
361
361
|
...smartInputProps
|
|
362
362
|
}
|
|
363
363
|
),
|
|
364
|
-
belowInput ? /* @__PURE__ */ jsx("div", { className: "px-1 pb-1 text-xs text-
|
|
364
|
+
belowInput ? /* @__PURE__ */ jsx("div", { className: "px-1 pb-1 text-xs text-muted-foreground", "data-chat-below-input": "", children: belowInput }) : null
|
|
365
365
|
]
|
|
366
366
|
}
|
|
367
367
|
)
|
|
@@ -131,9 +131,9 @@ function AgentHeaderMobile({
|
|
|
131
131
|
onClick: () => handleModeChange(m.id),
|
|
132
132
|
className: "flex w-full min-h-12 items-center gap-3 px-2 text-left text-base",
|
|
133
133
|
children: [
|
|
134
|
-
/* @__PURE__ */ jsx(Icon, { className: cn("h-5 w-5 shrink-0", isActive ? "text-
|
|
134
|
+
/* @__PURE__ */ jsx(Icon, { className: cn("h-5 w-5 shrink-0", isActive ? "text-primary" : "text-muted-foreground") }),
|
|
135
135
|
/* @__PURE__ */ jsx("span", { className: cn("flex-1", isActive && "font-medium"), children: m.label }),
|
|
136
|
-
isActive ? /* @__PURE__ */ jsx(Check, { className: "h-4 w-4 shrink-0 text-
|
|
136
|
+
isActive ? /* @__PURE__ */ jsx(Check, { className: "h-4 w-4 shrink-0 text-primary" }) : null
|
|
137
137
|
]
|
|
138
138
|
},
|
|
139
139
|
m.id
|
|
@@ -173,7 +173,7 @@ function AgentHeaderMobile({
|
|
|
173
173
|
icon: /* @__PURE__ */ jsx(
|
|
174
174
|
Icon,
|
|
175
175
|
{
|
|
176
|
-
className: `w-4 h-4 ${isActive ? "text-
|
|
176
|
+
className: `w-4 h-4 ${isActive ? "text-primary" : ""}`
|
|
177
177
|
}
|
|
178
178
|
),
|
|
179
179
|
ariaLabel: label,
|
|
@@ -188,7 +188,7 @@ function AgentHeaderMobile({
|
|
|
188
188
|
icon: /* @__PURE__ */ jsx(
|
|
189
189
|
MoreHorizontal,
|
|
190
190
|
{
|
|
191
|
-
className: `w-4 h-4 ${!PROMINENT.includes(mode) ? "text-
|
|
191
|
+
className: `w-4 h-4 ${!PROMINENT.includes(mode) ? "text-primary" : ""}`
|
|
192
192
|
}
|
|
193
193
|
),
|
|
194
194
|
ariaLabel: "More",
|
|
@@ -234,7 +234,7 @@ function AgentHeaderMobile({
|
|
|
234
234
|
{
|
|
235
235
|
className: cn(
|
|
236
236
|
"w-4 h-4 mr-3 shrink-0",
|
|
237
|
-
isActive ? "text-
|
|
237
|
+
isActive ? "text-primary" : "text-muted-foreground"
|
|
238
238
|
)
|
|
239
239
|
}
|
|
240
240
|
),
|
|
@@ -248,7 +248,7 @@ function AgentHeaderMobile({
|
|
|
248
248
|
children: m.label
|
|
249
249
|
}
|
|
250
250
|
),
|
|
251
|
-
isActive && /* @__PURE__ */ jsx(Check, { className: "w-4 h-4 text-
|
|
251
|
+
isActive && /* @__PURE__ */ jsx(Check, { className: "w-4 h-4 text-primary shrink-0" })
|
|
252
252
|
]
|
|
253
253
|
},
|
|
254
254
|
m.id
|
|
@@ -193,7 +193,7 @@ function AgentModeController({
|
|
|
193
193
|
onSelect: () => handleModeChange(id),
|
|
194
194
|
className: "gap-2",
|
|
195
195
|
children: [
|
|
196
|
-
/* @__PURE__ */ jsx(Icon, { className: "h-4 w-4 text-
|
|
196
|
+
/* @__PURE__ */ jsx(Icon, { className: "h-4 w-4 text-muted-foreground" }),
|
|
197
197
|
label
|
|
198
198
|
]
|
|
199
199
|
},
|
|
@@ -21,7 +21,7 @@ function AutoInjectionSwitch({
|
|
|
21
21
|
htmlFor: id,
|
|
22
22
|
title,
|
|
23
23
|
className: cn(
|
|
24
|
-
"inline-flex h-7 shrink-0 cursor-pointer items-center gap-1.5 rounded-md px-1.5 transition-colors hover:bg-
|
|
24
|
+
"inline-flex h-7 shrink-0 cursor-pointer items-center gap-1.5 rounded-md px-1.5 transition-colors hover:bg-muted",
|
|
25
25
|
warn && "bg-amber-500/10",
|
|
26
26
|
className
|
|
27
27
|
),
|
|
@@ -31,7 +31,7 @@ function AutoInjectionSwitch({
|
|
|
31
31
|
{
|
|
32
32
|
className: cn(
|
|
33
33
|
"shrink-0",
|
|
34
|
-
disabled ? "text-
|
|
34
|
+
disabled ? "text-muted-foreground" : "text-primary",
|
|
35
35
|
warn && "text-amber-600 dark:text-amber-400"
|
|
36
36
|
),
|
|
37
37
|
children: icon
|
|
@@ -57,7 +57,7 @@ function AutoInjectionSwitch({
|
|
|
57
57
|
{
|
|
58
58
|
htmlFor: id,
|
|
59
59
|
className: cn(
|
|
60
|
-
"flex items-center justify-between gap-3 px-3 py-2 border-b border-
|
|
60
|
+
"flex items-center justify-between gap-3 px-3 py-2 border-b border-border bg-muted/30 shrink-0 cursor-pointer",
|
|
61
61
|
className
|
|
62
62
|
),
|
|
63
63
|
children: [
|
|
@@ -67,20 +67,20 @@ function AutoInjectionSwitch({
|
|
|
67
67
|
{
|
|
68
68
|
className: cn(
|
|
69
69
|
"shrink-0",
|
|
70
|
-
disabled ? "text-
|
|
70
|
+
disabled ? "text-muted-foreground" : "text-primary",
|
|
71
71
|
warn && "text-amber-600 dark:text-amber-400"
|
|
72
72
|
),
|
|
73
73
|
children: icon
|
|
74
74
|
}
|
|
75
75
|
),
|
|
76
76
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
77
|
-
/* @__PURE__ */ jsx("span", { className: "text-xs font-medium text-
|
|
77
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs font-medium text-foreground", children: label }),
|
|
78
78
|
/* @__PURE__ */ jsx(
|
|
79
79
|
"p",
|
|
80
80
|
{
|
|
81
81
|
className: cn(
|
|
82
82
|
"text-[11px] leading-tight",
|
|
83
|
-
warn ? "text-amber-700 dark:text-amber-300" : "text-
|
|
83
|
+
warn ? "text-amber-700 dark:text-amber-300" : "text-muted-foreground"
|
|
84
84
|
),
|
|
85
85
|
children: statusText
|
|
86
86
|
}
|
|
@@ -45,7 +45,7 @@ function RadioSelect({
|
|
|
45
45
|
onClick: () => onChange(opt.value),
|
|
46
46
|
className: cn(
|
|
47
47
|
"flex items-center gap-2 px-3 py-1.5 rounded-md text-sm transition-colors text-left",
|
|
48
|
-
value === opt.value ? "bg-primary/10 text-primary-ink font-medium" : "text-
|
|
48
|
+
value === opt.value ? "bg-primary/10 text-primary-ink font-medium" : "text-muted-foreground hover:bg-muted hover:text-foreground"
|
|
49
49
|
),
|
|
50
50
|
children: [
|
|
51
51
|
/* @__PURE__ */ jsx(
|
|
@@ -86,7 +86,7 @@ function MultiSelectChips({
|
|
|
86
86
|
};
|
|
87
87
|
return /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
88
88
|
items.length > 5 && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 px-2 h-7 rounded-md bg-muted/50 border border-border/50", children: [
|
|
89
|
-
/* @__PURE__ */ jsx(Search, { className: "h-3 w-3 text-
|
|
89
|
+
/* @__PURE__ */ jsx(Search, { className: "h-3 w-3 text-muted-foreground shrink-0" }),
|
|
90
90
|
/* @__PURE__ */ jsx(
|
|
91
91
|
"input",
|
|
92
92
|
{
|
|
@@ -94,7 +94,7 @@ function MultiSelectChips({
|
|
|
94
94
|
placeholder: searchPlaceholder,
|
|
95
95
|
value: searchQ,
|
|
96
96
|
onChange: (e) => setSearchQ(e.target.value),
|
|
97
|
-
className: "flex-1 bg-transparent text-xs text-
|
|
97
|
+
className: "flex-1 bg-transparent text-xs text-foreground placeholder:text-muted-foreground/50 outline-none"
|
|
98
98
|
}
|
|
99
99
|
),
|
|
100
100
|
searchQ && /* @__PURE__ */ jsx(Button, { variant: "quiet", icon: /* @__PURE__ */ jsx(X, {}), "aria-label": "Clear search", onClick: () => setSearchQ("") })
|
|
@@ -107,7 +107,7 @@ function MultiSelectChips({
|
|
|
107
107
|
return /* @__PURE__ */ jsx(Chip, { asChild: true, pressed: isSelected, label: item, children: /* @__PURE__ */ jsx("button", { type: "button", onClick: () => toggle(item) }) }, item);
|
|
108
108
|
})
|
|
109
109
|
] }) }),
|
|
110
|
-
filtered.length === 0 && searchQ && /* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
110
|
+
filtered.length === 0 && searchQ && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "No matches" })
|
|
111
111
|
] });
|
|
112
112
|
}
|
|
113
113
|
function FilterSection({
|
|
@@ -117,7 +117,7 @@ function FilterSection({
|
|
|
117
117
|
}) {
|
|
118
118
|
return /* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
119
119
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
120
|
-
/* @__PURE__ */ jsx("span", { className: "text-xs font-semibold text-
|
|
120
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs font-semibold text-foreground uppercase tracking-wider", children: label }),
|
|
121
121
|
active && /* @__PURE__ */ jsx("span", { className: "w-1.5 h-1.5 rounded-full bg-primary" })
|
|
122
122
|
] }),
|
|
123
123
|
children
|
|
@@ -194,7 +194,7 @@ function DesktopFilterPanel({
|
|
|
194
194
|
maxHeight: "var(--radix-popover-content-available-height, calc(100dvh - 120px))"
|
|
195
195
|
},
|
|
196
196
|
children: [
|
|
197
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-4 py-2.5 border-b border-
|
|
197
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-4 py-2.5 border-b border-border shrink-0", children: [
|
|
198
198
|
/* @__PURE__ */ jsx("span", { className: "text-sm font-semibold", children: "Filters & Sort" }),
|
|
199
199
|
activeFilterCount > 0 && /* @__PURE__ */ jsx(Button, { variant: "quiet", tone: "primary", icon: /* @__PURE__ */ jsx(RotateCcw, {}), onClick: resetFilters, children: "Reset all" })
|
|
200
200
|
] }),
|
|
@@ -267,7 +267,7 @@ function DesktopFilterPanel({
|
|
|
267
267
|
{
|
|
268
268
|
className: cn(
|
|
269
269
|
"w-8 h-[18px] rounded-full relative transition-colors shrink-0",
|
|
270
|
-
favoritesFirst ? "bg-primary" : "bg-
|
|
270
|
+
favoritesFirst ? "bg-primary" : "bg-muted border border-border"
|
|
271
271
|
),
|
|
272
272
|
children: /* @__PURE__ */ jsx(
|
|
273
273
|
"span",
|
|
@@ -280,7 +280,7 @@ function DesktopFilterPanel({
|
|
|
280
280
|
)
|
|
281
281
|
}
|
|
282
282
|
),
|
|
283
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
283
|
+
/* @__PURE__ */ jsx("span", { className: "text-foreground", children: "Pin favorites to top" })
|
|
284
284
|
]
|
|
285
285
|
}
|
|
286
286
|
) })
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* How a host lays the ONE conversation column out (HOST-OWNED-SOURCE-PLAN P28e look bar).
|
|
3
3
|
*
|
|
4
|
-
* Knobs, never forks:
|
|
5
|
-
*
|
|
4
|
+
* Knobs, never forks: a host that says nothing gets the default look (flat compact user turn,
|
|
5
|
+
* actions on hover). Matrx 2 (desktop) fills its pane, starts at the left edge and draws the
|
|
6
6
|
* person's turn as a compact block — the look its coding screen had before the column.
|
|
7
7
|
*
|
|
8
8
|
* - `width`: "reading" (the canonical `max-w-3xl` reading column) | "fill" (the host's pane).
|
|
9
9
|
* - `align`: "center" | "start" — where a reading-width column sits in a wider pane.
|
|
10
|
-
* - `userMessage`: "
|
|
11
|
-
* "
|
|
12
|
-
* - `answerActions`: "
|
|
13
|
-
*
|
|
14
|
-
*
|
|
10
|
+
* - `userMessage`: "compact" (DEFAULT: a flat tight block; only a genuinely long message
|
|
11
|
+
* collapses) | "card" (the bordered card that collapses a long message behind a chevron).
|
|
12
|
+
* - `answerActions`: "hover" (DEFAULT: the action row is revealed on hover / keyboard focus, and
|
|
13
|
+
* always on touch — its height is reserved, so revealing it moves nothing; a finished answer ends
|
|
14
|
+
* on its last word) | "latest" (the latest answer's row is always visible, older ones on hover) |
|
|
15
|
+
* "shown" (every answer's row always visible).
|
|
15
16
|
*/
|
|
16
17
|
import { type ReactNode } from "react";
|
|
17
18
|
export interface TranscriptLayout {
|
|
18
19
|
width?: "reading" | "fill";
|
|
19
20
|
align?: "center" | "start";
|
|
20
21
|
userMessage?: "card" | "compact";
|
|
21
|
-
answerActions?: "shown" | "hover";
|
|
22
|
+
answerActions?: "shown" | "latest" | "hover";
|
|
22
23
|
}
|
|
23
24
|
export declare const DEFAULT_TRANSCRIPT_LAYOUT: Required<TranscriptLayout>;
|
|
24
25
|
export declare function resolveTranscriptLayout(layout?: TranscriptLayout): Required<TranscriptLayout>;
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
const DEFAULT_TRANSCRIPT_LAYOUT = {
|
|
7
7
|
width: "reading",
|
|
8
8
|
align: "center",
|
|
9
|
-
userMessage: "
|
|
10
|
-
answerActions: "
|
|
9
|
+
userMessage: "compact",
|
|
10
|
+
answerActions: "hover"
|
|
11
11
|
};
|
|
12
12
|
const TranscriptLayoutContext = createContext(DEFAULT_TRANSCRIPT_LAYOUT);
|
|
13
13
|
function resolveTranscriptLayout(layout) {
|