MCPcopy Create free account
hub / github.com/tiann/hapi / makeMachine

Function makeMachine

cli/src/api/apiMachine.test.ts:24–38  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

22import type { Machine } from './types'
23
24function 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
40async function callListOpencodeModels(client: ApiMachineClient, machineId: string, cwd: string): Promise<unknown> {
41 // Reach into the private rpc handler manager to dispatch a request.

Callers 1

apiMachine.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected