mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
feat(codex): preview generated images in chat (#630)
This commit is contained in:
@@ -20,6 +20,7 @@ import {
|
||||
type RpcCodexModel,
|
||||
type RpcCommandResponse,
|
||||
type RpcDeleteUploadResponse,
|
||||
type RpcGeneratedImageResponse,
|
||||
type RpcListDirectoryResponse,
|
||||
type RpcListCodexModelsResponse,
|
||||
type RpcListOpencodeModelsResponse,
|
||||
@@ -37,6 +38,7 @@ export type {
|
||||
RpcCodexModel,
|
||||
RpcCommandResponse,
|
||||
RpcDeleteUploadResponse,
|
||||
RpcGeneratedImageResponse,
|
||||
RpcListDirectoryResponse,
|
||||
RpcListCodexModelsResponse,
|
||||
RpcListOpencodeModelsResponse,
|
||||
@@ -655,6 +657,10 @@ export class SyncEngine {
|
||||
return await this.rpcGateway.readSessionFile(sessionId, path)
|
||||
}
|
||||
|
||||
async readGeneratedImage(sessionId: string, imageId: string): Promise<RpcGeneratedImageResponse> {
|
||||
return await this.rpcGateway.readGeneratedImage(sessionId, imageId)
|
||||
}
|
||||
|
||||
async listDirectory(sessionId: string, path: string): Promise<RpcListDirectoryResponse> {
|
||||
return await this.rpcGateway.listDirectory(sessionId, path)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user