@parcha/agentrun-computer 0.1.0-beta.36 → 0.1.0-beta.37
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/NOTICE +2 -0
- package/README.md +321 -308
- package/box/build-agent37.mjs +177 -0
- package/dist/agent37.d.ts +165 -0
- package/dist/agent37.js +759 -0
- package/dist/attach.d.ts +146 -0
- package/dist/attach.js +469 -0
- package/dist/browserbase.d.ts +2 -4
- package/dist/browserbase.js +2 -1
- package/dist/client.d.ts +33 -1
- package/dist/client.js +53 -0
- package/dist/computerd-linux-amd64 +0 -0
- package/dist/computerd-linux-arm64 +0 -0
- package/dist/conformance/agent37.d.ts +96 -0
- package/dist/conformance/agent37.js +154 -0
- package/dist/conformance/cases/apps.d.ts +5 -0
- package/dist/conformance/cases/apps.js +160 -73
- package/dist/conformance/cases/health.js +14 -0
- package/dist/conformance/cases/index.js +2 -0
- package/dist/conformance/cases/provider.js +27 -1
- package/dist/conformance/cases/screen.d.ts +3 -0
- package/dist/conformance/cases/screen.js +18 -0
- package/dist/conformance/cases/settings.d.ts +29 -23
- package/dist/conformance/cases/settings.js +76 -58
- package/dist/conformance/cases/touch.js +19 -17
- package/dist/conformance/cases/ui.d.ts +2 -0
- package/dist/conformance/cases/ui.js +475 -0
- package/dist/conformance/cli.d.ts +9 -0
- package/dist/conformance/cli.js +28 -3
- package/dist/conformance/e2b.d.ts +6 -0
- package/dist/conformance/e2b.js +9 -2
- package/dist/conformance/fixture.d.ts +1 -1
- package/dist/conformance/fixture.js +25 -1
- package/dist/conformance/modal.d.ts +17 -13
- package/dist/conformance/modal.js +18 -9
- package/dist/conformance/orgo.d.ts +3 -3
- package/dist/conformance/orgo.js +6 -8
- package/dist/conformance/phone-harness.d.ts +6 -2
- package/dist/conformance/phone-harness.js +21 -4
- package/dist/conformance/report.js +1 -1
- package/dist/conformance/runner.js +23 -4
- package/dist/conformance/sweep.d.ts +50 -0
- package/dist/conformance/sweep.js +187 -0
- package/dist/conformance/types.d.ts +11 -3
- package/dist/conformance/ui-fixture.d.ts +56 -0
- package/dist/conformance/ui-fixture.js +43 -0
- package/dist/create-requests.d.ts +51 -0
- package/dist/create-requests.js +121 -0
- package/dist/daytona.d.ts +2 -4
- package/dist/daytona.js +3 -2
- package/dist/descriptor.d.ts +5 -0
- package/dist/descriptor.js +2 -0
- package/dist/descriptors/agent37.d.ts +41 -0
- package/dist/descriptors/agent37.js +28 -0
- package/dist/descriptors/index.d.ts +38 -2
- package/dist/descriptors/index.js +4 -2
- package/dist/descriptors/orgo.d.ts +2 -1
- package/dist/descriptors/orgo.js +3 -2
- package/dist/descriptors/phone-harness.d.ts +1 -1
- package/dist/descriptors/phone-harness.js +2 -2
- package/dist/docker.d.ts +7 -4
- package/dist/docker.js +271 -29
- package/dist/e2b.d.ts +9 -165
- package/dist/e2b.js +282 -1342
- package/dist/fake-ui-driver.d.ts +97 -0
- package/dist/fake-ui-driver.js +717 -0
- package/dist/host.d.ts +182 -0
- package/dist/host.js +1 -0
- package/dist/hosted/process.d.ts +67 -0
- package/dist/hosted/process.js +228 -0
- package/dist/hosted/provider.d.ts +146 -0
- package/dist/hosted/provider.js +1364 -0
- package/dist/hosted/scripts.d.ts +76 -0
- package/dist/{child.js → hosted/scripts.js} +93 -12
- package/dist/index.d.ts +7 -3
- package/dist/index.js +7 -4
- package/dist/kernel.d.ts +2 -4
- package/dist/kernel.js +2 -1
- package/dist/kinds.d.ts +8 -1
- package/dist/kinds.js +20 -4
- package/dist/local-chrome.d.ts +2 -4
- package/dist/local-chrome.js +2 -1
- package/dist/modal.d.ts +23 -181
- package/dist/modal.js +271 -1244
- package/dist/orgo-channel.d.ts +3 -2
- package/dist/orgo-channel.js +5 -2
- package/dist/orgo-desktop.d.ts +9 -4
- package/dist/orgo-desktop.js +33 -13
- package/dist/orgo-workspaces.d.ts +47 -0
- package/dist/orgo-workspaces.js +94 -0
- package/dist/orgo.d.ts +10 -4
- package/dist/orgo.js +30 -12
- package/dist/phone-harness.d.ts +31 -22
- package/dist/phone-harness.js +510 -698
- package/dist/png.d.ts +4 -0
- package/dist/png.js +27 -0
- package/dist/protocol.d.ts +335 -32
- package/dist/protocol.js +96 -3
- package/dist/provider.d.ts +34 -6
- package/dist/provider.js +16 -0
- package/dist/result.d.ts +1 -1
- package/dist/surface/api.d.ts +248 -0
- package/dist/surface/api.js +1 -0
- package/dist/surface/core.d.ts +42 -0
- package/dist/surface/core.js +393 -0
- package/dist/surface/index.d.ts +5 -0
- package/dist/surface/index.js +3 -0
- package/dist/surface/outline.d.ts +8 -0
- package/dist/surface/outline.js +50 -0
- package/dist/surface/script.d.ts +10 -0
- package/dist/surface/script.js +92 -0
- package/dist/ui-engine.d.ts +114 -0
- package/dist/ui-engine.js +798 -0
- package/package.json +17 -1
- package/dist/child.d.ts +0 -42
- package/dist/conformance/e2b-diagnose.d.ts +0 -16
- package/dist/conformance/e2b-diagnose.js +0 -61
- package/dist/conformance/e2b-sweep.d.ts +0 -18
- package/dist/conformance/e2b-sweep.js +0 -132
- package/dist/conformance/modal-sweep.d.ts +0 -22
- package/dist/conformance/modal-sweep.js +0 -213
package/dist/png.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Rect } from "./protocol.js";
|
|
2
|
+
/** An 8-bit RGBA PNG, non-interlaced, of rect of a width-wide RGBA frame. The rows are deflated off the event loop: a
|
|
3
|
+
* 1080x2400 screen took about 170 ms, every request of the server this harness runs in waiting on it. */
|
|
4
|
+
export declare function encodePng(rgba: Buffer, width: number, [x, y, w, h]: Rect): Promise<Buffer>;
|
package/dist/png.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// PNG encoding for providers that take their own screenshots as raw pixels (Orgo's desktop).
|
|
2
|
+
import { promisify } from "node:util";
|
|
3
|
+
import { crc32, deflate } from "node:zlib";
|
|
4
|
+
/** zlib's deflate on its thread pool: a screen's deflate never holds this process's event loop. */
|
|
5
|
+
const deflateAsync = promisify(deflate);
|
|
6
|
+
/** An 8-bit RGBA PNG, non-interlaced, of rect of a width-wide RGBA frame. The rows are deflated off the event loop: a
|
|
7
|
+
* 1080x2400 screen took about 170 ms, every request of the server this harness runs in waiting on it. */
|
|
8
|
+
export async function encodePng(rgba, width, [x, y, w, h]) {
|
|
9
|
+
const rows = Buffer.alloc((w * 4 + 1) * h);
|
|
10
|
+
for (let row = 0; row < h; row++) {
|
|
11
|
+
const from = ((y + row) * width + x) * 4;
|
|
12
|
+
rgba.copy(rows, row * (w * 4 + 1) + 1, from, from + w * 4);
|
|
13
|
+
}
|
|
14
|
+
const chunk = (type, data) => {
|
|
15
|
+
const length = Buffer.alloc(4);
|
|
16
|
+
length.writeUInt32BE(data.length);
|
|
17
|
+
const typed = Buffer.concat([Buffer.from(type, "latin1"), data]);
|
|
18
|
+
const crc = Buffer.alloc(4);
|
|
19
|
+
crc.writeUInt32BE(crc32(typed) >>> 0);
|
|
20
|
+
return Buffer.concat([length, typed, crc]);
|
|
21
|
+
};
|
|
22
|
+
const ihdr = Buffer.alloc(13);
|
|
23
|
+
ihdr.writeUInt32BE(w, 0);
|
|
24
|
+
ihdr.writeUInt32BE(h, 4);
|
|
25
|
+
ihdr.set([8, 6, 0, 0, 0], 8);
|
|
26
|
+
return Buffer.concat([Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]), chunk("IHDR", ihdr), chunk("IDAT", await deflateAsync(rows)), chunk("IEND", Buffer.alloc(0))]);
|
|
27
|
+
}
|
package/dist/protocol.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export type ComputerOs = "linux" | "windows" | "macos" | "android" | "ios";
|
|
|
33
33
|
* provider's, not computerd's: cdp a browser's CDP target (ComputerConnection.cdp), stream a live view of the screen
|
|
34
34
|
* (provider.stream()), downloads the files a browser saved; a daemon's hello never lists them.
|
|
35
35
|
*/
|
|
36
|
-
export type Group = "exec" | "files" | "processes" | "screen" | "input.pointer" | "input.keys" | "input.touch" | "apps" | "apps.install" | "
|
|
36
|
+
export type Group = "exec" | "files" | "processes" | "screen" | "input.pointer" | "input.keys" | "input.touch" | "apps" | "apps.install" | "ui" | "cdp" | "stream" | "downloads";
|
|
37
37
|
/** Every group, in the order the protocol lists them. */
|
|
38
38
|
export declare const GROUPS: readonly Group[];
|
|
39
39
|
/** The groups a provider answers itself, which a computerd hello never lists. */
|
|
@@ -44,7 +44,7 @@ export declare const PROVIDER_GROUPS: readonly Group[];
|
|
|
44
44
|
* each release: a minor step adds (a method, an optional field, a group), a major one changes or removes. computerd's
|
|
45
45
|
* Go constant (methods.ProtocolVersion) holds the same value, and a test keeps them equal.
|
|
46
46
|
*/
|
|
47
|
-
export declare const PROTOCOL_VERSION = "0.
|
|
47
|
+
export declare const PROTOCOL_VERSION = "0.2";
|
|
48
48
|
export interface HelloParams {
|
|
49
49
|
/** Who is asking, for the daemon's log: a name and version. */
|
|
50
50
|
client: string;
|
|
@@ -56,8 +56,8 @@ export interface HelloResult {
|
|
|
56
56
|
version: string;
|
|
57
57
|
os: ComputerOs;
|
|
58
58
|
/**
|
|
59
|
-
* The OS's own version as the computer says it
|
|
60
|
-
*
|
|
59
|
+
* The OS's own version as the computer says it, with its build or API level when the driver knows it: "15",
|
|
60
|
+
* "15 (API 35)", "26.1 (25B78)". Absent where the computer does not say one.
|
|
61
61
|
*/
|
|
62
62
|
osVersion?: string;
|
|
63
63
|
kind: ComputerKind;
|
|
@@ -68,7 +68,50 @@ export interface HelloResult {
|
|
|
68
68
|
display?: string;
|
|
69
69
|
/** How init holds its programs off the computer's network, when it gave them one of their own (init --own-network). */
|
|
70
70
|
fence?: NetworkFence;
|
|
71
|
+
/** The main screen, in points. Absent on a computer with no screen. */
|
|
72
|
+
screen?: ScreenSize;
|
|
73
|
+
/**
|
|
74
|
+
* What this computer's groups can and cannot do here, by the names in FEATURES. A feature that is off says why, in
|
|
75
|
+
* words a person can act on. A feature not listed is not offered, but for screen.capture, which a computer of the
|
|
76
|
+
* screen group lists when it can be off. A caller ignores a name it does not know.
|
|
77
|
+
*/
|
|
78
|
+
features?: Features;
|
|
79
|
+
/** The machine, for a person and a run's record: "Apple", "MacBook Pro"; "Google", "Pixel 9". */
|
|
80
|
+
device?: Device;
|
|
81
|
+
}
|
|
82
|
+
/** What the machine is, the same fields on every OS. Its CPU is hello's arch, its OS's version hello's osVersion. */
|
|
83
|
+
export interface Device {
|
|
84
|
+
maker: string;
|
|
85
|
+
model: string;
|
|
86
|
+
}
|
|
87
|
+
/** A screen's size in points, and how many pixels a point holds (2 on a Retina Mac, 2.625 on many phones, 1 on Xvfb). */
|
|
88
|
+
export interface ScreenSize {
|
|
89
|
+
width: number;
|
|
90
|
+
height: number;
|
|
91
|
+
scale: number;
|
|
92
|
+
}
|
|
93
|
+
/** A feature that is off, and why: "Screen Recording is not granted to Computerd". */
|
|
94
|
+
export interface FeatureOff {
|
|
95
|
+
off: string;
|
|
96
|
+
}
|
|
97
|
+
export interface Features {
|
|
98
|
+
[feature: string]: true | FeatureOff;
|
|
71
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* The features a computer may list in hello.features, and what each one means. The names say what, never which OS:
|
|
102
|
+
* a driver on any OS lists the same names, and says in the off reason what its OS is missing.
|
|
103
|
+
*/
|
|
104
|
+
export declare const FEATURES: {
|
|
105
|
+
readonly "screen.capture": "screen.shot and screen.watch capture the whole screen; a computer of the screen group that does not list it captures it, and one that lists it off refuses both with its reason (a Mac whose owner has not granted the server it is paired with the screen)";
|
|
106
|
+
readonly "apps.background": "apps.launch with background: true opens an app without bringing it to the front";
|
|
107
|
+
readonly "ui.tree": "ui.observe reads the window's elements; off, it answers the window's image with no nodes (ui.image on) or is refused";
|
|
108
|
+
readonly "ui.image": "ui.observe returns the window's image";
|
|
109
|
+
readonly "ui.background": "steps run as input posted to the app itself: the user's pointer and focus stay where they are";
|
|
110
|
+
readonly "ui.foreground": "steps run as the computer's own input, which moves the pointer and the focus (only when a call allows it)";
|
|
111
|
+
readonly "ui.page": "steps in a web page run through the page itself, by the browser's DevTools or its scripting";
|
|
112
|
+
readonly "ui.nav": "the nav step: back, home and app_switch";
|
|
113
|
+
};
|
|
114
|
+
export type Feature = keyof typeof FEATURES;
|
|
72
115
|
/**
|
|
73
116
|
* How init holds its programs off the computer's network: "netns", a network namespace init made itself as root;
|
|
74
117
|
* "userns-netns", one it made inside a user namespace of its own, where root may not make one (gVisor, whose root holds
|
|
@@ -361,7 +404,10 @@ export interface ProcessWaitParams {
|
|
|
361
404
|
timeoutMs: number;
|
|
362
405
|
}
|
|
363
406
|
export type Empty = Record<string, never>;
|
|
364
|
-
/**
|
|
407
|
+
/**
|
|
408
|
+
* In screen and input, pixels of the full screenshot, origin top left (a region shot never changes this space). In ui,
|
|
409
|
+
* the window's points, origin at its top left.
|
|
410
|
+
*/
|
|
365
411
|
export type Point = [x: number, y: number];
|
|
366
412
|
export type Rect = [x: number, y: number, w: number, h: number];
|
|
367
413
|
export type Button = "left" | "right" | "middle";
|
|
@@ -542,37 +588,244 @@ export interface AppsInstallParams {
|
|
|
542
588
|
/** A file already in the computer (files.write first). */
|
|
543
589
|
path: string;
|
|
544
590
|
}
|
|
545
|
-
/** apps.launch and apps.terminate. */
|
|
546
591
|
export interface AppsLaunchParams {
|
|
592
|
+
/** A bundle id or a package name: "com.apple.Notes", "com.android.settings". */
|
|
593
|
+
id: string;
|
|
594
|
+
/** Open this in the app: a deep link, or a page in a browser. */
|
|
595
|
+
url?: string;
|
|
596
|
+
/** Open it without bringing it to the front (feature apps.background). Without the feature, refused as `unsupported`. */
|
|
597
|
+
background?: boolean;
|
|
598
|
+
}
|
|
599
|
+
/**
|
|
600
|
+
* The longest apps.launch waits for the app's window: it answers once the app has one, so an observe right after it
|
|
601
|
+
* finds the window, or fails timeout naming the app when none came in this long.
|
|
602
|
+
*/
|
|
603
|
+
export declare const LAUNCH_WINDOW_MS = 10000;
|
|
604
|
+
export interface AppsTerminateParams {
|
|
547
605
|
id: string;
|
|
548
606
|
}
|
|
549
|
-
/** The most nodes
|
|
607
|
+
/** The most nodes one ui.observe returns. */
|
|
550
608
|
export declare const MAX_UI_NODES = 5000;
|
|
609
|
+
/** The most steps one ui.act holds. */
|
|
610
|
+
export declare const MAX_STEPS = 100;
|
|
611
|
+
/** The longest an expect waits; it waits DEFAULT_EXPECT_MS when it names no timeoutMs. */
|
|
612
|
+
export declare const MAX_EXPECT_MS = 60000;
|
|
613
|
+
export declare const DEFAULT_EXPECT_MS = 5000;
|
|
614
|
+
/** The longest a driver waits for a window to settle after the steps, before it answers anyway. */
|
|
615
|
+
export declare const MAX_SETTLE_MS = 3000;
|
|
616
|
+
/**
|
|
617
|
+
* How long a set's value must hold once the act settled: a driver reads it again this long after, and a value the app
|
|
618
|
+
* took back (a field that rejects it, a switch that springs back) answers verified false.
|
|
619
|
+
*/
|
|
620
|
+
export declare const SET_HOLD_MS = 500;
|
|
621
|
+
/** An observe image's longest edge, in pixels: at least MIN_IMAGE_EDGE, at most MAX_IMAGE_EDGE, DEFAULT_IMAGE_EDGE when not given. */
|
|
622
|
+
export declare const MIN_IMAGE_EDGE = 256;
|
|
623
|
+
export declare const MAX_IMAGE_EDGE = 2048;
|
|
624
|
+
export declare const DEFAULT_IMAGE_EDGE = 1568;
|
|
625
|
+
/**
|
|
626
|
+
* The roles a node may have: ARIA's names, which a driver maps its platform's roles onto (AXButton and
|
|
627
|
+
* android.widget.Button are both "button"). A role it cannot map is "generic".
|
|
628
|
+
*/
|
|
629
|
+
export declare const UI_ROLES: readonly ["window", "dialog", "menu", "menuitem", "toolbar", "tab", "button", "link", "textbox", "searchbox", "checkbox", "radio", "switch", "slider", "combobox", "progressbar", "list", "listitem", "table", "row", "cell", "scrollarea", "image", "text", "heading", "group", "generic"];
|
|
630
|
+
export type UiRole = (typeof UI_ROLES)[number];
|
|
631
|
+
/**
|
|
632
|
+
* A driver's name for one element, such as "@e12". It stays good while its element exists, across states and steps;
|
|
633
|
+
* once the element is gone, a step naming it is refused as `stale`. Refs are opaque and start with "@".
|
|
634
|
+
*/
|
|
635
|
+
export type UiRef = string;
|
|
636
|
+
/** Which app and window. A bundle id or package name, and a window id from ui.observe. Omitted: the app in front, its main window. */
|
|
637
|
+
export interface UiTarget {
|
|
638
|
+
app?: string;
|
|
639
|
+
window?: string;
|
|
640
|
+
}
|
|
641
|
+
/** What a node's flags may say. secure: a password field, whose value is never sent. offscreen: in the tree, scrolled out of view. */
|
|
642
|
+
export declare const UI_FLAGS: readonly ["focused", "disabled", "selected", "checked", "secure", "offscreen"];
|
|
643
|
+
export type UiFlag = (typeof UI_FLAGS)[number];
|
|
551
644
|
export interface UiNode {
|
|
552
|
-
|
|
553
|
-
role:
|
|
554
|
-
/**
|
|
645
|
+
ref: UiRef;
|
|
646
|
+
role: UiRole;
|
|
647
|
+
/** What a person reads it as: its label, title or text. */
|
|
648
|
+
name?: string;
|
|
649
|
+
/** What it holds: a text field's text, a slider's value. A secure field's value is never sent. */
|
|
650
|
+
value?: string;
|
|
651
|
+
/** What else it says, beside its name: a row's secondary text ("Mobile, Wi-Fi, hotspot"), a help tag. */
|
|
652
|
+
desc?: string;
|
|
653
|
+
/** The app's own name for it, when it has one: an Android resource-id, a macOS accessibility identifier. */
|
|
555
654
|
id?: string;
|
|
556
|
-
/**
|
|
557
|
-
text?: string;
|
|
558
|
-
/** content-desc or accessibilityLabel. */
|
|
559
|
-
label?: string;
|
|
560
|
-
/** In screenshot pixels (iOS points times scale). */
|
|
655
|
+
/** In window points. */
|
|
561
656
|
bounds: Rect;
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
/**
|
|
573
|
-
|
|
657
|
+
/** The nearest node above it in this list; absent at the top. A node comes after its parent. */
|
|
658
|
+
parent?: UiRef;
|
|
659
|
+
flags?: UiFlag[];
|
|
660
|
+
/** The platform's own action names, for the perform step: "AXShowMenu", "ACTION_LONG_CLICK". */
|
|
661
|
+
actions?: string[];
|
|
662
|
+
}
|
|
663
|
+
export interface UiObserveParams {
|
|
664
|
+
target?: UiTarget;
|
|
665
|
+
/** Every node. Without it, only the nodes that can be acted on or that have a name, and their parents. */
|
|
666
|
+
full?: boolean;
|
|
667
|
+
/** The window's image (feature ui.image), true at DEFAULT_IMAGE_EDGE. Without the feature, refused as `unsupported`. */
|
|
668
|
+
image?: boolean | {
|
|
669
|
+
maxEdge: number;
|
|
670
|
+
};
|
|
671
|
+
/** A state this connection observed before: the result says what changed since it. */
|
|
672
|
+
since?: string;
|
|
673
|
+
}
|
|
674
|
+
/** A window's image, whole: at most MAX_CHUNK_BYTES before base64 (the driver lowers JPEG quality until it fits). */
|
|
675
|
+
export interface UiImage {
|
|
676
|
+
format: "png" | "jpeg";
|
|
677
|
+
/** Pixels. The image covers the window: a pixel is window.bounds' width / width points. */
|
|
678
|
+
width: number;
|
|
679
|
+
height: number;
|
|
680
|
+
/** base64. */
|
|
681
|
+
data: string;
|
|
682
|
+
}
|
|
683
|
+
/** One window of an app. */
|
|
684
|
+
export interface UiWindow {
|
|
685
|
+
id: string;
|
|
686
|
+
title?: string;
|
|
687
|
+
/** What it is, by the node roles: "dialog" for a sheet, an alert or a panel. Absent: "window". */
|
|
688
|
+
role?: UiRole;
|
|
689
|
+
/** In screen points: where the window sits. */
|
|
690
|
+
bounds: Rect;
|
|
691
|
+
}
|
|
692
|
+
export interface UiObserveResult {
|
|
693
|
+
/** This observation's id, such as "s7". A step's points are read against the state they came from. */
|
|
694
|
+
state: string;
|
|
695
|
+
app: {
|
|
696
|
+
id: string;
|
|
697
|
+
name: string;
|
|
698
|
+
pid?: number;
|
|
699
|
+
};
|
|
700
|
+
window: UiWindow;
|
|
701
|
+
/** In order, a node after its parent. */
|
|
702
|
+
nodes: UiNode[];
|
|
703
|
+
/** Against since, by ref. Absent when since was not given or the driver no longer holds it. */
|
|
704
|
+
diff?: {
|
|
705
|
+
added: UiRef[];
|
|
706
|
+
removed: UiRef[];
|
|
707
|
+
changed: UiRef[];
|
|
708
|
+
};
|
|
709
|
+
image?: UiImage;
|
|
710
|
+
/**
|
|
711
|
+
* Why nodes is empty though the window is not: the tree is off here (feature ui.tree), in words. The result then
|
|
712
|
+
* carries the window's image, asked for or not, so a caller can still act at points.
|
|
713
|
+
*/
|
|
714
|
+
empty?: string;
|
|
715
|
+
/** Nodes were left out: past MAX_UI_NODES, or to keep the reply within the line limit. */
|
|
574
716
|
truncated: boolean;
|
|
575
717
|
}
|
|
718
|
+
/** The ways a driver can make a step happen, best first. A step's result says which one ran. */
|
|
719
|
+
export type UiRoute = "semantic" | "page" | "background" | "foreground";
|
|
720
|
+
/**
|
|
721
|
+
* One action. A step that names a ref acts on its element; a step at a point needs the act's state, and is refused as
|
|
722
|
+
* `stale` when what is under the point is no longer what that state saw.
|
|
723
|
+
*/
|
|
724
|
+
export type UiStep =
|
|
725
|
+
/** The element's default action: AXPress, a click on Android's node. */
|
|
726
|
+
{
|
|
727
|
+
press: UiRef;
|
|
728
|
+
}
|
|
729
|
+
/** Set its value: a text field's text, a slider's value, a switch's "on" or "off". */
|
|
730
|
+
| {
|
|
731
|
+
set: UiRef;
|
|
732
|
+
value: string;
|
|
733
|
+
}
|
|
734
|
+
/** One of its actions, by the platform's name. */
|
|
735
|
+
| {
|
|
736
|
+
perform: UiRef;
|
|
737
|
+
action: string;
|
|
738
|
+
}
|
|
739
|
+
/** On a touch screen, a tap; button right is a long press there. */
|
|
740
|
+
| {
|
|
741
|
+
click: UiRef | Point;
|
|
742
|
+
button?: "left" | "right";
|
|
743
|
+
count?: 1 | 2 | 3;
|
|
744
|
+
}
|
|
745
|
+
/** Type text, into the element when named, else where the focus is. */
|
|
746
|
+
| {
|
|
747
|
+
type: string;
|
|
748
|
+
into?: UiRef;
|
|
749
|
+
}
|
|
750
|
+
/** A chord: names in KEYS or one printable character, joined by "+", the last of which may be "+" itself: "super+s", "enter", "ctrl+shift+t", "shift++". */
|
|
751
|
+
| {
|
|
752
|
+
key: string;
|
|
753
|
+
}
|
|
754
|
+
/** The system's own navigation (feature ui.nav). */
|
|
755
|
+
| {
|
|
756
|
+
nav: "back" | "home" | "app_switch";
|
|
757
|
+
}
|
|
758
|
+
/** Scroll the element, or what is at the point, by points: dy > 0 shows what is below, dx > 0 what is right. */
|
|
759
|
+
| {
|
|
760
|
+
scroll: UiRef | Point;
|
|
761
|
+
dx?: number;
|
|
762
|
+
dy?: number;
|
|
763
|
+
}
|
|
764
|
+
/** Press at the first point, move through the rest, let go at the last: 2 or more points, over ms. */
|
|
765
|
+
| {
|
|
766
|
+
drag: Point[];
|
|
767
|
+
ms?: number;
|
|
768
|
+
};
|
|
769
|
+
/**
|
|
770
|
+
* What the caller expects to see once the steps ran, checked on the computer against the whole window, polled until
|
|
771
|
+
* it holds or timeoutMs passes. text: some node's name or value holds it. ref: the element exists. Both: that element's
|
|
772
|
+
* name or value holds the text. window: the act's app shows a window that matches it (its main one), whose state the
|
|
773
|
+
* act then answers. gone: the opposite of each. One of text and ref (or both), or window alone.
|
|
774
|
+
*/
|
|
775
|
+
export interface UiExpect {
|
|
776
|
+
text?: string;
|
|
777
|
+
ref?: UiRef;
|
|
778
|
+
/** A window of the act's app: its title holds title, and its role is role. At least one of the two. */
|
|
779
|
+
window?: {
|
|
780
|
+
title?: string;
|
|
781
|
+
role?: UiRole;
|
|
782
|
+
};
|
|
783
|
+
gone?: boolean;
|
|
784
|
+
/** Default DEFAULT_EXPECT_MS, at most MAX_EXPECT_MS. */
|
|
785
|
+
timeoutMs?: number;
|
|
786
|
+
}
|
|
787
|
+
export interface UiActParams {
|
|
788
|
+
/** Where keys and typing without a ref go. Default: the state's app and window, else the app in front. */
|
|
789
|
+
target?: UiTarget;
|
|
790
|
+
/** The state the steps' points were read from. A step at a point needs it. */
|
|
791
|
+
state?: string;
|
|
792
|
+
/** At most MAX_STEPS; their drag ms add up to at most MAX_BATCH_WAIT_MS. No steps and an expect is a wait. */
|
|
793
|
+
steps: UiStep[];
|
|
794
|
+
expect?: UiExpect;
|
|
795
|
+
/** Let steps take the foreground route, which moves the user's pointer and focus. Default false. */
|
|
796
|
+
foreground?: boolean;
|
|
797
|
+
}
|
|
798
|
+
export type UiStepResult =
|
|
799
|
+
/** It ran by this route; verified when a readback showed it took (the value set, the element pressed). */
|
|
800
|
+
{
|
|
801
|
+
route: UiRoute;
|
|
802
|
+
verified: boolean;
|
|
803
|
+
}
|
|
804
|
+
/** It was refused: stale, denied (a secure field, an app the call may not touch), unsupported (with the feature's off reason). */
|
|
805
|
+
| {
|
|
806
|
+
error: {
|
|
807
|
+
kind: DaemonErrorKind;
|
|
808
|
+
message: string;
|
|
809
|
+
};
|
|
810
|
+
};
|
|
811
|
+
export interface UiActResult {
|
|
812
|
+
/** One per step tried, in order. A refused step is the last: the steps after it do not run. */
|
|
813
|
+
steps: UiStepResult[];
|
|
814
|
+
/** The state after the steps, once the window settled (at most MAX_SETTLE_MS). Absent when window is "closed". */
|
|
815
|
+
state?: string;
|
|
816
|
+
/**
|
|
817
|
+
* "closed": a step closed the act's window and its app has no window left (super+w on the last one), so there is no
|
|
818
|
+
* state to answer. The steps that ran keep their results. Absent while the act has a window.
|
|
819
|
+
*/
|
|
820
|
+
window?: "closed";
|
|
821
|
+
/**
|
|
822
|
+
* Whether the window changed between before the first step and the settled state: its nodes, or its image when it
|
|
823
|
+
* has no nodes. True when the window closed.
|
|
824
|
+
*/
|
|
825
|
+
changed: boolean;
|
|
826
|
+
/** Whether the expect held in time. Absent with no expect, or when a step was refused. */
|
|
827
|
+
expect?: "met" | "unmet";
|
|
828
|
+
}
|
|
576
829
|
/** Moves init's own deadline. Init refuses an earlier one. Typed now; the daemon answers it from the X11 shim's PR on. */
|
|
577
830
|
export interface DeadlineExtendParams {
|
|
578
831
|
/** ISO time. */
|
|
@@ -714,12 +967,16 @@ export interface DaemonMethods {
|
|
|
714
967
|
result: Empty;
|
|
715
968
|
};
|
|
716
969
|
"apps.terminate": {
|
|
717
|
-
params:
|
|
970
|
+
params: AppsTerminateParams;
|
|
718
971
|
result: Empty;
|
|
719
972
|
};
|
|
720
|
-
"
|
|
721
|
-
params:
|
|
722
|
-
result:
|
|
973
|
+
"ui.observe": {
|
|
974
|
+
params: UiObserveParams;
|
|
975
|
+
result: UiObserveResult;
|
|
976
|
+
};
|
|
977
|
+
"ui.act": {
|
|
978
|
+
params: UiActParams;
|
|
979
|
+
result: UiActResult;
|
|
723
980
|
};
|
|
724
981
|
"deadline.extend": {
|
|
725
982
|
params: DeadlineExtendParams;
|
|
@@ -731,6 +988,48 @@ export interface DaemonMethods {
|
|
|
731
988
|
};
|
|
732
989
|
}
|
|
733
990
|
export type DaemonMethod = keyof DaemonMethods;
|
|
991
|
+
/**
|
|
992
|
+
* Every daemon method, as a value: what a caller checks a method name against at run time (serve refuses a call to a
|
|
993
|
+
* method the protocol doesn't have before it reaches a computer). `satisfies` keeps it equal to DaemonMethods: a method
|
|
994
|
+
* added there and not here, or here and not there, fails the build.
|
|
995
|
+
*/
|
|
996
|
+
export declare const DAEMON_METHODS: {
|
|
997
|
+
hello: true;
|
|
998
|
+
ping: true;
|
|
999
|
+
"exec.run": true;
|
|
1000
|
+
"files.read": true;
|
|
1001
|
+
"files.write": true;
|
|
1002
|
+
"files.stat": true;
|
|
1003
|
+
"files.list": true;
|
|
1004
|
+
"files.mkdir": true;
|
|
1005
|
+
"files.move": true;
|
|
1006
|
+
"files.remove": true;
|
|
1007
|
+
"tar.pull.begin": true;
|
|
1008
|
+
"tar.pull.read": true;
|
|
1009
|
+
"tar.pull.end": true;
|
|
1010
|
+
"tar.push.begin": true;
|
|
1011
|
+
"tar.push.write": true;
|
|
1012
|
+
"tar.push.end": true;
|
|
1013
|
+
"process.start": true;
|
|
1014
|
+
"process.read": true;
|
|
1015
|
+
"process.write": true;
|
|
1016
|
+
"process.signal": true;
|
|
1017
|
+
"process.resize": true;
|
|
1018
|
+
"process.list": true;
|
|
1019
|
+
"process.wait": true;
|
|
1020
|
+
"screen.shot": true;
|
|
1021
|
+
"screen.read": true;
|
|
1022
|
+
"screen.watch": true;
|
|
1023
|
+
"input.actions": true;
|
|
1024
|
+
"apps.list": true;
|
|
1025
|
+
"apps.install": true;
|
|
1026
|
+
"apps.launch": true;
|
|
1027
|
+
"apps.terminate": true;
|
|
1028
|
+
"ui.observe": true;
|
|
1029
|
+
"ui.act": true;
|
|
1030
|
+
"deadline.extend": true;
|
|
1031
|
+
"mount.sync": true;
|
|
1032
|
+
};
|
|
734
1033
|
/**
|
|
735
1034
|
* What answers a computer's methods: computerd over a stream (DaemonClient), or, with daemon none, the provider in
|
|
736
1035
|
* process. Callers and the conformance suite see one surface.
|
|
@@ -743,7 +1042,11 @@ export interface ComputerClient {
|
|
|
743
1042
|
close(): void;
|
|
744
1043
|
}
|
|
745
1044
|
/** error.data.kind in the daemon's error replies. */
|
|
746
|
-
export type DaemonErrorKind = "not_found" | "invalid" | "timeout" | "aborted" | "denied" | "limit" | "unsupported" | "exists" | "not_dir" | "is_dir"
|
|
1045
|
+
export type DaemonErrorKind = "not_found" | "invalid" | "timeout" | "aborted" | "denied" | "limit" | "unsupported" | "exists" | "not_dir" | "is_dir"
|
|
1046
|
+
/** A ref whose element is gone, or a point whose window moved or redrew under it since its state. */
|
|
1047
|
+
| "stale"
|
|
1048
|
+
/** The call exists, but this value or state is not one it serves: a step on a disabled control. */
|
|
1049
|
+
| "refused";
|
|
747
1050
|
export declare const JSONRPC_CODES: {
|
|
748
1051
|
readonly parse: -32700;
|
|
749
1052
|
readonly invalidRequest: -32600;
|
package/dist/protocol.js
CHANGED
|
@@ -23,7 +23,7 @@ export const PROCESS_RETAINED_BYTES = 256 * 1024 * 1024;
|
|
|
23
23
|
/** The longest a process.read waits for new bytes. */
|
|
24
24
|
export const MAX_READ_WAIT_MS = 30_000;
|
|
25
25
|
/** Every group, in the order the protocol lists them. */
|
|
26
|
-
export const GROUPS = ["exec", "files", "processes", "screen", "input.pointer", "input.keys", "input.touch", "apps", "apps.install", "
|
|
26
|
+
export const GROUPS = ["exec", "files", "processes", "screen", "input.pointer", "input.keys", "input.touch", "apps", "apps.install", "ui", "cdp", "stream", "downloads"];
|
|
27
27
|
/** The groups a provider answers itself, which a computerd hello never lists. */
|
|
28
28
|
export const PROVIDER_GROUPS = ["cdp", "stream", "downloads"];
|
|
29
29
|
/**
|
|
@@ -32,7 +32,21 @@ export const PROVIDER_GROUPS = ["cdp", "stream", "downloads"];
|
|
|
32
32
|
* each release: a minor step adds (a method, an optional field, a group), a major one changes or removes. computerd's
|
|
33
33
|
* Go constant (methods.ProtocolVersion) holds the same value, and a test keeps them equal.
|
|
34
34
|
*/
|
|
35
|
-
export const PROTOCOL_VERSION = "0.
|
|
35
|
+
export const PROTOCOL_VERSION = "0.2";
|
|
36
|
+
/**
|
|
37
|
+
* The features a computer may list in hello.features, and what each one means. The names say what, never which OS:
|
|
38
|
+
* a driver on any OS lists the same names, and says in the off reason what its OS is missing.
|
|
39
|
+
*/
|
|
40
|
+
export const FEATURES = {
|
|
41
|
+
"screen.capture": "screen.shot and screen.watch capture the whole screen; a computer of the screen group that does not list it captures it, and one that lists it off refuses both with its reason (a Mac whose owner has not granted the server it is paired with the screen)",
|
|
42
|
+
"apps.background": "apps.launch with background: true opens an app without bringing it to the front",
|
|
43
|
+
"ui.tree": "ui.observe reads the window's elements; off, it answers the window's image with no nodes (ui.image on) or is refused",
|
|
44
|
+
"ui.image": "ui.observe returns the window's image",
|
|
45
|
+
"ui.background": "steps run as input posted to the app itself: the user's pointer and focus stay where they are",
|
|
46
|
+
"ui.foreground": "steps run as the computer's own input, which moves the pointer and the focus (only when a call allows it)",
|
|
47
|
+
"ui.page": "steps in a web page run through the page itself, by the browser's DevTools or its scripting",
|
|
48
|
+
"ui.nav": "the nav step: back, home and app_switch",
|
|
49
|
+
};
|
|
36
50
|
/** Every NetworkFence, as hello may report it. */
|
|
37
51
|
export const NETWORK_FENCES = ["netns", "userns-netns"];
|
|
38
52
|
/** The most actions one input.actions batch holds. */
|
|
@@ -51,8 +65,87 @@ export const KEYS = [
|
|
|
51
65
|
"f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "f10", "f11", "f12",
|
|
52
66
|
"shift", "ctrl", "alt", "super", "capslock",
|
|
53
67
|
];
|
|
54
|
-
/**
|
|
68
|
+
/**
|
|
69
|
+
* The longest apps.launch waits for the app's window: it answers once the app has one, so an observe right after it
|
|
70
|
+
* finds the window, or fails timeout naming the app when none came in this long.
|
|
71
|
+
*/
|
|
72
|
+
export const LAUNCH_WINDOW_MS = 10_000;
|
|
73
|
+
// --- ui: eyes and hands with meaning --------------------------------------------------------------------------------
|
|
74
|
+
// One app's window, seen as named elements (ui.observe) and acted on by short lists of steps (ui.act). Every coordinate
|
|
75
|
+
// in this group is in the window's points, origin at the window's top left. A driver of ours answers it; a computer
|
|
76
|
+
// without one keeps screen and input.
|
|
77
|
+
/** The most nodes one ui.observe returns. */
|
|
55
78
|
export const MAX_UI_NODES = 5000;
|
|
79
|
+
/** The most steps one ui.act holds. */
|
|
80
|
+
export const MAX_STEPS = 100;
|
|
81
|
+
/** The longest an expect waits; it waits DEFAULT_EXPECT_MS when it names no timeoutMs. */
|
|
82
|
+
export const MAX_EXPECT_MS = 60_000;
|
|
83
|
+
export const DEFAULT_EXPECT_MS = 5_000;
|
|
84
|
+
/** The longest a driver waits for a window to settle after the steps, before it answers anyway. */
|
|
85
|
+
export const MAX_SETTLE_MS = 3_000;
|
|
86
|
+
/**
|
|
87
|
+
* How long a set's value must hold once the act settled: a driver reads it again this long after, and a value the app
|
|
88
|
+
* took back (a field that rejects it, a switch that springs back) answers verified false.
|
|
89
|
+
*/
|
|
90
|
+
export const SET_HOLD_MS = 500;
|
|
91
|
+
/** An observe image's longest edge, in pixels: at least MIN_IMAGE_EDGE, at most MAX_IMAGE_EDGE, DEFAULT_IMAGE_EDGE when not given. */
|
|
92
|
+
export const MIN_IMAGE_EDGE = 256;
|
|
93
|
+
export const MAX_IMAGE_EDGE = 2048;
|
|
94
|
+
export const DEFAULT_IMAGE_EDGE = 1568;
|
|
95
|
+
/**
|
|
96
|
+
* The roles a node may have: ARIA's names, which a driver maps its platform's roles onto (AXButton and
|
|
97
|
+
* android.widget.Button are both "button"). A role it cannot map is "generic".
|
|
98
|
+
*/
|
|
99
|
+
export const UI_ROLES = [
|
|
100
|
+
"window", "dialog", "menu", "menuitem", "toolbar", "tab",
|
|
101
|
+
"button", "link", "textbox", "searchbox", "checkbox", "radio", "switch", "slider", "combobox", "progressbar",
|
|
102
|
+
"list", "listitem", "table", "row", "cell", "scrollarea",
|
|
103
|
+
"image", "text", "heading", "group", "generic",
|
|
104
|
+
];
|
|
105
|
+
/** What a node's flags may say. secure: a password field, whose value is never sent. offscreen: in the tree, scrolled out of view. */
|
|
106
|
+
export const UI_FLAGS = ["focused", "disabled", "selected", "checked", "secure", "offscreen"];
|
|
107
|
+
/**
|
|
108
|
+
* Every daemon method, as a value: what a caller checks a method name against at run time (serve refuses a call to a
|
|
109
|
+
* method the protocol doesn't have before it reaches a computer). `satisfies` keeps it equal to DaemonMethods: a method
|
|
110
|
+
* added there and not here, or here and not there, fails the build.
|
|
111
|
+
*/
|
|
112
|
+
export const DAEMON_METHODS = {
|
|
113
|
+
hello: true,
|
|
114
|
+
ping: true,
|
|
115
|
+
"exec.run": true,
|
|
116
|
+
"files.read": true,
|
|
117
|
+
"files.write": true,
|
|
118
|
+
"files.stat": true,
|
|
119
|
+
"files.list": true,
|
|
120
|
+
"files.mkdir": true,
|
|
121
|
+
"files.move": true,
|
|
122
|
+
"files.remove": true,
|
|
123
|
+
"tar.pull.begin": true,
|
|
124
|
+
"tar.pull.read": true,
|
|
125
|
+
"tar.pull.end": true,
|
|
126
|
+
"tar.push.begin": true,
|
|
127
|
+
"tar.push.write": true,
|
|
128
|
+
"tar.push.end": true,
|
|
129
|
+
"process.start": true,
|
|
130
|
+
"process.read": true,
|
|
131
|
+
"process.write": true,
|
|
132
|
+
"process.signal": true,
|
|
133
|
+
"process.resize": true,
|
|
134
|
+
"process.list": true,
|
|
135
|
+
"process.wait": true,
|
|
136
|
+
"screen.shot": true,
|
|
137
|
+
"screen.read": true,
|
|
138
|
+
"screen.watch": true,
|
|
139
|
+
"input.actions": true,
|
|
140
|
+
"apps.list": true,
|
|
141
|
+
"apps.install": true,
|
|
142
|
+
"apps.launch": true,
|
|
143
|
+
"apps.terminate": true,
|
|
144
|
+
"ui.observe": true,
|
|
145
|
+
"ui.act": true,
|
|
146
|
+
"deadline.extend": true,
|
|
147
|
+
"mount.sync": true,
|
|
148
|
+
};
|
|
56
149
|
export const JSONRPC_CODES = {
|
|
57
150
|
parse: -32700,
|
|
58
151
|
invalidRequest: -32600,
|
package/dist/provider.d.ts
CHANGED
|
@@ -151,9 +151,10 @@ export interface AllowCapability {
|
|
|
151
151
|
mixed: boolean;
|
|
152
152
|
}
|
|
153
153
|
/**
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
*
|
|
154
|
+
* Whether computerd init runs in the computer, and so keeps init's promises about programs; who answers the wire is
|
|
155
|
+
* hello's business. pid1: init is the computer's main process, so its exit ends the computer. child: the vendor's own
|
|
156
|
+
* agent is the main process and starts init at boot; init's exit does not end the computer. none: no init runs; the
|
|
157
|
+
* provider answers the methods itself (adb, the vendor's API), or a driver on the machine does (an attached Mac).
|
|
157
158
|
*/
|
|
158
159
|
export type DaemonMode = "pid1" | "child" | "none";
|
|
159
160
|
export interface ComputerCapabilities {
|
|
@@ -330,6 +331,24 @@ export interface ComputerInfo {
|
|
|
330
331
|
export interface CallContext {
|
|
331
332
|
signal?: AbortSignal;
|
|
332
333
|
}
|
|
334
|
+
/** One value Settings offers for a picked key (keyChoices): the value saved, and the words a person picks it by. */
|
|
335
|
+
export interface KeyChoice {
|
|
336
|
+
value: string;
|
|
337
|
+
label: string;
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* create's context: requestId is the caller's id of this request, not of the computer (serve passes the run's claim; a
|
|
341
|
+
* conformance run one per create). Required, with no generated fallback. Every provider names the computer from it
|
|
342
|
+
* (computerNameFor), so a retry of the same request (a timeout, a crash between the vendor's answer and ours) finds
|
|
343
|
+
* the computer the first one made instead of making a second; one that ended is refused as exists.
|
|
344
|
+
*/
|
|
345
|
+
export interface CreateContext extends CallContext {
|
|
346
|
+
requestId: string;
|
|
347
|
+
}
|
|
348
|
+
/** The name of the computer one create's request makes: computer- and the first 12 hex digits of its sha256. */
|
|
349
|
+
export declare function computerNameFor(requestId: string): string;
|
|
350
|
+
/** Why a create's request id is not one, or undefined: every provider's create refuses it as invalid. */
|
|
351
|
+
export declare function requestIdProblem(requestId: unknown): string | undefined;
|
|
333
352
|
/** attach's context: with a claim, an agent's computer is brought back and taken by that run, under that epoch. */
|
|
334
353
|
export interface AttachContext extends CallContext {
|
|
335
354
|
claim?: ComputerClaim;
|
|
@@ -366,9 +385,11 @@ export interface ComputerProvider {
|
|
|
366
385
|
readonly version: string;
|
|
367
386
|
capabilities(): ComputerCapabilities;
|
|
368
387
|
check(spec: ComputerSpec): Refusal[];
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
388
|
+
/**
|
|
389
|
+
* Makes one computer for the spec, once per context.requestId (provider.md, Idempotent create): the same id again
|
|
390
|
+
* while that computer starts or runs answers it, and after it ended is refused exists. Never a second computer.
|
|
391
|
+
*/
|
|
392
|
+
create(spec: ComputerSpec, context: CreateContext): Promise<Result<CreatedComputer>>;
|
|
372
393
|
/**
|
|
373
394
|
* Finds one computer this provider made, by its id or by labels, with the spec read back from it; none or several is
|
|
374
395
|
* an error in words. With context.claim (a provider that declares persistence): the agent's computer is brought back
|
|
@@ -436,6 +457,13 @@ export interface ComputerProvider {
|
|
|
436
457
|
testConnection?(context?: CallContext): Promise<Result<{
|
|
437
458
|
detail: string;
|
|
438
459
|
}>>;
|
|
460
|
+
/**
|
|
461
|
+
* The values Settings offers for a key a person picks rather than types (its descriptor key's `picked`), by the
|
|
462
|
+
* create() option it fills, read from the vendor with the provider's other keys and never making a computer: Orgo's
|
|
463
|
+
* workspaces, each its id and its name. ok with each value and its words; an error in words where there is none to
|
|
464
|
+
* pick (an account with no workspace) or the read failed. Optional; a provider whose descriptor picks a key has it.
|
|
465
|
+
*/
|
|
466
|
+
keyChoices?(option: string, context?: CallContext): Promise<Result<KeyChoice[]>>;
|
|
439
467
|
/**
|
|
440
468
|
* The image its computers start from, made ready on its engine before the first create: built from its recipe, or
|
|
441
469
|
* pulled by name, when the engine lacks it; ok with the tag to put in spec.image. `onWait` is told once, before a build
|