Skip to content
Concepts

Concepts

Wire contract for one Fungi Computer's operations: discovery, files, commands, processes and ports

The wire contract for one Fungi Computer: the Zod schemas and types for operation discovery, files, commands, processes and ports, shared by every host and client that talks to a Computer. It has no runtime of its own and does not depend on @fungi.computer/computer, so an App or a client can decode Computer operations without pulling in the Computer host.

  • Operation schemas describe each Computer operation’s input and output: files (read, write, replace, list, patch, mkdir), command execution, processes and ports. A host decodes requests with them; a client decodes results with them.
  • Request identifiers name one admitted operation, so repeating a request reads the same operation instead of running it again.
  • Backend ids name the attached execution backend an operation ran on.