@yarvelle/ui 0.1.0 → 0.1.2
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/index-B6FcwyCu.d.ts +163 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +686 -344
- package/dist/index.js.map +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/index-DLbrj3Po.d.ts +0 -90
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { S as SlotContribution } from './types-CP_CDg6G.js';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
type MessageRole = 'user' | 'assistant' | 'system';
|
|
5
|
+
type MessageStatus = 'sending' | 'sent' | 'streaming' | 'error';
|
|
6
|
+
type RiskLevel = 'info' | 'warn' | 'danger';
|
|
7
|
+
interface ChatAttachment {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
mimeType?: string;
|
|
11
|
+
sizeBytes?: number;
|
|
12
|
+
url?: string;
|
|
13
|
+
}
|
|
14
|
+
interface ToolCallTrace {
|
|
15
|
+
id: string;
|
|
16
|
+
toolName: string;
|
|
17
|
+
input?: Record<string, unknown> | string;
|
|
18
|
+
output?: Record<string, unknown> | string;
|
|
19
|
+
status: 'running' | 'success' | 'error';
|
|
20
|
+
durationMs?: number;
|
|
21
|
+
}
|
|
22
|
+
interface ExecutionPlanStep {
|
|
23
|
+
id: string;
|
|
24
|
+
description: string;
|
|
25
|
+
status: 'pending' | 'running' | 'completed' | 'failed';
|
|
26
|
+
}
|
|
27
|
+
interface ApprovalRequest {
|
|
28
|
+
id: string;
|
|
29
|
+
level: RiskLevel;
|
|
30
|
+
label: string;
|
|
31
|
+
details?: Record<string, unknown>;
|
|
32
|
+
status?: 'pending' | 'approved' | 'rejected';
|
|
33
|
+
}
|
|
34
|
+
interface ChatMessage {
|
|
35
|
+
id: string;
|
|
36
|
+
role: MessageRole;
|
|
37
|
+
content: string;
|
|
38
|
+
createdAt: string;
|
|
39
|
+
status?: MessageStatus;
|
|
40
|
+
authorName?: string;
|
|
41
|
+
avatarUrl?: string;
|
|
42
|
+
attachments?: ChatAttachment[];
|
|
43
|
+
toolTraces?: ToolCallTrace[];
|
|
44
|
+
executionPlan?: ExecutionPlanStep[];
|
|
45
|
+
approval?: ApprovalRequest;
|
|
46
|
+
roundtable?: DeliberationRoundtableData;
|
|
47
|
+
reasoning?: string;
|
|
48
|
+
}
|
|
49
|
+
type DeliberationCritiqueStance = 'endorse' | 'complement' | 'amend' | 'conflict';
|
|
50
|
+
type DeliberationIssueType = 'resource_overbudget' | 'contraindication' | 'dependency_order' | 'synergy' | 'risk_exposure' | string;
|
|
51
|
+
type StagedActionRiskTier = 'read' | 'write_local' | 'write_external' | 'irreversible';
|
|
52
|
+
interface DeliberationConstraint {
|
|
53
|
+
id: string;
|
|
54
|
+
description?: string;
|
|
55
|
+
unit: string;
|
|
56
|
+
limit_value?: number | null;
|
|
57
|
+
limit_source?: 'user' | 'profile' | null;
|
|
58
|
+
total_claimed?: number;
|
|
59
|
+
skipped?: boolean;
|
|
60
|
+
}
|
|
61
|
+
interface StagedActionItem {
|
|
62
|
+
id?: string;
|
|
63
|
+
agent_id: string;
|
|
64
|
+
tool_name: string;
|
|
65
|
+
tool_args?: Record<string, unknown>;
|
|
66
|
+
rationale?: string;
|
|
67
|
+
risk_tier: StagedActionRiskTier;
|
|
68
|
+
status?: 'pending' | 'approved' | 'rejected';
|
|
69
|
+
}
|
|
70
|
+
interface DeliberationSpecialistProposal {
|
|
71
|
+
agent_id: string;
|
|
72
|
+
round_num: number;
|
|
73
|
+
scope?: string;
|
|
74
|
+
summary: string;
|
|
75
|
+
recommendations?: string[];
|
|
76
|
+
resource_claims?: Record<string, number>;
|
|
77
|
+
resource_claim_units?: Record<string, string>;
|
|
78
|
+
dependencies?: string[];
|
|
79
|
+
staged_actions?: StagedActionItem[];
|
|
80
|
+
tainted?: boolean;
|
|
81
|
+
confidence?: number | null;
|
|
82
|
+
}
|
|
83
|
+
interface DeliberationPeerCritique {
|
|
84
|
+
reviewer_agent_id: string;
|
|
85
|
+
target_agent_id: string;
|
|
86
|
+
round_num: number;
|
|
87
|
+
stance: DeliberationCritiqueStance;
|
|
88
|
+
issue_type: DeliberationIssueType;
|
|
89
|
+
critique: string;
|
|
90
|
+
proposed_resolution: string;
|
|
91
|
+
resolved?: boolean;
|
|
92
|
+
}
|
|
93
|
+
interface DeliberationMinorityReportItem {
|
|
94
|
+
issue_type: string;
|
|
95
|
+
target_agent_id: string;
|
|
96
|
+
reviewer_agent_id: string;
|
|
97
|
+
target_position: string;
|
|
98
|
+
target_recommendations?: string[];
|
|
99
|
+
reviewer_critique: string;
|
|
100
|
+
reviewer_proposed_resolution: string;
|
|
101
|
+
}
|
|
102
|
+
interface DeliberationRoundtableData {
|
|
103
|
+
panel_id?: string;
|
|
104
|
+
title?: string;
|
|
105
|
+
agents: string[];
|
|
106
|
+
shared_constraints?: DeliberationConstraint[];
|
|
107
|
+
skipped_constraints?: string[];
|
|
108
|
+
proposals?: Record<number, Record<string, DeliberationSpecialistProposal>> | DeliberationSpecialistProposal[];
|
|
109
|
+
critiques?: Record<number, DeliberationPeerCritique[]> | DeliberationPeerCritique[];
|
|
110
|
+
staged_actions?: StagedActionItem[];
|
|
111
|
+
rounds_used?: number;
|
|
112
|
+
converged?: boolean;
|
|
113
|
+
termination_reason?: 'converged' | 'max_rounds' | 'budget' | 'cancelled' | string;
|
|
114
|
+
minority_reports?: DeliberationMinorityReportItem[];
|
|
115
|
+
open_amendments?: DeliberationPeerCritique[];
|
|
116
|
+
}
|
|
117
|
+
interface DeliberationRoundtableProps extends DeliberationRoundtableData {
|
|
118
|
+
className?: string;
|
|
119
|
+
onApproveStagedAction?: (id: string, decision: 'approved' | 'rejected') => Promise<void> | void;
|
|
120
|
+
}
|
|
121
|
+
interface ChatSlotHooks {
|
|
122
|
+
beforeSend?: (content: string, attachments: ChatAttachment[]) => Promise<boolean | string>;
|
|
123
|
+
composerAction?: React.ReactNode;
|
|
124
|
+
messageRenderer?: (message: ChatMessage) => React.ReactNode;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
type ProfileRole = 'owner' | 'steward' | 'member' | 'viewer';
|
|
128
|
+
interface ProfileMember {
|
|
129
|
+
id: string;
|
|
130
|
+
displayName: string;
|
|
131
|
+
relationship?: string;
|
|
132
|
+
role: ProfileRole;
|
|
133
|
+
avatarUrl?: string;
|
|
134
|
+
colorToken?: string;
|
|
135
|
+
dateOfBirth?: string;
|
|
136
|
+
teenTransitionDate?: string;
|
|
137
|
+
scopes?: string[];
|
|
138
|
+
}
|
|
139
|
+
interface ScopePermission {
|
|
140
|
+
domain: string;
|
|
141
|
+
read: boolean;
|
|
142
|
+
write: boolean;
|
|
143
|
+
approve: boolean;
|
|
144
|
+
}
|
|
145
|
+
interface ViewerInviteData {
|
|
146
|
+
email: string;
|
|
147
|
+
role: 'viewer';
|
|
148
|
+
scopes: string[];
|
|
149
|
+
expiresInDays: number;
|
|
150
|
+
}
|
|
151
|
+
interface ShareBundleData {
|
|
152
|
+
id: string;
|
|
153
|
+
name: string;
|
|
154
|
+
scopes: string[];
|
|
155
|
+
requiresPasscode?: boolean;
|
|
156
|
+
expiresAt?: string;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
declare function createMockSlotContribution(overrides?: Partial<SlotContribution>): SlotContribution;
|
|
160
|
+
declare function createMockProfile(overrides?: Partial<ProfileMember>): ProfileMember;
|
|
161
|
+
declare function createMockChatMessage(overrides?: Partial<ChatMessage>): ChatMessage;
|
|
162
|
+
|
|
163
|
+
export { type ApprovalRequest as A, type ChatMessage as C, type DeliberationRoundtableProps as D, type ExecutionPlanStep as E, type MessageRole as M, type ProfileMember as P, type RiskLevel as R, type ScopePermission as S, type ToolCallTrace as T, type ViewerInviteData as V, type ChatAttachment as a, type ChatSlotHooks as b, type ShareBundleData as c, type DeliberationConstraint as d, type DeliberationCritiqueStance as e, type DeliberationIssueType as f, type DeliberationMinorityReportItem as g, type DeliberationPeerCritique as h, type DeliberationRoundtableData as i, type DeliberationSpecialistProposal as j, type MessageStatus as k, type ProfileRole as l, type StagedActionItem as m, type StagedActionRiskTier as n, createMockChatMessage as o, createMockProfile as p, createMockSlotContribution as q };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ export { UiColorToken, UiRadiusToken, UiShadowToken, UiSpaceToken, UiTextSizeTok
|
|
|
2
2
|
export { default as yarvellePreset } from './tokens/tailwind-preset.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default from 'react';
|
|
5
|
-
import { C as ChatMessage, a as ChatAttachment, b as ChatSlotHooks, R as RiskLevel, T as ToolCallTrace, E as ExecutionPlanStep, P as ProfileMember, S as ScopePermission, V as ViewerInviteData, c as ShareBundleData } from './index-
|
|
6
|
-
export { A as ApprovalRequest, M as MessageRole,
|
|
5
|
+
import { C as ChatMessage, a as ChatAttachment, b as ChatSlotHooks, R as RiskLevel, T as ToolCallTrace, E as ExecutionPlanStep, D as DeliberationRoundtableProps, P as ProfileMember, S as ScopePermission, V as ViewerInviteData, c as ShareBundleData } from './index-B6FcwyCu.js';
|
|
6
|
+
export { A as ApprovalRequest, d as DeliberationConstraint, e as DeliberationCritiqueStance, f as DeliberationIssueType, g as DeliberationMinorityReportItem, h as DeliberationPeerCritique, i as DeliberationRoundtableData, j as DeliberationSpecialistProposal, M as MessageRole, k as MessageStatus, l as ProfileRole, m as StagedActionItem, n as StagedActionRiskTier, o as createMockChatMessage, p as createMockProfile, q as createMockSlotContribution } from './index-B6FcwyCu.js';
|
|
7
7
|
import { S as SlotContribution, a as SlotProps } from './types-CP_CDg6G.js';
|
|
8
8
|
export { A as AudienceBand, F as FilterSlotsOptions, I as IconId, M as MessageId, P as PackUi, b as ScopeId, c as SlotId, d as definePackUi, f as filterSlotContributions, i as isScopeSatisfied, m as matchesScopePattern } from './types-CP_CDg6G.js';
|
|
9
9
|
export { SlotRenderer, SlotRendererProps } from './slots/index.js';
|
|
@@ -357,6 +357,8 @@ interface ModelSelectorProps {
|
|
|
357
357
|
}
|
|
358
358
|
declare function ModelSelector({ models, selectedModelId, onSelectModel, className, }: ModelSelectorProps): React.JSX.Element;
|
|
359
359
|
|
|
360
|
+
declare function DeliberationRoundtable({ panel_id, title, agents, shared_constraints, skipped_constraints, proposals, critiques, staged_actions, rounds_used, converged, termination_reason, minority_reports, open_amendments, className, onApproveStagedAction, }: DeliberationRoundtableProps): React.JSX.Element;
|
|
361
|
+
|
|
360
362
|
interface NoteItem {
|
|
361
363
|
id: string;
|
|
362
364
|
title: string;
|
|
@@ -703,4 +705,4 @@ declare const useProduct: () => ProductConfig;
|
|
|
703
705
|
declare const useStorageNamespace: () => string;
|
|
704
706
|
declare const useI18n: () => I18nContextValue;
|
|
705
707
|
|
|
706
|
-
export { ActivityLogDrawer, type ActivityLogDrawerProps, ActivityTimeline, type ActivityTimelineProps, AppLayout, type AppLayoutProps, AppRail, type AppRailProps, ApprovalCard, type ApprovalCardProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeVariant, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Calendar, type CalendarEvent, type CalendarProps, type CalendarViewMode, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Chat, ChatAttachment, ChatAttachments, ChatComposer, type ChatComposerProps, ChatConnected, type ChatConnectedProps, ChatMarkdown, type ChatMarkdownProps, ChatMessage, ChatMessageItem, type ChatMessageProps, ChatRoot, type ChatRootProps, ChatSlotHooks, ChatThread, type ChatThreadProps, Chip, type ChipProps, type ChipScope, CodeBlock, type CodeBlockProps, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, type DialogProps, DialogTitle, DialogTrigger, type DialogTriggerProps, EmptyState, type EmptyStateProps, ExecutionPlanCard, type ExecutionPlanCardProps, ExecutionPlanStep, type I18nContextValue, InlineError, type InlineErrorProps, MemberCard, type MemberCardProps, type MemberColorSlot, Menu, MenuContent, type MenuContentProps, MenuItem, type MenuItemProps, type MenuProps, MenuSeparator, MenuTrigger, type MenuTriggerProps, MermaidDiagram, type MermaidDiagramProps, MessageToolbar, type MessageToolbarProps, MobileTabBar, type MobileTabBarProps, MobileTopBar, type MobileTopBarProps, type ModelOption, ModelSelector, type ModelSelectorProps, type NoteFilterOption, type NoteItem, NoteView, type NoteViewProps, NotesList, type NotesListProps, NotificationCenter, type NotificationCenterProps, type NotificationLevel, type NotificationMessage, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, type ProductConfig, ProfileEditModal, type ProfileEditModalProps, ProfileMember, ProfileSwitcher, type ProfileSwitcherProps, type RailItem, RecordSearch, type RecordSearchProps, type ReminderItem, Reminders, type RemindersProps, RiskLevel, RoleMatrix, type RoleMatrixProps, type RoutineItem, Routines, type RoutinesProps, ScheduleAgenda, type ScheduleAgendaProps, ScopePermission, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SettingsLayout, type SettingsLayoutProps, type SettingsSection, SettingsSectionSlotRenderer, type SettingsSectionSlotRendererProps, ShareBundle, ShareBundleData, type ShareBundleProps, Sheet, SheetClose, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, type SheetProps, type SheetSide, SheetTitle, SheetTrigger, type SheetTriggerProps, Skeleton, type SkeletonProps, SlotContribution, SlotProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, TaskItem, type TaskItemData, type TaskItemProps, TaskList, type TaskListProps, type TaskPriority, TeenHandoverBanner, type TeenHandoverBannerProps, type ThemeMode, ThinkingIndicator, type ThinkingIndicatorProps, type TimelineEvent, type ToastItem, ToastProvider, Toaster, type ToasterProps, ToolCallTrace, ToolTraceCard, type ToolTraceCardProps, type UiContextValue, UiProvider, type UiProviderProps, ViewerInvite, ViewerInviteData, type ViewerInviteProps, useChatContext, useI18n, useProduct, useStorageNamespace, useTheme, useToast, useUi };
|
|
708
|
+
export { ActivityLogDrawer, type ActivityLogDrawerProps, ActivityTimeline, type ActivityTimelineProps, AppLayout, type AppLayoutProps, AppRail, type AppRailProps, ApprovalCard, type ApprovalCardProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeVariant, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Calendar, type CalendarEvent, type CalendarProps, type CalendarViewMode, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Chat, ChatAttachment, ChatAttachments, ChatComposer, type ChatComposerProps, ChatConnected, type ChatConnectedProps, ChatMarkdown, type ChatMarkdownProps, ChatMessage, ChatMessageItem, type ChatMessageProps, ChatRoot, type ChatRootProps, ChatSlotHooks, ChatThread, type ChatThreadProps, Chip, type ChipProps, type ChipScope, CodeBlock, type CodeBlockProps, DeliberationRoundtable, DeliberationRoundtableProps, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, type DialogProps, DialogTitle, DialogTrigger, type DialogTriggerProps, EmptyState, type EmptyStateProps, ExecutionPlanCard, type ExecutionPlanCardProps, ExecutionPlanStep, type I18nContextValue, InlineError, type InlineErrorProps, MemberCard, type MemberCardProps, type MemberColorSlot, Menu, MenuContent, type MenuContentProps, MenuItem, type MenuItemProps, type MenuProps, MenuSeparator, MenuTrigger, type MenuTriggerProps, MermaidDiagram, type MermaidDiagramProps, MessageToolbar, type MessageToolbarProps, MobileTabBar, type MobileTabBarProps, MobileTopBar, type MobileTopBarProps, type ModelOption, ModelSelector, type ModelSelectorProps, type NoteFilterOption, type NoteItem, NoteView, type NoteViewProps, NotesList, type NotesListProps, NotificationCenter, type NotificationCenterProps, type NotificationLevel, type NotificationMessage, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, type ProductConfig, ProfileEditModal, type ProfileEditModalProps, ProfileMember, ProfileSwitcher, type ProfileSwitcherProps, type RailItem, RecordSearch, type RecordSearchProps, type ReminderItem, Reminders, type RemindersProps, RiskLevel, RoleMatrix, type RoleMatrixProps, DeliberationRoundtable as RoundtableCard, DeliberationRoundtableProps as RoundtableCardProps, type RoutineItem, Routines, type RoutinesProps, ScheduleAgenda, type ScheduleAgendaProps, ScopePermission, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SettingsLayout, type SettingsLayoutProps, type SettingsSection, SettingsSectionSlotRenderer, type SettingsSectionSlotRendererProps, ShareBundle, ShareBundleData, type ShareBundleProps, Sheet, SheetClose, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, type SheetProps, type SheetSide, SheetTitle, SheetTrigger, type SheetTriggerProps, Skeleton, type SkeletonProps, SlotContribution, SlotProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, TaskItem, type TaskItemData, type TaskItemProps, TaskList, type TaskListProps, type TaskPriority, TeenHandoverBanner, type TeenHandoverBannerProps, type ThemeMode, ThinkingIndicator, type ThinkingIndicatorProps, type TimelineEvent, type ToastItem, ToastProvider, Toaster, type ToasterProps, ToolCallTrace, ToolTraceCard, type ToolTraceCardProps, type UiContextValue, UiProvider, type UiProviderProps, ViewerInvite, ViewerInviteData, type ViewerInviteProps, useChatContext, useI18n, useProduct, useStorageNamespace, useTheme, useToast, useUi };
|