Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

742 B
Raw Blame
/**
 * Add-ons for a device that is this Harness machine (lib/autonomous-device/machineAddons.ts, openharness#1654): the
 * device's own service over this machine's loopback routes, and the owner's machines over the machine link, both
 * through the one `machine_addon` request. In the devices' process (started at its first request), or in the core's
 * process with the services there.
 */
import type { CoreApi, ServiceRequests } from '../core/api.js'
import { MachineAddons } from '../lib/autonomous-device/machineAddons.js'

export { MACHINE_ADDON_REQUESTS } from '../core/api.js'

export function startMachineAddons(core: CoreApi): ServiceRequests {
  return new MachineAddons({ machineId: () => core.daemon.machineId() }).requests()
}