@camerontaylor/paseo-client 0.10.1-fork.1 → 0.10.2-fork.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.
@@ -5,7 +5,7 @@ import type { z } from "zod";
5
5
  import type { SessionEventSubscription } from "@camerontaylor/paseo-protocol/messages";
6
6
  import type { ClientCapability } from "@camerontaylor/paseo-protocol/client-capabilities";
7
7
  import type { AgentAttentionNotificationPayload } from "@camerontaylor/paseo-protocol/agent-attention-notification";
8
- import { AgentRefreshedStatusPayloadSchema, CheckoutRenameBranchResponseSchema, RenameTerminalResponseSchema, RestartRequestedStatusPayloadSchema, ShutdownRequestedStatusPayloadSchema, DaemonUpdateResponseSchema, type ActiveTurnBehavior, type ServerInfoStatusPayload } from "@camerontaylor/paseo-protocol/messages";
8
+ import { AgentRefreshedStatusPayloadSchema, CheckoutRenameBranchResponseSchema, CheckoutBaseRefSetResponseSchema, RenameTerminalResponseSchema, RestartRequestedStatusPayloadSchema, ShutdownRequestedStatusPayloadSchema, DaemonUpdateResponseSchema, type ActiveTurnBehavior, type ServerInfoStatusPayload } from "@camerontaylor/paseo-protocol/messages";
9
9
  import type { AgentStreamEventPayload, AgentSnapshotPayload, ProjectPlacementPayload, AgentPermissionResolvedMessage, CreateAgentRequestMessage, CreatePaseoWorktreeRequest, FileDownloadTokenResponse, FileUploadResponse, FileExplorerResponse, FileVersion, FileWriteResult, FetchAgentTimelineResponseMessage, AgentForkContextResponseMessage, GitSetupOptions, CheckoutStatusResponse, CheckoutCommit, ParsedDiffFile, CheckoutCommitResponse, CheckoutMergeResponse, CheckoutMergeFromBaseResponse, CheckoutPullResponse, CheckoutPushResponse, CheckoutRefreshResponse, CheckoutPrCreateResponse, CheckoutPrMergeResponse, CheckoutPrMergeMethod, CheckoutForgeSetAutoMergeResponse, CheckoutGithubSetAutoMergeResponse, CheckoutForgeGetCheckDetailsResponse, CheckoutGithubGetCheckDetailsResponse, CheckoutPrStatusResponse, PullRequestTimelineResponse, CheckoutSwitchBranchResponse, StashSaveResponse, StashPopResponse, StashListResponse, ValidateBranchResponse, BranchSuggestionsResponse, ForgeSearchResponse, ForgeSearchRequest, GitHubSearchResponse, GitHubSearchRequest, DirectorySuggestionsResponse, PaseoWorktreeListResponse, PaseoWorktreeArchiveResponse, ProjectIconSource, ProjectIconResponse, ProjectIconGetResponse, ProjectAddResponse, ProjectCreateDirectoryResponse, OpenProjectResponseMessage, WorkspaceGithubSearchRepositoriesResponse, ProjectGithubCloneProtocol, ProjectGithubCloneResponse, ArchiveWorkspaceResponseMessage, WorkspaceSetupStatusResponseMessage, ListCommandsResponse, ListProviderFeaturesResponseMessage, ListProviderModelsResponseMessage, ListProviderModesResponseMessage, ListAvailableProvidersResponse, GetProvidersSnapshotResponseMessage, RefreshProvidersSnapshotResponseMessage, ProviderDiagnosticResponseMessage, ProviderUsageListResponseMessage, DaemonGetStatusResponse, DaemonGetPairingOfferResponse, DaemonConfigReloadResponse, DiagnosticsResponse, AgentRewindResponseMessage, ListTerminalsResponse, CreateTerminalResponse, SubscribeTerminalResponse, SubscribeTerminalRequest, CloseItemsResponse, KillTerminalResponse, CaptureTerminalResponse, TerminalInput, SessionInboundMessage, SessionOutboundMessage, SendAgentMessageRequest, PaseoConfigRaw, PaseoConfigRevision, WorkspaceCreateRequest, WorkspaceRecoveryState, PluginListItem, PluginLogEntry, PluginSourceStatusItem, PluginSourceUpdateItem, PluginUpdateSelection, PluginUpdateProposal, PluginUpdatePreview, PluginUpdateResult, AgentSkillSelection, AgentSkillsStatus, AgentSkillsSaveResult } from "@camerontaylor/paseo-protocol/messages";
10
10
  import type { AgentPermissionRequest, AgentPermissionResponse, AgentPersistenceHandle, AgentProviderNotice, AgentProvider, AgentSessionConfig } from "@camerontaylor/paseo-protocol/agent-types";
11
11
  import type { AgentConfigApply, MutableDaemonConfig, MutableDaemonConfigPatch } from "@camerontaylor/paseo-protocol/messages";
@@ -218,6 +218,7 @@ type CheckoutPrStatusPayload = CheckoutPrStatusResponse["payload"];
218
218
  type PullRequestTimelinePayload = PullRequestTimelineResponse["payload"];
219
219
  type CheckoutSwitchBranchPayload = CheckoutSwitchBranchResponse["payload"];
220
220
  export type RenameBranchResult = z.infer<typeof CheckoutRenameBranchResponseSchema>["payload"];
221
+ export type SetCheckoutBaseRefResult = z.infer<typeof CheckoutBaseRefSetResponseSchema>["payload"];
221
222
  type StashSavePayload = StashSaveResponse["payload"];
222
223
  type StashPopPayload = StashPopResponse["payload"];
223
224
  type StashListPayload = StashListResponse["payload"];
@@ -536,6 +537,11 @@ export interface RenameBranchInput {
536
537
  branch: string;
537
538
  requestId?: string;
538
539
  }
540
+ export interface SetCheckoutBaseRefInput {
541
+ cwd: string;
542
+ baseRef: string;
543
+ requestId?: string;
544
+ }
539
545
  export interface RenameTerminalInput {
540
546
  terminalId: string;
541
547
  title: string;
@@ -984,6 +990,7 @@ export declare class DaemonClient {
984
990
  }, requestId?: string): Promise<PullRequestTimelinePayload>;
985
991
  checkoutSwitchBranch(cwd: string, branch: string, requestId?: string): Promise<CheckoutSwitchBranchPayload>;
986
992
  renameBranch(input: RenameBranchInput): Promise<RenameBranchResult>;
993
+ setCheckoutBaseRef(input: SetCheckoutBaseRefInput): Promise<SetCheckoutBaseRefResult>;
987
994
  stashSave(cwd: string, options?: {
988
995
  branch?: string;
989
996
  }, requestId?: string): Promise<StashSavePayload>;
@@ -2961,6 +2961,17 @@ export class DaemonClient {
2961
2961
  responseType: "checkout.rename_branch.response",
2962
2962
  });
2963
2963
  }
2964
+ async setCheckoutBaseRef(input) {
2965
+ return this.sendCorrelatedSessionRequest({
2966
+ requestId: input.requestId,
2967
+ message: {
2968
+ type: "checkout.base_ref.set.request",
2969
+ cwd: input.cwd,
2970
+ baseRef: input.baseRef,
2971
+ },
2972
+ responseType: "checkout.base_ref.set.response",
2973
+ });
2974
+ }
2964
2975
  async stashSave(cwd, options, requestId) {
2965
2976
  return this.sendCorrelatedSessionRequest({
2966
2977
  requestId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camerontaylor/paseo-client",
3
- "version": "0.10.1-fork.1",
3
+ "version": "0.10.2-fork.1",
4
4
  "description": "Paseo client SDK package",
5
5
  "files": [
6
6
  "dist",
@@ -39,8 +39,8 @@
39
39
  "test": "vitest run"
40
40
  },
41
41
  "dependencies": {
42
- "@camerontaylor/paseo-protocol": "0.10.1-fork.1",
43
- "@camerontaylor/paseo-relay": "0.10.1-fork.1",
42
+ "@camerontaylor/paseo-protocol": "0.10.2-fork.1",
43
+ "@camerontaylor/paseo-relay": "0.10.2-fork.1",
44
44
  "zod": "^4.4.3"
45
45
  },
46
46
  "devDependencies": {