@skippr/live-agent-sdk 0.61.0 → 0.63.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.
@@ -2,3 +2,15 @@
2
2
  export declare function runAgentAction(dispatch: () => void): void;
3
3
  /** True while the agent's synthetic DOM event is dispatching. */
4
4
  export declare function isAgentActionInProgress(): boolean;
5
+ /** DomCapture subscribes; returns an unsubscribe. */
6
+ export declare function onSnapshotRequest(handler: () => void): () => void;
7
+ /** PageActionHandler calls this after performing an agent action. */
8
+ export declare function requestSnapshotAfterAction(): void;
9
+ export declare function setActionsPaused(paused: boolean): void;
10
+ export declare function isActionsPaused(): boolean;
11
+ /** PageActionHandler subscribes to re-drain its held queue on resume; returns an unsubscribe. */
12
+ export declare function onActionsPausedChange(cb: (paused: boolean) => void): () => void;
13
+ export declare function setActionsBusy(busy: boolean): void;
14
+ export declare function isActionsBusy(): boolean;
15
+ /** Control bar subscribes to show/hide the Stop button; returns an unsubscribe. */
16
+ export declare function subscribeActionsBusy(cb: (busy: boolean) => void): () => void;
@@ -1,10 +1,12 @@
1
+ import type { PlanCardData } from '../hooks/usePlanUpdates';
1
2
  import type { Message } from '../types';
2
3
  interface MessageListProps {
3
4
  messages: Message[];
4
5
  isStreaming: boolean;
5
6
  sendChatMessage: (message: string) => Promise<unknown>;
6
7
  isSendingChat: boolean;
8
+ plan?: PlanCardData | null;
7
9
  autoFocus?: boolean;
8
10
  }
9
- export declare function MessageList({ messages, isStreaming, sendChatMessage, isSendingChat, autoFocus, }: MessageListProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function MessageList({ messages, isStreaming, sendChatMessage, isSendingChat, plan, autoFocus, }: MessageListProps): import("react/jsx-runtime").JSX.Element;
10
12
  export {};
@@ -0,0 +1,8 @@
1
+ import type { PlanCardData } from '../hooks/usePlanUpdates';
2
+ interface PlanCardProps {
3
+ plan: PlanCardData;
4
+ sendChatMessage: (message: string) => Promise<unknown>;
5
+ onDismiss: () => void;
6
+ }
7
+ export declare function PlanCard({ plan, sendChatMessage, onDismiss }: PlanCardProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ export interface UseActionControlValue {
2
+ /** True while the agent's on-screen action flow is running (single action or multi-step plan). */
3
+ actionsActive: boolean;
4
+ actionsPaused: boolean;
5
+ togglePaused: () => Promise<void>;
6
+ }
7
+ /** Owns the user's pause/resume control over the agent's on-screen action flow. */
8
+ export declare function useActionControl(): UseActionControlValue;
@@ -0,0 +1,14 @@
1
+ export type PlanStepStatus = 'pending' | 'active' | 'done' | 'failed';
2
+ export type PlanState = 'proposed' | 'executing' | 'completed' | 'abandoned';
3
+ export interface PlanStep {
4
+ index: number;
5
+ label: string;
6
+ status: PlanStepStatus;
7
+ }
8
+ export interface PlanCardData {
9
+ planId: string;
10
+ steps: PlanStep[];
11
+ state: PlanState;
12
+ }
13
+ export declare function parsePlan(json: string): PlanCardData | null;
14
+ export declare function usePlanUpdates(): PlanCardData | null;
@@ -7,4 +7,6 @@ export declare const DOM_EVENTS_TOPIC = "skippr.dom-events";
7
7
  export declare const HIGHLIGHT_TOPIC = "skippr.highlight";
8
8
  export declare const PAGE_ACTIONS_TOPIC = "skippr.page-actions";
9
9
  export declare const TEXT_MODE_TOPIC = "skippr.text-mode";
10
+ export declare const ACTION_CONTROL_TOPIC = "skippr.action-control";
11
+ export declare const PLAN_ATTR = "skippr.action-plan";
10
12
  export declare const NAME_MAX_CHARS = 80;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skippr/live-agent-sdk",
3
- "version": "0.61.0",
3
+ "version": "0.63.0",
4
4
  "type": "module",
5
5
  "main": "dist/esm/lib-exports.js",
6
6
  "module": "dist/esm/lib-exports.js",