@getpaseo/client 0.1.89 → 0.1.90
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/daemon-client.d.ts +2 -6
- package/dist/daemon-client.js +26 -22
- package/package.json +7 -5
package/dist/daemon-client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { z } from "zod";
|
|
2
2
|
import { AgentRefreshedStatusPayloadSchema, CheckoutRenameBranchResponseSchema, RenameTerminalResponseSchema, RestartRequestedStatusPayloadSchema, ShutdownRequestedStatusPayloadSchema, type ServerInfoStatusPayload } from "@getpaseo/protocol/messages";
|
|
3
|
-
import type { AgentStreamEventPayload, AgentSnapshotPayload, ProjectPlacementPayload, AgentPermissionResolvedMessage, CreateAgentRequestMessage, CreatePaseoWorktreeRequest, FileDownloadTokenResponse, FileExplorerResponse, FetchAgentTimelineResponseMessage, GitSetupOptions, CheckoutStatusResponse, CheckoutCommitResponse, CheckoutMergeResponse, CheckoutMergeFromBaseResponse, CheckoutPullResponse, CheckoutPushResponse, CheckoutRefreshResponse, CheckoutPrCreateResponse, CheckoutPrMergeResponse, CheckoutPrMergeMethod, CheckoutGithubSetAutoMergeResponse, CheckoutPrStatusResponse, PullRequestTimelineResponse, CheckoutSwitchBranchResponse, StashSaveResponse, StashPopResponse, StashListResponse, ValidateBranchResponse, BranchSuggestionsResponse, GitHubSearchResponse, GitHubSearchRequest, DirectorySuggestionsResponse, PaseoWorktreeListResponse, PaseoWorktreeArchiveResponse, ProjectIconResponse,
|
|
3
|
+
import type { AgentStreamEventPayload, AgentSnapshotPayload, ProjectPlacementPayload, AgentPermissionResolvedMessage, CreateAgentRequestMessage, CreatePaseoWorktreeRequest, FileDownloadTokenResponse, FileExplorerResponse, FetchAgentTimelineResponseMessage, GitSetupOptions, CheckoutStatusResponse, CheckoutCommitResponse, CheckoutMergeResponse, CheckoutMergeFromBaseResponse, CheckoutPullResponse, CheckoutPushResponse, CheckoutRefreshResponse, CheckoutPrCreateResponse, CheckoutPrMergeResponse, CheckoutPrMergeMethod, CheckoutGithubSetAutoMergeResponse, CheckoutPrStatusResponse, PullRequestTimelineResponse, CheckoutSwitchBranchResponse, StashSaveResponse, StashPopResponse, StashListResponse, ValidateBranchResponse, BranchSuggestionsResponse, GitHubSearchResponse, GitHubSearchRequest, DirectorySuggestionsResponse, PaseoWorktreeListResponse, PaseoWorktreeArchiveResponse, ProjectIconResponse, OpenProjectResponseMessage, ArchiveWorkspaceResponseMessage, WorkspaceSetupStatusResponseMessage, ListCommandsResponse, ListProviderFeaturesResponseMessage, ListProviderModelsResponseMessage, ListProviderModesResponseMessage, ListAvailableProvidersResponse, GetProvidersSnapshotResponseMessage, RefreshProvidersSnapshotResponseMessage, ProviderDiagnosticResponseMessage, DaemonGetStatusResponse, DaemonGetPairingOfferResponse, AgentRewindResponseMessage, ListTerminalsResponse, CreateTerminalResponse, SubscribeTerminalResponse, SubscribeTerminalRequest, CloseItemsResponse, KillTerminalResponse, CaptureTerminalResponse, TerminalInput, SessionInboundMessage, SessionOutboundMessage, SendAgentMessageRequest, PaseoConfigRaw, PaseoConfigRevision } from "@getpaseo/protocol/messages";
|
|
4
4
|
import type { AgentPermissionRequest, AgentPermissionResponse, AgentPersistenceHandle, AgentProvider, AgentSessionConfig } from "@getpaseo/protocol/agent-types";
|
|
5
5
|
import type { MutableDaemonConfig, MutableDaemonConfigPatch } from "@getpaseo/protocol/messages";
|
|
6
6
|
import { type DaemonTransportFactory, type WebSocketFactory } from "./daemon-client-transport.js";
|
|
@@ -483,12 +483,9 @@ export interface RenameTerminalInput {
|
|
|
483
483
|
title: string;
|
|
484
484
|
requestId?: string;
|
|
485
485
|
}
|
|
486
|
-
type ListAvailableEditorsPayload = ListAvailableEditorsResponseMessage["payload"];
|
|
487
|
-
type OpenInEditorPayload = OpenInEditorResponseMessage["payload"];
|
|
488
486
|
type OpenProjectPayload = OpenProjectResponseMessage["payload"];
|
|
489
487
|
type ArchiveWorkspacePayload = ArchiveWorkspaceResponseMessage["payload"];
|
|
490
488
|
type WorkspaceSetupStatusPayload = WorkspaceSetupStatusResponseMessage["payload"];
|
|
491
|
-
export type EditorTargetDescriptor = ListAvailableEditorsPayload["editors"][number];
|
|
492
489
|
export interface FetchAgentResult {
|
|
493
490
|
agent: AgentSnapshotPayload;
|
|
494
491
|
project: ProjectPlacementPayload | null;
|
|
@@ -582,6 +579,7 @@ export declare class DaemonClient {
|
|
|
582
579
|
private sendNamespacedCorrelatedSessionRequest;
|
|
583
580
|
private sendSessionMessageStrict;
|
|
584
581
|
clearAgentAttention(agentId: string | string[]): Promise<void>;
|
|
582
|
+
clearWorkspaceAttention(workspaceId: string | string[]): Promise<void>;
|
|
585
583
|
sendHeartbeat(params: {
|
|
586
584
|
deviceType: "web" | "mobile";
|
|
587
585
|
focusedAgentId: string | null;
|
|
@@ -613,8 +611,6 @@ export declare class DaemonClient {
|
|
|
613
611
|
startWorkspaceScript(workspaceId: string, scriptName: string, requestId?: string): Promise<Extract<SessionOutboundMessage, {
|
|
614
612
|
type: "start_workspace_script_response";
|
|
615
613
|
}>["payload"]>;
|
|
616
|
-
listAvailableEditors(requestId?: string): Promise<ListAvailableEditorsPayload>;
|
|
617
|
-
openInEditor(path: string, editorId: EditorTargetId, requestId?: string): Promise<OpenInEditorPayload>;
|
|
618
614
|
archiveWorkspace(workspaceId: string, requestId?: string): Promise<ArchiveWorkspacePayload>;
|
|
619
615
|
fetchWorkspaceSetupStatus(workspaceId: string, requestId?: string): Promise<WorkspaceSetupStatusPayload>;
|
|
620
616
|
fetchAgent(agentId: string, requestId?: string): Promise<FetchAgentResult | null>;
|
package/dist/daemon-client.js
CHANGED
|
@@ -694,6 +694,32 @@ export class DaemonClient {
|
|
|
694
694
|
},
|
|
695
695
|
});
|
|
696
696
|
}
|
|
697
|
+
async clearWorkspaceAttention(workspaceId) {
|
|
698
|
+
const requestId = this.createRequestId();
|
|
699
|
+
const message = SessionInboundMessageSchema.parse({
|
|
700
|
+
type: "workspace.clear_attention.request",
|
|
701
|
+
workspaceId,
|
|
702
|
+
requestId,
|
|
703
|
+
});
|
|
704
|
+
const response = await this.sendRequest({
|
|
705
|
+
requestId,
|
|
706
|
+
message,
|
|
707
|
+
timeout: 15000,
|
|
708
|
+
options: { skipQueue: true },
|
|
709
|
+
select: (msg) => {
|
|
710
|
+
if (msg.type !== "workspace.clear_attention.response") {
|
|
711
|
+
return null;
|
|
712
|
+
}
|
|
713
|
+
if (msg.payload.requestId !== requestId) {
|
|
714
|
+
return null;
|
|
715
|
+
}
|
|
716
|
+
return msg.payload;
|
|
717
|
+
},
|
|
718
|
+
});
|
|
719
|
+
if (!response.success) {
|
|
720
|
+
throw new Error(response.error ?? "Failed to clear workspace attention");
|
|
721
|
+
}
|
|
722
|
+
}
|
|
697
723
|
sendHeartbeat(params) {
|
|
698
724
|
this.sendSessionMessage({
|
|
699
725
|
type: "client_heartbeat",
|
|
@@ -909,28 +935,6 @@ export class DaemonClient {
|
|
|
909
935
|
timeout: 10000,
|
|
910
936
|
});
|
|
911
937
|
}
|
|
912
|
-
async listAvailableEditors(requestId) {
|
|
913
|
-
return this.sendCorrelatedSessionRequest({
|
|
914
|
-
requestId,
|
|
915
|
-
message: {
|
|
916
|
-
type: "list_available_editors_request",
|
|
917
|
-
},
|
|
918
|
-
responseType: "list_available_editors_response",
|
|
919
|
-
timeout: 10000,
|
|
920
|
-
});
|
|
921
|
-
}
|
|
922
|
-
async openInEditor(path, editorId, requestId) {
|
|
923
|
-
return this.sendCorrelatedSessionRequest({
|
|
924
|
-
requestId,
|
|
925
|
-
message: {
|
|
926
|
-
type: "open_in_editor_request",
|
|
927
|
-
path,
|
|
928
|
-
editorId,
|
|
929
|
-
},
|
|
930
|
-
responseType: "open_in_editor_response",
|
|
931
|
-
timeout: 10000,
|
|
932
|
-
});
|
|
933
|
-
}
|
|
934
938
|
async archiveWorkspace(workspaceId, requestId) {
|
|
935
939
|
return this.sendCorrelatedSessionRequest({
|
|
936
940
|
requestId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpaseo/client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.90",
|
|
4
4
|
"description": "Paseo client SDK package",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -26,15 +26,17 @@
|
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
|
-
"
|
|
30
|
-
"
|
|
29
|
+
"clean": "node ../../scripts/clean-package-dist.mjs",
|
|
30
|
+
"build": "tsc -p tsconfig.json --incremental false",
|
|
31
|
+
"build:clean": "npm run clean && npm run build",
|
|
32
|
+
"prepack": "npm run build:clean",
|
|
31
33
|
"typecheck": "tsgo --noEmit",
|
|
32
34
|
"typecheck:examples": "tsgo -p tsconfig.examples.json --noEmit",
|
|
33
35
|
"test": "vitest run"
|
|
34
36
|
},
|
|
35
37
|
"dependencies": {
|
|
36
|
-
"@getpaseo/protocol": "0.1.
|
|
37
|
-
"@getpaseo/relay": "0.1.
|
|
38
|
+
"@getpaseo/protocol": "0.1.90",
|
|
39
|
+
"@getpaseo/relay": "0.1.90",
|
|
38
40
|
"zod": "^3.23.8"
|
|
39
41
|
},
|
|
40
42
|
"devDependencies": {
|