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