@seed-ship/mcp-ui-solid 4.0.6 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AgentCard.cjs +122 -0
- package/dist/components/AgentCard.cjs.map +1 -0
- package/dist/components/AgentCard.d.ts +20 -0
- package/dist/components/AgentCard.d.ts.map +1 -0
- package/dist/components/AgentCard.js +122 -0
- package/dist/components/AgentCard.js.map +1 -0
- package/dist/components/AgentHandoff.cjs +49 -0
- package/dist/components/AgentHandoff.cjs.map +1 -0
- package/dist/components/AgentHandoff.d.ts +12 -0
- package/dist/components/AgentHandoff.d.ts.map +1 -0
- package/dist/components/AgentHandoff.js +49 -0
- package/dist/components/AgentHandoff.js.map +1 -0
- package/dist/components/BriefingDiff.cjs +165 -0
- package/dist/components/BriefingDiff.cjs.map +1 -0
- package/dist/components/BriefingDiff.d.ts +12 -0
- package/dist/components/BriefingDiff.d.ts.map +1 -0
- package/dist/components/BriefingDiff.js +165 -0
- package/dist/components/BriefingDiff.js.map +1 -0
- package/dist/components/FormFieldRenderer.cjs +314 -264
- package/dist/components/FormFieldRenderer.cjs.map +1 -1
- package/dist/components/FormFieldRenderer.d.ts.map +1 -1
- package/dist/components/FormFieldRenderer.js +315 -265
- package/dist/components/FormFieldRenderer.js.map +1 -1
- package/dist/components/FormRenderer.cjs +74 -17
- package/dist/components/FormRenderer.cjs.map +1 -1
- package/dist/components/FormRenderer.d.ts.map +1 -1
- package/dist/components/FormRenderer.js +76 -19
- package/dist/components/FormRenderer.js.map +1 -1
- package/dist/components/ScratchpadPanel.cjs +618 -411
- package/dist/components/ScratchpadPanel.cjs.map +1 -1
- package/dist/components/ScratchpadPanel.d.ts.map +1 -1
- package/dist/components/ScratchpadPanel.js +619 -412
- package/dist/components/ScratchpadPanel.js.map +1 -1
- package/dist/components/SplitStepper.cjs +121 -0
- package/dist/components/SplitStepper.cjs.map +1 -0
- package/dist/components/SplitStepper.d.ts +12 -0
- package/dist/components/SplitStepper.d.ts.map +1 -0
- package/dist/components/SplitStepper.js +121 -0
- package/dist/components/SplitStepper.js.map +1 -0
- package/dist/components/index.d.ts +8 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components.cjs +9 -0
- package/dist/components.cjs.map +1 -1
- package/dist/components.d.cts +8 -0
- package/dist/components.d.ts +8 -0
- package/dist/components.js +9 -0
- package/dist/components.js.map +1 -1
- package/dist/index.cjs +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/types/chat-bus.d.ts +81 -1
- package/dist/types/chat-bus.d.ts.map +1 -1
- package/dist/types/index.d.ts +15 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types.d.cts +15 -0
- package/dist/types.d.ts +15 -0
- package/package.json +1 -1
- package/src/components/AgentCard.tsx +109 -0
- package/src/components/AgentHandoff.tsx +64 -0
- package/src/components/BriefingDiff.tsx +93 -0
- package/src/components/FormFieldRenderer.tsx +35 -4
- package/src/components/FormRenderer.tsx +74 -4
- package/src/components/ScratchpadPanel.tsx +131 -49
- package/src/components/SplitStepper.tsx +111 -0
- package/src/components/index.ts +13 -0
- package/src/index.ts +15 -0
- package/src/types/chat-bus.ts +70 -1
- package/src/types/index.ts +18 -0
- package/tsconfig.tsbuildinfo +1 -1
package/src/types/chat-bus.ts
CHANGED
|
@@ -111,6 +111,10 @@ export interface ChatCommands {
|
|
|
111
111
|
/** Change the chat mode */
|
|
112
112
|
setMode: (mode: string) => void
|
|
113
113
|
|
|
114
|
+
// --- Agents (v4.1.0) ---
|
|
115
|
+
/** Trigger an agent from the chat (replaces /macro command) */
|
|
116
|
+
triggerAgent: (agentId: string, params?: Record<string, unknown>) => void
|
|
117
|
+
|
|
114
118
|
// --- UI ---
|
|
115
119
|
/** Scroll to a specific message */
|
|
116
120
|
scrollToMessage: (messageId: string) => void
|
|
@@ -366,7 +370,7 @@ export interface ScratchpadState {
|
|
|
366
370
|
export interface ScratchpadSection {
|
|
367
371
|
id: string
|
|
368
372
|
title: string
|
|
369
|
-
type: 'data' | 'filter' | 'preview' | 'message' | 'action' | 'steps' | 'form' | 'understanding' | 'feedback' | 'prompt' | 'stepper' | 'error' | 'source_card' | 'diff' | 'verified_text' | 'data_preview' | 'map' | 'chart'
|
|
373
|
+
type: 'data' | 'filter' | 'preview' | 'message' | 'action' | 'steps' | 'form' | 'understanding' | 'feedback' | 'prompt' | 'stepper' | 'error' | 'source_card' | 'diff' | 'verified_text' | 'data_preview' | 'map' | 'chart' | 'agent_card' | 'split_stepper' | 'agent_handoff' | 'briefing_diff'
|
|
370
374
|
content: unknown
|
|
371
375
|
/** Can the human edit this section? */
|
|
372
376
|
editable: boolean
|
|
@@ -541,3 +545,68 @@ export interface MapSectionContent {
|
|
|
541
545
|
/** Map height (CSS, default: '300px') */
|
|
542
546
|
height?: string
|
|
543
547
|
}
|
|
548
|
+
|
|
549
|
+
// ─── Agent section types (v4.1.0 — AITL sprint) ────────────
|
|
550
|
+
|
|
551
|
+
/** Content for agent_card scratchpad section */
|
|
552
|
+
export interface AgentCardContent {
|
|
553
|
+
agentId: string
|
|
554
|
+
name: string
|
|
555
|
+
/** Avatar icon key (e.g. 'scales', 'chart', 'search') or emoji */
|
|
556
|
+
avatar?: string
|
|
557
|
+
status: 'idle' | 'running' | 'waiting' | 'done' | 'error'
|
|
558
|
+
/** Agent capabilities as string badges */
|
|
559
|
+
capabilities?: string[]
|
|
560
|
+
/** LLM model used */
|
|
561
|
+
model?: string
|
|
562
|
+
/** Current step info (shown when running) */
|
|
563
|
+
currentStep?: { id: string; label: string }
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
/** Content for split_stepper scratchpad section (parallel agents) */
|
|
567
|
+
export interface SplitStepperContent {
|
|
568
|
+
agents: Array<{
|
|
569
|
+
id: string
|
|
570
|
+
name: string
|
|
571
|
+
steps: Array<{ id: string; label: string; status: 'done' | 'active' | 'pending' | 'skipped' | 'error' }>
|
|
572
|
+
status: 'done' | 'active' | 'pending' | 'error'
|
|
573
|
+
}>
|
|
574
|
+
/** Final synthesis step (activates when all agents are done) */
|
|
575
|
+
synthesis?: {
|
|
576
|
+
status: 'done' | 'active' | 'pending'
|
|
577
|
+
label: string
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
/** Content for agent_handoff scratchpad section */
|
|
582
|
+
export interface AgentHandoffContent {
|
|
583
|
+
from: { id: string; name: string; avatar?: string }
|
|
584
|
+
to: { id: string; name: string; avatar?: string }
|
|
585
|
+
/** Data keys transferred */
|
|
586
|
+
dataKeys?: string[]
|
|
587
|
+
/** Summary of what was transferred */
|
|
588
|
+
summary?: string
|
|
589
|
+
/** Count of items transferred */
|
|
590
|
+
itemCount?: number
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
/** Content for briefing_diff scratchpad section */
|
|
594
|
+
export interface BriefingDiffContent {
|
|
595
|
+
/** Title of the comparison */
|
|
596
|
+
title?: string
|
|
597
|
+
/** When was the previous version */
|
|
598
|
+
previousDate?: string
|
|
599
|
+
/** When is the current version */
|
|
600
|
+
currentDate?: string
|
|
601
|
+
/** List of changes */
|
|
602
|
+
changes: Array<{
|
|
603
|
+
type: 'added' | 'removed' | 'changed'
|
|
604
|
+
label: string
|
|
605
|
+
/** Previous value (for 'changed' and 'removed') */
|
|
606
|
+
previous?: string
|
|
607
|
+
/** Current value (for 'changed' and 'added') */
|
|
608
|
+
current?: string
|
|
609
|
+
}>
|
|
610
|
+
/** Summary stats */
|
|
611
|
+
stats?: { added: number; removed: number; changed: number }
|
|
612
|
+
}
|
package/src/types/index.ts
CHANGED
|
@@ -323,6 +323,9 @@ export interface ShowWhenCondition {
|
|
|
323
323
|
/**
|
|
324
324
|
* Form field parameters
|
|
325
325
|
*/
|
|
326
|
+
/** How a prefilled value was obtained */
|
|
327
|
+
export type PrefillSource = 'user' | 'detected' | 'inferred' | 'default'
|
|
328
|
+
|
|
326
329
|
export interface FormFieldParams {
|
|
327
330
|
name: string
|
|
328
331
|
type: FormFieldType
|
|
@@ -333,6 +336,16 @@ export interface FormFieldParams {
|
|
|
333
336
|
disabled?: boolean
|
|
334
337
|
defaultValue?: any
|
|
335
338
|
|
|
339
|
+
// Prefill — pre-populated value with source tracking (v4.2.0)
|
|
340
|
+
/** Pre-filled value. Field renders with this value instead of empty. */
|
|
341
|
+
prefill?: string | string[]
|
|
342
|
+
/** Human-readable display for prefilled value (e.g. "Rhône — déduit de Lyon") */
|
|
343
|
+
displayHint?: string
|
|
344
|
+
/** How this value was obtained. Drives visual treatment. */
|
|
345
|
+
source?: PrefillSource
|
|
346
|
+
/** If true, field is visually muted (but still editable on click/focus). */
|
|
347
|
+
muted?: boolean
|
|
348
|
+
|
|
336
349
|
// Text/textarea specific
|
|
337
350
|
minLength?: number
|
|
338
351
|
maxLength?: number
|
|
@@ -428,6 +441,11 @@ export interface FormComponentParams {
|
|
|
428
441
|
* Custom CSS class (Sprint 7)
|
|
429
442
|
*/
|
|
430
443
|
className?: string
|
|
444
|
+
/**
|
|
445
|
+
* Auto-submit countdown in ms when all required fields are prefilled (v4.2.0).
|
|
446
|
+
* Shows a countdown with cancel button. Stops if user interacts.
|
|
447
|
+
*/
|
|
448
|
+
autoSubmitDelay?: number
|
|
431
449
|
}
|
|
432
450
|
|
|
433
451
|
/**
|