@skippr/live-agent-sdk 0.79.0 → 0.81.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 +762 -540
- package/dist/skippr-sdk.css +1 -1
- package/dist/skippr-sdk.js +133 -133
- package/dist/types/capture/agentActionSignal.d.ts +3 -5
- package/dist/types/components/AutoStartMedia.d.ts +2 -2
- package/dist/types/components/DomCapture.d.ts +2 -2
- package/dist/types/components/PushToTalkHint.d.ts +1 -0
- package/dist/types/components/PushToTalkMic.d.ts +8 -0
- package/dist/types/components/StopActionsIcon.d.ts +5 -0
- package/dist/types/context/LiveAgentContext.d.ts +3 -3
- package/dist/types/context/VoiceTurnContext.d.ts +6 -0
- package/dist/types/hooks/useActionControl.d.ts +1 -3
- package/dist/types/hooks/useKeyboardPushToTalk.d.ts +8 -0
- package/dist/types/hooks/usePlanUpdates.d.ts +1 -1
- package/dist/types/hooks/useVoiceTurn.d.ts +7 -0
- package/dist/types/lib/constants.d.ts +11 -1
- package/package.json +1 -1
- package/dist/types/context/TapToTalkContext.d.ts +0 -6
- package/dist/types/hooks/useTapToTalk.d.ts +0 -5
|
@@ -6,11 +6,9 @@ export declare function isAgentActionInProgress(): boolean;
|
|
|
6
6
|
export declare function onSnapshotRequest(handler: () => void): () => void;
|
|
7
7
|
/** PageActionHandler calls this after performing an agent action. */
|
|
8
8
|
export declare function requestSnapshotAfterAction(): void;
|
|
9
|
-
export declare function
|
|
10
|
-
export declare function
|
|
11
|
-
/** PageActionHandler subscribes to re-drain its held queue on resume; returns an unsubscribe. */
|
|
12
|
-
export declare function onActionsPausedChange(cb: (paused: boolean) => void): () => void;
|
|
9
|
+
export declare function stopActions(): void;
|
|
10
|
+
export declare function onActionsStopped(subscriber: () => void): () => void;
|
|
13
11
|
export declare function setActionsBusy(busy: boolean): void;
|
|
14
12
|
export declare function isActionsBusy(): boolean;
|
|
15
13
|
/** Control bar subscribes to show/hide the Stop button; returns an unsubscribe. */
|
|
16
|
-
export declare function subscribeActionsBusy(
|
|
14
|
+
export declare function subscribeActionsBusy(subscriber: (busy: boolean) => void): () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
interface AutoStartMediaProps {
|
|
2
2
|
pendingScreenStream: MediaStream | null;
|
|
3
|
-
|
|
3
|
+
pushOrTapMicMode?: boolean;
|
|
4
4
|
}
|
|
5
|
-
export declare function AutoStartMedia({ pendingScreenStream,
|
|
5
|
+
export declare function AutoStartMedia({ pendingScreenStream, pushOrTapMicMode, }: AutoStartMediaProps): null;
|
|
6
6
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function PushToTalkHint(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface PushToTalkMicProps {
|
|
2
|
+
isCapturingSpeech: boolean;
|
|
3
|
+
showLabel: boolean;
|
|
4
|
+
onStart: () => void;
|
|
5
|
+
onCommit: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function PushToTalkMic({ isCapturingSpeech, showLabel, onStart, onCommit, }: PushToTalkMicProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { LauncherDropTarget } from '../hooks/useLauncherDrag';
|
|
2
2
|
import type { PhaseStatus } from '../hooks/usePhaseUpdates';
|
|
3
3
|
import type { AgentMode } from '../lib/agentMode';
|
|
4
|
-
import { CAPTURE_MODE, type CaptureMode, DEFAULT_CAPTURE_MODE } from '../lib/constants';
|
|
4
|
+
import { CAPTURE_MODE, type CaptureMode, DEFAULT_CAPTURE_MODE, MIC_MODE, type MicMode } from '../lib/constants';
|
|
5
5
|
import type { SessionStatus } from '../lib/sessionStatus';
|
|
6
6
|
import type { Message } from '../types';
|
|
7
7
|
export type SidebarTab = 'chat' | 'agenda';
|
|
8
|
-
export { CAPTURE_MODE, type CaptureMode, DEFAULT_CAPTURE_MODE };
|
|
8
|
+
export { CAPTURE_MODE, type CaptureMode, DEFAULT_CAPTURE_MODE, MIC_MODE, type MicMode };
|
|
9
9
|
export interface AgentControls {
|
|
10
10
|
highlight?: boolean;
|
|
11
11
|
actions?: boolean;
|
|
12
|
-
|
|
12
|
+
micMode?: MicMode;
|
|
13
13
|
}
|
|
14
14
|
export interface UiPreferences {
|
|
15
15
|
animateCursor?: boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type UseVoiceTurnValue } from '../hooks/useVoiceTurn';
|
|
3
|
+
export declare function VoiceTurnProvider({ children }: {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function useVoiceTurnContext(): UseVoiceTurnValue;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export interface UseActionControlValue {
|
|
2
2
|
/** True while the agent's on-screen action flow is running (single action or multi-step plan). */
|
|
3
3
|
actionsActive: boolean;
|
|
4
|
-
|
|
5
|
-
togglePaused: () => Promise<void>;
|
|
4
|
+
stopActions: () => Promise<void>;
|
|
6
5
|
}
|
|
7
|
-
/** Owns the user's pause/resume control over the agent's on-screen action flow. */
|
|
8
6
|
export declare function useActionControl(): UseActionControlValue;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface UseKeyboardPushToTalkOptions {
|
|
2
|
+
enabled: boolean;
|
|
3
|
+
onStart: () => void;
|
|
4
|
+
onCommit: () => void;
|
|
5
|
+
onKeyUsed?: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function useKeyboardPushToTalk({ enabled, onStart, onCommit, onKeyUsed, }: UseKeyboardPushToTalkOptions): void;
|
|
8
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type PlanStepStatus = 'pending' | 'active' | 'done' | 'failed';
|
|
2
|
-
export type PlanState = 'proposed' | 'executing' | 'completed' | 'abandoned';
|
|
2
|
+
export type PlanState = 'proposed' | 'executing' | 'completed' | 'abandoned' | 'aborted';
|
|
3
3
|
export interface PlanStep {
|
|
4
4
|
index: number;
|
|
5
5
|
label: string;
|
|
@@ -15,7 +15,17 @@ export declare const PAGE_ACTIONS_TOPIC = "skippr.page-actions";
|
|
|
15
15
|
export declare const TEXT_MODE_TOPIC = "skippr.text-mode";
|
|
16
16
|
export declare const ACTION_CONTROL_TOPIC = "skippr.action-control";
|
|
17
17
|
export declare const SESSION_HOLD_TOPIC = "skippr.session-hold";
|
|
18
|
-
export declare const
|
|
18
|
+
export declare const MIC_MODE_TURN_TOPIC = "skippr.mic-mode-turn";
|
|
19
|
+
export declare const MIC_MODE: {
|
|
20
|
+
readonly Live: "live";
|
|
21
|
+
readonly PushToTalk: "pushToTalk";
|
|
22
|
+
readonly TapToTalk: "tapToTalk";
|
|
23
|
+
};
|
|
24
|
+
export type MicMode = (typeof MIC_MODE)[keyof typeof MIC_MODE];
|
|
25
|
+
export declare const DEFAULT_MIC_MODE: MicMode;
|
|
26
|
+
export declare function isRequestResponseMicMode(micMode: MicMode | undefined): micMode is typeof MIC_MODE.PushToTalk | typeof MIC_MODE.TapToTalk;
|
|
27
|
+
export declare const PUSH_TO_TALK_KEY = "Backquote";
|
|
28
|
+
export declare const PUSH_TO_TALK_KEY_LABEL = "`";
|
|
19
29
|
export declare const IDLE_AUTO_PAUSE_MS: number;
|
|
20
30
|
export declare const PLAN_ATTR = "skippr.action-plan";
|
|
21
31
|
export declare const NAME_MAX_CHARS = 80;
|
package/package.json
CHANGED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import { type UseTapToTalkValue } from '../hooks/useTapToTalk';
|
|
3
|
-
export declare function TapToTalkProvider({ children }: {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare function useTapToTalkContext(): UseTapToTalkValue;
|