@skippr/live-agent-sdk 0.80.0 → 0.82.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/README.md +1 -1
- package/dist/esm/lib-exports.js +344 -330
- package/dist/skippr-sdk.css +1 -1
- package/dist/skippr-sdk.js +105 -105
- package/dist/types/capture/agentActionSignal.d.ts +3 -5
- package/dist/types/components/StopActionsIcon.d.ts +5 -0
- package/dist/types/hooks/useActionControl.d.ts +1 -3
- package/dist/types/hooks/usePlanUpdates.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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,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;
|
|
@@ -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;
|