@getpaseo/protocol 0.3.1 → 0.4.0-beta.1

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.
@@ -284,6 +284,13 @@ export interface CompactionTimelineItem {
284
284
  trigger?: "auto" | "manual";
285
285
  preTokens?: number;
286
286
  }
287
+ export interface AgentTaskItem {
288
+ text: string;
289
+ completed: boolean;
290
+ id?: string;
291
+ status?: "pending" | "in_progress" | "completed";
292
+ activeForm?: string;
293
+ }
287
294
  export type AgentTimelineItem = {
288
295
  type: "user_message";
289
296
  text: string;
@@ -298,10 +305,7 @@ export type AgentTimelineItem = {
298
305
  text: string;
299
306
  } | ToolCallTimelineItem | {
300
307
  type: "todo";
301
- items: {
302
- text: string;
303
- completed: boolean;
304
- }[];
308
+ items: AgentTaskItem[];
305
309
  } | {
306
310
  type: "error";
307
311
  message: string;
@@ -1,5 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { ChatMessageSchema, ChatRoomDetailSchema } from "./types.js";
3
+ // COMPAT(chatRooms): retained after the v0.3.0 feature removal; remove after 2027-02-09 when mixed-version peers no longer send legacy messages.
3
4
  export const ChatCreateRequestSchema = z.object({
4
5
  type: z.literal("chat/create"),
5
6
  requestId: z.string(),
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
+ // COMPAT(chatRooms): retained after the v0.3.0 feature removal; remove after 2027-02-09 when mixed-version peers no longer send legacy messages.
2
3
  export const ChatRoomSchema = z.object({
3
4
  id: z.string(),
4
5
  name: z.string(),