@getpaseo/client 0.1.103 → 0.1.104-beta.2

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,10 +1,12 @@
1
1
  import type { z } from "zod";
2
+ import { type ClientCapability } from "@getpaseo/protocol/client-capabilities";
2
3
  import { AgentRefreshedStatusPayloadSchema, CheckoutRenameBranchResponseSchema, RenameTerminalResponseSchema, RestartRequestedStatusPayloadSchema, ShutdownRequestedStatusPayloadSchema, DaemonUpdateResponseSchema, type ServerInfoStatusPayload } from "@getpaseo/protocol/messages";
3
4
  import type { AgentStreamEventPayload, AgentSnapshotPayload, ProjectPlacementPayload, AgentPermissionResolvedMessage, CreateAgentRequestMessage, CreatePaseoWorktreeRequest, FileDownloadTokenResponse, FileUploadResponse, FileExplorerResponse, FetchAgentTimelineResponseMessage, AgentForkContextResponseMessage, GitSetupOptions, CheckoutStatusResponse, CheckoutCommitResponse, CheckoutMergeResponse, CheckoutMergeFromBaseResponse, CheckoutPullResponse, CheckoutPushResponse, CheckoutRefreshResponse, CheckoutPrCreateResponse, CheckoutPrMergeResponse, CheckoutPrMergeMethod, CheckoutGithubSetAutoMergeResponse, CheckoutGithubGetCheckDetailsResponse, CheckoutPrStatusResponse, PullRequestTimelineResponse, CheckoutSwitchBranchResponse, StashSaveResponse, StashPopResponse, StashListResponse, ValidateBranchResponse, BranchSuggestionsResponse, GitHubSearchResponse, GitHubSearchRequest, DirectorySuggestionsResponse, PaseoWorktreeListResponse, PaseoWorktreeArchiveResponse, ProjectIconResponse, ProjectAddResponse, OpenProjectResponseMessage, ArchiveWorkspaceResponseMessage, WorkspaceSetupStatusResponseMessage, ListCommandsResponse, ListProviderFeaturesResponseMessage, ListProviderModelsResponseMessage, ListProviderModesResponseMessage, ListAvailableProvidersResponse, GetProvidersSnapshotResponseMessage, RefreshProvidersSnapshotResponseMessage, ProviderDiagnosticResponseMessage, ProviderUsageListResponseMessage, DaemonGetStatusResponse, DaemonGetPairingOfferResponse, DiagnosticsResponse, AgentRewindResponseMessage, ListTerminalsResponse, CreateTerminalResponse, SubscribeTerminalResponse, SubscribeTerminalRequest, CloseItemsResponse, KillTerminalResponse, CaptureTerminalResponse, TerminalInput, SessionInboundMessage, SessionOutboundMessage, SendAgentMessageRequest, PaseoConfigRaw, PaseoConfigRevision, WorkspaceCreateRequest } from "@getpaseo/protocol/messages";
4
5
  import type { AgentPermissionRequest, AgentPermissionResponse, AgentPersistenceHandle, AgentProviderNotice, AgentProvider, AgentSessionConfig } from "@getpaseo/protocol/agent-types";
5
6
  import type { MutableDaemonConfig, MutableDaemonConfigPatch } from "@getpaseo/protocol/messages";
6
7
  import { type DaemonTransportFactory, type WebSocketFactory } from "./daemon-client-transport.js";
7
8
  import { type TerminalStreamEvent } from "./terminal-stream-router.js";
9
+ import type { BrowserAutomationExecuteRequest, BrowserAutomationExecuteResponse } from "@getpaseo/protocol/browser-automation/rpc-schemas";
8
10
  export interface Logger {
9
11
  debug(obj: object, msg?: string): void;
10
12
  info(obj: object, msg?: string): void;
@@ -89,6 +91,8 @@ export type DaemonEvent = {
89
91
  message: string;
90
92
  };
91
93
  export type DaemonEventHandler = (event: DaemonEvent) => void;
94
+ export type BrowserAutomationExecuteRequestMessage = BrowserAutomationExecuteRequest;
95
+ export type BrowserAutomationExecuteResponseMessage = BrowserAutomationExecuteResponse;
92
96
  export interface DaemonClientConfig {
93
97
  url: string;
94
98
  clientId: string;
@@ -113,6 +117,7 @@ export interface DaemonClientConfig {
113
117
  };
114
118
  runtimeMetricsIntervalMs?: number;
115
119
  runtimeMetricsWindowMs?: number;
120
+ capabilities?: Partial<Record<ClientCapability, boolean>>;
116
121
  }
117
122
  export interface SendMessageOptions {
118
123
  messageId?: string;
@@ -863,6 +868,7 @@ export declare class DaemonClient {
863
868
  requestId: string;
864
869
  config: MutableDaemonConfig;
865
870
  }>;
871
+ sendBrowserAutomationExecuteResponse(response: BrowserAutomationExecuteResponse): void;
866
872
  readProjectConfig(repoRoot: string, requestId?: string): Promise<ReadProjectConfigPayload>;
867
873
  writeProjectConfig(input: WriteProjectConfigInput): Promise<WriteProjectConfigPayload>;
868
874
  refreshProvidersSnapshot(options?: {
@@ -2550,6 +2550,9 @@ export class DaemonClient {
2550
2550
  responseType: "set_daemon_config_response",
2551
2551
  });
2552
2552
  }
2553
+ sendBrowserAutomationExecuteResponse(response) {
2554
+ this.sendSessionMessageStrict(response);
2555
+ }
2553
2556
  async readProjectConfig(repoRoot, requestId) {
2554
2557
  return this.sendCorrelatedSessionRequest({
2555
2558
  requestId,
@@ -3228,6 +3231,7 @@ export class DaemonClient {
3228
3231
  [CLIENT_CAPS.customModeIcons]: true,
3229
3232
  [CLIENT_CAPS.reasoningMergeEnum]: true,
3230
3233
  [CLIENT_CAPS.terminalReflowableSnapshot]: true,
3234
+ ...this.config.capabilities,
3231
3235
  },
3232
3236
  ...(this.config.appVersion ? { appVersion: this.config.appVersion } : {}),
3233
3237
  }));
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import type { AgentSnapshotPayload, CreateAgentRequestMessage, FetchWorkspacesRe
2
2
  import { DaemonClient } from "./daemon-client.js";
3
3
  import type { FetchAgentTimelineCursor, FetchAgentTimelineDirection, FetchAgentTimelinePayload, FetchAgentTimelineProjection } from "./daemon-client.js";
4
4
  export { DaemonClient };
5
- export type { DaemonClientConfig, DaemonEvent, WebSocketFactory, WebSocketLike, } from "./daemon-client.js";
5
+ export type { DaemonClientConfig, DaemonEvent, BrowserAutomationExecuteRequestMessage, BrowserAutomationExecuteResponseMessage, WebSocketFactory, WebSocketLike, } from "./daemon-client.js";
6
6
  export type ConnectionState = {
7
7
  status: "idle";
8
8
  } | {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpaseo/client",
3
- "version": "0.1.103",
3
+ "version": "0.1.104-beta.2",
4
4
  "description": "Paseo client SDK package",
5
5
  "files": [
6
6
  "dist",
@@ -35,8 +35,8 @@
35
35
  "test": "vitest run"
36
36
  },
37
37
  "dependencies": {
38
- "@getpaseo/protocol": "0.1.103",
39
- "@getpaseo/relay": "0.1.103",
38
+ "@getpaseo/protocol": "0.1.104-beta.2",
39
+ "@getpaseo/relay": "0.1.104-beta.2",
40
40
  "zod": "^4.4.3"
41
41
  },
42
42
  "devDependencies": {