@qawolf/api-contracts 0.71.0 → 0.73.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/index.d.ts +128 -4
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/issue/create.d.ts +24 -0
- package/dist/v1/issue/create.d.ts.map +1 -1
- package/dist/v1/issue/create.js +16 -3
- package/dist/v1/issue/create.js.map +1 -1
- package/dist/v1/run/find.d.ts +1 -0
- package/dist/v1/run/find.d.ts.map +1 -1
- package/dist/v1/run/get.d.ts +1 -0
- package/dist/v1/run/get.d.ts.map +1 -1
- package/dist/v1/run/summary.d.ts +1 -0
- package/dist/v1/run/summary.d.ts.map +1 -1
- package/dist/v1/run/summary.js +5 -1
- package/dist/v1/run/summary.js.map +1 -1
- package/dist/v1/runner/browserAction.d.ts +5 -0
- package/dist/v1/runner/browserAction.d.ts.map +1 -1
- package/dist/v1/runner/browserAction.js +5 -5
- package/dist/v1/runner/browserAction.js.map +1 -1
- package/dist/v1/runner/catalog.d.ts +38 -2
- package/dist/v1/runner/catalog.d.ts.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 +1 -0
- package/dist/v1/runner/identity.js.map +1 -1
- package/dist/v1/runner/index.d.ts +2 -0
- package/dist/v1/runner/index.d.ts.map +1 -1
- package/dist/v1/runner/inspectMobile.d.ts +6 -0
- package/dist/v1/runner/inspectMobile.d.ts.map +1 -1
- package/dist/v1/runner/inspectMobile.js +5 -1
- package/dist/v1/runner/inspectMobile.js.map +1 -1
- package/dist/v1/runner/list.d.ts +1 -0
- package/dist/v1/runner/list.d.ts.map +1 -1
- package/dist/v1/runner/performAction.d.ts +32 -1
- package/dist/v1/runner/performAction.d.ts.map +1 -1
- package/dist/v1/runner/performAction.js +6 -4
- package/dist/v1/runner/performAction.js.map +1 -1
- package/dist/v1/runner/runFlow.d.ts +2 -0
- package/dist/v1/runner/runFlow.d.ts.map +1 -1
- package/dist/v1/runner/runnerAction.d.ts +74 -0
- package/dist/v1/runner/runnerAction.d.ts.map +1 -0
- package/dist/v1/runner/runnerAction.js +94 -0
- package/dist/v1/runner/runnerAction.js.map +1 -0
- package/dist/v1/runner/screen.d.ts +1 -1
- package/dist/v1/runner/screen.d.ts.map +1 -1
- package/dist/v1/runner/screen.js +1 -1
- package/dist/v1/runner/screen.js.map +1 -1
- package/dist/v1/runner/takeScreenshot.d.ts +1 -1
- package/dist/v1/runnerReexports.d.ts +1 -0
- package/dist/v1/runnerReexports.d.ts.map +1 -1
- package/dist/v1/runnerReexports.js +1 -0
- package/dist/v1/runnerReexports.js.map +1 -1
- package/package.json +1 -1
package/dist/v1/index.d.ts
CHANGED
|
@@ -1125,6 +1125,30 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1125
1125
|
urgent: "urgent";
|
|
1126
1126
|
}>>;
|
|
1127
1127
|
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1128
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1129
|
+
effort: z.ZodEnum<{
|
|
1130
|
+
small: "small";
|
|
1131
|
+
medium: "medium";
|
|
1132
|
+
extraSmall: "extraSmall";
|
|
1133
|
+
large: "large";
|
|
1134
|
+
extraLarge: "extraLarge";
|
|
1135
|
+
}>;
|
|
1136
|
+
priority: z.ZodEnum<{
|
|
1137
|
+
low: "low";
|
|
1138
|
+
medium: "medium";
|
|
1139
|
+
high: "high";
|
|
1140
|
+
urgent: "urgent";
|
|
1141
|
+
}>;
|
|
1142
|
+
reason: z.ZodEnum<{
|
|
1143
|
+
dataChanged: "dataChanged";
|
|
1144
|
+
flowNeedsWork: "flowNeedsWork";
|
|
1145
|
+
other: "other";
|
|
1146
|
+
uiChanged: "uiChanged";
|
|
1147
|
+
}>;
|
|
1148
|
+
type: z.ZodLiteral<"maintenance">;
|
|
1149
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1150
|
+
name: z.ZodString;
|
|
1151
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
1128
1152
|
}, z.core.$strip>], "type">;
|
|
1129
1153
|
readonly kind: "write";
|
|
1130
1154
|
readonly name: "issue.create";
|
|
@@ -1649,6 +1673,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1649
1673
|
commitSha: z.ZodOptional<z.ZodString>;
|
|
1650
1674
|
commitUrl: z.ZodOptional<z.ZodString>;
|
|
1651
1675
|
}, z.core.$strip>;
|
|
1676
|
+
needsReview: z.ZodOptional<z.ZodBoolean>;
|
|
1652
1677
|
runId: RunId;
|
|
1653
1678
|
status: z.ZodEnum<{
|
|
1654
1679
|
failed: "failed";
|
|
@@ -1769,6 +1794,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1769
1794
|
commitSha: z.ZodOptional<z.ZodString>;
|
|
1770
1795
|
commitUrl: z.ZodOptional<z.ZodString>;
|
|
1771
1796
|
}, z.core.$strip>;
|
|
1797
|
+
needsReview: z.ZodOptional<z.ZodBoolean>;
|
|
1772
1798
|
status: z.ZodEnum<{
|
|
1773
1799
|
failed: "failed";
|
|
1774
1800
|
queued: "queued";
|
|
@@ -1858,12 +1884,14 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1858
1884
|
playwright: "playwright";
|
|
1859
1885
|
android: "android";
|
|
1860
1886
|
ios: "ios";
|
|
1887
|
+
windows: "windows";
|
|
1861
1888
|
}>;
|
|
1862
1889
|
runnerName: z.ZodEnum<{
|
|
1863
1890
|
basic: "basic";
|
|
1864
1891
|
playwright: "playwright";
|
|
1865
1892
|
android: "android";
|
|
1866
1893
|
ios: "ios";
|
|
1894
|
+
windows: "windows";
|
|
1867
1895
|
}>;
|
|
1868
1896
|
}, z.core.$strip>, z.ZodObject<{
|
|
1869
1897
|
failureReason: z.ZodLiteral<"needs-full-sync">;
|
|
@@ -1903,7 +1931,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1903
1931
|
readonly openWorldHint: false;
|
|
1904
1932
|
readonly readOnlyHint: false;
|
|
1905
1933
|
};
|
|
1906
|
-
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; this refreshes the inactivity timer and can extend the runner's billed lifetime. 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
|
|
1934
|
+
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; this refreshes the inactivity timer and can extend the runner's billed lifetime. 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 has no browser desktop to see or drive, and retrying will never help. Launch a `playwright` runner, or on `windows` use `runner.runFlow`. `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.";
|
|
1907
1935
|
readonly input: z.ZodObject<{
|
|
1908
1936
|
id: z.ZodString;
|
|
1909
1937
|
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
@@ -2441,6 +2469,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
2441
2469
|
playwright: "playwright";
|
|
2442
2470
|
android: "android";
|
|
2443
2471
|
ios: "ios";
|
|
2472
|
+
windows: "windows";
|
|
2444
2473
|
}>>;
|
|
2445
2474
|
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
2446
2475
|
}, z.core.$strip>;
|
|
@@ -2454,6 +2483,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
2454
2483
|
playwright: "playwright";
|
|
2455
2484
|
android: "android";
|
|
2456
2485
|
ios: "ios";
|
|
2486
|
+
windows: "windows";
|
|
2457
2487
|
}>;
|
|
2458
2488
|
url: z.ZodURL;
|
|
2459
2489
|
alreadyRunning: z.ZodBoolean;
|
|
@@ -2482,6 +2512,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
2482
2512
|
playwright: "playwright";
|
|
2483
2513
|
android: "android";
|
|
2484
2514
|
ios: "ios";
|
|
2515
|
+
windows: "windows";
|
|
2485
2516
|
}>;
|
|
2486
2517
|
url: z.ZodURL;
|
|
2487
2518
|
}, z.core.$strip>>;
|
|
@@ -2493,7 +2524,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
2493
2524
|
readonly openWorldHint: true;
|
|
2494
2525
|
readonly readOnlyHint: false;
|
|
2495
2526
|
};
|
|
2496
|
-
readonly description: "Perform one raw
|
|
2527
|
+
readonly description: "Perform one raw action on an interactive runner: click, double_click, move, drag, scroll, keypress, type, or navigate; on mobile, tap, swipe, fill, or type. One action per request, and the runner serves one at a time. 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. `runner-has-no-screen` if this runner has no browser desktop to see or drive, and retrying will never help. Launch a `playwright` runner, or on `windows` use `runner.runFlow`. `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.";
|
|
2497
2528
|
readonly input: z.ZodObject<{
|
|
2498
2529
|
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2499
2530
|
button: z.ZodLiteral<"left" | "right" | "wheel" | "back" | "forward">;
|
|
@@ -2529,6 +2560,36 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
2529
2560
|
}, z.core.$strict>, z.ZodObject<{
|
|
2530
2561
|
text: z.ZodString;
|
|
2531
2562
|
type: z.ZodLiteral<"type">;
|
|
2563
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2564
|
+
selector: z.ZodOptional<z.ZodString>;
|
|
2565
|
+
strategy: z.ZodOptional<z.ZodEnum<{
|
|
2566
|
+
"ios-predicate": "ios-predicate";
|
|
2567
|
+
shadow: "shadow";
|
|
2568
|
+
xpath: "xpath";
|
|
2569
|
+
}>>;
|
|
2570
|
+
type: z.ZodLiteral<"tap">;
|
|
2571
|
+
x: z.ZodOptional<z.ZodInt>;
|
|
2572
|
+
y: z.ZodOptional<z.ZodInt>;
|
|
2573
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2574
|
+
duration_ms: z.ZodOptional<z.ZodInt>;
|
|
2575
|
+
from: z.ZodObject<{
|
|
2576
|
+
x: z.ZodInt;
|
|
2577
|
+
y: z.ZodInt;
|
|
2578
|
+
}, z.core.$strict>;
|
|
2579
|
+
to: z.ZodObject<{
|
|
2580
|
+
x: z.ZodInt;
|
|
2581
|
+
y: z.ZodInt;
|
|
2582
|
+
}, z.core.$strict>;
|
|
2583
|
+
type: z.ZodLiteral<"swipe">;
|
|
2584
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2585
|
+
selector: z.ZodString;
|
|
2586
|
+
strategy: z.ZodOptional<z.ZodEnum<{
|
|
2587
|
+
"ios-predicate": "ios-predicate";
|
|
2588
|
+
shadow: "shadow";
|
|
2589
|
+
xpath: "xpath";
|
|
2590
|
+
}>>;
|
|
2591
|
+
text: z.ZodString;
|
|
2592
|
+
type: z.ZodLiteral<"fill">;
|
|
2532
2593
|
}, z.core.$strict>], "type">;
|
|
2533
2594
|
id: z.ZodString;
|
|
2534
2595
|
withScreenshot: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2551,6 +2612,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
2551
2612
|
"screen-not-ready": "screen-not-ready";
|
|
2552
2613
|
"runner-has-no-screen": "runner-has-no-screen";
|
|
2553
2614
|
"action-not-supported-on-mobile": "action-not-supported-on-mobile";
|
|
2615
|
+
"action-not-supported-on-browser": "action-not-supported-on-browser";
|
|
2554
2616
|
}>;
|
|
2555
2617
|
outcome: z.ZodLiteral<"failure">;
|
|
2556
2618
|
}, z.core.$strip>], "failureReason">], "outcome">;
|
|
@@ -4608,6 +4670,30 @@ export declare const publicContractsV1: {
|
|
|
4608
4670
|
urgent: "urgent";
|
|
4609
4671
|
}>>;
|
|
4610
4672
|
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
4673
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4674
|
+
effort: z.ZodEnum<{
|
|
4675
|
+
small: "small";
|
|
4676
|
+
medium: "medium";
|
|
4677
|
+
extraSmall: "extraSmall";
|
|
4678
|
+
large: "large";
|
|
4679
|
+
extraLarge: "extraLarge";
|
|
4680
|
+
}>;
|
|
4681
|
+
priority: z.ZodEnum<{
|
|
4682
|
+
low: "low";
|
|
4683
|
+
medium: "medium";
|
|
4684
|
+
high: "high";
|
|
4685
|
+
urgent: "urgent";
|
|
4686
|
+
}>;
|
|
4687
|
+
reason: z.ZodEnum<{
|
|
4688
|
+
dataChanged: "dataChanged";
|
|
4689
|
+
flowNeedsWork: "flowNeedsWork";
|
|
4690
|
+
other: "other";
|
|
4691
|
+
uiChanged: "uiChanged";
|
|
4692
|
+
}>;
|
|
4693
|
+
type: z.ZodLiteral<"maintenance">;
|
|
4694
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4695
|
+
name: z.ZodString;
|
|
4696
|
+
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
4611
4697
|
}, z.core.$strip>], "type">;
|
|
4612
4698
|
readonly kind: "write";
|
|
4613
4699
|
readonly name: "issue.create";
|
|
@@ -5132,6 +5218,7 @@ export declare const publicContractsV1: {
|
|
|
5132
5218
|
commitSha: z.ZodOptional<z.ZodString>;
|
|
5133
5219
|
commitUrl: z.ZodOptional<z.ZodString>;
|
|
5134
5220
|
}, z.core.$strip>;
|
|
5221
|
+
needsReview: z.ZodOptional<z.ZodBoolean>;
|
|
5135
5222
|
runId: PublicIdSchema;
|
|
5136
5223
|
status: z.ZodEnum<{
|
|
5137
5224
|
failed: "failed";
|
|
@@ -5252,6 +5339,7 @@ export declare const publicContractsV1: {
|
|
|
5252
5339
|
commitSha: z.ZodOptional<z.ZodString>;
|
|
5253
5340
|
commitUrl: z.ZodOptional<z.ZodString>;
|
|
5254
5341
|
}, z.core.$strip>;
|
|
5342
|
+
needsReview: z.ZodOptional<z.ZodBoolean>;
|
|
5255
5343
|
status: z.ZodEnum<{
|
|
5256
5344
|
failed: "failed";
|
|
5257
5345
|
queued: "queued";
|
|
@@ -5341,12 +5429,14 @@ export declare const publicContractsV1: {
|
|
|
5341
5429
|
playwright: "playwright";
|
|
5342
5430
|
android: "android";
|
|
5343
5431
|
ios: "ios";
|
|
5432
|
+
windows: "windows";
|
|
5344
5433
|
}>;
|
|
5345
5434
|
runnerName: z.ZodEnum<{
|
|
5346
5435
|
basic: "basic";
|
|
5347
5436
|
playwright: "playwright";
|
|
5348
5437
|
android: "android";
|
|
5349
5438
|
ios: "ios";
|
|
5439
|
+
windows: "windows";
|
|
5350
5440
|
}>;
|
|
5351
5441
|
}, z.core.$strip>, z.ZodObject<{
|
|
5352
5442
|
failureReason: z.ZodLiteral<"needs-full-sync">;
|
|
@@ -5386,7 +5476,7 @@ export declare const publicContractsV1: {
|
|
|
5386
5476
|
readonly openWorldHint: false;
|
|
5387
5477
|
readonly readOnlyHint: false;
|
|
5388
5478
|
};
|
|
5389
|
-
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; this refreshes the inactivity timer and can extend the runner's billed lifetime. 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
|
|
5479
|
+
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; this refreshes the inactivity timer and can extend the runner's billed lifetime. 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 has no browser desktop to see or drive, and retrying will never help. Launch a `playwright` runner, or on `windows` use `runner.runFlow`. `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.";
|
|
5390
5480
|
readonly input: z.ZodObject<{
|
|
5391
5481
|
id: z.ZodString;
|
|
5392
5482
|
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
@@ -5924,6 +6014,7 @@ export declare const publicContractsV1: {
|
|
|
5924
6014
|
playwright: "playwright";
|
|
5925
6015
|
android: "android";
|
|
5926
6016
|
ios: "ios";
|
|
6017
|
+
windows: "windows";
|
|
5927
6018
|
}>>;
|
|
5928
6019
|
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
5929
6020
|
}, z.core.$strip>;
|
|
@@ -5937,6 +6028,7 @@ export declare const publicContractsV1: {
|
|
|
5937
6028
|
playwright: "playwright";
|
|
5938
6029
|
android: "android";
|
|
5939
6030
|
ios: "ios";
|
|
6031
|
+
windows: "windows";
|
|
5940
6032
|
}>;
|
|
5941
6033
|
url: z.ZodURL;
|
|
5942
6034
|
alreadyRunning: z.ZodBoolean;
|
|
@@ -5965,6 +6057,7 @@ export declare const publicContractsV1: {
|
|
|
5965
6057
|
playwright: "playwright";
|
|
5966
6058
|
android: "android";
|
|
5967
6059
|
ios: "ios";
|
|
6060
|
+
windows: "windows";
|
|
5968
6061
|
}>;
|
|
5969
6062
|
url: z.ZodURL;
|
|
5970
6063
|
}, z.core.$strip>>;
|
|
@@ -5976,7 +6069,7 @@ export declare const publicContractsV1: {
|
|
|
5976
6069
|
readonly openWorldHint: true;
|
|
5977
6070
|
readonly readOnlyHint: false;
|
|
5978
6071
|
};
|
|
5979
|
-
readonly description: "Perform one raw
|
|
6072
|
+
readonly description: "Perform one raw action on an interactive runner: click, double_click, move, drag, scroll, keypress, type, or navigate; on mobile, tap, swipe, fill, or type. One action per request, and the runner serves one at a time. 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. `runner-has-no-screen` if this runner has no browser desktop to see or drive, and retrying will never help. Launch a `playwright` runner, or on `windows` use `runner.runFlow`. `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.";
|
|
5980
6073
|
readonly input: z.ZodObject<{
|
|
5981
6074
|
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5982
6075
|
button: z.ZodLiteral<"left" | "right" | "wheel" | "back" | "forward">;
|
|
@@ -6012,6 +6105,36 @@ export declare const publicContractsV1: {
|
|
|
6012
6105
|
}, z.core.$strict>, z.ZodObject<{
|
|
6013
6106
|
text: z.ZodString;
|
|
6014
6107
|
type: z.ZodLiteral<"type">;
|
|
6108
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6109
|
+
selector: z.ZodOptional<z.ZodString>;
|
|
6110
|
+
strategy: z.ZodOptional<z.ZodEnum<{
|
|
6111
|
+
"ios-predicate": "ios-predicate";
|
|
6112
|
+
shadow: "shadow";
|
|
6113
|
+
xpath: "xpath";
|
|
6114
|
+
}>>;
|
|
6115
|
+
type: z.ZodLiteral<"tap">;
|
|
6116
|
+
x: z.ZodOptional<z.ZodInt>;
|
|
6117
|
+
y: z.ZodOptional<z.ZodInt>;
|
|
6118
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6119
|
+
duration_ms: z.ZodOptional<z.ZodInt>;
|
|
6120
|
+
from: z.ZodObject<{
|
|
6121
|
+
x: z.ZodInt;
|
|
6122
|
+
y: z.ZodInt;
|
|
6123
|
+
}, z.core.$strict>;
|
|
6124
|
+
to: z.ZodObject<{
|
|
6125
|
+
x: z.ZodInt;
|
|
6126
|
+
y: z.ZodInt;
|
|
6127
|
+
}, z.core.$strict>;
|
|
6128
|
+
type: z.ZodLiteral<"swipe">;
|
|
6129
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
6130
|
+
selector: z.ZodString;
|
|
6131
|
+
strategy: z.ZodOptional<z.ZodEnum<{
|
|
6132
|
+
"ios-predicate": "ios-predicate";
|
|
6133
|
+
shadow: "shadow";
|
|
6134
|
+
xpath: "xpath";
|
|
6135
|
+
}>>;
|
|
6136
|
+
text: z.ZodString;
|
|
6137
|
+
type: z.ZodLiteral<"fill">;
|
|
6015
6138
|
}, z.core.$strict>], "type">;
|
|
6016
6139
|
id: z.ZodString;
|
|
6017
6140
|
withScreenshot: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -6034,6 +6157,7 @@ export declare const publicContractsV1: {
|
|
|
6034
6157
|
"screen-not-ready": "screen-not-ready";
|
|
6035
6158
|
"runner-has-no-screen": "runner-has-no-screen";
|
|
6036
6159
|
"action-not-supported-on-mobile": "action-not-supported-on-mobile";
|
|
6160
|
+
"action-not-supported-on-browser": "action-not-supported-on-browser";
|
|
6037
6161
|
}>;
|
|
6038
6162
|
outcome: z.ZodLiteral<"failure">;
|
|
6039
6163
|
}, z.core.$strip>], "failureReason">], "outcome">;
|
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,cAAc,oBAAoB,CAAC;AAMnC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAuB5D,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,iBAAiB,EAEvB,MAAM,UAAU,CAAC;AAoBlB,MAAM,MAAM,cAAc,CAAC,GAAG,SAAS,oBAAoB,IAAI,CAAC,CAAC,KAAK,CACpE,GAAG,CAAC,OAAO,CAAC,CACb,CAAC;AAEF,MAAM,MAAM,eAAe,CAAC,GAAG,SAAS,oBAAoB,IAAI,CAAC,CAAC,KAAK,CACrE,GAAG,CAAC,QAAQ,CAAC,CACd,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,GAC1B,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,cAAc,GAAG,cAAc,EAC/C,WAAW,SAAS,cAAc,GAAG,cAAc,EACnD,QAAQ,SAAS,cAAc,GAAG,cAAc,EAChD,aAAa,SAAS,cAAc,GAAG,cAAc,EACrD,SAAS,SAAS,cAAc,GAAG,cAAc,EACjD,YAAY,SAAS,cAAc,GAAG,cAAc,EACpD,eAAe,SAAS,cAAc,GAAG,cAAc,EAEvD,KAAK,iBAAiB,CACpB,aAAa,EACb,MAAM,EACN,KAAK,EACL,OAAO,EACP,WAAW,EACX,QAAQ,EACR,aAAa,EACb,SAAS,EACT,YAAY,EACZ,eAAe,CAChB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/v1/index.ts"],"names":[],"mappings":"AAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoC,CAAC"}
|
|
@@ -38,6 +38,30 @@ export declare const makeCreateIssueContract: <EnvironmentId extends PublicIdSch
|
|
|
38
38
|
urgent: "urgent";
|
|
39
39
|
}>>;
|
|
40
40
|
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
41
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
+
effort: z.ZodEnum<{
|
|
43
|
+
small: "small";
|
|
44
|
+
medium: "medium";
|
|
45
|
+
extraSmall: "extraSmall";
|
|
46
|
+
large: "large";
|
|
47
|
+
extraLarge: "extraLarge";
|
|
48
|
+
}>;
|
|
49
|
+
priority: z.ZodEnum<{
|
|
50
|
+
low: "low";
|
|
51
|
+
medium: "medium";
|
|
52
|
+
high: "high";
|
|
53
|
+
urgent: "urgent";
|
|
54
|
+
}>;
|
|
55
|
+
reason: z.ZodEnum<{
|
|
56
|
+
dataChanged: "dataChanged";
|
|
57
|
+
flowNeedsWork: "flowNeedsWork";
|
|
58
|
+
other: "other";
|
|
59
|
+
uiChanged: "uiChanged";
|
|
60
|
+
}>;
|
|
61
|
+
type: z.ZodLiteral<"maintenance">;
|
|
62
|
+
description: z.ZodOptional<z.ZodString>;
|
|
63
|
+
name: z.ZodString;
|
|
64
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
41
65
|
}, z.core.$strip>], "type">;
|
|
42
66
|
readonly kind: "write";
|
|
43
67
|
readonly name: "issue.create";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/v1/issue/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,uBAAuB,GAClC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,cAAc,EAC9B,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;IACX,SAAS,EAAE,WAAW,CAAC;CACxB
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/v1/issue/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,uBAAuB,GAClC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,cAAc,EAC9B,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;IACX,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyEA,CAAC"}
|
package/dist/v1/issue/create.js
CHANGED
|
@@ -10,7 +10,7 @@ export const makeCreateIssueContract = (ids) => {
|
|
|
10
10
|
name: z.string().trim().min(1).max(255),
|
|
11
11
|
priority: issuePrioritySchema
|
|
12
12
|
.optional()
|
|
13
|
-
.describe('Defaults to "unprioritized".'),
|
|
13
|
+
.describe('Defaults to "unprioritized" for bug reports and coverage requests.'),
|
|
14
14
|
workspaceId: ids.workspace
|
|
15
15
|
.optional()
|
|
16
16
|
.describe("The workspace to create the issue in. Required when authenticating with an organization or user API key."),
|
|
@@ -28,6 +28,17 @@ export const makeCreateIssueContract = (ids) => {
|
|
|
28
28
|
.describe("The calendar date the coverage is estimated to be complete, as YYYY-MM-DD."),
|
|
29
29
|
type: z.literal("coverageRequest"),
|
|
30
30
|
}),
|
|
31
|
+
z.object({
|
|
32
|
+
...commonFields,
|
|
33
|
+
effort: z
|
|
34
|
+
.enum(["extraSmall", "small", "medium", "large", "extraLarge"])
|
|
35
|
+
.describe("The effort to repair the flows."),
|
|
36
|
+
priority: z.enum(["low", "medium", "high", "urgent"]),
|
|
37
|
+
reason: z
|
|
38
|
+
.enum(["dataChanged", "flowNeedsWork", "other", "uiChanged"])
|
|
39
|
+
.describe("Why the flows need maintenance."),
|
|
40
|
+
type: z.literal("maintenance"),
|
|
41
|
+
}),
|
|
31
42
|
]);
|
|
32
43
|
const output = z.object({
|
|
33
44
|
issue: makeIssueResourceSchema(ids),
|
|
@@ -38,8 +49,10 @@ export const makeCreateIssueContract = (ids) => {
|
|
|
38
49
|
openWorldHint: true,
|
|
39
50
|
readOnlyHint: false,
|
|
40
51
|
},
|
|
41
|
-
description: "Create a bug or coverage request issue for the caller's team. " +
|
|
42
|
-
"
|
|
52
|
+
description: "Create a bug report, maintenance report, or coverage request issue for the caller's team. " +
|
|
53
|
+
"A user can create a maintenance report only when they can see the workspace's maintenance reports; " +
|
|
54
|
+
"a team or organization API key credits it to the workspace's automation user. " +
|
|
55
|
+
"Link its failed flows afterwards with run.diagnose.",
|
|
43
56
|
input,
|
|
44
57
|
kind: "write",
|
|
45
58
|
name: "issue.create",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/v1/issue/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAE1E,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAMrC,GAMD,EAAE,EAAE;IACH,MAAM,YAAY,GAAG;QACnB,WAAW,EAAE,CAAC;aACX,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,6FAA6F,CAC9F;QACH,wEAAwE;QACxE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;QACvC,QAAQ,EAAE,mBAAmB;aAC1B,QAAQ,EAAE;aACV,QAAQ,
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/v1/issue/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE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AAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;YACrD,MAAM,EAAE,CAAC;iBACN,IAAI,CAAC,CAAC,aAAa,EAAE,eAAe,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;iBAC5D,QAAQ,CAAC,iCAAiC,CAAC;YAC9C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;SAC/B,CAAC;KACH,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;QACtB,KAAK,EAAE,uBAAuB,CAAC,GAAG,CAAC;KACpC,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EAAE;YACX,eAAe,EAAE,IAAI;YACrB,aAAa,EAAE,IAAI;YACnB,YAAY,EAAE,KAAK;SACpB;QACD,WAAW,EACT,4FAA4F;YAC5F,qGAAqG;YACrG,gFAAgF;YAChF,qDAAqD;QACvD,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,cAAc;QACpB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
package/dist/v1/run/find.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export declare const makeFindRunsContract: <RunId extends PublicIdSchema, Worksp
|
|
|
32
32
|
commitSha: z.ZodOptional<z.ZodString>;
|
|
33
33
|
commitUrl: z.ZodOptional<z.ZodString>;
|
|
34
34
|
}, z.core.$strip>;
|
|
35
|
+
needsReview: z.ZodOptional<z.ZodBoolean>;
|
|
35
36
|
runId: RunId;
|
|
36
37
|
status: z.ZodEnum<{
|
|
37
38
|
failed: "failed";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../src/v1/run/find.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,KAAK,cAAc,EAA8B,MAAM,WAAW,CAAC;AAM5E,eAAO,MAAM,oBAAoB,GAC/B,KAAK,SAAS,cAAc,EAC5B,WAAW,SAAS,cAAc,GAAG,cAAc,EACnD,KAAK;IACL,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,cAAc,EAAE,cAAc,CAAC;IAC/B,GAAG,EAAE,KAAK,CAAC;IACX,SAAS,EAAE,WAAW,CAAC;CACxB
|
|
1
|
+
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../src/v1/run/find.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,KAAK,cAAc,EAA8B,MAAM,WAAW,CAAC;AAM5E,eAAO,MAAM,oBAAoB,GAC/B,KAAK,SAAS,cAAc,EAC5B,WAAW,SAAS,cAAc,GAAG,cAAc,EACnD,KAAK;IACL,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,cAAc,EAAE,cAAc,CAAC;IAC/B,GAAG,EAAE,KAAK,CAAC;IACX,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDA,CAAC"}
|
package/dist/v1/run/get.d.ts
CHANGED
|
@@ -113,6 +113,7 @@ export declare const makeGetRunContract: <FlowId extends PublicIdSchema, IssueId
|
|
|
113
113
|
commitSha: z.ZodOptional<z.ZodString>;
|
|
114
114
|
commitUrl: z.ZodOptional<z.ZodString>;
|
|
115
115
|
}, z.core.$strip>;
|
|
116
|
+
needsReview: z.ZodOptional<z.ZodBoolean>;
|
|
116
117
|
status: z.ZodEnum<{
|
|
117
118
|
failed: "failed";
|
|
118
119
|
queued: "queued";
|
package/dist/v1/run/get.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/v1/run/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAKhD,eAAO,MAAM,kBAAkB,GAC7B,MAAM,SAAS,cAAc,EAC7B,OAAO,SAAS,cAAc,EAC9B,KAAK,SAAS,cAAc,EAC5B,KAAK;IACL,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;CACZ
|
|
1
|
+
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/v1/run/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAKhD,eAAO,MAAM,kBAAkB,GAC7B,MAAM,SAAS,cAAc,EAC7B,OAAO,SAAS,cAAc,EAC9B,KAAK,SAAS,cAAc,EAC5B,KAAK;IACL,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4LA,CAAC"}
|
package/dist/v1/run/summary.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare const makeRunSummaryFields: <RunId extends PublicIdSchema>(ids: {
|
|
|
13
13
|
commitSha: z.ZodOptional<z.ZodString>;
|
|
14
14
|
commitUrl: z.ZodOptional<z.ZodString>;
|
|
15
15
|
}, z.core.$strip>;
|
|
16
|
+
needsReview: z.ZodOptional<z.ZodBoolean>;
|
|
16
17
|
runId: RunId;
|
|
17
18
|
status: z.ZodEnum<{
|
|
18
19
|
failed: "failed";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"summary.d.ts","sourceRoot":"","sources":["../../../src/v1/run/summary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,8EAA8E;AAC9E,eAAO,MAAM,qBAAqB,gEAMxB,CAAC;AAKX,eAAO,MAAM,oBAAoB,GAAI,KAAK,SAAS,cAAc,EAAE,KAAK;IACtE,GAAG,EAAE,KAAK,CAAC;CACZ
|
|
1
|
+
{"version":3,"file":"summary.d.ts","sourceRoot":"","sources":["../../../src/v1/run/summary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEhD,8EAA8E;AAC9E,eAAO,MAAM,qBAAqB,gEAMxB,CAAC;AAKX,eAAO,MAAM,oBAAoB,GAAI,KAAK,SAAS,cAAc,EAAE,KAAK;IACtE,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;CAwCC,CAAC"}
|
package/dist/v1/run/summary.js
CHANGED
|
@@ -31,12 +31,16 @@ export const makeRunSummaryFields = (ids) => ({
|
|
|
31
31
|
.describe("Link to the commit on the code host."),
|
|
32
32
|
})
|
|
33
33
|
.describe("The branch and commit under test. The fields are present when a deploy notification started the run, and absent for runs started another way, for example manually or with run.create."),
|
|
34
|
+
needsReview: z
|
|
35
|
+
.boolean()
|
|
36
|
+
.optional()
|
|
37
|
+
.describe("True once every flow has finished its attempts and at least one failed flow still has no diagnosis, including one whose investigation carried over to a later run. `status` stays `running` until that failure is diagnosed, so a caller that is not waiting for a diagnosis can stop polling here and read the run's failed flows."),
|
|
34
38
|
// Deliberately not described here: run.find builds its rows from this factory
|
|
35
39
|
// too, and its rows answer no requested id, so wording about the id you asked
|
|
36
40
|
// for belongs on run.get alone.
|
|
37
41
|
runId: ids.run,
|
|
38
42
|
status: z
|
|
39
43
|
.enum(publicRunStatusValues)
|
|
40
|
-
.describe("Whole-run status, and the value to gate a pipeline on. Terminal statuses are passed, failed, and canceled; poll until one is reached. `failed` means the run found a bug that is still open and serious enough to block — a lower-priority bug, or one since resolved, reads `passed`, and the per-flow diagnoses are still in `flows`. The run stays `running` while any investigation is unresolved, including one that carried over to a later run, so a terminal status always means a settled answer."),
|
|
44
|
+
.describe("Whole-run status, and the value to gate a pipeline on. Terminal statuses are passed, failed, and canceled; poll until one is reached. `failed` means the run found a bug that is still open and serious enough to block — a lower-priority bug, or one since resolved, reads `passed`, and the per-flow diagnoses are still in `flows`. The run stays `running` while any investigation is unresolved, including one that carried over to a later run, so a terminal status always means a settled answer. `needsReview` tells such a run apart from one that is still executing."),
|
|
41
45
|
});
|
|
42
46
|
//# sourceMappingURL=summary.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"summary.js","sourceRoot":"","sources":["../../../src/v1/run/summary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,8EAA8E;AAC9E,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,UAAU;CACF,CAAC;AAEX,6EAA6E;AAC7E,2EAA2E;AAC3E,sCAAsC;AACtC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAA+B,GAElE,EAAE,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,CAAC,CAAC,GAAG;SACf,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CACP,+KAA+K,CAChL;IACH,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE;IAC3B,GAAG,EAAE,CAAC;SACH,MAAM,CAAC;QACN,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACpC,S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E,CAAC;aACT,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,sCAAsC,CAAC;KACpD,CAAC;SACD,QAAQ,CACP,wLAAwL,CACzL;IACH,WAAW,EAAE,CAAC;SACX,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,qUAAqU,CACtU;IACH,8EAA8E;IAC9E,8EAA8E;IAC9E,gCAAgC;IAChC,KAAK,EAAE,GAAG,CAAC,GAAG;IACd,MAAM,EAAE,CAAC;SACN,IAAI,CAAC,qBAAqB,CAAC;SAC3B,QAAQ,CACP,mjBAAmjB,CACpjB;CACJ,CAAC,CAAC"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const screenCoordinateSchema: z.ZodInt;
|
|
3
|
+
export declare const screenPointSchema: z.ZodObject<{
|
|
4
|
+
x: z.ZodInt;
|
|
5
|
+
y: z.ZodInt;
|
|
6
|
+
}, z.core.$strict>;
|
|
2
7
|
/** The keyboard is held for 50 ms per character, so 200 of them is ten seconds. */
|
|
3
8
|
export declare const maxTypedTextLength = 200;
|
|
4
9
|
/** Only the two schemes a browser navigation means, matched on the parsed scheme. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browserAction.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/browserAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"browserAction.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/browserAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,eAAO,MAAM,sBAAsB,UAA0C,CAAC;AAE9E,eAAO,MAAM,iBAAiB;;;kBAG5B,CAAC;AAOH,mFAAmF;AACnF,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAatC,qFAAqF;AACrF,eAAO,MAAM,kBAAkB,UAEH,CAAC;AAE7B,iFAAiF;AACjF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BA+C9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
/**
|
|
3
|
-
* The
|
|
4
|
-
* the runner. Only ever tighten a bound: pods deploy separately, so a
|
|
5
|
-
* bound forwards actions an older pod rejects.
|
|
3
|
+
* The actions a browser runner performs, validated with the same schema by apex
|
|
4
|
+
* and the runner. Only ever tighten a bound: pods deploy separately, so a
|
|
5
|
+
* widened bound forwards actions an older pod rejects.
|
|
6
6
|
*
|
|
7
7
|
* `snake_case` on purpose: these are the computer-use tool names.
|
|
8
8
|
*/
|
|
9
9
|
/** A whole pixel on the runner's virtual desktop. */
|
|
10
10
|
const maxScreenCoordinate = 20_000;
|
|
11
|
-
const screenCoordinateSchema = z.int().min(0).max(maxScreenCoordinate);
|
|
12
|
-
const screenPointSchema = z.strictObject({
|
|
11
|
+
export const screenCoordinateSchema = z.int().min(0).max(maxScreenCoordinate);
|
|
12
|
+
export const screenPointSchema = z.strictObject({
|
|
13
13
|
x: screenCoordinateSchema,
|
|
14
14
|
y: screenCoordinateSchema,
|
|
15
15
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browserAction.js","sourceRoot":"","sources":["../../../src/v1/runner/browserAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;GAMG;AAEH,qDAAqD;AACrD,MAAM,mBAAmB,GAAG,MAAM,CAAC;AAEnC,MAAM,sBAAsB,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"browserAction.js","sourceRo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