mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
Add Codex model selection
This commit is contained in:
@@ -17,9 +17,11 @@ import { MachineCache, type Machine } from './machineCache'
|
||||
import { MessageService } from './messageService'
|
||||
import {
|
||||
RpcGateway,
|
||||
type RpcCodexModel,
|
||||
type RpcCommandResponse,
|
||||
type RpcDeleteUploadResponse,
|
||||
type RpcListDirectoryResponse,
|
||||
type RpcListCodexModelsResponse,
|
||||
type RpcPathExistsResponse,
|
||||
type RpcReadFileResponse,
|
||||
type RpcUploadFileResponse
|
||||
@@ -30,9 +32,11 @@ export type { Session, SyncEvent } from '@hapi/protocol/types'
|
||||
export type { Machine } from './machineCache'
|
||||
export type { SyncEventListener } from './eventPublisher'
|
||||
export type {
|
||||
RpcCodexModel,
|
||||
RpcCommandResponse,
|
||||
RpcDeleteUploadResponse,
|
||||
RpcListDirectoryResponse,
|
||||
RpcListCodexModelsResponse,
|
||||
RpcPathExistsResponse,
|
||||
RpcReadFileResponse,
|
||||
RpcUploadFileResponse
|
||||
@@ -555,4 +559,12 @@ export class SyncEngine {
|
||||
}> {
|
||||
return await this.rpcGateway.listSkills(sessionId)
|
||||
}
|
||||
|
||||
async listCodexModelsForSession(sessionId: string): Promise<RpcListCodexModelsResponse> {
|
||||
return await this.rpcGateway.listCodexModelsForSession(sessionId)
|
||||
}
|
||||
|
||||
async listCodexModelsForMachine(machineId: string): Promise<RpcListCodexModelsResponse> {
|
||||
return await this.rpcGateway.listCodexModelsForMachine(machineId)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user