(id: string)
| 22 | import type { Machine } from './types' |
| 23 | |
| 24 | function makeMachine(id: string): Machine { |
| 25 | return { |
| 26 | id, |
| 27 | namespace: 'default', |
| 28 | seq: 1, |
| 29 | createdAt: 0, |
| 30 | updatedAt: 0, |
| 31 | active: true, |
| 32 | activeAt: 0, |
| 33 | metadata: null, |
| 34 | metadataVersion: 0, |
| 35 | runnerState: null, |
| 36 | runnerStateVersion: 0 |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | async function callListOpencodeModels(client: ApiMachineClient, machineId: string, cwd: string): Promise<unknown> { |
| 41 | // Reach into the private rpc handler manager to dispatch a request. |