Skip to repository content

tenant.openagents/omega

No repository description is available.

OpenAgents Git authority 2026-07-28T07:26:40.075Z Public web read
NIP-34 coordinate30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omega
MaintainersHidden in public view
References2 branches · 1 tag
Read-only clonegit clone https://openagents.com/git/tenant.openagents/omega.git
Browse files

process.wit

30 lines · 917 B · text
1interface process {
2    use common.{env-vars};
3
4    /// A command.
5    record command {
6        /// The command to execute.
7        command: string,
8        /// The arguments to pass to the command.
9        args: list<string>,
10        /// The environment variables to set for the command.
11        env: env-vars,
12    }
13
14    /// The output of a finished process.
15    record output {
16        /// The status (exit code) of the process.
17        ///
18        /// On Unix, this will be `None` if the process was terminated by a signal.
19        status: option<s32>,
20        /// The data that the process wrote to stdout.
21        stdout: list<u8>,
22        /// The data that the process wrote to stderr.
23        stderr: list<u8>,
24    }
25
26    /// Executes the given command as a child process, waiting for it to finish
27    /// and collecting all of its output.
28    run-command: func(command: command) -> result<output, string>;
29}
30
Served at tenant.openagents/omega Member data and write actions are omitted.