@getpaseo/protocol 0.3.0 → 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;
@@ -413,6 +417,18 @@ export interface AgentRunResult {
413
417
  timeline: AgentTimelineItem[];
414
418
  canceled?: boolean;
415
419
  }
420
+ export type JsonValue = null | boolean | number | string | JsonValue[] | {
421
+ [key: string]: JsonValue;
422
+ };
423
+ export type ProviderOptions = Record<string, JsonValue>;
424
+ export interface McpToolRef {
425
+ kind: "mcp";
426
+ server: string;
427
+ tool: string;
428
+ }
429
+ export interface ToolPolicy {
430
+ preapproved: McpToolRef[];
431
+ }
416
432
  export interface AgentSessionConfig {
417
433
  provider: AgentProvider;
418
434
  cwd: string;
@@ -426,14 +442,8 @@ export interface AgentSessionConfig {
426
442
  thinkingOptionId?: string;
427
443
  featureValues?: Record<string, unknown>;
428
444
  title?: string | null;
429
- approvalPolicy?: string;
430
- sandboxMode?: string;
431
- networkAccess?: boolean;
432
- webSearch?: boolean;
433
- extra?: {
434
- codex?: AgentMetadata;
435
- claude?: AgentMetadata;
436
- };
445
+ providerOptions?: ProviderOptions;
446
+ toolPolicy?: ToolPolicy;
437
447
  mcpServers?: Record<string, McpServerConfig>;
438
448
  /**
439
449
  * Internal agents are hidden from listings and don't trigger notifications.
@@ -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(),