@page-agent/ui 1.1.2 → 1.2.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.
@@ -1,35 +1,3 @@
1
- /**
2
- * Agent activity - transient state for immediate UI feedback.
3
- *
4
- * Unlike historical events (which are persisted), activities are ephemeral
5
- * and represent "what the agent is doing right now". UI components should
6
- * listen to 'activity' events to show real-time feedback.
7
- *
8
- * Note: There is no 'idle' activity - absence of activity events means idle.
9
- *
10
- * Events dispatched: CustomEvent<AgentActivity>
11
- */
12
- export declare type AgentActivity = {
13
- type: 'thinking';
14
- } | {
15
- type: 'executing';
16
- tool: string;
17
- input: unknown;
18
- } | {
19
- type: 'executed';
20
- tool: string;
21
- input: unknown;
22
- output: string;
23
- duration: number;
24
- } | {
25
- type: 'retrying';
26
- attempt: number;
27
- maxAttempts: number;
28
- } | {
29
- type: 'error';
30
- message: string;
31
- };
32
-
33
1
  declare type DeepStringify<T> = {
34
2
  [K in keyof T]: T[K] extends string ? string : T[K] extends object ? DeepStringify<T[K]> : T[K];
35
3
  };
@@ -228,7 +196,7 @@ export declare class Panel {
228
196
  * - 'activity': Transient activity for immediate UI feedback (thinking/executing/etc)
229
197
  * - 'dispose': Agent is being disposed
230
198
  */
231
- export declare interface PanelAgentAdapter extends EventTarget {
199
+ declare interface PanelAgentAdapter extends EventTarget {
232
200
  /** Current agent status */
233
201
  readonly status: 'idle' | 'running' | 'completed' | 'error';
234
202
  /** History of agent events */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@page-agent/ui",
3
- "version": "1.1.2",
3
+ "version": "1.2.0",
4
4
  "type": "module",
5
5
  "main": "./dist/lib/page-agent-ui.js",
6
6
  "module": "./dist/lib/page-agent-ui.js",