agentic-ui-kit 0.9.0 → 0.9.1
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/types/core/src/blocks.d.ts +1 -1
- package/dist/types/core/src/events.d.ts +1 -1
- package/dist/types/core/src/index.d.ts +9 -9
- package/dist/types/core/src/reduce.d.ts +2 -2
- package/dist/types/core/src/sse.d.ts +1 -1
- package/dist/types/core/src/ui-components.d.ts +1 -1
- package/dist/types/core/src/ui-markup.d.ts +1 -1
- package/dist/types/core/src/visuals.d.ts +11 -11
- package/dist/types/react/src/components/approval-card.d.ts +1 -1
- package/dist/types/react/src/components/ask-user.d.ts +1 -1
- package/dist/types/react/src/components/chat-list.d.ts +1 -1
- package/dist/types/react/src/components/composer.d.ts +1 -1
- package/dist/types/react/src/components/extensions.d.ts +1 -1
- package/dist/types/react/src/components/message-list.d.ts +1 -1
- package/dist/types/react/src/components/messages.d.ts +1 -1
- package/dist/types/react/src/components/tool-prompt.d.ts +1 -1
- package/dist/types/react/src/components/tools.d.ts +2 -2
- package/dist/types/react/src/hooks/sse-transport.d.ts +1 -1
- package/dist/types/react/src/hooks/use-chat.d.ts +1 -1
- package/dist/types/react/src/index.d.ts +86 -86
- package/dist/types/react/src/primitives/chat-theme.d.ts +3 -3
- package/dist/types/react/src/views/chat-transcript.d.ts +1 -1
- package/dist/types/react/src/views/chat-view.d.ts +3 -3
- package/dist/types/react/src/views/sidebar.d.ts +1 -1
- package/dist/types/react/src/visuals/index.d.ts +8 -8
- package/dist/types/react/src/visuals/provider.d.ts +3 -3
- package/dist/types/react/src/visuals/ui-components.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Part, ThinkingPart, ToolCallPart } from "./types";
|
|
1
|
+
import type { Part, ThinkingPart, ToolCallPart } from "./types.js";
|
|
2
2
|
export type ActivityPart = ThinkingPart | ToolCallPart;
|
|
3
3
|
/**
|
|
4
4
|
* How an assistant message is laid out: runs of consecutive thinking and tool-call parts fold into one
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MessageStatus, Part, PartStatus, Usage } from "./types";
|
|
1
|
+
import type { MessageStatus, Part, PartStatus, Usage } from "./types.js";
|
|
2
2
|
/**
|
|
3
3
|
* The stream a backend sends for one run (one assistant reply). Sent as server-sent events: the SSE `id`
|
|
4
4
|
* is `seq`, the `data` is the JSON event. Any backend in any language that emits these works with the UI.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export type * from "./types";
|
|
2
|
-
export type * from "./events";
|
|
3
|
-
export { applyEvent, reduceEvents, estimateTokens, outputTokens, activityTokens, resolveEffort, awaitingToolCalls, settleToolCall } from "./reduce";
|
|
4
|
-
export { toBlocks, isActivityPart } from "./blocks";
|
|
5
|
-
export type { Block, ActivityPart } from "./blocks";
|
|
6
|
-
export { readEventStream, formatEvent } from "./sse";
|
|
7
|
-
export { parsePartialJson, salvageJson } from "./partial-json";
|
|
8
|
-
export { askUserTool, readAskUserInput, readAskUserResult } from "./ask-user";
|
|
9
|
-
export type { AskUserKind, AskUserQuestion, AskUserInput, AskUserAnswer, AskUserResult } from "./ask-user";
|
|
1
|
+
export type * from "./types.js";
|
|
2
|
+
export type * from "./events.js";
|
|
3
|
+
export { applyEvent, reduceEvents, estimateTokens, outputTokens, activityTokens, resolveEffort, awaitingToolCalls, settleToolCall } from "./reduce.js";
|
|
4
|
+
export { toBlocks, isActivityPart } from "./blocks.js";
|
|
5
|
+
export type { Block, ActivityPart } from "./blocks.js";
|
|
6
|
+
export { readEventStream, formatEvent } from "./sse.js";
|
|
7
|
+
export { parsePartialJson, salvageJson } from "./partial-json.js";
|
|
8
|
+
export { askUserTool, readAskUserInput, readAskUserResult } from "./ask-user.js";
|
|
9
|
+
export type { AskUserKind, AskUserQuestion, AskUserInput, AskUserAnswer, AskUserResult } from "./ask-user.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { StreamEvent } from "./events";
|
|
2
|
-
import type { Message, ModelInfo, Part, ToolCallPart } from "./types";
|
|
1
|
+
import type { StreamEvent } from "./events.js";
|
|
2
|
+
import type { Message, ModelInfo, Part, ToolCallPart } from "./types.js";
|
|
3
3
|
/**
|
|
4
4
|
* Applies one stream event to the message it builds. Pure and immutable: returns the same object when the
|
|
5
5
|
* event changes nothing, so React can skip renders.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { StreamEvent } from "./events";
|
|
1
|
+
import type { StreamEvent } from "./events.js";
|
|
2
2
|
/**
|
|
3
3
|
* Reads a server-sent event stream of `StreamEvent`s. Each SSE message carries one JSON event in `data`;
|
|
4
4
|
* comments and messages without data (keep-alives) are skipped.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type JsonSchema, type UiComponentSpec } from "./ui-tree";
|
|
1
|
+
import { type JsonSchema, type UiComponentSpec } from "./ui-tree.js";
|
|
2
2
|
/**
|
|
3
3
|
* The specs by name, so a host can pick or adjust one: `{ ...uiSpecs.Card, description: "..." }`.
|
|
4
4
|
* Stack, Grid, Card, Heading, Text, Metric, List, Table, Badge, Progress, Checklist, Tabs, Show, Button.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* lenient where the intent is clear (JS-style objects, `{$state.k}`, `{"$state":"k"}`, text children) and
|
|
9
9
|
* tolerates a block cut short while it streams.
|
|
10
10
|
*/
|
|
11
|
-
import { type UiComponentSpec, type UiNode } from "./ui-tree";
|
|
11
|
+
import { type UiComponentSpec, type UiNode } from "./ui-tree.js";
|
|
12
12
|
export interface UiMarkup {
|
|
13
13
|
/** Top-level elements, in order. */
|
|
14
14
|
nodes: UiNode[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { widgetFrameLoader, widgetLoaderMessages } from "./widget-loader";
|
|
2
|
-
export { replacesProperty, replacesGuide, replacedId, resolveReplaces, withCallId } from "./replaces";
|
|
3
|
-
export { visualizeTool, visualizeGuide, checkWidgetCode } from "./visualize";
|
|
4
|
-
export type { VisualizeInput, WidgetCodeCheck } from "./visualize";
|
|
5
|
-
export { matchesSchema, schemaErrors, checkUiTree, isStateRef, renderUiTool, renderUiToolName, uiActionSchema } from "./ui-tree";
|
|
6
|
-
export type { UiNode, UiAction, RenderUiInput, UiComponentSpec, UiTreeCheck } from "./ui-tree";
|
|
7
|
-
export { parseUiMarkup, readUiValue, findUiBlocks, checkUiMarkup, checkUiMarkupCode, showUiTool, showUiToolName, uiMarkupGuide, uiMarkupLanguage } from "./ui-markup";
|
|
8
|
-
export type { UiMarkup, UiMarkupBlock, UiMarkupCheck, ShowUiInput } from "./ui-markup";
|
|
9
|
-
export type { UiTreeCheckOptions } from "./ui-tree";
|
|
10
|
-
export { uiSpecs, uiSpecGroups, uiSpecSet, uiComponentSpecs } from "./ui-components";
|
|
11
|
-
export type { UiSpecName, UiSpecPick, UiSpecSelection } from "./ui-components";
|
|
1
|
+
export { widgetFrameLoader, widgetLoaderMessages } from "./widget-loader.js";
|
|
2
|
+
export { replacesProperty, replacesGuide, replacedId, resolveReplaces, withCallId } from "./replaces.js";
|
|
3
|
+
export { visualizeTool, visualizeGuide, checkWidgetCode } from "./visualize.js";
|
|
4
|
+
export type { VisualizeInput, WidgetCodeCheck } from "./visualize.js";
|
|
5
|
+
export { matchesSchema, schemaErrors, checkUiTree, isStateRef, renderUiTool, renderUiToolName, uiActionSchema } from "./ui-tree.js";
|
|
6
|
+
export type { UiNode, UiAction, RenderUiInput, UiComponentSpec, UiTreeCheck } from "./ui-tree.js";
|
|
7
|
+
export { parseUiMarkup, readUiValue, findUiBlocks, checkUiMarkup, checkUiMarkupCode, showUiTool, showUiToolName, uiMarkupGuide, uiMarkupLanguage } from "./ui-markup.js";
|
|
8
|
+
export type { UiMarkup, UiMarkupBlock, UiMarkupCheck, ShowUiInput } from "./ui-markup.js";
|
|
9
|
+
export type { UiTreeCheckOptions } from "./ui-tree.js";
|
|
10
|
+
export { uiSpecs, uiSpecGroups, uiSpecSet, uiComponentSpecs } from "./ui-components.js";
|
|
11
|
+
export type { UiSpecName, UiSpecPick, UiSpecSelection } from "./ui-components.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ToolCallPart } from "../../../core/src/index.js";
|
|
2
|
-
import type { ToolPromptProps, ToolView } from "./tools";
|
|
2
|
+
import type { ToolPromptProps, ToolView } from "./tools.js";
|
|
3
3
|
/**
|
|
4
4
|
* The `ask_user` prompt: the model's questions one at a time with a pager, answered by clicking or the keyboard
|
|
5
5
|
* (number keys, arrows, Enter; Alt+arrows reorder a rank). Submits `{ answers }` (an `AskUserResult`) after the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
2
|
import type React from "react";
|
|
3
|
-
import { type DictationState } from "./dictation";
|
|
3
|
+
import { type DictationState } from "./dictation.js";
|
|
4
4
|
export interface ComposerProps {
|
|
5
5
|
onSubmit: (text: string) => void;
|
|
6
6
|
/** Shown as a stop button while `busy`. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Message, Part, ToolCallPart } from "../../../core/src/index.js";
|
|
2
|
-
import type { ToolViews } from "./tools";
|
|
2
|
+
import type { ToolViews } from "./tools.js";
|
|
3
3
|
import { type ComponentType, type ReactNode } from "react";
|
|
4
4
|
/** A fenced code block handed to a `codeBlocks` renderer. `id` is stable while the block streams. */
|
|
5
5
|
export interface CodeBlockRendererProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Message, Part } from "../../../core/src/index.js";
|
|
2
2
|
import { type ReactNode } from "react";
|
|
3
|
-
import { type Feedback, type MessageActions } from "./messages";
|
|
3
|
+
import { type Feedback, type MessageActions } from "./messages.js";
|
|
4
4
|
export interface MessageListProps {
|
|
5
5
|
messages: Message[];
|
|
6
6
|
onRetry?: (assistantId: string) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Message, type Part } from "../../../core/src/index.js";
|
|
2
2
|
import { type ReactNode } from "react";
|
|
3
|
-
import { type ChatLabels } from "../primitives/labels";
|
|
3
|
+
import { type ChatLabels } from "../primitives/labels.js";
|
|
4
4
|
/** "just now", "5 minutes ago", "21 hours ago", "yesterday", then a date. */
|
|
5
5
|
export declare function formatRelativeTime(iso: string, now?: number, labels?: ChatLabels): string;
|
|
6
6
|
/** Plain text of a message, for copy and read aloud. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ActivityPart, ToolCallPart } from "../../../core/src/index.js";
|
|
2
2
|
import { type ComponentType, type ReactNode } from "react";
|
|
3
|
-
import { type AgentTool } from "../hooks/agent";
|
|
4
|
-
import { type ChatLabels } from "../primitives/labels";
|
|
3
|
+
import { type AgentTool } from "../hooks/agent.js";
|
|
4
|
+
import { type ChatLabels } from "../primitives/labels.js";
|
|
5
5
|
/**
|
|
6
6
|
* How one kind of tool call shows up in an activity group. Registered by tool name; hosts add their own and
|
|
7
7
|
* override the built-in ones through `ChatProvider`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SendRequest, Transport } from "./use-chat";
|
|
1
|
+
import type { SendRequest, Transport } from "./use-chat.js";
|
|
2
2
|
export interface SseTransportOptions {
|
|
3
3
|
/** POST endpoint. Gets the request as JSON and answers with a `text/event-stream` of events. */
|
|
4
4
|
url: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AttachmentPart, type Message, type StreamEvent, type ToolCallPart } from "../../../core/src/index.js";
|
|
2
|
-
import { type AgentRegistry, type ToolSpec } from "./agent";
|
|
2
|
+
import { type AgentRegistry, type ToolSpec } from "./agent.js";
|
|
3
3
|
export interface SendRequest {
|
|
4
4
|
conversationId?: string;
|
|
5
5
|
/**
|
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
export { Button, IconButton } from "./primitives/button";
|
|
2
|
-
export type { ButtonProps, IconButtonProps } from "./primitives/button";
|
|
3
|
-
export { Badge } from "./primitives/badge";
|
|
4
|
-
export type { BadgeProps } from "./primitives/badge";
|
|
5
|
-
export { Tooltip } from "./primitives/tooltip";
|
|
6
|
-
export type { TooltipProps } from "./primitives/tooltip";
|
|
7
|
-
export { CopyButton } from "./primitives/copy-button";
|
|
8
|
-
export { SegmentedControl } from "./primitives/segmented-control";
|
|
9
|
-
export type { SegmentedControlProps, SegmentedOption } from "./primitives/segmented-control";
|
|
10
|
-
export { Caret } from "./primitives/caret";
|
|
11
|
-
export { Disclosure } from "./primitives/disclosure";
|
|
12
|
-
export type { DisclosureProps } from "./primitives/disclosure";
|
|
13
|
-
export { Popover, Menu, MenuItem, MenuSearch, MenuSection, MenuSeparator, MenuNote, MenuTrigger, SubmenuTrigger, DialogTrigger, PopoverTrigger } from "./primitives/menu";
|
|
14
|
-
export type { MenuSearchProps, PopoverProps, MenuProps, MenuItemProps, MenuSectionProps } from "./primitives/menu";
|
|
15
|
-
export { ContextMenu } from "./primitives/context-menu";
|
|
16
|
-
export type { ContextMenuProps } from "./primitives/context-menu";
|
|
17
|
-
export { Modal, Drawer } from "./primitives/overlay";
|
|
18
|
-
export type { ModalProps, DrawerProps } from "./primitives/overlay";
|
|
19
|
-
export { Panel } from "./primitives/panel";
|
|
20
|
-
export type { PanelProps } from "./primitives/panel";
|
|
21
|
-
export { CodeBlock } from "./primitives/code-block";
|
|
22
|
-
export type { CodeBlockProps } from "./primitives/code-block";
|
|
23
|
-
export { ChatTheme } from "./primitives/chat-theme";
|
|
24
|
-
export type { ChatThemeProps } from "./primitives/chat-theme";
|
|
25
|
-
export { defaultLabels, useLabels } from "./primitives/labels";
|
|
26
|
-
export type { ChatLabels } from "./primitives/labels";
|
|
27
|
-
export { defaultIcons, useIcons } from "./primitives/icons";
|
|
28
|
-
export type { ChatIcons } from "./primitives/icons";
|
|
29
|
-
export type { CodeThemes, ChatMotion } from "./primitives/appearance";
|
|
30
|
-
export { useChat, userMessage } from "./hooks/use-chat";
|
|
31
|
-
export type { Transport, SendRequest, SendOptions, UseChat, UseChatOptions, PendingApproval, PendingPrompt } from "./hooks/use-chat";
|
|
32
|
-
export { sseTransport, type SseTransportOptions, type SseRequestBody } from "./hooks/sse-transport";
|
|
33
|
-
export { AgentProvider, AgentRegistry, useAgentRegistry, useAgentSnapshot, useAgentTool, useAgentContext } from "./hooks/agent";
|
|
34
|
-
export type { AgentTool, ToolContext, ToolSpec, JsonSchema } from "./hooks/agent";
|
|
35
|
-
export { useSmoothText } from "./hooks/smooth-text";
|
|
36
|
-
export { useSidebar, useMediaQuery, DRAWER_QUERY } from "./hooks/sidebar-state";
|
|
37
|
-
export type { SidebarState } from "./hooks/sidebar-state";
|
|
38
|
-
export { UserMessage, AssistantMessage, formatRelativeTime, messageText } from "./components/messages";
|
|
39
|
-
export type { UserMessageProps, AssistantMessageProps, Feedback, MessageActions } from "./components/messages";
|
|
40
|
-
export { Markdown, MarkdownLinksProvider } from "./components/markdown";
|
|
41
|
-
export type { LinkList, MarkdownProps, RenderImage, RenderLink, RenderLinkList } from "./components/markdown";
|
|
42
|
-
export { ActivityGroup } from "./components/activity-group";
|
|
43
|
-
export type { ActivityGroupProps } from "./components/activity-group";
|
|
44
|
-
export { ToolViewsProvider, useToolView, useToolViews, activityLabel, activityHeading, commandTool, webSearchTool, webFetchTool, memoryTool, defaultToolViews, formatDuration, useChatTool, } from "./components/tools";
|
|
45
|
-
export type { ToolView, ToolViews, ToolPromptProps, SearchResult, ChatTool } from "./components/tools";
|
|
46
|
-
export { ChatExtensionsProvider, useChatExtensions, ChatInteractionProvider, useChatInteraction } from "./components/extensions";
|
|
47
|
-
export type { ChatExtensions, CodeBlockRendererProps, ToolCallGroups, ChatInteraction } from "./components/extensions";
|
|
48
|
-
export { AskUserPrompt, AskUserAnswers, askUserToolView } from "./components/ask-user";
|
|
49
|
-
export { ToolPromptCard } from "./components/tool-prompt";
|
|
50
|
-
export type { ToolPromptCardProps } from "./components/tool-prompt";
|
|
51
|
-
export { ApprovalCard } from "./components/approval-card";
|
|
52
|
-
export type { ApprovalCardProps } from "./components/approval-card";
|
|
53
|
-
export { TokenCounter, useCountUp, formatTokens } from "./components/token-counter";
|
|
54
|
-
export type { TokenCounterProps } from "./components/token-counter";
|
|
55
|
-
export { ContextPanel } from "./components/context-panel";
|
|
56
|
-
export type { ContextPanelProps } from "./components/context-panel";
|
|
57
|
-
export { ContextMeter } from "./components/context-meter";
|
|
58
|
-
export type { ContextMeterProps } from "./components/context-meter";
|
|
59
|
-
export { CopyField } from "./components/copy-field";
|
|
60
|
-
export type { CopyFieldProps } from "./components/copy-field";
|
|
61
|
-
export { Composer, AttachButton } from "./components/composer";
|
|
62
|
-
export { DictationButton, DictationControls, VoiceMeter, encodeWav, useDictation } from "./components/dictation";
|
|
63
|
-
export type { Dictation, DictationButtonProps, DictationState, UseDictationOptions, VoiceMeterProps } from "./components/dictation";
|
|
64
|
-
export { EffortSlider, EffortButton } from "./components/effort-slider";
|
|
65
|
-
export type { EffortSliderProps, EffortButtonProps } from "./components/effort-slider";
|
|
66
|
-
export type { ComposerProps, AttachButtonProps } from "./components/composer";
|
|
67
|
-
export { ModelPicker } from "./components/model-picker";
|
|
68
|
-
export type { ModelOption, ModelPickerProps } from "./components/model-picker";
|
|
69
|
-
export { useAttachments, AttachmentCard, AttachmentRow, PastedTextDialog } from "./components/attachments";
|
|
70
|
-
export type { DraftAttachment, UploadResult, UseAttachments, UseAttachmentsOptions, AttachmentCardData, AttachmentCardProps, AttachmentRowProps, PastedTextDialogProps, } from "./components/attachments";
|
|
71
|
-
export { MessageList } from "./components/message-list";
|
|
72
|
-
export type { MessageListProps } from "./components/message-list";
|
|
73
|
-
export { ChatHeader, ChatTitleMenu } from "./components/chat-header";
|
|
74
|
-
export type { ChatHeaderProps, ChatTitleMenuProps } from "./components/chat-header";
|
|
75
|
-
export { ChatNotice } from "./components/chat-notice";
|
|
76
|
-
export type { ChatNoticeProps } from "./components/chat-notice";
|
|
77
|
-
export { ChatList, ChatListRailButton } from "./components/chat-list";
|
|
78
|
-
export type { ChatListRailButtonProps, ChatListProps, ChatListSection, ChatListItem, ChatSummary, ProjectSummary } from "./components/chat-list";
|
|
79
|
-
export { ChatView, EmptyState } from "./views/chat-view";
|
|
80
|
-
export type { ChatViewProps, EmptyStateProps, Density } from "./views/chat-view";
|
|
81
|
-
export { ChatTranscript } from "./views/chat-transcript";
|
|
82
|
-
export type { ChatTranscriptProps } from "./views/chat-transcript";
|
|
83
|
-
export { AppShell, SidebarToggle } from "./views/app-shell";
|
|
84
|
-
export type { AppShellProps, SidebarToggleProps } from "./views/app-shell";
|
|
85
|
-
export { Sidebar, SidebarItem, SidebarList, SidebarUser } from "./views/sidebar";
|
|
86
|
-
export type { SidebarProps, SidebarItemProps, SidebarListProps, SidebarUserProps } from "./views/sidebar";
|
|
1
|
+
export { Button, IconButton } from "./primitives/button.js";
|
|
2
|
+
export type { ButtonProps, IconButtonProps } from "./primitives/button.js";
|
|
3
|
+
export { Badge } from "./primitives/badge.js";
|
|
4
|
+
export type { BadgeProps } from "./primitives/badge.js";
|
|
5
|
+
export { Tooltip } from "./primitives/tooltip.js";
|
|
6
|
+
export type { TooltipProps } from "./primitives/tooltip.js";
|
|
7
|
+
export { CopyButton } from "./primitives/copy-button.js";
|
|
8
|
+
export { SegmentedControl } from "./primitives/segmented-control.js";
|
|
9
|
+
export type { SegmentedControlProps, SegmentedOption } from "./primitives/segmented-control.js";
|
|
10
|
+
export { Caret } from "./primitives/caret.js";
|
|
11
|
+
export { Disclosure } from "./primitives/disclosure.js";
|
|
12
|
+
export type { DisclosureProps } from "./primitives/disclosure.js";
|
|
13
|
+
export { Popover, Menu, MenuItem, MenuSearch, MenuSection, MenuSeparator, MenuNote, MenuTrigger, SubmenuTrigger, DialogTrigger, PopoverTrigger } from "./primitives/menu.js";
|
|
14
|
+
export type { MenuSearchProps, PopoverProps, MenuProps, MenuItemProps, MenuSectionProps } from "./primitives/menu.js";
|
|
15
|
+
export { ContextMenu } from "./primitives/context-menu.js";
|
|
16
|
+
export type { ContextMenuProps } from "./primitives/context-menu.js";
|
|
17
|
+
export { Modal, Drawer } from "./primitives/overlay.js";
|
|
18
|
+
export type { ModalProps, DrawerProps } from "./primitives/overlay.js";
|
|
19
|
+
export { Panel } from "./primitives/panel.js";
|
|
20
|
+
export type { PanelProps } from "./primitives/panel.js";
|
|
21
|
+
export { CodeBlock } from "./primitives/code-block.js";
|
|
22
|
+
export type { CodeBlockProps } from "./primitives/code-block.js";
|
|
23
|
+
export { ChatTheme } from "./primitives/chat-theme.js";
|
|
24
|
+
export type { ChatThemeProps } from "./primitives/chat-theme.js";
|
|
25
|
+
export { defaultLabels, useLabels } from "./primitives/labels.js";
|
|
26
|
+
export type { ChatLabels } from "./primitives/labels.js";
|
|
27
|
+
export { defaultIcons, useIcons } from "./primitives/icons.js";
|
|
28
|
+
export type { ChatIcons } from "./primitives/icons.js";
|
|
29
|
+
export type { CodeThemes, ChatMotion } from "./primitives/appearance.js";
|
|
30
|
+
export { useChat, userMessage } from "./hooks/use-chat.js";
|
|
31
|
+
export type { Transport, SendRequest, SendOptions, UseChat, UseChatOptions, PendingApproval, PendingPrompt } from "./hooks/use-chat.js";
|
|
32
|
+
export { sseTransport, type SseTransportOptions, type SseRequestBody } from "./hooks/sse-transport.js";
|
|
33
|
+
export { AgentProvider, AgentRegistry, useAgentRegistry, useAgentSnapshot, useAgentTool, useAgentContext } from "./hooks/agent.js";
|
|
34
|
+
export type { AgentTool, ToolContext, ToolSpec, JsonSchema } from "./hooks/agent.js";
|
|
35
|
+
export { useSmoothText } from "./hooks/smooth-text.js";
|
|
36
|
+
export { useSidebar, useMediaQuery, DRAWER_QUERY } from "./hooks/sidebar-state.js";
|
|
37
|
+
export type { SidebarState } from "./hooks/sidebar-state.js";
|
|
38
|
+
export { UserMessage, AssistantMessage, formatRelativeTime, messageText } from "./components/messages.js";
|
|
39
|
+
export type { UserMessageProps, AssistantMessageProps, Feedback, MessageActions } from "./components/messages.js";
|
|
40
|
+
export { Markdown, MarkdownLinksProvider } from "./components/markdown.js";
|
|
41
|
+
export type { LinkList, MarkdownProps, RenderImage, RenderLink, RenderLinkList } from "./components/markdown.js";
|
|
42
|
+
export { ActivityGroup } from "./components/activity-group.js";
|
|
43
|
+
export type { ActivityGroupProps } from "./components/activity-group.js";
|
|
44
|
+
export { ToolViewsProvider, useToolView, useToolViews, activityLabel, activityHeading, commandTool, webSearchTool, webFetchTool, memoryTool, defaultToolViews, formatDuration, useChatTool, } from "./components/tools.js";
|
|
45
|
+
export type { ToolView, ToolViews, ToolPromptProps, SearchResult, ChatTool } from "./components/tools.js";
|
|
46
|
+
export { ChatExtensionsProvider, useChatExtensions, ChatInteractionProvider, useChatInteraction } from "./components/extensions.js";
|
|
47
|
+
export type { ChatExtensions, CodeBlockRendererProps, ToolCallGroups, ChatInteraction } from "./components/extensions.js";
|
|
48
|
+
export { AskUserPrompt, AskUserAnswers, askUserToolView } from "./components/ask-user.js";
|
|
49
|
+
export { ToolPromptCard } from "./components/tool-prompt.js";
|
|
50
|
+
export type { ToolPromptCardProps } from "./components/tool-prompt.js";
|
|
51
|
+
export { ApprovalCard } from "./components/approval-card.js";
|
|
52
|
+
export type { ApprovalCardProps } from "./components/approval-card.js";
|
|
53
|
+
export { TokenCounter, useCountUp, formatTokens } from "./components/token-counter.js";
|
|
54
|
+
export type { TokenCounterProps } from "./components/token-counter.js";
|
|
55
|
+
export { ContextPanel } from "./components/context-panel.js";
|
|
56
|
+
export type { ContextPanelProps } from "./components/context-panel.js";
|
|
57
|
+
export { ContextMeter } from "./components/context-meter.js";
|
|
58
|
+
export type { ContextMeterProps } from "./components/context-meter.js";
|
|
59
|
+
export { CopyField } from "./components/copy-field.js";
|
|
60
|
+
export type { CopyFieldProps } from "./components/copy-field.js";
|
|
61
|
+
export { Composer, AttachButton } from "./components/composer.js";
|
|
62
|
+
export { DictationButton, DictationControls, VoiceMeter, encodeWav, useDictation } from "./components/dictation.js";
|
|
63
|
+
export type { Dictation, DictationButtonProps, DictationState, UseDictationOptions, VoiceMeterProps } from "./components/dictation.js";
|
|
64
|
+
export { EffortSlider, EffortButton } from "./components/effort-slider.js";
|
|
65
|
+
export type { EffortSliderProps, EffortButtonProps } from "./components/effort-slider.js";
|
|
66
|
+
export type { ComposerProps, AttachButtonProps } from "./components/composer.js";
|
|
67
|
+
export { ModelPicker } from "./components/model-picker.js";
|
|
68
|
+
export type { ModelOption, ModelPickerProps } from "./components/model-picker.js";
|
|
69
|
+
export { useAttachments, AttachmentCard, AttachmentRow, PastedTextDialog } from "./components/attachments.js";
|
|
70
|
+
export type { DraftAttachment, UploadResult, UseAttachments, UseAttachmentsOptions, AttachmentCardData, AttachmentCardProps, AttachmentRowProps, PastedTextDialogProps, } from "./components/attachments.js";
|
|
71
|
+
export { MessageList } from "./components/message-list.js";
|
|
72
|
+
export type { MessageListProps } from "./components/message-list.js";
|
|
73
|
+
export { ChatHeader, ChatTitleMenu } from "./components/chat-header.js";
|
|
74
|
+
export type { ChatHeaderProps, ChatTitleMenuProps } from "./components/chat-header.js";
|
|
75
|
+
export { ChatNotice } from "./components/chat-notice.js";
|
|
76
|
+
export type { ChatNoticeProps } from "./components/chat-notice.js";
|
|
77
|
+
export { ChatList, ChatListRailButton } from "./components/chat-list.js";
|
|
78
|
+
export type { ChatListRailButtonProps, ChatListProps, ChatListSection, ChatListItem, ChatSummary, ProjectSummary } from "./components/chat-list.js";
|
|
79
|
+
export { ChatView, EmptyState } from "./views/chat-view.js";
|
|
80
|
+
export type { ChatViewProps, EmptyStateProps, Density } from "./views/chat-view.js";
|
|
81
|
+
export { ChatTranscript } from "./views/chat-transcript.js";
|
|
82
|
+
export type { ChatTranscriptProps } from "./views/chat-transcript.js";
|
|
83
|
+
export { AppShell, SidebarToggle } from "./views/app-shell.js";
|
|
84
|
+
export type { AppShellProps, SidebarToggleProps } from "./views/app-shell.js";
|
|
85
|
+
export { Sidebar, SidebarItem, SidebarList, SidebarUser } from "./views/sidebar.js";
|
|
86
|
+
export type { SidebarProps, SidebarItemProps, SidebarListProps, SidebarUserProps } from "./views/sidebar.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
import { type ChatMotion, type CodeThemes } from "./appearance";
|
|
3
|
-
import { type ChatIcons } from "./icons";
|
|
4
|
-
import { type ChatLabels } from "./labels";
|
|
2
|
+
import { type ChatMotion, type CodeThemes } from "./appearance.js";
|
|
3
|
+
import { type ChatIcons } from "./icons.js";
|
|
4
|
+
import { type ChatLabels } from "./labels.js";
|
|
5
5
|
export interface ChatThemeProps {
|
|
6
6
|
/** Value for `data-chat-theme`, matched by the host's theme CSS. */
|
|
7
7
|
theme?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Message, Part } from "../../../core/src/index.js";
|
|
2
2
|
import { type ReactNode } from "react";
|
|
3
|
-
import { type Density } from "./chat-view";
|
|
3
|
+
import { type Density } from "./chat-view.js";
|
|
4
4
|
export interface ChatTranscriptProps {
|
|
5
5
|
messages: Message[];
|
|
6
6
|
renderPart?: (part: Part) => ReactNode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Message, Part } from "../../../core/src/index.js";
|
|
2
2
|
import { type CSSProperties, type ReactNode } from "react";
|
|
3
|
-
import type { PendingApproval, PendingPrompt } from "../hooks/use-chat";
|
|
4
|
-
import { type ComposerProps } from "../components/composer";
|
|
5
|
-
import type { Feedback, MessageActions } from "../components/messages";
|
|
3
|
+
import type { PendingApproval, PendingPrompt } from "../hooks/use-chat.js";
|
|
4
|
+
import { type ComposerProps } from "../components/composer.js";
|
|
5
|
+
import type { Feedback, MessageActions } from "../components/messages.js";
|
|
6
6
|
export type Density = "full" | "panel" | "inline";
|
|
7
7
|
/**
|
|
8
8
|
* Column defaults per density; `contentWidth` / `contentPadding` override them. Only the message size changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
-
import { type PopoverProps } from "../primitives/menu";
|
|
2
|
+
import { type PopoverProps } from "../primitives/menu.js";
|
|
3
3
|
export interface SidebarProps {
|
|
4
4
|
/** Name or logo at the top left; hidden when collapsed. */
|
|
5
5
|
brand?: ReactNode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { VisualsProvider, visualToolViews } from "./provider";
|
|
2
|
-
export type { VisualsProviderProps } from "./provider";
|
|
3
|
-
export { WidgetFrame, WidgetHostProvider, useWidgetHost, WidgetPartView, widgetToolView, readVisualizeInput, widgetCsp, intersectAllow, openInNewTab, WIDGET_MAX_HEIGHT } from "./widget-frame";
|
|
4
|
-
export type { WidgetFrameProps, WidgetToolInput, WidgetHost, WidgetAllow, WidgetResource } from "./widget-frame";
|
|
5
|
-
export { UiComponentsProvider, UiTree, UiMarkupBlock, useUiMarkupLanguage, useUiAction, useUiState, htmlComponent, uiTreeToolView, uiMarkupToolView, readTreeInput } from "./ui-tree";
|
|
6
|
-
export type { UiComponent, UiStateStore, UiTreeProps, UiToolViewOptions } from "./ui-tree";
|
|
7
|
-
export { uiComponents, uiComponentSet, uiRenders } from "./ui-components";
|
|
8
|
-
export type { UiComponentSetOptions } from "./ui-components";
|
|
1
|
+
export { VisualsProvider, visualToolViews } from "./provider.js";
|
|
2
|
+
export type { VisualsProviderProps } from "./provider.js";
|
|
3
|
+
export { WidgetFrame, WidgetHostProvider, useWidgetHost, WidgetPartView, widgetToolView, readVisualizeInput, widgetCsp, intersectAllow, openInNewTab, WIDGET_MAX_HEIGHT } from "./widget-frame.js";
|
|
4
|
+
export type { WidgetFrameProps, WidgetToolInput, WidgetHost, WidgetAllow, WidgetResource } from "./widget-frame.js";
|
|
5
|
+
export { UiComponentsProvider, UiTree, UiMarkupBlock, useUiMarkupLanguage, useUiAction, useUiState, htmlComponent, uiTreeToolView, uiMarkupToolView, readTreeInput } from "./ui-tree.js";
|
|
6
|
+
export type { UiComponent, UiStateStore, UiTreeProps, UiToolViewOptions } from "./ui-tree.js";
|
|
7
|
+
export { uiComponents, uiComponentSet, uiRenders } from "./ui-components.js";
|
|
8
|
+
export type { UiComponentSetOptions } from "./ui-components.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
import type { ToolViews } from "../components/tools";
|
|
3
|
-
import { type UiComponent, type UiStateStore } from "./ui-tree";
|
|
4
|
-
import { type WidgetHost } from "./widget-frame";
|
|
2
|
+
import type { ToolViews } from "../components/tools.js";
|
|
3
|
+
import { type UiComponent, type UiStateStore } from "./ui-tree.js";
|
|
4
|
+
import { type WidgetHost } from "./widget-frame.js";
|
|
5
5
|
/** Views for the suggested tools: `visualizeTool`, `renderUiTool` and `showUiTool`, under their names. */
|
|
6
6
|
export declare const visualToolViews: ToolViews;
|
|
7
7
|
export interface VisualsProviderProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type UiSpecName, type UiSpecSelection } from "../../../core/src/visuals.js";
|
|
2
2
|
import type { ComponentType } from "react";
|
|
3
|
-
import { type UiComponent } from "./ui-tree";
|
|
3
|
+
import { type UiComponent } from "./ui-tree.js";
|
|
4
4
|
/** How a component is drawn: gets its props (checked, state refs resolved) and its rendered children. */
|
|
5
5
|
type UiRender = ComponentType<any>;
|
|
6
6
|
/**
|
package/package.json
CHANGED