Update files

This commit is contained in:
Mohamed Boudra
2026-01-26 20:38:39 +07:00
parent c233c99cd3
commit 637967fa14
9 changed files with 853 additions and 8 deletions
@@ -31,6 +31,7 @@ import type {
CheckoutPrStatusResponse,
PaseoWorktreeListResponse,
PaseoWorktreeArchiveResponse,
ProjectIconResponse,
ListCommandsResponse,
ExecuteCommandResponse,
ListVoiceConversationsResponseMessage,
@@ -1599,6 +1600,33 @@ export class DaemonClientV2 {
return response;
}
async requestProjectIcon(
cwd: string,
requestId?: string
): Promise<ProjectIconResponse["payload"]> {
const resolvedRequestId = this.createRequestId(requestId);
const message = SessionInboundMessageSchema.parse({
type: "project_icon_request",
cwd,
requestId: resolvedRequestId,
});
const response = this.waitFor(
(msg) => {
if (msg.type !== "project_icon_response") {
return null;
}
if (msg.payload.requestId !== resolvedRequestId) {
return null;
}
return msg.payload;
},
10000,
{ skipQueue: true }
);
await this.sendSessionMessageOrThrow(message);
return response;
}
// ============================================================================
// Provider Models / Commands
// ============================================================================