@getpaseo/protocol 0.1.106 → 0.1.107

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/messages.js CHANGED
@@ -1056,6 +1056,20 @@ export const FetchAgentTimelineRequestMessageSchema = z.object({
1056
1056
  // Default should be projected for app timeline loading.
1057
1057
  projection: z.enum(["projected", "canonical"]).optional(),
1058
1058
  });
1059
+ export const ProviderSubagentListRequestMessageSchema = z.object({
1060
+ type: z.literal("agent.provider_subagents.list.request"),
1061
+ parentAgentId: z.string(),
1062
+ requestId: z.string(),
1063
+ });
1064
+ export const ProviderSubagentTimelineRequestMessageSchema = z.object({
1065
+ type: z.literal("agent.provider_subagents.timeline.get.request"),
1066
+ parentAgentId: z.string(),
1067
+ subagentId: z.string(),
1068
+ requestId: z.string(),
1069
+ direction: z.enum(["tail", "before", "after"]).optional(),
1070
+ cursor: AgentTimelineCursorSchema.optional(),
1071
+ limit: z.number().int().nonnegative().optional(),
1072
+ });
1059
1073
  export const AgentForkContextRequestMessageSchema = z.object({
1060
1074
  type: z.literal("agent.fork_context.request"),
1061
1075
  agentId: z.string(),
@@ -1641,6 +1655,16 @@ export const CreateTerminalRequestSchema = z.object({
1641
1655
  agentId: z.string().optional(),
1642
1656
  command: z.string().optional(),
1643
1657
  args: z.array(z.string()).optional(),
1658
+ // COMPAT(createTerminalSize): added in v0.1.107, drop the optional gate when floor >= v0.1.107.
1659
+ // The client seeds the PTY with its measured viewport size so a new terminal isn't born at the
1660
+ // 80x24 default and then visibly reflowed. Old daemons ignore this field and start at 80x24;
1661
+ // the client's first resize corrects it as before.
1662
+ size: z
1663
+ .object({
1664
+ rows: z.number().int().positive(),
1665
+ cols: z.number().int().positive(),
1666
+ })
1667
+ .optional(),
1644
1668
  requestId: z.string(),
1645
1669
  });
1646
1670
  export const RenameTerminalRequestSchema = z.object({
@@ -1753,6 +1777,8 @@ export const SessionInboundMessageSchema = z.discriminatedUnion("type", [
1753
1777
  RestartServerRequestMessageSchema,
1754
1778
  DaemonUpdateRequestMessageSchema,
1755
1779
  FetchAgentTimelineRequestMessageSchema,
1780
+ ProviderSubagentListRequestMessageSchema,
1781
+ ProviderSubagentTimelineRequestMessageSchema,
1756
1782
  AgentForkContextRequestMessageSchema,
1757
1783
  SetAgentModeRequestMessageSchema,
1758
1784
  SetAgentModelRequestMessageSchema,
@@ -2010,6 +2036,8 @@ export const ServerInfoStatusPayloadSchema = z
2010
2036
  daemonSelfUpdate: z.boolean().optional(),
2011
2037
  // COMPAT(agentForkContext): added in v0.1.102, remove gate after 2026-12-28.
2012
2038
  agentForkContext: z.boolean().optional(),
2039
+ // COMPAT(providerSubagents): added in v0.1.107, remove gate after 2027-01-12.
2040
+ providerSubagents: z.boolean().optional(),
2013
2041
  })
2014
2042
  .optional(),
2015
2043
  })
@@ -2544,6 +2572,78 @@ export const FetchAgentTimelineResponseMessageSchema = z.object({
2544
2572
  error: z.string().nullable(),
2545
2573
  }),
2546
2574
  });
2575
+ export const ProviderSubagentDescriptorPayloadSchema = z.object({
2576
+ id: z.string(),
2577
+ parentAgentId: z.string(),
2578
+ provider: AgentProviderSchema,
2579
+ title: z.string().nullable(),
2580
+ description: z.string().nullable(),
2581
+ status: z.enum(["running", "completed", "failed", "canceled"]),
2582
+ createdAt: z.string(),
2583
+ updatedAt: z.string(),
2584
+ toolCallId: z.string().nullable(),
2585
+ cwd: z.string().nullable().optional(),
2586
+ });
2587
+ export const ProviderSubagentListResponseMessageSchema = z.object({
2588
+ type: z.literal("agent.provider_subagents.list.response"),
2589
+ payload: z.object({
2590
+ requestId: z.string(),
2591
+ parentAgentId: z.string(),
2592
+ subagents: z.array(ProviderSubagentDescriptorPayloadSchema),
2593
+ error: z.string().nullable(),
2594
+ }),
2595
+ });
2596
+ export const ProviderSubagentTimelineResponseMessageSchema = z.object({
2597
+ type: z.literal("agent.provider_subagents.timeline.get.response"),
2598
+ payload: z.object({
2599
+ requestId: z.string(),
2600
+ parentAgentId: z.string(),
2601
+ subagentId: z.string(),
2602
+ provider: AgentProviderSchema.nullable(),
2603
+ direction: z.enum(["tail", "before", "after"]),
2604
+ epoch: z.string(),
2605
+ reset: z.boolean(),
2606
+ staleCursor: z.boolean(),
2607
+ gap: z.boolean(),
2608
+ window: z.object({
2609
+ minSeq: z.number().int().nonnegative(),
2610
+ maxSeq: z.number().int().nonnegative(),
2611
+ nextSeq: z.number().int().nonnegative(),
2612
+ }),
2613
+ hasOlder: z.boolean(),
2614
+ hasNewer: z.boolean(),
2615
+ rows: z.array(z.object({
2616
+ item: AgentTimelineItemPayloadSchema,
2617
+ timestamp: z.string(),
2618
+ seq: z.number().int().nonnegative(),
2619
+ })),
2620
+ error: z.string().nullable(),
2621
+ }),
2622
+ });
2623
+ export const ProviderSubagentUpdateMessageSchema = z.object({
2624
+ type: z.literal("agent.provider_subagents.update"),
2625
+ payload: z.discriminatedUnion("kind", [
2626
+ z.object({
2627
+ kind: z.literal("upsert"),
2628
+ subagent: ProviderSubagentDescriptorPayloadSchema,
2629
+ }),
2630
+ z.object({
2631
+ kind: z.literal("timeline"),
2632
+ parentAgentId: z.string(),
2633
+ subagentId: z.string(),
2634
+ provider: AgentProviderSchema,
2635
+ item: AgentTimelineItemPayloadSchema,
2636
+ timestamp: z.string(),
2637
+ seq: z.number().int().nonnegative(),
2638
+ epoch: z.string(),
2639
+ }),
2640
+ z.object({
2641
+ kind: z.literal("remove"),
2642
+ parentAgentId: z.string(),
2643
+ subagentId: z.string(),
2644
+ }),
2645
+ ]),
2646
+ });
2547
2647
  export const AgentForkContextResponseMessageSchema = z.object({
2548
2648
  type: z.literal("agent.fork_context.response"),
2549
2649
  payload: z.object({
@@ -3666,6 +3766,9 @@ export const SessionOutboundMessageSchema = z.discriminatedUnion("type", [
3666
3766
  ArchiveWorkspaceResponseMessageSchema,
3667
3767
  FetchAgentResponseMessageSchema,
3668
3768
  FetchAgentTimelineResponseMessageSchema,
3769
+ ProviderSubagentListResponseMessageSchema,
3770
+ ProviderSubagentTimelineResponseMessageSchema,
3771
+ ProviderSubagentUpdateMessageSchema,
3669
3772
  AgentForkContextResponseMessageSchema,
3670
3773
  CancelAgentResponseMessageSchema,
3671
3774
  ClearAgentAttentionResponseMessageSchema,
@@ -3794,6 +3897,7 @@ export const WSHelloMessageSchema = z.object({
3794
3897
  [CLIENT_CAPS.reasoningMergeEnum]: z.boolean().optional(),
3795
3898
  [CLIENT_CAPS.customModeIcons]: z.boolean().optional(),
3796
3899
  [CLIENT_CAPS.terminalReflowableSnapshot]: z.boolean().optional(),
3900
+ [CLIENT_CAPS.providerSubagents]: z.boolean().optional(),
3797
3901
  [CLIENT_CAPS.browserHost]: BrowserAutomationHostCapabilitySchema.optional(),
3798
3902
  })
3799
3903
  .passthrough()
@@ -2547,6 +2547,95 @@ export declare const WSOutboundMessageSchema: {
2547
2547
  }, import("zod/v4/core").$strip>>;
2548
2548
  error: import("zod").ZodNullable<import("zod").ZodString>;
2549
2549
  }, import("zod/v4/core").$strip>;
2550
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2551
+ type: import("zod").ZodLiteral<"agent.provider_subagents.list.response">;
2552
+ payload: import("zod").ZodObject<{
2553
+ requestId: import("zod").ZodString;
2554
+ parentAgentId: import("zod").ZodString;
2555
+ subagents: import("zod").ZodArray<import("zod").ZodObject<{
2556
+ id: import("zod").ZodString;
2557
+ parentAgentId: import("zod").ZodString;
2558
+ provider: import("zod").ZodString;
2559
+ title: import("zod").ZodNullable<import("zod").ZodString>;
2560
+ description: import("zod").ZodNullable<import("zod").ZodString>;
2561
+ status: import("zod").ZodEnum<{
2562
+ running: "running";
2563
+ completed: "completed";
2564
+ failed: "failed";
2565
+ canceled: "canceled";
2566
+ }>;
2567
+ createdAt: import("zod").ZodString;
2568
+ updatedAt: import("zod").ZodString;
2569
+ toolCallId: import("zod").ZodNullable<import("zod").ZodString>;
2570
+ cwd: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
2571
+ }, import("zod/v4/core").$strip>>;
2572
+ error: import("zod").ZodNullable<import("zod").ZodString>;
2573
+ }, import("zod/v4/core").$strip>;
2574
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2575
+ type: import("zod").ZodLiteral<"agent.provider_subagents.timeline.get.response">;
2576
+ payload: import("zod").ZodObject<{
2577
+ requestId: import("zod").ZodString;
2578
+ parentAgentId: import("zod").ZodString;
2579
+ subagentId: import("zod").ZodString;
2580
+ provider: import("zod").ZodNullable<import("zod").ZodString>;
2581
+ direction: import("zod").ZodEnum<{
2582
+ tail: "tail";
2583
+ before: "before";
2584
+ after: "after";
2585
+ }>;
2586
+ epoch: import("zod").ZodString;
2587
+ reset: import("zod").ZodBoolean;
2588
+ staleCursor: import("zod").ZodBoolean;
2589
+ gap: import("zod").ZodBoolean;
2590
+ window: import("zod").ZodObject<{
2591
+ minSeq: import("zod").ZodNumber;
2592
+ maxSeq: import("zod").ZodNumber;
2593
+ nextSeq: import("zod").ZodNumber;
2594
+ }, import("zod/v4/core").$strip>;
2595
+ hasOlder: import("zod").ZodBoolean;
2596
+ hasNewer: import("zod").ZodBoolean;
2597
+ rows: import("zod").ZodArray<import("zod").ZodObject<{
2598
+ item: import("zod").ZodType<import("../agent-types.js").AgentTimelineItem, unknown, import("zod/v4/core").$ZodTypeInternals<import("../agent-types.js").AgentTimelineItem, unknown>>;
2599
+ timestamp: import("zod").ZodString;
2600
+ seq: import("zod").ZodNumber;
2601
+ }, import("zod/v4/core").$strip>>;
2602
+ error: import("zod").ZodNullable<import("zod").ZodString>;
2603
+ }, import("zod/v4/core").$strip>;
2604
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2605
+ type: import("zod").ZodLiteral<"agent.provider_subagents.update">;
2606
+ payload: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
2607
+ kind: import("zod").ZodLiteral<"upsert">;
2608
+ subagent: import("zod").ZodObject<{
2609
+ id: import("zod").ZodString;
2610
+ parentAgentId: import("zod").ZodString;
2611
+ provider: import("zod").ZodString;
2612
+ title: import("zod").ZodNullable<import("zod").ZodString>;
2613
+ description: import("zod").ZodNullable<import("zod").ZodString>;
2614
+ status: import("zod").ZodEnum<{
2615
+ running: "running";
2616
+ completed: "completed";
2617
+ failed: "failed";
2618
+ canceled: "canceled";
2619
+ }>;
2620
+ createdAt: import("zod").ZodString;
2621
+ updatedAt: import("zod").ZodString;
2622
+ toolCallId: import("zod").ZodNullable<import("zod").ZodString>;
2623
+ cwd: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
2624
+ }, import("zod/v4/core").$strip>;
2625
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2626
+ kind: import("zod").ZodLiteral<"timeline">;
2627
+ parentAgentId: import("zod").ZodString;
2628
+ subagentId: import("zod").ZodString;
2629
+ provider: import("zod").ZodString;
2630
+ item: import("zod").ZodType<import("../agent-types.js").AgentTimelineItem, unknown, import("zod/v4/core").$ZodTypeInternals<import("../agent-types.js").AgentTimelineItem, unknown>>;
2631
+ timestamp: import("zod").ZodString;
2632
+ seq: import("zod").ZodNumber;
2633
+ epoch: import("zod").ZodString;
2634
+ }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2635
+ kind: import("zod").ZodLiteral<"remove">;
2636
+ parentAgentId: import("zod").ZodString;
2637
+ subagentId: import("zod").ZodString;
2638
+ }, import("zod/v4/core").$strip>], "kind">;
2550
2639
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2551
2640
  type: import("zod").ZodLiteral<"agent.fork_context.response">;
2552
2641
  payload: import("zod").ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpaseo/protocol",
3
- "version": "0.1.106",
3
+ "version": "0.1.107",
4
4
  "description": "Paseo shared protocol schemas and wire types",
5
5
  "files": [
6
6
  "dist",