@parcha/agentrun-computer 0.1.0-beta.39 → 0.1.0-beta.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -7
- package/box/Dockerfile +5 -54
- package/box/README.md +7 -2
- package/box/build-daytona.py +2 -2
- package/box/build-e2b.mjs +1 -1
- package/box/install.sh +87 -0
- package/box/recipe.mjs +12 -10
- package/dist/agent37.js +2 -1
- package/dist/computerd-linux-amd64 +0 -0
- package/dist/computerd-linux-arm64 +0 -0
- package/dist/computerd.json +2 -2
- package/dist/conformance/cases/isolation.js +17 -1
- package/dist/conformance/cases/lifetime.js +30 -0
- package/dist/conformance/cases/provider.js +47 -1
- package/dist/conformance/cli.js +23 -4
- package/dist/conformance/exec-stream.d.ts +37 -7
- package/dist/conformance/exec-stream.js +339 -87
- package/dist/conformance/report.js +3 -0
- package/dist/conformance/runner.js +127 -9
- package/dist/conformance/types.d.ts +21 -0
- package/dist/daytona.js +4 -2
- package/dist/host.d.ts +60 -19
- package/dist/host.js +5 -0
- package/dist/hosted/framed-exec.d.ts +49 -0
- package/dist/hosted/framed-exec.js +185 -0
- package/dist/hosted/process.d.ts +11 -5
- package/dist/hosted/process.js +30 -12
- package/dist/hosted/provider.d.ts +10 -5
- package/dist/hosted/provider.js +233 -36
- package/dist/hosted/rest.d.ts +10 -0
- package/dist/hosted/rest.js +15 -6
- package/dist/hosted/scripts.d.ts +8 -0
- package/dist/hosted/scripts.js +22 -0
- package/dist/hosted/values.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
// exec for a vendor whose process comes in pieces: a call that starts it, a stream of its events, a call per write to
|
|
2
|
+
// its stdin, and, where the vendor has them, a call that ends its stdin and one that kills it. framedExec turns those
|
|
3
|
+
// pieces into the MachineProcess the adapter reads (../host.ts, exec), so a vendor writes only its own calls. It owns
|
|
4
|
+
// the rest: the writes go one call after another, in order, each answered before the next starts; output becomes
|
|
5
|
+
// bytes, its events read no faster than the caller reads it; and a vendor with no kill gets one by pid. PROVIDERS.md, "Exec shapes that work", has a worked example.
|
|
6
|
+
import { once } from "node:events";
|
|
7
|
+
import { PassThrough } from "node:stream";
|
|
8
|
+
/**
|
|
9
|
+
* The sh a process starts under when the vendor has no kill: one line on stderr, its pid and its start time (field 22
|
|
10
|
+
* of /proc/<pid>/stat, counted past the command's name in parentheses, which may hold spaces), then the command in its
|
|
11
|
+
* place, which keeps both.
|
|
12
|
+
*/
|
|
13
|
+
export const PID_WRAPPER = ["sh", "-c", 'echo "$$ $(s=$(cat /proc/$$/stat) && set -- ${s##*") "} && echo "${20}")" >&2; exec "$@"', "sh"];
|
|
14
|
+
/**
|
|
15
|
+
* The sh kill() starts, given the pid and start time: a pid whose process has ended, and may be another's now, is let
|
|
16
|
+
* be. Otherwise it kills the process and every process under it (an upload's head and base64 would wait on the open
|
|
17
|
+
* stdin, and hold stderr open, past their sh): each is stopped as it is found, so none forks away, by its parent pid
|
|
18
|
+
* (field 4 of its stat) until a pass over /proc finds no more, and then all are killed.
|
|
19
|
+
*/
|
|
20
|
+
export const PID_KILL = [
|
|
21
|
+
"pid=$1 start=$2",
|
|
22
|
+
'read -r s 2>/dev/null <"/proc/$pid/stat" || exit 0',
|
|
23
|
+
'set -- ${s##*") "}',
|
|
24
|
+
'[ "${20}" = "$start" ] || exit 0',
|
|
25
|
+
'kill -STOP "$pid" 2>/dev/null',
|
|
26
|
+
'all=" $pid " new=$pid',
|
|
27
|
+
'while [ -n "$new" ]; do',
|
|
28
|
+
"\tnew=",
|
|
29
|
+
"\tfor f in /proc/[0-9]*/stat; do",
|
|
30
|
+
'\t\tread -r s 2>/dev/null <"$f" || continue',
|
|
31
|
+
"\t\tp=${s%% *}",
|
|
32
|
+
'\t\tset -- ${s##*") "}',
|
|
33
|
+
'\t\tcase "$all" in *" $p "*) continue ;; esac',
|
|
34
|
+
'\t\tcase "$all" in *" $2 "*) all="$all$p " new="$new $p"; kill -STOP "$p" 2>/dev/null ;; esac',
|
|
35
|
+
"\tdone",
|
|
36
|
+
"done",
|
|
37
|
+
"kill -KILL $all 2>/dev/null",
|
|
38
|
+
"exit 0",
|
|
39
|
+
].join("\n");
|
|
40
|
+
/** argv started through a vendor's pieces, as the MachineProcess exec answers. */
|
|
41
|
+
export async function framedExec(pieces, argv, ctx) {
|
|
42
|
+
const byPid = pieces.kill === undefined;
|
|
43
|
+
const handle = await pieces.start(byPid ? [...PID_WRAPPER, ...argv] : argv, ctx);
|
|
44
|
+
const stdout = new PassThrough();
|
|
45
|
+
const stderr = new PassThrough();
|
|
46
|
+
// ended: the events stopped, so output and writes are done with. exitRead: the process's own exit came among them; a
|
|
47
|
+
// stream that broke without one leaves a process that may still run, which kill() still ends by its pid.
|
|
48
|
+
let ended = false;
|
|
49
|
+
let exitRead = false;
|
|
50
|
+
const killed = new AbortController();
|
|
51
|
+
/**
|
|
52
|
+
* Output on: while its reader is behind (the stream's buffer full), the events wait, until it drains or kill(). A
|
|
53
|
+
* reader that let go (a stream destroyed) drops the rest, so the exit still comes.
|
|
54
|
+
*/
|
|
55
|
+
const push = async (stream, bytes) => {
|
|
56
|
+
if (stream.writableEnded || stream.destroyed || stream.write(bytes))
|
|
57
|
+
return;
|
|
58
|
+
// One signal for both waits, aborted after: the one that lost leaves no listener behind.
|
|
59
|
+
const waited = new AbortController();
|
|
60
|
+
const signal = AbortSignal.any([killed.signal, waited.signal]);
|
|
61
|
+
await Promise.race([once(stream, "drain", { signal }), once(stream, "close", { signal })]).catch(() => { });
|
|
62
|
+
waited.abort();
|
|
63
|
+
};
|
|
64
|
+
// With no vendor kill, stderr's first line is the pid and its start time: held until it ends, then the rest is the
|
|
65
|
+
// process's own.
|
|
66
|
+
let pidLine = byPid ? Buffer.alloc(0) : undefined;
|
|
67
|
+
let gotPid = () => { };
|
|
68
|
+
const pid = new Promise((done) => (gotPid = done));
|
|
69
|
+
const toStderr = async (bytes) => {
|
|
70
|
+
if (pidLine === undefined)
|
|
71
|
+
return push(stderr, bytes);
|
|
72
|
+
pidLine = Buffer.concat([pidLine, bytes]);
|
|
73
|
+
const at = pidLine.indexOf(0x0a);
|
|
74
|
+
if (at < 0)
|
|
75
|
+
return;
|
|
76
|
+
gotPid(pidLine.subarray(0, at).toString("latin1").trim());
|
|
77
|
+
const rest = pidLine.subarray(at + 1);
|
|
78
|
+
pidLine = undefined;
|
|
79
|
+
if (rest.length > 0)
|
|
80
|
+
await push(stderr, rest);
|
|
81
|
+
};
|
|
82
|
+
const exited = (async () => {
|
|
83
|
+
let code = -1;
|
|
84
|
+
try {
|
|
85
|
+
for await (const event of pieces.events(handle)) {
|
|
86
|
+
if ("exit" in event) {
|
|
87
|
+
code = event.exit;
|
|
88
|
+
exitRead = true;
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
const bytes = "text" in event ? Buffer.from(event.text, "utf8") : Buffer.from(event.base64, "base64");
|
|
92
|
+
if (event.stream === "stdout")
|
|
93
|
+
await push(stdout, bytes);
|
|
94
|
+
else
|
|
95
|
+
await toStderr(bytes);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
catch {
|
|
99
|
+
// A stream that broke: no exit code was read.
|
|
100
|
+
}
|
|
101
|
+
ended = true;
|
|
102
|
+
gotPid(undefined);
|
|
103
|
+
stdout.end();
|
|
104
|
+
stderr.end();
|
|
105
|
+
return code;
|
|
106
|
+
})();
|
|
107
|
+
// The writes as one queue: each call starts once the one before it answered, and one that failed fails every one after.
|
|
108
|
+
// ignoreBOM: a U+FEFF that starts stdin is text like any other, never a mark to drop.
|
|
109
|
+
const decoder = new TextDecoder("utf-8", { ignoreBOM: true });
|
|
110
|
+
let queue = Promise.resolve();
|
|
111
|
+
const send = (text) => {
|
|
112
|
+
if (ended)
|
|
113
|
+
return Promise.reject(new Error("the process has ended"));
|
|
114
|
+
const sent = queue.then(() => (text === "" ? undefined : pieces.write(handle, text)));
|
|
115
|
+
sent.catch(() => { });
|
|
116
|
+
queue = sent;
|
|
117
|
+
return sent;
|
|
118
|
+
};
|
|
119
|
+
/** "<pid> <start time>", once stderr's first line gives it; undefined once the process ended, or past ctx's bound. */
|
|
120
|
+
const pidWithin = async () => {
|
|
121
|
+
let timer;
|
|
122
|
+
const late = new Promise((done) => (timer = setTimeout(() => done(undefined), ctx.timeoutMs)));
|
|
123
|
+
try {
|
|
124
|
+
return await Promise.race([pid, late]);
|
|
125
|
+
}
|
|
126
|
+
finally {
|
|
127
|
+
clearTimeout(timer);
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
return {
|
|
131
|
+
stdout,
|
|
132
|
+
stderr,
|
|
133
|
+
write: (bytes) => send(decoder.decode(bytes, { stream: true })),
|
|
134
|
+
end: async () => {
|
|
135
|
+
// A process that has ended, as one that read all it wanted can before its end (the upload), has no stdin to end.
|
|
136
|
+
if (ended)
|
|
137
|
+
return;
|
|
138
|
+
await send(decoder.decode());
|
|
139
|
+
await pieces.end?.(handle);
|
|
140
|
+
},
|
|
141
|
+
wait: () => exited,
|
|
142
|
+
kill: async () => {
|
|
143
|
+
killed.abort();
|
|
144
|
+
try {
|
|
145
|
+
if (pieces.kill)
|
|
146
|
+
await pieces.kill(handle);
|
|
147
|
+
else {
|
|
148
|
+
// Not once its exit was read; and after a stream that broke, only while the pid still has its start time: by
|
|
149
|
+
// then the pid may be another process's.
|
|
150
|
+
const target = /^([1-9][0-9]*) ([0-9]+)$/.exec((await pidWithin()) ?? "");
|
|
151
|
+
if (target !== null && !exitRead) {
|
|
152
|
+
const killer = await pieces.start(["sh", "-c", PID_KILL, "sh", target[1], target[2]], { timeoutMs: ctx.timeoutMs });
|
|
153
|
+
for await (const event of pieces.events(killer))
|
|
154
|
+
if ("exit" in event)
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
catch {
|
|
160
|
+
// Best effort: kill never throws.
|
|
161
|
+
}
|
|
162
|
+
stdout.end();
|
|
163
|
+
stderr.end();
|
|
164
|
+
},
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
/** The JSON value of each line of a body of newline-delimited JSON, as the lines come; a line that is not JSON throws. */
|
|
168
|
+
export async function* ndjson(body) {
|
|
169
|
+
const decoder = new TextDecoder();
|
|
170
|
+
let rest = "";
|
|
171
|
+
for await (const chunk of body) {
|
|
172
|
+
rest += decoder.decode(chunk, { stream: true });
|
|
173
|
+
let at = rest.indexOf("\n");
|
|
174
|
+
while (at >= 0) {
|
|
175
|
+
const line = rest.slice(0, at).trim();
|
|
176
|
+
rest = rest.slice(at + 1);
|
|
177
|
+
if (line !== "")
|
|
178
|
+
yield JSON.parse(line);
|
|
179
|
+
at = rest.indexOf("\n");
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
rest += decoder.decode();
|
|
183
|
+
if (rest.trim() !== "")
|
|
184
|
+
yield JSON.parse(rest);
|
|
185
|
+
}
|
package/dist/hosted/process.d.ts
CHANGED
|
@@ -45,18 +45,24 @@ export interface RunResult {
|
|
|
45
45
|
stdout: string;
|
|
46
46
|
stderr: string;
|
|
47
47
|
}
|
|
48
|
+
export declare const OUTPUT_MAX: number;
|
|
48
49
|
/**
|
|
49
|
-
* argv run in the machine as root through exec, stdin (when given
|
|
50
|
-
* ms and the caller's signal; a process past them is killed, and the kill
|
|
51
|
-
* A non-zero exit is a result, not an error.
|
|
50
|
+
* argv run in the machine as root through exec, stdin (when given: one write per piece, each whole UTF-8 text) written
|
|
51
|
+
* and ended, waited for until it ends, within ms and the caller's signal; a process past them is killed, and the kill
|
|
52
|
+
* waited for at most ms (and CALL_SLACK_MS). A non-zero exit is a result, not an error.
|
|
52
53
|
*/
|
|
53
54
|
export declare function runToExit(host: MachineHost, id: string, argv: readonly string[], { stdin, ms, signal, what }: {
|
|
54
|
-
stdin?: Uint8Array
|
|
55
|
+
stdin?: Iterable<Uint8Array>;
|
|
55
56
|
ms: number;
|
|
56
57
|
signal?: AbortSignal;
|
|
57
58
|
what: string;
|
|
58
59
|
}): Promise<Result<RunResult>>;
|
|
59
|
-
/**
|
|
60
|
+
/**
|
|
61
|
+
* The default upload, for a vendor with no file API: the bytes as base64 text through exec's stdin, in pieces, so a
|
|
62
|
+
* vendor whose stdin takes one request at a time (E2B's sendStdin) is never handed a whole binary, and exec carries text
|
|
63
|
+
* alone. root decodes it into the file (`base64 -d`, which coreutils and busybox both have). head reads the text's length
|
|
64
|
+
* and no more, so the upload never waits for an end of stdin a vendor may not give (hosted/framed-exec.ts).
|
|
65
|
+
*/
|
|
60
66
|
export declare function uploadThroughExec(host: MachineHost, id: string, path: string, bytes: Uint8Array, ms: number, signal?: AbortSignal): Promise<Result<void>>;
|
|
61
67
|
/**
|
|
62
68
|
* The root channel into a machine (for the shared Archil steps): argv as root through exec, stdin (one line, then
|
package/dist/hosted/process.js
CHANGED
|
@@ -139,11 +139,11 @@ async function drain(stream, max) {
|
|
|
139
139
|
}
|
|
140
140
|
return kept;
|
|
141
141
|
}
|
|
142
|
-
const OUTPUT_MAX = 64 * 1024;
|
|
142
|
+
export const OUTPUT_MAX = 64 * 1024;
|
|
143
143
|
/**
|
|
144
|
-
* argv run in the machine as root through exec, stdin (when given
|
|
145
|
-
* ms and the caller's signal; a process past them is killed, and the kill
|
|
146
|
-
* A non-zero exit is a result, not an error.
|
|
144
|
+
* argv run in the machine as root through exec, stdin (when given: one write per piece, each whole UTF-8 text) written
|
|
145
|
+
* and ended, waited for until it ends, within ms and the caller's signal; a process past them is killed, and the kill
|
|
146
|
+
* waited for at most ms (and CALL_SLACK_MS). A non-zero exit is a result, not an error.
|
|
147
147
|
*/
|
|
148
148
|
export async function runToExit(host, id, argv, { stdin, ms, signal, what }) {
|
|
149
149
|
const fail = failFor(host.descriptor.id);
|
|
@@ -154,15 +154,14 @@ export async function runToExit(host, id, argv, { stdin, ms, signal, what }) {
|
|
|
154
154
|
const out = drain(proc.stdout, OUTPUT_MAX);
|
|
155
155
|
const err = drain(proc.stderr, OUTPUT_MAX);
|
|
156
156
|
const ran = (async () => {
|
|
157
|
-
//
|
|
158
|
-
// with none to give, stdin ends at once, so the process reads end of file (one that ended already has no stdin). Not
|
|
157
|
+
// With none to give, stdin ends at once, so the process reads end of file (one that ended already has no stdin). Not
|
|
159
158
|
// awaited: a vendor's close that stalls (E2B's closeStdin is a request of its own) never holds up a command that
|
|
160
159
|
// reads no input.
|
|
161
160
|
if (stdin === undefined)
|
|
162
161
|
Promise.resolve().then(() => proc.end()).catch(() => { });
|
|
163
162
|
else {
|
|
164
|
-
for (
|
|
165
|
-
await proc.write(
|
|
163
|
+
for (const piece of stdin)
|
|
164
|
+
await proc.write(piece);
|
|
166
165
|
await proc.end();
|
|
167
166
|
}
|
|
168
167
|
const exitCode = await proc.wait();
|
|
@@ -178,10 +177,29 @@ export async function runToExit(host, id, argv, { stdin, ms, signal, what }) {
|
|
|
178
177
|
}
|
|
179
178
|
return result;
|
|
180
179
|
}
|
|
181
|
-
|
|
182
|
-
|
|
180
|
+
/** A piece of the upload: 192 KiB, which base64 writes as 256 KiB of text, padded at the file's end alone. */
|
|
181
|
+
const UPLOAD_PIECE = 192 * 1024;
|
|
182
|
+
/** The bytes as base64 text, a piece at a time: no more of it in memory at once than one piece. */
|
|
183
|
+
function* base64Pieces(bytes) {
|
|
184
|
+
for (let at = 0; at < bytes.length; at += UPLOAD_PIECE) {
|
|
185
|
+
const piece = Buffer.from(bytes.buffer, bytes.byteOffset + at, Math.min(UPLOAD_PIECE, bytes.length - at));
|
|
186
|
+
yield Buffer.from(piece.toString("base64"), "latin1");
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* The default upload, for a vendor with no file API: the bytes as base64 text through exec's stdin, in pieces, so a
|
|
191
|
+
* vendor whose stdin takes one request at a time (E2B's sendStdin) is never handed a whole binary, and exec carries text
|
|
192
|
+
* alone. root decodes it into the file (`base64 -d`, which coreutils and busybox both have). head reads the text's length
|
|
193
|
+
* and no more, so the upload never waits for an end of stdin a vendor may not give (hosted/framed-exec.ts).
|
|
194
|
+
*/
|
|
183
195
|
export async function uploadThroughExec(host, id, path, bytes, ms, signal) {
|
|
184
|
-
const
|
|
196
|
+
const length = 4 * Math.ceil(bytes.length / 3);
|
|
197
|
+
const ran = await runToExit(host, id, ["sh", "-c", 'umask 077 && head -c "$2" | base64 -d > "$1"', "sh", path, String(length)], {
|
|
198
|
+
stdin: base64Pieces(bytes),
|
|
199
|
+
ms,
|
|
200
|
+
...(signal ? { signal } : {}),
|
|
201
|
+
what: `the upload to ${path}`,
|
|
202
|
+
});
|
|
185
203
|
if (!ran.ok)
|
|
186
204
|
return ran;
|
|
187
205
|
return ran.value.exitCode === 0 ? ok(undefined) : failFor(host.descriptor.id)("vendor", `the upload to ${path} exited with ${ran.value.exitCode}: ${`${ran.value.stdout} ${ran.value.stderr}`.trim().slice(0, 300)}`);
|
|
@@ -194,7 +212,7 @@ export async function uploadThroughExec(host, id, path, bytes, ms, signal) {
|
|
|
194
212
|
export function rootOf(host, id, name) {
|
|
195
213
|
return {
|
|
196
214
|
run: async (argv, { stdin, timeoutMs, signal }) => {
|
|
197
|
-
const ran = await runToExit(host, id, argv, { ...(stdin === undefined ? {} : { stdin: new Uint8Array(Buffer.from(stdin, "utf8")) }), ms: timeoutMs, ...(signal ? { signal } : {}), what: `root's ${argv[0] === undefined ? "command" : argv[0].split("/").pop()} in ${name}` });
|
|
215
|
+
const ran = await runToExit(host, id, argv, { ...(stdin === undefined ? {} : { stdin: [new Uint8Array(Buffer.from(stdin, "utf8"))] }), ms: timeoutMs, ...(signal ? { signal } : {}), what: `root's ${argv[0] === undefined ? "command" : argv[0].split("/").pop()} in ${name}` });
|
|
198
216
|
return ran.ok ? ok({ exitCode: ran.value.exitCode, output: `${ran.value.stdout}${ran.value.stderr}` }) : ran;
|
|
199
217
|
},
|
|
200
218
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type DesktopOptions } from "../desktop.js";
|
|
2
|
-
import type
|
|
2
|
+
import { type Machine, type MachineHost } from "../host.js";
|
|
3
3
|
import { type ProviderNote } from "../mount-archil.js";
|
|
4
4
|
import { type AttachedComputer, type AttachContext, type CallContext, type ComputerCapabilities, type ComputerConnection, type ComputerInfo, type ComputerProvider, type ComputerRef, type ComputerSpec, type CreateContext, type CreatedComputer, type NetworkPolicy, type NetworkSpec, type Refusal, type ReleaseContext, type ReleaseHow } from "../provider.js";
|
|
5
5
|
import { type Result } from "../result.js";
|
|
@@ -22,7 +22,10 @@ export interface HostedTimeouts {
|
|
|
22
22
|
listMs: number;
|
|
23
23
|
/** From a delete to get answering none for the machine. */
|
|
24
24
|
goneMs: number;
|
|
25
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* The first pause between two reads while release waits; the pauses double up to 5 s. The longest pause between two
|
|
27
|
+
* listings while create waits for the new computer to show: those start at 150 ms and double up to it.
|
|
28
|
+
*/
|
|
26
29
|
pollMs: number;
|
|
27
30
|
/** How long create waits for the listing to show the new computer. */
|
|
28
31
|
listedMs: number;
|
|
@@ -141,13 +144,15 @@ export declare class HostedProvider implements ComputerProvider {
|
|
|
141
144
|
}
|
|
142
145
|
/**
|
|
143
146
|
* The host's listing by labels, bounded by ms: only the machines that carry every one of them, since a vendor's listing
|
|
144
|
-
* may answer more (MachineHost.list).
|
|
147
|
+
* may answer more (MachineHost.list). A host that keeps labels in the machine lists none: its machines of another name
|
|
148
|
+
* are left out, and the rest kept for foundBy to read.
|
|
145
149
|
*/
|
|
146
150
|
export declare function listedBy(host: MachineHost, what: string, labels: Record<string, string>, ms: number, signal?: AbortSignal): Promise<Result<Machine[]>>;
|
|
147
151
|
/**
|
|
148
152
|
* The listing finds, get answers (MachineHost.list): the machines the host's listing by labels names, each read now by
|
|
149
|
-
* readMachine, within requestMs
|
|
150
|
-
* not every label
|
|
153
|
+
* readMachine, within requestMs, and its label file where the host keeps labels in the machine. One the vendor no longer
|
|
154
|
+
* has (not found) is dropped, and so is one whose get carries not every label, but a machine of the name asked for whose
|
|
155
|
+
* labels are not written yet. A read that fails otherwise fails the whole.
|
|
151
156
|
*/
|
|
152
157
|
export declare function foundBy(host: MachineHost, what: string, labels: Record<string, string>, { listMs, requestMs }: Pick<HostedTimeouts, "listMs" | "requestMs">, signal?: AbortSignal): Promise<Result<Machine[]>>;
|
|
153
158
|
/**
|