@getpaseo/client 0.2.3 → 0.2.4
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 +4 -0
- package/dist/daemon-client.js +20 -0
- package/package.json +3 -3
package/dist/daemon-client.d.ts
CHANGED
|
@@ -424,6 +424,9 @@ export type FetchWorkspacesOptions = Omit<FetchWorkspacesRequest, "type" | "requ
|
|
|
424
424
|
};
|
|
425
425
|
export type FetchWorkspacesEntry = FetchWorkspacesPayload["entries"][number];
|
|
426
426
|
export type FetchWorkspacesPageInfo = FetchWorkspacesPayload["pageInfo"];
|
|
427
|
+
export type ProjectListPayload = Extract<SessionOutboundMessage, {
|
|
428
|
+
type: "project.list.response";
|
|
429
|
+
}>["payload"];
|
|
427
430
|
export interface CreateChatRoomOptions {
|
|
428
431
|
name: string;
|
|
429
432
|
purpose?: string | null;
|
|
@@ -701,6 +704,7 @@ export declare class DaemonClient {
|
|
|
701
704
|
fetchAgentHistory(options?: FetchAgentHistoryOptions): Promise<FetchAgentHistoryPayload>;
|
|
702
705
|
fetchRecentProviderSessions(options?: FetchRecentProviderSessionsOptions): Promise<FetchRecentProviderSessionsPayload>;
|
|
703
706
|
fetchWorkspaces(options?: FetchWorkspacesOptions): Promise<FetchWorkspacesPayload>;
|
|
707
|
+
listProjects(requestId?: string): Promise<ProjectListPayload>;
|
|
704
708
|
openProject(cwd: string, requestId?: string): Promise<OpenProjectPayload>;
|
|
705
709
|
addProject(cwd: string, requestId?: string): Promise<ProjectAddPayload>;
|
|
706
710
|
createProjectDirectory(input: {
|
package/dist/daemon-client.js
CHANGED
|
@@ -1064,6 +1064,25 @@ export class DaemonClient {
|
|
|
1064
1064
|
},
|
|
1065
1065
|
});
|
|
1066
1066
|
}
|
|
1067
|
+
async listProjects(requestId) {
|
|
1068
|
+
const resolvedRequestId = this.createRequestId(requestId);
|
|
1069
|
+
const message = SessionInboundMessageSchema.parse({
|
|
1070
|
+
type: "project.list.request",
|
|
1071
|
+
requestId: resolvedRequestId,
|
|
1072
|
+
});
|
|
1073
|
+
return this.sendRequest({
|
|
1074
|
+
requestId: resolvedRequestId,
|
|
1075
|
+
message,
|
|
1076
|
+
options: { skipQueue: true },
|
|
1077
|
+
select: (msg) => {
|
|
1078
|
+
if (msg.type !== "project.list.response")
|
|
1079
|
+
return null;
|
|
1080
|
+
if (msg.payload.requestId !== resolvedRequestId)
|
|
1081
|
+
return null;
|
|
1082
|
+
return msg.payload;
|
|
1083
|
+
},
|
|
1084
|
+
});
|
|
1085
|
+
}
|
|
1067
1086
|
async openProject(cwd, requestId) {
|
|
1068
1087
|
return this.sendCorrelatedSessionRequest({
|
|
1069
1088
|
requestId,
|
|
@@ -2221,6 +2240,7 @@ export class DaemonClient {
|
|
|
2221
2240
|
cwd: payload.cwd,
|
|
2222
2241
|
files: payload.files,
|
|
2223
2242
|
error: payload.error,
|
|
2243
|
+
diffTooLarge: payload.diffTooLarge,
|
|
2224
2244
|
requestId: payload.requestId,
|
|
2225
2245
|
};
|
|
2226
2246
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpaseo/client",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
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.2.
|
|
39
|
-
"@getpaseo/relay": "0.2.
|
|
38
|
+
"@getpaseo/protocol": "0.2.4",
|
|
39
|
+
"@getpaseo/relay": "0.2.4",
|
|
40
40
|
"zod": "^4.4.3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|