@skippr/live-agent-sdk 0.126.0 → 0.128.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/esm/lib-exports.js +4402 -4208
- package/dist/skippr-sdk.css +1 -1
- package/dist/skippr-sdk.js +110 -110
- package/dist/types/components/AgentStatusLine.d.ts +9 -0
- package/dist/types/components/MessageList.d.ts +6 -1
- package/dist/types/hooks/useTurnProgress.d.ts +7 -0
- package/dist/types/lib/agentStatus.d.ts +16 -0
- package/dist/types/lib/chromeCopy.d.ts +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TurnProgressStage } from '../hooks/useTurnProgress';
|
|
2
|
+
import { type AgentChatStatus } from '../lib/agentStatus';
|
|
3
|
+
interface AgentStatusLineProps {
|
|
4
|
+
status: AgentChatStatus;
|
|
5
|
+
stage?: TurnProgressStage | undefined;
|
|
6
|
+
detail?: string | undefined;
|
|
7
|
+
}
|
|
8
|
+
export declare function AgentStatusLine({ status, detail, stage }: AgentStatusLineProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import type { LinkCardData } from '../hooks/useLinkCard';
|
|
2
2
|
import { type PlanCardData } from '../hooks/usePlanUpdates';
|
|
3
|
+
import type { TurnProgressStage } from '../hooks/useTurnProgress';
|
|
4
|
+
import type { AgentChatStatus } from '../lib/agentStatus';
|
|
3
5
|
import type { Message } from '../types';
|
|
4
6
|
interface MessageListProps {
|
|
5
7
|
messages: Message[];
|
|
6
8
|
isStreaming: boolean;
|
|
9
|
+
agentStatus?: AgentChatStatus | null | undefined;
|
|
10
|
+
agentStatusDetail?: string | undefined;
|
|
11
|
+
turnStage?: TurnProgressStage | undefined;
|
|
7
12
|
sendChatMessage?: (message: string) => Promise<unknown>;
|
|
8
13
|
isSendingChat?: boolean;
|
|
9
14
|
plan?: PlanCardData | null;
|
|
@@ -11,5 +16,5 @@ interface MessageListProps {
|
|
|
11
16
|
autoFocus?: boolean;
|
|
12
17
|
readOnly?: boolean;
|
|
13
18
|
}
|
|
14
|
-
export declare function MessageList({ messages, isStreaming, sendChatMessage, isSendingChat, plan, linkCard, autoFocus, readOnly, }: MessageListProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function MessageList({ messages, isStreaming, agentStatus, agentStatusDetail, turnStage, sendChatMessage, isSendingChat, plan, linkCard, autoFocus, readOnly, }: MessageListProps): import("react/jsx-runtime").JSX.Element;
|
|
15
20
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type TurnProgressStage = 'settling' | 'slow' | 'stalled';
|
|
2
|
+
export declare const TURN_SLOW_AFTER_MS = 11000;
|
|
3
|
+
export declare const TURN_STALLED_AFTER_MS = 22000;
|
|
4
|
+
export declare function useTurnProgress(activity: string | null, { slowAfterMs, stalledAfterMs }?: {
|
|
5
|
+
slowAfterMs?: number | undefined;
|
|
6
|
+
stalledAfterMs?: number | undefined;
|
|
7
|
+
}): TurnProgressStage;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AgentState } from '../hooks/useAgentVoiceState';
|
|
2
|
+
import type { TurnProgressStage } from '../hooks/useTurnProgress';
|
|
3
|
+
import type { ChromeCopy } from './chromeCopy';
|
|
4
|
+
export type AgentChatStatus = 'connecting' | 'thinking' | 'working' | 'listening';
|
|
5
|
+
export interface AgentStatusInputs {
|
|
6
|
+
agentState: AgentState;
|
|
7
|
+
isActionRunning: boolean;
|
|
8
|
+
isChatReadOnly: boolean;
|
|
9
|
+
activePlanStep?: string | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare function chatStatusFor({ agentState, isActionRunning, isChatReadOnly, }: AgentStatusInputs): AgentChatStatus | null;
|
|
12
|
+
export declare function turnActivity(inputs: AgentStatusInputs): string | null;
|
|
13
|
+
export declare function stageLabel(stage: TurnProgressStage, copy: ChromeCopy): string | null;
|
|
14
|
+
export declare function chatStatusLabel(status: AgentChatStatus, copy: ChromeCopy, activePlanStep?: string | undefined): string;
|
|
15
|
+
export declare function liveStripLabel(agentState: AgentState, isActionRunning: boolean, copy: ChromeCopy): string | null;
|
|
16
|
+
export declare function requestPillLabel(agentState: AgentState, copy: ChromeCopy): string | null;
|
|
@@ -62,6 +62,9 @@ export interface ChromeCopy {
|
|
|
62
62
|
chatToggleText: string;
|
|
63
63
|
chatPanelLabel: string;
|
|
64
64
|
chatAnalyzingScreen: string;
|
|
65
|
+
chatTakingLonger: string;
|
|
66
|
+
chatStillWorking: string;
|
|
67
|
+
chatActingOnScreen: string;
|
|
65
68
|
cardDismissLink: string;
|
|
66
69
|
cardCopyLink: string;
|
|
67
70
|
cardCopied: string;
|