@qawolf/api-contracts 0.47.0 → 0.51.0
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/dist/v1/agent/get.d.ts +1 -1
- package/dist/v1/agent/get.d.ts.map +1 -1
- package/dist/v1/agent/get.js +4 -2
- package/dist/v1/agent/get.js.map +1 -1
- package/dist/v1/agent/send.d.ts +1 -1
- package/dist/v1/agent/send.d.ts.map +1 -1
- package/dist/v1/agent/send.js +4 -2
- package/dist/v1/agent/send.js.map +1 -1
- package/dist/v1/email/listAddresses.d.ts.map +1 -1
- package/dist/v1/email/listAddresses.js +2 -10
- package/dist/v1/email/listAddresses.js.map +1 -1
- package/dist/v1/email/registerAddress.d.ts +19 -0
- package/dist/v1/email/registerAddress.d.ts.map +1 -0
- package/dist/v1/email/registerAddress.js +30 -0
- package/dist/v1/email/registerAddress.js.map +1 -0
- package/dist/v1/email/resource.d.ts +5 -0
- package/dist/v1/email/resource.d.ts.map +1 -1
- package/dist/v1/email/resource.js +10 -0
- package/dist/v1/email/resource.js.map +1 -1
- package/dist/v1/index.d.ts +110 -10
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/index.js +18 -14
- package/dist/v1/index.js.map +1 -1
- package/dist/v1/run/stop.d.ts +22 -0
- package/dist/v1/run/stop.d.ts.map +1 -0
- package/dist/v1/run/stop.js +19 -0
- package/dist/v1/run/stop.js.map +1 -0
- package/dist/v1/runner/evaluateSnippet.d.ts +5 -1
- package/dist/v1/runner/evaluateSnippet.d.ts.map +1 -1
- package/dist/v1/runner/evaluateSnippet.js +5 -2
- package/dist/v1/runner/evaluateSnippet.js.map +1 -1
- package/dist/v1/runner/get.d.ts +5 -1
- package/dist/v1/runner/get.d.ts.map +1 -1
- package/dist/v1/runner/get.js +5 -2
- package/dist/v1/runner/get.js.map +1 -1
- package/dist/v1/runner/highlightSelector.d.ts +5 -1
- package/dist/v1/runner/highlightSelector.d.ts.map +1 -1
- package/dist/v1/runner/highlightSelector.js +5 -2
- package/dist/v1/runner/highlightSelector.js.map +1 -1
- package/dist/v1/runner/identity.d.ts +2 -0
- package/dist/v1/runner/identity.d.ts.map +1 -1
- package/dist/v1/runner/identity.js +2 -0
- package/dist/v1/runner/identity.js.map +1 -1
- package/dist/v1/runner/importPackage.d.ts +5 -1
- package/dist/v1/runner/importPackage.d.ts.map +1 -1
- package/dist/v1/runner/importPackage.js +5 -2
- package/dist/v1/runner/importPackage.js.map +1 -1
- package/dist/v1/runner/index.d.ts +9 -2
- package/dist/v1/runner/index.d.ts.map +1 -1
- package/dist/v1/runner/index.js +9 -3
- package/dist/v1/runner/index.js.map +1 -1
- package/dist/v1/runner/inspect.d.ts +5 -1
- package/dist/v1/runner/inspect.d.ts.map +1 -1
- package/dist/v1/runner/inspect.js +5 -2
- package/dist/v1/runner/inspect.js.map +1 -1
- package/dist/v1/runner/inspectMobile.d.ts +5 -1
- package/dist/v1/runner/inspectMobile.d.ts.map +1 -1
- package/dist/v1/runner/inspectMobile.js +5 -2
- package/dist/v1/runner/inspectMobile.js.map +1 -1
- package/dist/v1/runner/journal.d.ts +5 -1
- package/dist/v1/runner/journal.d.ts.map +1 -1
- package/dist/v1/runner/journal.js.map +1 -1
- package/dist/v1/runner/list.d.ts +8 -3
- package/dist/v1/runner/list.d.ts.map +1 -1
- package/dist/v1/runner/list.js +8 -4
- package/dist/v1/runner/list.js.map +1 -1
- package/dist/v1/runner/performAction.d.ts +9 -2
- package/dist/v1/runner/performAction.d.ts.map +1 -1
- package/dist/v1/runner/performAction.js +18 -5
- package/dist/v1/runner/performAction.js.map +1 -1
- package/dist/v1/runner/promoteSnapshot.d.ts +5 -1
- package/dist/v1/runner/promoteSnapshot.d.ts.map +1 -1
- package/dist/v1/runner/promoteSnapshot.js +5 -2
- package/dist/v1/runner/promoteSnapshot.js.map +1 -1
- package/dist/v1/runner/readJournal.d.ts +5 -1
- package/dist/v1/runner/readJournal.d.ts.map +1 -1
- package/dist/v1/runner/readJournal.js +5 -2
- package/dist/v1/runner/readJournal.js.map +1 -1
- package/dist/v1/runner/runFlow.d.ts +3 -1
- package/dist/v1/runner/runFlow.d.ts.map +1 -1
- package/dist/v1/runner/runFlow.js +4 -1
- package/dist/v1/runner/runFlow.js.map +1 -1
- package/dist/v1/runner/screen.d.ts +8 -0
- package/dist/v1/runner/screen.d.ts.map +1 -1
- package/dist/v1/runner/screen.js +11 -0
- package/dist/v1/runner/screen.js.map +1 -1
- package/dist/v1/runner/stopRun.d.ts +5 -1
- package/dist/v1/runner/stopRun.d.ts.map +1 -1
- package/dist/v1/runner/stopRun.js +5 -2
- package/dist/v1/runner/stopRun.js.map +1 -1
- package/dist/v1/runner/takeScreenshot.d.ts +5 -1
- package/dist/v1/runner/takeScreenshot.d.ts.map +1 -1
- package/dist/v1/runner/takeScreenshot.js +7 -11
- package/dist/v1/runner/takeScreenshot.js.map +1 -1
- package/package.json +1 -1
package/dist/v1/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export type PublicApiOutput<Api extends AnyPublicApiContract> = z.infer<Api["out
|
|
|
22
22
|
export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, FlowId extends PublicIdSchema, RunId extends PublicIdSchema, AutomationId extends PublicIdSchema = PublicIdSchema, IssueId extends PublicIdSchema = PublicIdSchema, WorkspaceId extends PublicIdSchema = PublicIdSchema, AiTaskId extends PublicIdSchema = PublicIdSchema, ChatSessionId extends PublicIdSchema = PublicIdSchema>(ids: PublicIdSchemasOf<EnvironmentId, FlowId, RunId, AutomationId, IssueId, WorkspaceId, AiTaskId, ChatSessionId>) => {
|
|
23
23
|
agent: {
|
|
24
24
|
get: {
|
|
25
|
-
readonly description: "
|
|
25
|
+
readonly description: "Monitor a QA Wolf AI session by reading its status and replies. After agent.send, share the returned session URL before monitoring. Wait 30 to 60 seconds between checks; do not call this in a tight loop. Replies accumulate, so compare them with what you have already seen. Continue monitoring silently when the status and replies are unchanged; do not narrate waiting, announce the next check, or ask whether to keep monitoring. Report only substantive new progress, questions, blockers, or the final outcome. A status of \"waiting-for-you\" means the last reply is a question the work is blocked on, and answering it with agent.send is what unblocks it. Surface an explicit request for user input even if the status still says \"working\". Include the session URL when reporting a blocker or final outcome. On \"completed\", stop status checks and verify the requested result before claiming success. For new flows, validation, publication in the target environment, and readiness are separate checks; a Git push or final reply does not prove the flow is active. If every requested result is verified but status remains \"working\", report the mismatch and stop monitoring. Stop on \"failed\" or \"cancelled\" and report any confirmed partial result.";
|
|
26
26
|
readonly input: z.ZodObject<{
|
|
27
27
|
sessionId: ChatSessionId;
|
|
28
28
|
}, z.core.$strip>;
|
|
@@ -46,7 +46,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
46
46
|
}, z.core.$strip>;
|
|
47
47
|
};
|
|
48
48
|
send: {
|
|
49
|
-
readonly description: "
|
|
49
|
+
readonly description: "Start or continue work with the QA Wolf AI and return a live session URL to share with the user. Use it to cover a user journey, investigate a failing run, or fix a broken flow. This is the one verb that starts work from nothing: every other write acts on a flow, run or issue that already exists. Returns sessionId, status, and url as soon as the request is accepted; work can take minutes to tens of minutes. After each send, make the next action a normal user-visible assistant message containing the exact returned url, before any tool call or wait. Tool output and internal reasoning do not count as sharing the link. Do not run a timer or monitoring call alongside this send. Acceptance does not mean the work is complete. Then monitor the session with agent.get, reporting new progress, blockers, and the final outcome rather than unchanged status. Send here again to answer a question or add context to the same session.";
|
|
50
50
|
readonly input: z.ZodObject<{
|
|
51
51
|
environmentId: z.ZodOptional<PublicIdSchema>;
|
|
52
52
|
message: z.ZodString;
|
|
@@ -204,6 +204,20 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
204
204
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
205
205
|
}, z.core.$strip>;
|
|
206
206
|
};
|
|
207
|
+
registerAddress: {
|
|
208
|
+
readonly description: "Register an inbox address for the workspace. Registering an address the workspace already has changes nothing. A refusal names the domains the workspace can use.";
|
|
209
|
+
readonly input: z.ZodObject<{
|
|
210
|
+
address: z.ZodEmail;
|
|
211
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
212
|
+
}, z.core.$strip>;
|
|
213
|
+
readonly kind: "write";
|
|
214
|
+
readonly name: "email.registerAddress";
|
|
215
|
+
readonly output: z.ZodObject<{
|
|
216
|
+
address: z.ZodString;
|
|
217
|
+
isDefault: z.ZodBoolean;
|
|
218
|
+
url: z.ZodURL;
|
|
219
|
+
}, z.core.$strip>;
|
|
220
|
+
};
|
|
207
221
|
send: {
|
|
208
222
|
readonly description: "Send an email from one of the workspace's inbox addresses, for example to exercise a flow that reacts to incoming mail. Returns the sent email; read it back with email.get.";
|
|
209
223
|
readonly input: z.ZodObject<{
|
|
@@ -1111,6 +1125,23 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1111
1125
|
url: z.ZodURL;
|
|
1112
1126
|
}, z.core.$strip>;
|
|
1113
1127
|
};
|
|
1128
|
+
stop: {
|
|
1129
|
+
readonly description: "Stop a run, including its queued flows and automatic retries. Stopping is asynchronous. Repeated requests are safe, and finished runs keep their results. A run that is still being created returns not found; retry once run.get returns the run. If run.get returns a different runId, use that ID. Poll run.get for results.";
|
|
1130
|
+
readonly input: z.ZodObject<{
|
|
1131
|
+
runId: RunId;
|
|
1132
|
+
}, z.core.$strip>;
|
|
1133
|
+
readonly kind: "write";
|
|
1134
|
+
readonly name: "run.stop";
|
|
1135
|
+
readonly output: z.ZodObject<{
|
|
1136
|
+
runId: RunId;
|
|
1137
|
+
status: z.ZodEnum<{
|
|
1138
|
+
accepted: "accepted";
|
|
1139
|
+
"already-finished": "already-finished";
|
|
1140
|
+
"execution-not-found": "execution-not-found";
|
|
1141
|
+
}>;
|
|
1142
|
+
url: z.ZodURL;
|
|
1143
|
+
}, z.core.$strip>;
|
|
1144
|
+
};
|
|
1114
1145
|
};
|
|
1115
1146
|
runner: {
|
|
1116
1147
|
evaluateSnippet: {
|
|
@@ -1120,6 +1151,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1120
1151
|
filePath: z.ZodOptional<z.ZodString>;
|
|
1121
1152
|
files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1122
1153
|
id: z.ZodString;
|
|
1154
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1123
1155
|
}, z.core.$strip>;
|
|
1124
1156
|
readonly kind: "write";
|
|
1125
1157
|
readonly name: "runner.evaluateSnippet";
|
|
@@ -1143,6 +1175,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1143
1175
|
readonly description: "Report whether a runner is running under this id on the caller's team. This is a lookup: it never starts a runner, and it does not reset a runner's inactivity clock the way reading its journal does. An id that is not running is a success with `running: false` rather than an error, so this is how to check a runner is still there before addressing it.";
|
|
1144
1176
|
readonly input: z.ZodObject<{
|
|
1145
1177
|
id: z.ZodString;
|
|
1178
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1146
1179
|
}, z.core.$strip>;
|
|
1147
1180
|
readonly kind: "read";
|
|
1148
1181
|
readonly name: "runner.get";
|
|
@@ -1157,6 +1190,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1157
1190
|
readonly input: z.ZodObject<{
|
|
1158
1191
|
id: z.ZodString;
|
|
1159
1192
|
selector: z.ZodString;
|
|
1193
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1160
1194
|
}, z.core.$strip>;
|
|
1161
1195
|
readonly kind: "write";
|
|
1162
1196
|
readonly name: "runner.highlightSelector";
|
|
@@ -1185,6 +1219,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1185
1219
|
npmDependencies: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1186
1220
|
packageName: z.ZodString;
|
|
1187
1221
|
packageVersion: z.ZodString;
|
|
1222
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1188
1223
|
}, z.core.$strip>;
|
|
1189
1224
|
readonly kind: "write";
|
|
1190
1225
|
readonly name: "runner.importPackage";
|
|
@@ -1213,6 +1248,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1213
1248
|
variableName: z.ZodString;
|
|
1214
1249
|
what: z.ZodLiteral<"variable">;
|
|
1215
1250
|
}, z.core.$strip>], "what">;
|
|
1251
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1216
1252
|
}, z.core.$strip>;
|
|
1217
1253
|
readonly kind: "read";
|
|
1218
1254
|
readonly name: "runner.inspect";
|
|
@@ -1253,6 +1289,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1253
1289
|
text: z.ZodString;
|
|
1254
1290
|
what: z.ZodLiteral<"elements">;
|
|
1255
1291
|
}, z.core.$strip>], "by">], "what">;
|
|
1292
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1256
1293
|
}, z.core.$strip>;
|
|
1257
1294
|
readonly kind: "read";
|
|
1258
1295
|
readonly name: "runner.inspectMobile";
|
|
@@ -1442,6 +1479,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1442
1479
|
android: "android";
|
|
1443
1480
|
ios: "ios";
|
|
1444
1481
|
}>>;
|
|
1482
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1445
1483
|
}, z.core.$strip>;
|
|
1446
1484
|
readonly kind: "write";
|
|
1447
1485
|
readonly name: "runner.launch";
|
|
@@ -1459,8 +1497,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1459
1497
|
}, z.core.$strip>;
|
|
1460
1498
|
};
|
|
1461
1499
|
list: {
|
|
1462
|
-
readonly description: "List the runners running on the caller's team right now.
|
|
1463
|
-
readonly input: z.ZodObject<{
|
|
1500
|
+
readonly description: "List the runners running on the caller's team right now. A team API key already names the team and sends nothing; a credential bound to no single workspace names one in `workspaceId`. A runner that was terminated, or that terminated on its own after inactivity, is not listed, because the run system keeps no record of a runner once it is gone. This is a lookup: it never starts a runner, and it does not reset a runner's inactivity clock the way reading its journal does. It is how to find a runner launched from another machine or in an earlier session, when the id it was launched under is no longer at hand.";
|
|
1501
|
+
readonly input: z.ZodObject<{
|
|
1502
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1503
|
+
}, z.core.$strip>;
|
|
1464
1504
|
readonly kind: "read";
|
|
1465
1505
|
readonly name: "runner.list";
|
|
1466
1506
|
readonly output: z.ZodObject<{
|
|
@@ -1478,7 +1518,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1478
1518
|
}, z.core.$strip>;
|
|
1479
1519
|
};
|
|
1480
1520
|
performAction: {
|
|
1481
|
-
readonly description: "Perform one raw browser action on an interactive runner: click, double_click, move, drag, scroll, keypress, type, or navigate. Coordinates are whole pixels on the runner's virtual desktop, in the same space as `runner.takeScreenshot`. One action per request, and the runner serves one at a time. The action shapes follow the computer-use vocabulary, minus `screenshot` (use `runner.takeScreenshot`) and `wait` (delay on the caller's side). A success means the action took effect. `action-failed`, with a reason, if it reached the runner and did not take effect. On a runner image with a browser, the first action on a runner that has never run anything starts its browser and waits for it, so it can take up to a minute to answer — no `runner.runFlow` is needed before acting; if the browser is still starting when the wait runs out, the answer is `screen-not-ready` and retrying converges. On a mobile runner, the same `screen-needs-a-run` and `screen-not-ready` outcomes mean no Appium session has started yet, or it did not answer this instant; `runner.runFlow` is what starts one, same as a browser. `screen-needs-a-run` if the browser could not be started that way — usually a runner whose runs all finished without starting its desktop; call `runner.runFlow` with a flow that opens a browser. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. A `navigate` does not go through the screen, so a screen that is not ready does not stop it. `runner-has-no-screen` if this runner is not one that runs a browser on a virtual desktop. Nothing about it can be seen or driven, and retrying will never help — launch a `playwright` runner instead. `action-not-supported-on-mobile` if the runner is a mobile device and this action has no touchscreen equivalent: `double_click`, `scroll`, `move`, `keypress` and `navigate`, and a `click` whose `button` is not `left`, are all pointer-device concepts a touchscreen has nothing to offer for. `click` taps, `drag` swipes between its path's first and last point, and `type` types into whatever the last tap focused. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may have stopped answering mid-action. This does not mean the action was not performed — take a screenshot before repeating it.";
|
|
1521
|
+
readonly description: "Perform one raw browser action on an interactive runner: click, double_click, move, drag, scroll, keypress, type, or navigate. Coordinates are whole pixels on the runner's virtual desktop, in the same space as `runner.takeScreenshot`. One action per request, and the runner serves one at a time. The action shapes follow the computer-use vocabulary, minus `screenshot` (use `runner.takeScreenshot`) and `wait` (delay on the caller's side). A success means the action took effect. `action-failed`, with a reason, if it reached the runner and did not take effect. On a runner image with a browser, the first action on a runner that has never run anything starts its browser and waits for it, so it can take up to a minute to answer — no `runner.runFlow` is needed before acting; if the browser is still starting when the wait runs out, the answer is `screen-not-ready` and retrying converges. On a mobile runner, the same `screen-needs-a-run` and `screen-not-ready` outcomes mean no Appium session has started yet, or it did not answer this instant; `runner.runFlow` is what starts one, same as a browser. `screen-needs-a-run` if the browser could not be started that way — usually a runner whose runs all finished without starting its desktop; call `runner.runFlow` with a flow that opens a browser. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. A `navigate` does not go through the screen, so a screen that is not ready does not stop it. `runner-has-no-screen` if this runner is not one that runs a browser on a virtual desktop. Nothing about it can be seen or driven, and retrying will never help — launch a `playwright` runner instead. `action-not-supported-on-mobile` if the runner is a mobile device and this action has no touchscreen equivalent: `double_click`, `scroll`, `move`, `keypress` and `navigate`, and a `click` whose `button` is not `left`, are all pointer-device concepts a touchscreen has nothing to offer for. `click` taps, `drag` swipes between its path's first and last point, and `type` types into whatever the last tap focused. With `withScreenshot: true`, the answer also carries `imageJpegBase64`: a screenshot taken after the action, once the screen has changed from just before it or half a second has passed, whichever comes first. One call instead of `runner.performAction` followed by `runner.takeScreenshot`, with no fixed wait in between. Anything animating on the page counts as a change. The action itself is performed exactly as without the option; if the screen could serve no frame after it — a display restart, or a `navigate` on a desktop that is still starting — the action's result comes back without `imageJpegBase64`, so take a screenshot separately rather than repeating the action. On a mobile runner the screenshot is the device's own, taken right after a performed action. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may have stopped answering mid-action. This does not mean the action was not performed — take a screenshot before repeating it.";
|
|
1482
1522
|
readonly input: z.ZodObject<{
|
|
1483
1523
|
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1484
1524
|
button: z.ZodLiteral<"left" | "right" | "wheel" | "back" | "forward">;
|
|
@@ -1516,14 +1556,18 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1516
1556
|
type: z.ZodLiteral<"type">;
|
|
1517
1557
|
}, z.core.$strict>], "type">;
|
|
1518
1558
|
id: z.ZodString;
|
|
1559
|
+
withScreenshot: z.ZodOptional<z.ZodBoolean>;
|
|
1560
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1519
1561
|
}, z.core.$strip>;
|
|
1520
1562
|
readonly kind: "write";
|
|
1521
1563
|
readonly name: "runner.performAction";
|
|
1522
1564
|
readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1565
|
+
imageJpegBase64: z.ZodOptional<z.ZodString>;
|
|
1523
1566
|
outcome: z.ZodLiteral<"success">;
|
|
1524
1567
|
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1525
1568
|
errorMessage: z.ZodString;
|
|
1526
1569
|
failureReason: z.ZodLiteral<"action-failed">;
|
|
1570
|
+
imageJpegBase64: z.ZodOptional<z.ZodString>;
|
|
1527
1571
|
outcome: z.ZodLiteral<"failure">;
|
|
1528
1572
|
}, z.core.$strip>, z.ZodObject<{
|
|
1529
1573
|
failureReason: z.ZodEnum<{
|
|
@@ -1542,6 +1586,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1542
1586
|
baselinePath: z.ZodString;
|
|
1543
1587
|
id: z.ZodString;
|
|
1544
1588
|
screenshotPath: z.ZodString;
|
|
1589
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1545
1590
|
}, z.core.$strip>;
|
|
1546
1591
|
readonly kind: "write";
|
|
1547
1592
|
readonly name: "runner.promoteSnapshot";
|
|
@@ -1564,6 +1609,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1564
1609
|
tail: z.ZodOptional<z.ZodNumber>;
|
|
1565
1610
|
id: z.ZodString;
|
|
1566
1611
|
stream: z.ZodString;
|
|
1612
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1567
1613
|
}, z.core.$strip>;
|
|
1568
1614
|
readonly kind: "read";
|
|
1569
1615
|
readonly name: "runner.readJournal";
|
|
@@ -1602,6 +1648,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1602
1648
|
startLine: z.ZodInt;
|
|
1603
1649
|
}, z.core.$strip>>;
|
|
1604
1650
|
unchangedFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1651
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1605
1652
|
}, z.core.$strip>;
|
|
1606
1653
|
readonly kind: "write";
|
|
1607
1654
|
readonly name: "runner.runFlow";
|
|
@@ -1637,6 +1684,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1637
1684
|
readonly description: "Stop what a runner is currently executing, leaving the runner up and its browser on whatever page the run reached. Succeeds whether or not anything was running, and `wasRunning` says which. This is the counterpart of `runner.terminate`, which ends the runner itself. The run stops where it is, so the journal's `run-status` settles it as stopped rather than passed or failed. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may be too busy to answer. The stop may still have landed, but stopping a runner that is already idle does nothing, so retrying is safe.";
|
|
1638
1685
|
readonly input: z.ZodObject<{
|
|
1639
1686
|
id: z.ZodString;
|
|
1687
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1640
1688
|
}, z.core.$strip>;
|
|
1641
1689
|
readonly kind: "write";
|
|
1642
1690
|
readonly name: "runner.stopRun";
|
|
@@ -1654,6 +1702,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1654
1702
|
readonly description: "Take one screenshot of an interactive runner's screen. On a runner with a browser the image is the whole virtual desktop, browser window and all. On a mobile runner it is the device's own screen, re-encoded to JPEG on the pod so this contract reads one image format regardless of runner family. `screen-needs-a-run` if the runner's virtual desktop has never started. Waiting will not change this and retrying is pointless — call `runner.runFlow` with a flow that opens a browser, then ask for the screen again. On a runner image with a browser that has never run anything, any `runner.performAction` also starts the browser itself. Evaluating a snippet does not start the desktop. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. `runner-has-no-screen` if this runner is not one that runs a browser on a virtual desktop. Nothing about it can be seen or driven, and retrying will never help — launch a `playwright` runner instead. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may be too busy to answer. Nothing was changed, so retrying is safe; if it persists, launch the runner again.";
|
|
1655
1703
|
readonly input: z.ZodObject<{
|
|
1656
1704
|
id: z.ZodString;
|
|
1705
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1657
1706
|
}, z.core.$strip>;
|
|
1658
1707
|
readonly kind: "read";
|
|
1659
1708
|
readonly name: "runner.takeScreenshot";
|
|
@@ -1674,6 +1723,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1674
1723
|
readonly description: "End an interactive runner on the caller's team, and the pod it runs on with it. Terminating a runner that is not running succeeds and reports `wasRunning: false`. This ends the runner: use `runner.stopRun` to stop what a runner is currently executing while leaving the runner up.";
|
|
1675
1724
|
readonly input: z.ZodObject<{
|
|
1676
1725
|
id: z.ZodString;
|
|
1726
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1677
1727
|
}, z.core.$strip>;
|
|
1678
1728
|
readonly kind: "write";
|
|
1679
1729
|
readonly name: "runner.terminate";
|
|
@@ -1725,7 +1775,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1725
1775
|
export declare const publicContractsV1: {
|
|
1726
1776
|
agent: {
|
|
1727
1777
|
get: {
|
|
1728
|
-
readonly description: "
|
|
1778
|
+
readonly description: "Monitor a QA Wolf AI session by reading its status and replies. After agent.send, share the returned session URL before monitoring. Wait 30 to 60 seconds between checks; do not call this in a tight loop. Replies accumulate, so compare them with what you have already seen. Continue monitoring silently when the status and replies are unchanged; do not narrate waiting, announce the next check, or ask whether to keep monitoring. Report only substantive new progress, questions, blockers, or the final outcome. A status of \"waiting-for-you\" means the last reply is a question the work is blocked on, and answering it with agent.send is what unblocks it. Surface an explicit request for user input even if the status still says \"working\". Include the session URL when reporting a blocker or final outcome. On \"completed\", stop status checks and verify the requested result before claiming success. For new flows, validation, publication in the target environment, and readiness are separate checks; a Git push or final reply does not prove the flow is active. If every requested result is verified but status remains \"working\", report the mismatch and stop monitoring. Stop on \"failed\" or \"cancelled\" and report any confirmed partial result.";
|
|
1729
1779
|
readonly input: z.ZodObject<{
|
|
1730
1780
|
sessionId: PublicIdSchema;
|
|
1731
1781
|
}, z.core.$strip>;
|
|
@@ -1749,7 +1799,7 @@ export declare const publicContractsV1: {
|
|
|
1749
1799
|
}, z.core.$strip>;
|
|
1750
1800
|
};
|
|
1751
1801
|
send: {
|
|
1752
|
-
readonly description: "
|
|
1802
|
+
readonly description: "Start or continue work with the QA Wolf AI and return a live session URL to share with the user. Use it to cover a user journey, investigate a failing run, or fix a broken flow. This is the one verb that starts work from nothing: every other write acts on a flow, run or issue that already exists. Returns sessionId, status, and url as soon as the request is accepted; work can take minutes to tens of minutes. After each send, make the next action a normal user-visible assistant message containing the exact returned url, before any tool call or wait. Tool output and internal reasoning do not count as sharing the link. Do not run a timer or monitoring call alongside this send. Acceptance does not mean the work is complete. Then monitor the session with agent.get, reporting new progress, blockers, and the final outcome rather than unchanged status. Send here again to answer a question or add context to the same session.";
|
|
1753
1803
|
readonly input: z.ZodObject<{
|
|
1754
1804
|
environmentId: z.ZodOptional<PublicIdSchema>;
|
|
1755
1805
|
message: z.ZodString;
|
|
@@ -1907,6 +1957,20 @@ export declare const publicContractsV1: {
|
|
|
1907
1957
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
1908
1958
|
}, z.core.$strip>;
|
|
1909
1959
|
};
|
|
1960
|
+
registerAddress: {
|
|
1961
|
+
readonly description: "Register an inbox address for the workspace. Registering an address the workspace already has changes nothing. A refusal names the domains the workspace can use.";
|
|
1962
|
+
readonly input: z.ZodObject<{
|
|
1963
|
+
address: z.ZodEmail;
|
|
1964
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
1965
|
+
}, z.core.$strip>;
|
|
1966
|
+
readonly kind: "write";
|
|
1967
|
+
readonly name: "email.registerAddress";
|
|
1968
|
+
readonly output: z.ZodObject<{
|
|
1969
|
+
address: z.ZodString;
|
|
1970
|
+
isDefault: z.ZodBoolean;
|
|
1971
|
+
url: z.ZodURL;
|
|
1972
|
+
}, z.core.$strip>;
|
|
1973
|
+
};
|
|
1910
1974
|
send: {
|
|
1911
1975
|
readonly description: "Send an email from one of the workspace's inbox addresses, for example to exercise a flow that reacts to incoming mail. Returns the sent email; read it back with email.get.";
|
|
1912
1976
|
readonly input: z.ZodObject<{
|
|
@@ -2814,6 +2878,23 @@ export declare const publicContractsV1: {
|
|
|
2814
2878
|
url: z.ZodURL;
|
|
2815
2879
|
}, z.core.$strip>;
|
|
2816
2880
|
};
|
|
2881
|
+
stop: {
|
|
2882
|
+
readonly description: "Stop a run, including its queued flows and automatic retries. Stopping is asynchronous. Repeated requests are safe, and finished runs keep their results. A run that is still being created returns not found; retry once run.get returns the run. If run.get returns a different runId, use that ID. Poll run.get for results.";
|
|
2883
|
+
readonly input: z.ZodObject<{
|
|
2884
|
+
runId: PublicIdSchema;
|
|
2885
|
+
}, z.core.$strip>;
|
|
2886
|
+
readonly kind: "write";
|
|
2887
|
+
readonly name: "run.stop";
|
|
2888
|
+
readonly output: z.ZodObject<{
|
|
2889
|
+
runId: PublicIdSchema;
|
|
2890
|
+
status: z.ZodEnum<{
|
|
2891
|
+
accepted: "accepted";
|
|
2892
|
+
"already-finished": "already-finished";
|
|
2893
|
+
"execution-not-found": "execution-not-found";
|
|
2894
|
+
}>;
|
|
2895
|
+
url: z.ZodURL;
|
|
2896
|
+
}, z.core.$strip>;
|
|
2897
|
+
};
|
|
2817
2898
|
};
|
|
2818
2899
|
runner: {
|
|
2819
2900
|
evaluateSnippet: {
|
|
@@ -2823,6 +2904,7 @@ export declare const publicContractsV1: {
|
|
|
2823
2904
|
filePath: z.ZodOptional<z.ZodString>;
|
|
2824
2905
|
files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2825
2906
|
id: z.ZodString;
|
|
2907
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
2826
2908
|
}, z.core.$strip>;
|
|
2827
2909
|
readonly kind: "write";
|
|
2828
2910
|
readonly name: "runner.evaluateSnippet";
|
|
@@ -2846,6 +2928,7 @@ export declare const publicContractsV1: {
|
|
|
2846
2928
|
readonly description: "Report whether a runner is running under this id on the caller's team. This is a lookup: it never starts a runner, and it does not reset a runner's inactivity clock the way reading its journal does. An id that is not running is a success with `running: false` rather than an error, so this is how to check a runner is still there before addressing it.";
|
|
2847
2929
|
readonly input: z.ZodObject<{
|
|
2848
2930
|
id: z.ZodString;
|
|
2931
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
2849
2932
|
}, z.core.$strip>;
|
|
2850
2933
|
readonly kind: "read";
|
|
2851
2934
|
readonly name: "runner.get";
|
|
@@ -2860,6 +2943,7 @@ export declare const publicContractsV1: {
|
|
|
2860
2943
|
readonly input: z.ZodObject<{
|
|
2861
2944
|
id: z.ZodString;
|
|
2862
2945
|
selector: z.ZodString;
|
|
2946
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
2863
2947
|
}, z.core.$strip>;
|
|
2864
2948
|
readonly kind: "write";
|
|
2865
2949
|
readonly name: "runner.highlightSelector";
|
|
@@ -2888,6 +2972,7 @@ export declare const publicContractsV1: {
|
|
|
2888
2972
|
npmDependencies: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2889
2973
|
packageName: z.ZodString;
|
|
2890
2974
|
packageVersion: z.ZodString;
|
|
2975
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
2891
2976
|
}, z.core.$strip>;
|
|
2892
2977
|
readonly kind: "write";
|
|
2893
2978
|
readonly name: "runner.importPackage";
|
|
@@ -2916,6 +3001,7 @@ export declare const publicContractsV1: {
|
|
|
2916
3001
|
variableName: z.ZodString;
|
|
2917
3002
|
what: z.ZodLiteral<"variable">;
|
|
2918
3003
|
}, z.core.$strip>], "what">;
|
|
3004
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
2919
3005
|
}, z.core.$strip>;
|
|
2920
3006
|
readonly kind: "read";
|
|
2921
3007
|
readonly name: "runner.inspect";
|
|
@@ -2956,6 +3042,7 @@ export declare const publicContractsV1: {
|
|
|
2956
3042
|
text: z.ZodString;
|
|
2957
3043
|
what: z.ZodLiteral<"elements">;
|
|
2958
3044
|
}, z.core.$strip>], "by">], "what">;
|
|
3045
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
2959
3046
|
}, z.core.$strip>;
|
|
2960
3047
|
readonly kind: "read";
|
|
2961
3048
|
readonly name: "runner.inspectMobile";
|
|
@@ -3145,6 +3232,7 @@ export declare const publicContractsV1: {
|
|
|
3145
3232
|
android: "android";
|
|
3146
3233
|
ios: "ios";
|
|
3147
3234
|
}>>;
|
|
3235
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
3148
3236
|
}, z.core.$strip>;
|
|
3149
3237
|
readonly kind: "write";
|
|
3150
3238
|
readonly name: "runner.launch";
|
|
@@ -3162,8 +3250,10 @@ export declare const publicContractsV1: {
|
|
|
3162
3250
|
}, z.core.$strip>;
|
|
3163
3251
|
};
|
|
3164
3252
|
list: {
|
|
3165
|
-
readonly description: "List the runners running on the caller's team right now.
|
|
3166
|
-
readonly input: z.ZodObject<{
|
|
3253
|
+
readonly description: "List the runners running on the caller's team right now. A team API key already names the team and sends nothing; a credential bound to no single workspace names one in `workspaceId`. A runner that was terminated, or that terminated on its own after inactivity, is not listed, because the run system keeps no record of a runner once it is gone. This is a lookup: it never starts a runner, and it does not reset a runner's inactivity clock the way reading its journal does. It is how to find a runner launched from another machine or in an earlier session, when the id it was launched under is no longer at hand.";
|
|
3254
|
+
readonly input: z.ZodObject<{
|
|
3255
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
3256
|
+
}, z.core.$strip>;
|
|
3167
3257
|
readonly kind: "read";
|
|
3168
3258
|
readonly name: "runner.list";
|
|
3169
3259
|
readonly output: z.ZodObject<{
|
|
@@ -3181,7 +3271,7 @@ export declare const publicContractsV1: {
|
|
|
3181
3271
|
}, z.core.$strip>;
|
|
3182
3272
|
};
|
|
3183
3273
|
performAction: {
|
|
3184
|
-
readonly description: "Perform one raw browser action on an interactive runner: click, double_click, move, drag, scroll, keypress, type, or navigate. Coordinates are whole pixels on the runner's virtual desktop, in the same space as `runner.takeScreenshot`. One action per request, and the runner serves one at a time. The action shapes follow the computer-use vocabulary, minus `screenshot` (use `runner.takeScreenshot`) and `wait` (delay on the caller's side). A success means the action took effect. `action-failed`, with a reason, if it reached the runner and did not take effect. On a runner image with a browser, the first action on a runner that has never run anything starts its browser and waits for it, so it can take up to a minute to answer — no `runner.runFlow` is needed before acting; if the browser is still starting when the wait runs out, the answer is `screen-not-ready` and retrying converges. On a mobile runner, the same `screen-needs-a-run` and `screen-not-ready` outcomes mean no Appium session has started yet, or it did not answer this instant; `runner.runFlow` is what starts one, same as a browser. `screen-needs-a-run` if the browser could not be started that way — usually a runner whose runs all finished without starting its desktop; call `runner.runFlow` with a flow that opens a browser. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. A `navigate` does not go through the screen, so a screen that is not ready does not stop it. `runner-has-no-screen` if this runner is not one that runs a browser on a virtual desktop. Nothing about it can be seen or driven, and retrying will never help — launch a `playwright` runner instead. `action-not-supported-on-mobile` if the runner is a mobile device and this action has no touchscreen equivalent: `double_click`, `scroll`, `move`, `keypress` and `navigate`, and a `click` whose `button` is not `left`, are all pointer-device concepts a touchscreen has nothing to offer for. `click` taps, `drag` swipes between its path's first and last point, and `type` types into whatever the last tap focused. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may have stopped answering mid-action. This does not mean the action was not performed — take a screenshot before repeating it.";
|
|
3274
|
+
readonly description: "Perform one raw browser action on an interactive runner: click, double_click, move, drag, scroll, keypress, type, or navigate. Coordinates are whole pixels on the runner's virtual desktop, in the same space as `runner.takeScreenshot`. One action per request, and the runner serves one at a time. The action shapes follow the computer-use vocabulary, minus `screenshot` (use `runner.takeScreenshot`) and `wait` (delay on the caller's side). A success means the action took effect. `action-failed`, with a reason, if it reached the runner and did not take effect. On a runner image with a browser, the first action on a runner that has never run anything starts its browser and waits for it, so it can take up to a minute to answer — no `runner.runFlow` is needed before acting; if the browser is still starting when the wait runs out, the answer is `screen-not-ready` and retrying converges. On a mobile runner, the same `screen-needs-a-run` and `screen-not-ready` outcomes mean no Appium session has started yet, or it did not answer this instant; `runner.runFlow` is what starts one, same as a browser. `screen-needs-a-run` if the browser could not be started that way — usually a runner whose runs all finished without starting its desktop; call `runner.runFlow` with a flow that opens a browser. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. A `navigate` does not go through the screen, so a screen that is not ready does not stop it. `runner-has-no-screen` if this runner is not one that runs a browser on a virtual desktop. Nothing about it can be seen or driven, and retrying will never help — launch a `playwright` runner instead. `action-not-supported-on-mobile` if the runner is a mobile device and this action has no touchscreen equivalent: `double_click`, `scroll`, `move`, `keypress` and `navigate`, and a `click` whose `button` is not `left`, are all pointer-device concepts a touchscreen has nothing to offer for. `click` taps, `drag` swipes between its path's first and last point, and `type` types into whatever the last tap focused. With `withScreenshot: true`, the answer also carries `imageJpegBase64`: a screenshot taken after the action, once the screen has changed from just before it or half a second has passed, whichever comes first. One call instead of `runner.performAction` followed by `runner.takeScreenshot`, with no fixed wait in between. Anything animating on the page counts as a change. The action itself is performed exactly as without the option; if the screen could serve no frame after it — a display restart, or a `navigate` on a desktop that is still starting — the action's result comes back without `imageJpegBase64`, so take a screenshot separately rather than repeating the action. On a mobile runner the screenshot is the device's own, taken right after a performed action. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may have stopped answering mid-action. This does not mean the action was not performed — take a screenshot before repeating it.";
|
|
3185
3275
|
readonly input: z.ZodObject<{
|
|
3186
3276
|
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3187
3277
|
button: z.ZodLiteral<"left" | "right" | "wheel" | "back" | "forward">;
|
|
@@ -3219,14 +3309,18 @@ export declare const publicContractsV1: {
|
|
|
3219
3309
|
type: z.ZodLiteral<"type">;
|
|
3220
3310
|
}, z.core.$strict>], "type">;
|
|
3221
3311
|
id: z.ZodString;
|
|
3312
|
+
withScreenshot: z.ZodOptional<z.ZodBoolean>;
|
|
3313
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
3222
3314
|
}, z.core.$strip>;
|
|
3223
3315
|
readonly kind: "write";
|
|
3224
3316
|
readonly name: "runner.performAction";
|
|
3225
3317
|
readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3318
|
+
imageJpegBase64: z.ZodOptional<z.ZodString>;
|
|
3226
3319
|
outcome: z.ZodLiteral<"success">;
|
|
3227
3320
|
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3228
3321
|
errorMessage: z.ZodString;
|
|
3229
3322
|
failureReason: z.ZodLiteral<"action-failed">;
|
|
3323
|
+
imageJpegBase64: z.ZodOptional<z.ZodString>;
|
|
3230
3324
|
outcome: z.ZodLiteral<"failure">;
|
|
3231
3325
|
}, z.core.$strip>, z.ZodObject<{
|
|
3232
3326
|
failureReason: z.ZodEnum<{
|
|
@@ -3245,6 +3339,7 @@ export declare const publicContractsV1: {
|
|
|
3245
3339
|
baselinePath: z.ZodString;
|
|
3246
3340
|
id: z.ZodString;
|
|
3247
3341
|
screenshotPath: z.ZodString;
|
|
3342
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
3248
3343
|
}, z.core.$strip>;
|
|
3249
3344
|
readonly kind: "write";
|
|
3250
3345
|
readonly name: "runner.promoteSnapshot";
|
|
@@ -3267,6 +3362,7 @@ export declare const publicContractsV1: {
|
|
|
3267
3362
|
tail: z.ZodOptional<z.ZodNumber>;
|
|
3268
3363
|
id: z.ZodString;
|
|
3269
3364
|
stream: z.ZodString;
|
|
3365
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
3270
3366
|
}, z.core.$strip>;
|
|
3271
3367
|
readonly kind: "read";
|
|
3272
3368
|
readonly name: "runner.readJournal";
|
|
@@ -3305,6 +3401,7 @@ export declare const publicContractsV1: {
|
|
|
3305
3401
|
startLine: z.ZodInt;
|
|
3306
3402
|
}, z.core.$strip>>;
|
|
3307
3403
|
unchangedFiles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3404
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
3308
3405
|
}, z.core.$strip>;
|
|
3309
3406
|
readonly kind: "write";
|
|
3310
3407
|
readonly name: "runner.runFlow";
|
|
@@ -3340,6 +3437,7 @@ export declare const publicContractsV1: {
|
|
|
3340
3437
|
readonly description: "Stop what a runner is currently executing, leaving the runner up and its browser on whatever page the run reached. Succeeds whether or not anything was running, and `wasRunning` says which. This is the counterpart of `runner.terminate`, which ends the runner itself. The run stops where it is, so the journal's `run-status` settles it as stopped rather than passed or failed. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may be too busy to answer. The stop may still have landed, but stopping a runner that is already idle does nothing, so retrying is safe.";
|
|
3341
3438
|
readonly input: z.ZodObject<{
|
|
3342
3439
|
id: z.ZodString;
|
|
3440
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
3343
3441
|
}, z.core.$strip>;
|
|
3344
3442
|
readonly kind: "write";
|
|
3345
3443
|
readonly name: "runner.stopRun";
|
|
@@ -3357,6 +3455,7 @@ export declare const publicContractsV1: {
|
|
|
3357
3455
|
readonly description: "Take one screenshot of an interactive runner's screen. On a runner with a browser the image is the whole virtual desktop, browser window and all. On a mobile runner it is the device's own screen, re-encoded to JPEG on the pod so this contract reads one image format regardless of runner family. `screen-needs-a-run` if the runner's virtual desktop has never started. Waiting will not change this and retrying is pointless — call `runner.runFlow` with a flow that opens a browser, then ask for the screen again. On a runner image with a browser that has never run anything, any `runner.performAction` also starts the browser itself. Evaluating a snippet does not start the desktop. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. `runner-has-no-screen` if this runner is not one that runs a browser on a virtual desktop. Nothing about it can be seen or driven, and retrying will never help — launch a `playwright` runner instead. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may be too busy to answer. Nothing was changed, so retrying is safe; if it persists, launch the runner again.";
|
|
3358
3456
|
readonly input: z.ZodObject<{
|
|
3359
3457
|
id: z.ZodString;
|
|
3458
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
3360
3459
|
}, z.core.$strip>;
|
|
3361
3460
|
readonly kind: "read";
|
|
3362
3461
|
readonly name: "runner.takeScreenshot";
|
|
@@ -3377,6 +3476,7 @@ export declare const publicContractsV1: {
|
|
|
3377
3476
|
readonly description: "End an interactive runner on the caller's team, and the pod it runs on with it. Terminating a runner that is not running succeeds and reports `wasRunning: false`. This ends the runner: use `runner.stopRun` to stop what a runner is currently executing while leaving the runner up.";
|
|
3378
3477
|
readonly input: z.ZodObject<{
|
|
3379
3478
|
id: z.ZodString;
|
|
3479
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
3380
3480
|
}, z.core.$strip>;
|
|
3381
3481
|
readonly kind: "write";
|
|
3382
3482
|
readonly name: "runner.terminate";
|
package/dist/v1/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/v1/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,EACL,KAAK,kBAAkB,EACvB,wBAAwB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,KAAK,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,YAAY,EACV,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,cAAc,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAE,KAAK,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,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import { makeFindEmailsContract } from "./email/find.js";
|
|
|
13
13
|
import { makeGetEmailContract } from "./email/get.js";
|
|
14
14
|
import { makeGetEmailAttachmentContract } from "./email/getAttachment.js";
|
|
15
15
|
import { makeListEmailAddressesContract } from "./email/listAddresses.js";
|
|
16
|
+
import { makeRegisterEmailAddressContract } from "./email/registerAddress.js";
|
|
16
17
|
import { makeSendEmailContract } from "./email/send.js";
|
|
17
18
|
import { makeDeleteEnvironmentVariableContract } from "./environment/deleteVariable.js";
|
|
18
19
|
import { makeFindEnvironmentsContract } from "./environment/find.js";
|
|
@@ -34,6 +35,7 @@ import { makeFindRunsContract } from "./run/find.js";
|
|
|
34
35
|
import { makeGetRunContract } from "./run/get.js";
|
|
35
36
|
import { makeCreateRunContract } from "./run/index.js";
|
|
36
37
|
import { makeReattemptRunContract } from "./run/reattempt.js";
|
|
38
|
+
import { makeStopRunContract } from "./run/stop.js";
|
|
37
39
|
import { makeEvaluateSnippetOnRunnerContract } from "./runner/evaluateSnippet.js";
|
|
38
40
|
import { makeGetRunnerContract } from "./runner/get.js";
|
|
39
41
|
import { makeHighlightSelectorOnRunnerContract } from "./runner/highlightSelector.js";
|
|
@@ -72,6 +74,7 @@ export const makeContractsV1 = (ids) => {
|
|
|
72
74
|
get: makeGetEmailContract(resolvedIds),
|
|
73
75
|
getAttachment: makeGetEmailAttachmentContract(resolvedIds),
|
|
74
76
|
listAddresses: makeListEmailAddressesContract(resolvedIds),
|
|
77
|
+
registerAddress: makeRegisterEmailAddressContract(resolvedIds),
|
|
75
78
|
send: makeSendEmailContract(resolvedIds),
|
|
76
79
|
},
|
|
77
80
|
environment: {
|
|
@@ -104,23 +107,24 @@ export const makeContractsV1 = (ids) => {
|
|
|
104
107
|
find: makeFindRunsContract(resolvedIds),
|
|
105
108
|
get: makeGetRunContract(resolvedIds),
|
|
106
109
|
reattempt: makeReattemptRunContract(resolvedIds),
|
|
110
|
+
stop: makeStopRunContract(resolvedIds),
|
|
107
111
|
},
|
|
108
112
|
runner: {
|
|
109
|
-
evaluateSnippet: makeEvaluateSnippetOnRunnerContract(),
|
|
110
|
-
get: makeGetRunnerContract(),
|
|
111
|
-
highlightSelector: makeHighlightSelectorOnRunnerContract(),
|
|
112
|
-
importPackage: makeImportPackageOnRunnerContract(),
|
|
113
|
-
inspect: makeInspectOnRunnerContract(),
|
|
114
|
-
inspectMobile: makeInspectMobileOnRunnerContract(),
|
|
115
|
-
launch: makeLaunchRunnerContract(),
|
|
116
|
-
list: makeListRunnersContract(),
|
|
117
|
-
performAction: makePerformActionOnRunnerContract(),
|
|
118
|
-
promoteSnapshot: makePromoteSnapshotOnRunnerContract(),
|
|
119
|
-
readJournal: makeReadRunnerJournalContract(),
|
|
113
|
+
evaluateSnippet: makeEvaluateSnippetOnRunnerContract(resolvedIds),
|
|
114
|
+
get: makeGetRunnerContract(resolvedIds),
|
|
115
|
+
highlightSelector: makeHighlightSelectorOnRunnerContract(resolvedIds),
|
|
116
|
+
importPackage: makeImportPackageOnRunnerContract(resolvedIds),
|
|
117
|
+
inspect: makeInspectOnRunnerContract(resolvedIds),
|
|
118
|
+
inspectMobile: makeInspectMobileOnRunnerContract(resolvedIds),
|
|
119
|
+
launch: makeLaunchRunnerContract(resolvedIds),
|
|
120
|
+
list: makeListRunnersContract(resolvedIds),
|
|
121
|
+
performAction: makePerformActionOnRunnerContract(resolvedIds),
|
|
122
|
+
promoteSnapshot: makePromoteSnapshotOnRunnerContract(resolvedIds),
|
|
123
|
+
readJournal: makeReadRunnerJournalContract(resolvedIds),
|
|
120
124
|
runFlow: makeRunFlowOnRunnerContract(resolvedIds),
|
|
121
|
-
stopRun: makeStopRunOnRunnerContract(),
|
|
122
|
-
takeScreenshot: makeTakeScreenshotOnRunnerContract(),
|
|
123
|
-
terminate: makeTerminateRunnerContract(),
|
|
125
|
+
stopRun: makeStopRunOnRunnerContract(resolvedIds),
|
|
126
|
+
takeScreenshot: makeTakeScreenshotOnRunnerContract(resolvedIds),
|
|
127
|
+
terminate: makeTerminateRunnerContract(resolvedIds),
|
|
124
128
|
},
|
|
125
129
|
tag: {
|
|
126
130
|
create: makeCreateTagContract(resolvedIds),
|
package/dist/v1/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/v1/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,wBAAwB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAA2B,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAM/E,OAAO,EAAuB,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAyB,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAEL,6BAA6B,GAC9B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAGL,gBAAgB,GACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,cAAc,sBAAsB,CAAC;AAErC,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,qCAAqC,EAAE,MAAM,iCAAiC,CAAC;AACxF,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,kCAAkC,EAAE,MAAM,8BAA8B,CAAC;AAClF,OAAO,EACL,6BAA6B,EAC7B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EAAE,wBAAwB,CAAC,WAAW,CAAC;YAC7C,IAAI,EAAE,uBAAuB,CAAC,WAAW,CAAC;YAC1C,aAAa,EAAE,iCAAiC,CAAC,WAAW,CAAC;YAC7D,eAAe,EAAE,mCAAmC,CAAC,WAAW,CAAC;YACjE,WAAW,EAAE,6BAA6B,CAAC,WAAW,CAAC;YACvD,OAAO,EAAE,2BAA2B,CAAC,WAAW,CAAC;YACjD,OAAO,EAAE,2BAA2B,CAAC,WAAW,CAAC;YACjD,cAAc,EAAE,kCAAkC,CAAC,WAAW,CAAC;YAC/D,SAAS,EAAE,2BAA2B,CAAC,WAAW,CAAC;SACpD;QACD,GAAG,EAAE;YACH,MAAM,EAAE,qBAAqB,CAAC,WAAW,CAAC;YAC1C,IAAI,EAAE,oBAAoB,CAAC,WAAW,CAAC;SACxC;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { PublicIdSchema } from "../ids.js";
|
|
3
|
+
export declare const makeStopRunContract: <RunId extends PublicIdSchema>(ids: {
|
|
4
|
+
run: RunId;
|
|
5
|
+
}) => {
|
|
6
|
+
readonly description: "Stop a run, including its queued flows and automatic retries. Stopping is asynchronous. Repeated requests are safe, and finished runs keep their results. A run that is still being created returns not found; retry once run.get returns the run. If run.get returns a different runId, use that ID. Poll run.get for results.";
|
|
7
|
+
readonly input: z.ZodObject<{
|
|
8
|
+
runId: RunId;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
readonly kind: "write";
|
|
11
|
+
readonly name: "run.stop";
|
|
12
|
+
readonly output: z.ZodObject<{
|
|
13
|
+
runId: RunId;
|
|
14
|
+
status: z.ZodEnum<{
|
|
15
|
+
accepted: "accepted";
|
|
16
|
+
"already-finished": "already-finished";
|
|
17
|
+
"execution-not-found": "execution-not-found";
|
|
18
|
+
}>;
|
|
19
|
+
url: z.ZodURL;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=stop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stop.d.ts","sourceRoot":"","sources":["../../../src/v1/run/stop.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGhD,eAAO,MAAM,mBAAmB,GAAI,KAAK,SAAS,cAAc,EAAE,KAAK;IACrE,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;CA2BA,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { resource } from "../resource.js";
|
|
3
|
+
export const makeStopRunContract = (ids) => {
|
|
4
|
+
const input = z.object({ runId: ids.run });
|
|
5
|
+
const output = resource({
|
|
6
|
+
runId: ids.run,
|
|
7
|
+
status: z
|
|
8
|
+
.enum(["accepted", "already-finished", "execution-not-found"])
|
|
9
|
+
.describe('"accepted" means stopping was requested; poll run.get for the final result. "already-finished" means the run has already finished and its result is unchanged. "execution-not-found" means the run exists but no execution was found to stop; it may still be starting or may no longer be available. No stop request was accepted in that case.'),
|
|
10
|
+
}, { urlFieldDescription: "Absolute URL of the run page." });
|
|
11
|
+
return {
|
|
12
|
+
description: "Stop a run, including its queued flows and automatic retries. Stopping is asynchronous. Repeated requests are safe, and finished runs keep their results. A run that is still being created returns not found; retry once run.get returns the run. If run.get returns a different runId, use that ID. Poll run.get for results.",
|
|
13
|
+
input,
|
|
14
|
+
kind: "write",
|
|
15
|
+
name: "run.stop",
|
|
16
|
+
output,
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=stop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stop.js","sourceRoot":"","sources":["../../../src/v1/run/stop.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAA+B,GAEjE,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC;IAC3C,MAAM,MAAM,GAAG,QAAQ,CACrB;QACE,KAAK,EAAE,GAAG,CAAC,GAAG;QACd,MAAM,EAAE,CAAC;aACN,IAAI,CAAC,CAAC,UAAU,EAAE,kBAAkB,EAAE,qBAAqB,CAAC,CAAC;aAC7D,QAAQ,CACP,kVAAkV,CACnV;KACJ,EACD,EAAE,mBAAmB,EAAE,+BAA+B,EAAE,CACzD,CAAC;IAEF,OAAO;QACL,WAAW,EACT,iUAAiU;QACnU,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,UAAU;QAChB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|