@meshagent/meshagent-tailwind 0.47.0 → 0.48.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/CHANGELOG.md +15 -0
- package/dist/cjs/chat/agent-thread.d.ts +24 -24
- package/dist/cjs/chat/agent-thread.js +575 -808
- package/dist/cjs/chat/chat-bot-view.d.ts +18 -6
- package/dist/cjs/chat/chat-bot-view.js +29 -7
- package/dist/cjs/chat/chat-feed-widget-view.d.ts +7 -0
- package/dist/cjs/chat/chat-feed-widget-view.js +50 -0
- package/dist/cjs/chat/chat-feed-widget.d.ts +16 -0
- package/dist/cjs/chat/chat-feed-widget.js +51 -0
- package/dist/cjs/chat/chat-hooks.d.ts +2 -2
- package/dist/cjs/chat/chat-input.d.ts +3 -3
- package/dist/cjs/chat/chat-input.js +9 -4
- package/dist/cjs/chat/chat-scroller.d.ts +21 -0
- package/dist/cjs/chat/chat-scroller.js +139 -0
- package/dist/cjs/chat/chat-thread-timeline.d.ts +66 -0
- package/dist/cjs/chat/chat-thread-timeline.js +595 -0
- package/dist/cjs/chat/dataset-agent-thread.d.ts +16 -4
- package/dist/cjs/chat/dataset-agent-thread.js +112 -292
- package/dist/cjs/chat/multi-thread-view.d.ts +8 -3
- package/dist/cjs/chat/multi-thread-view.js +10 -2
- package/dist/cjs/chat/new-chat-thread.d.ts +8 -3
- package/dist/cjs/chat/new-chat-thread.js +63 -24
- package/dist/cjs/chat/thread-view.d.ts +18 -5
- package/dist/cjs/chat/thread-view.js +67 -9
- package/dist/cjs/chat/use-chat-virtualizer.d.ts +47 -0
- package/dist/cjs/chat/use-chat-virtualizer.js +336 -0
- package/dist/cjs/chat/virtualization.d.ts +44 -0
- package/dist/cjs/chat/virtualization.js +143 -0
- package/dist/cjs/components/ui/button.d.ts +2 -2
- package/dist/cjs/components/ui/dialog.d.ts +1 -1
- package/dist/cjs/components/ui/dialog.js +11 -1
- package/dist/cjs/components/ui/portal-container.d.ts +7 -0
- package/dist/cjs/components/ui/portal-container.js +46 -0
- package/dist/cjs/file-preview/file-preview.js +1 -1
- package/dist/cjs/index.d.ts +3 -0
- package/dist/cjs/index.js +4 -0
- package/dist/cjs/meetings/meeting-scope.d.ts +2 -1
- package/dist/cjs/meetings/meeting-scope.js +1 -0
- package/dist/cjs/react-syntax-highlighter.d.js +1 -0
- package/dist/esm/chat/agent-thread.d.ts +24 -24
- package/dist/esm/chat/agent-thread.js +574 -838
- package/dist/esm/chat/chat-bot-view.d.ts +18 -6
- package/dist/esm/chat/chat-bot-view.js +29 -7
- package/dist/esm/chat/chat-feed-widget-view.d.ts +7 -0
- package/dist/esm/chat/chat-feed-widget-view.js +30 -0
- package/dist/esm/chat/chat-feed-widget.d.ts +16 -0
- package/dist/esm/chat/chat-feed-widget.js +31 -0
- package/dist/esm/chat/chat-hooks.d.ts +2 -2
- package/dist/esm/chat/chat-input.d.ts +3 -3
- package/dist/esm/chat/chat-input.js +9 -4
- package/dist/esm/chat/chat-scroller.d.ts +21 -0
- package/dist/esm/chat/chat-scroller.js +122 -0
- package/dist/esm/chat/chat-thread-timeline.d.ts +66 -0
- package/dist/esm/chat/chat-thread-timeline.js +605 -0
- package/dist/esm/chat/dataset-agent-thread.d.ts +16 -4
- package/dist/esm/chat/dataset-agent-thread.js +114 -307
- package/dist/esm/chat/multi-thread-view.d.ts +8 -3
- package/dist/esm/chat/multi-thread-view.js +10 -2
- package/dist/esm/chat/new-chat-thread.d.ts +8 -3
- package/dist/esm/chat/new-chat-thread.js +64 -25
- package/dist/esm/chat/thread-view.d.ts +18 -5
- package/dist/esm/chat/thread-view.js +67 -9
- package/dist/esm/chat/use-chat-virtualizer.d.ts +47 -0
- package/dist/esm/chat/use-chat-virtualizer.js +331 -0
- package/dist/esm/chat/virtualization.d.ts +44 -0
- package/dist/esm/chat/virtualization.js +123 -0
- package/dist/esm/components/ui/button.d.ts +2 -2
- package/dist/esm/components/ui/dialog.d.ts +1 -1
- package/dist/esm/components/ui/dialog.js +11 -1
- package/dist/esm/components/ui/portal-container.d.ts +7 -0
- package/dist/esm/components/ui/portal-container.js +16 -0
- package/dist/esm/file-preview/file-preview.js +1 -1
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/meetings/meeting-scope.d.ts +2 -1
- package/dist/esm/meetings/meeting-scope.js +1 -0
- package/dist/esm/react-syntax-highlighter.d.js +0 -0
- package/dist/index.css +1 -1
- package/package.json +6 -5
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { ReactElement, ReactNode } from "react";
|
|
2
2
|
import type { RoomClient } from "@meshagent/meshagent";
|
|
3
3
|
import "@meshagent/meshagent-react";
|
|
4
|
-
import
|
|
4
|
+
import "@meshagent/meshagent-livekit";
|
|
5
|
+
import type { LivekitConnectionInfo } from "@meshagent/meshagent-livekit";
|
|
5
6
|
import { Room } from "livekit-client";
|
|
6
7
|
import type { AudioCaptureOptions, LocalParticipant, Participant, RoomConnectOptions, RoomOptions, TrackPublication, VideoCaptureOptions } from "livekit-client";
|
|
7
8
|
type Listener = () => void;
|
|
@@ -28,6 +28,7 @@ module.exports = __toCommonJS(meeting_scope_exports);
|
|
|
28
28
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
29
29
|
var import_react = require("react");
|
|
30
30
|
var import_meshagent_react = require("@meshagent/meshagent-react");
|
|
31
|
+
var import_meshagent_livekit = require("@meshagent/meshagent-livekit");
|
|
31
32
|
var import_livekit_client = require("livekit-client");
|
|
32
33
|
var import_wake_lock = require("./wake-lock.js");
|
|
33
34
|
class PendingLocalMediaState {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { ReactElement } from "react";
|
|
2
2
|
import type { RoomClient } from "@meshagent/meshagent";
|
|
3
|
-
import type { AgentMessage, BaseChatClient, ClientToolkitDescription } from "@meshagent/meshagent-agents";
|
|
3
|
+
import type { AgentMessage, AgentMessageEvent, BaseChatClient, ClientToolkitDescription } from "@meshagent/meshagent-agents";
|
|
4
|
+
import type { AgentUsageSnapshot } from "./chat-thread-timeline.js";
|
|
5
|
+
export { AgentUsageSnapshot, shouldReplaceAgentUsageSnapshot } from "./chat-thread-timeline.js";
|
|
6
|
+
import type { ChatFeedWidget } from "./chat-feed-widget.js";
|
|
4
7
|
export declare class AgentToolChoice {
|
|
5
8
|
readonly toolkitName: string;
|
|
6
9
|
readonly toolName: string;
|
|
@@ -10,29 +13,10 @@ export declare class AgentToolChoice {
|
|
|
10
13
|
});
|
|
11
14
|
toJson(): Record<string, string>;
|
|
12
15
|
}
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
readonly contextUsedTokens: number;
|
|
17
|
-
readonly contextTotalTokens?: number;
|
|
18
|
-
readonly compactionMode?: string;
|
|
19
|
-
readonly compactionThreshold?: number;
|
|
20
|
-
readonly totalTokens?: number;
|
|
21
|
-
readonly usage: Record<string, number>;
|
|
22
|
-
constructor({ threadPath, turnId, contextUsedTokens, contextTotalTokens, compactionMode, compactionThreshold, totalTokens, usage, }: {
|
|
23
|
-
threadPath: string;
|
|
24
|
-
turnId?: string;
|
|
25
|
-
contextUsedTokens: number;
|
|
26
|
-
contextTotalTokens?: number;
|
|
27
|
-
compactionMode?: string;
|
|
28
|
-
compactionThreshold?: number;
|
|
29
|
-
totalTokens?: number;
|
|
30
|
-
usage: Record<string, number>;
|
|
31
|
-
});
|
|
32
|
-
static fromMessage(message: AgentMessage): AgentUsageSnapshot | null;
|
|
33
|
-
static fromPayload(payload: Record<string, unknown>): AgentUsageSnapshot | null;
|
|
16
|
+
export interface AgentThreadSuggestion {
|
|
17
|
+
label: string;
|
|
18
|
+
prompt?: string;
|
|
34
19
|
}
|
|
35
|
-
export declare function shouldReplaceAgentUsageSnapshot(current: AgentUsageSnapshot | null | undefined, next: AgentUsageSnapshot): boolean;
|
|
36
20
|
export interface AgentThreadProps {
|
|
37
21
|
room: RoomClient;
|
|
38
22
|
path: string;
|
|
@@ -42,8 +26,24 @@ export interface AgentThreadProps {
|
|
|
42
26
|
emptyStateTitle?: string;
|
|
43
27
|
emptyStateDescription?: string;
|
|
44
28
|
clientToolkits?: ClientToolkitDescription[];
|
|
29
|
+
chatFeedWidgets?: ChatFeedWidget[];
|
|
45
30
|
toolChoice?: AgentToolChoice;
|
|
46
31
|
collapseMessages?: boolean;
|
|
32
|
+
suggestions?: readonly AgentThreadSuggestion[];
|
|
33
|
+
enableFileUpload?: boolean;
|
|
34
|
+
persistedEvents?: readonly AgentMessageEvent[];
|
|
35
|
+
deferLiveEvents?: boolean;
|
|
36
|
+
loadThread?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Delivers messages to the live agent session. This is not local UI hydration;
|
|
39
|
+
* callers must not use it to replay stored turn lifecycle commands.
|
|
40
|
+
*/
|
|
41
|
+
injectPersistedEvents?: boolean;
|
|
42
|
+
composerDisabled?: boolean;
|
|
43
|
+
closeThreadOnUnmount?: boolean;
|
|
44
|
+
onPersistedEventsInjectionStarted?: () => void;
|
|
45
|
+
onPersistedEventsInjected?: (error: unknown | null) => void;
|
|
46
|
+
onEventsChanged?: (threadId: string, events: readonly AgentMessageEvent[], latestMessage: AgentMessage | null) => void;
|
|
47
47
|
}
|
|
48
48
|
export declare function formatAgentUsageTokenCount(value: number): string;
|
|
49
49
|
export declare function formatAgentUsageFooter(usage: AgentUsageSnapshot): string;
|
|
@@ -84,4 +84,4 @@ export interface ChatThreadPreviewProps {
|
|
|
84
84
|
className?: string;
|
|
85
85
|
}
|
|
86
86
|
export declare function ChatThreadPreview({ room, path, className }: ChatThreadPreviewProps): ReactElement;
|
|
87
|
-
export declare function AgentThread({ room, path, chatClient, disposeChatClient, agentName, emptyStateTitle, emptyStateDescription, clientToolkits,
|
|
87
|
+
export declare function AgentThread({ room, path, chatClient, disposeChatClient, agentName, emptyStateTitle, emptyStateDescription, clientToolkits, chatFeedWidgets, collapseMessages, suggestions, enableFileUpload, persistedEvents, deferLiveEvents, loadThread, injectPersistedEvents, composerDisabled: composerDisabledProp, closeThreadOnUnmount, onPersistedEventsInjectionStarted, onPersistedEventsInjected, onEventsChanged, }: AgentThreadProps): ReactElement;
|