Add Codex model selection

This commit is contained in:
weishu
2026-04-25 10:48:12 +08:00
parent b712ee67a5
commit 97be34e21c
30 changed files with 644 additions and 58 deletions
+12
View File
@@ -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)
}
}