@qawolf/api-contracts 0.81.0 → 0.85.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.js +1 -1
- package/dist/v1/agent/get.js.map +1 -1
- package/dist/v1/agent/wait.d.ts +1 -1
- package/dist/v1/{run/getAttemptArtifacts.d.ts → attempt/get.d.ts} +4 -4
- package/dist/v1/attempt/get.d.ts.map +1 -0
- package/dist/v1/{run/getAttemptArtifacts.js → attempt/get.js} +5 -5
- package/dist/v1/attempt/get.js.map +1 -0
- package/dist/v1/environment/discard.d.ts +54 -0
- package/dist/v1/environment/discard.d.ts.map +1 -0
- package/dist/v1/environment/discard.js +28 -0
- package/dist/v1/environment/discard.js.map +1 -0
- package/dist/v1/environment/promote.d.ts +51 -0
- package/dist/v1/environment/promote.d.ts.map +1 -0
- package/dist/v1/environment/promote.js +28 -0
- package/dist/v1/environment/promote.js.map +1 -0
- package/dist/v1/ids.d.ts +3 -1
- package/dist/v1/ids.d.ts.map +1 -1
- package/dist/v1/ids.js +4 -0
- package/dist/v1/ids.js.map +1 -1
- package/dist/v1/index.d.ts +1006 -533
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/index.js +11 -2
- package/dist/v1/index.js.map +1 -1
- package/dist/v1/investigation/finding.d.ts +1 -0
- package/dist/v1/investigation/finding.d.ts.map +1 -1
- package/dist/v1/investigation/finding.js +5 -1
- package/dist/v1/investigation/finding.js.map +1 -1
- package/dist/v1/investigation/get.d.ts +1 -0
- package/dist/v1/investigation/get.d.ts.map +1 -1
- package/dist/v1/investigation/index.d.ts +1 -0
- package/dist/v1/investigation/index.d.ts.map +1 -1
- package/dist/v1/issue/addFlows.d.ts +1 -1
- package/dist/v1/issue/create.d.ts +1 -1
- package/dist/v1/issue/index.d.ts +5 -5
- package/dist/v1/issue/removeFlows.d.ts +1 -1
- package/dist/v1/issue/update.d.ts +2 -2
- package/dist/v1/promotion/find.d.ts +64 -0
- package/dist/v1/promotion/find.d.ts.map +1 -0
- package/dist/v1/promotion/find.js +41 -0
- package/dist/v1/promotion/find.js.map +1 -0
- package/dist/v1/promotion/get.d.ts +48 -0
- package/dist/v1/promotion/get.d.ts.map +1 -0
- package/dist/v1/promotion/get.js +24 -0
- package/dist/v1/promotion/get.js.map +1 -0
- package/dist/v1/promotion/index.d.ts +155 -0
- package/dist/v1/promotion/index.d.ts.map +1 -0
- package/dist/v1/promotion/index.js +13 -0
- package/dist/v1/promotion/index.js.map +1 -0
- package/dist/v1/promotion/resolve.d.ts +57 -0
- package/dist/v1/promotion/resolve.d.ts.map +1 -0
- package/dist/v1/promotion/resolve.js +59 -0
- package/dist/v1/promotion/resolve.js.map +1 -0
- package/dist/v1/promotion/resource.d.ts +39 -0
- package/dist/v1/promotion/resource.d.ts.map +1 -0
- package/dist/v1/promotion/resource.js +45 -0
- package/dist/v1/promotion/resource.js.map +1 -0
- package/dist/v1/run/diagnose.d.ts +1 -1
- package/dist/v1/run/reattempt.d.ts +1 -0
- package/dist/v1/run/reattempt.d.ts.map +1 -1
- package/dist/v1/run/reattempt.js +10 -1
- package/dist/v1/run/reattempt.js.map +1 -1
- package/dist/v1/runner/catalog.d.ts +8 -8
- package/dist/v1/runner/evaluateSnippet.d.ts +1 -1
- package/dist/v1/runner/inspect.js +1 -1
- package/dist/v1/runner/inspect.js.map +1 -1
- package/dist/v1/runner/inspectMobile.d.ts +1 -1
- package/dist/v1/runner/inspectMobile.d.ts.map +1 -1
- package/dist/v1/runner/inspectMobile.js +11 -5
- package/dist/v1/runner/inspectMobile.js.map +1 -1
- package/dist/v1/runner/performAction.d.ts +1 -1
- package/dist/v1/runner/performAction.d.ts.map +1 -1
- package/dist/v1/runner/performAction.js +6 -5
- package/dist/v1/runner/performAction.js.map +1 -1
- package/dist/v1/runner/performActions.d.ts +1 -1
- package/dist/v1/runner/performActions.js +1 -1
- package/dist/v1/runner/performActions.js.map +1 -1
- package/dist/v1/runner/recording.d.ts +10 -10
- package/dist/v1/runner/runnerAction.d.ts +1 -1
- package/dist/v1/runner/runnerAction.js +1 -1
- package/dist/v1/runner/screen.d.ts +2 -2
- package/dist/v1/runner/screen.d.ts.map +1 -1
- package/dist/v1/runner/screen.js +2 -2
- package/dist/v1/runner/screen.js.map +1 -1
- package/dist/v1/runner/takeScreenshot.d.ts +1 -1
- package/dist/v1/runner/takeScreenshot.js +1 -1
- package/dist/v1/runner/takeScreenshot.js.map +1 -1
- package/package.json +1 -1
- package/dist/v1/run/getAttemptArtifacts.d.ts.map +0 -1
- package/dist/v1/run/getAttemptArtifacts.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspectMobile.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/inspectMobile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAuBhD,wGAAwG;AACxG,eAAO,MAAM,sBAAsB;;;;EAIjC,CAAC;
|
|
1
|
+
{"version":3,"file":"inspectMobile.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/inspectMobile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAuBhD,wGAAwG;AACxG,eAAO,MAAM,sBAAsB;;;;EAIjC,CAAC;AA4CH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCA0BrC,CAAC;AA8CH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,iCAAiC,GAC5C,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CA,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { elementSchema, orientationSchema, pageSourceNodeSchema, } from "./inspe
|
|
|
5
5
|
import { makeRunnerFailureSchema } from "./outcome.js";
|
|
6
6
|
import { retryableRunnerUnreachableDescription, runnerUnreachableFailureReason, } from "./unreachable.js";
|
|
7
7
|
/**
|
|
8
|
-
* Mobile
|
|
8
|
+
* Mobile and Windows: `runner.inspect` covers the equivalent browser surface
|
|
9
9
|
* (element HTML, page HTML, a workflow variable). `what` discriminates so a
|
|
10
10
|
* request kind can be added later without a rename.
|
|
11
11
|
*/
|
|
@@ -23,8 +23,14 @@ const elementsRequestSchema = z
|
|
|
23
23
|
by: z.literal("point"),
|
|
24
24
|
context: z.string().min(1).optional(),
|
|
25
25
|
what: z.literal("elements"),
|
|
26
|
-
x: z
|
|
27
|
-
|
|
26
|
+
x: z
|
|
27
|
+
.int()
|
|
28
|
+
.min(0)
|
|
29
|
+
.describe("Whole pixels in the same space as `runner.takeScreenshot`."),
|
|
30
|
+
y: z
|
|
31
|
+
.int()
|
|
32
|
+
.min(0)
|
|
33
|
+
.describe("Whole pixels in the same space as `runner.takeScreenshot`."),
|
|
28
34
|
}),
|
|
29
35
|
z.object({
|
|
30
36
|
by: z.literal("text"),
|
|
@@ -104,7 +110,7 @@ const inspectMobileAnswerSchema = z.discriminatedUnion("what", [
|
|
|
104
110
|
context: z.string(),
|
|
105
111
|
orientation: orientationSchema,
|
|
106
112
|
outcome: z.literal("success"),
|
|
107
|
-
pageSource: pageSourceNodeSchema,
|
|
113
|
+
pageSource: pageSourceNodeSchema.describe("The element tree. Its bounds are in the device's own pixels, not the screenshot's; to find a point to act on, ask for `elements`, whose bounds and centers are in screenshot pixels."),
|
|
108
114
|
what: z.literal("page"),
|
|
109
115
|
}),
|
|
110
116
|
z.object({
|
|
@@ -142,7 +148,7 @@ export const makeInspectMobileOnRunnerContract = (ids) => {
|
|
|
142
148
|
openWorldHint: false,
|
|
143
149
|
readOnlyHint: true,
|
|
144
150
|
},
|
|
145
|
-
description: `Inspect one thing on a mobile interactive runner: the Appium session's status, the
|
|
151
|
+
description: `Inspect one thing on a mobile or Windows interactive runner: the Appium session's status, the contexts available (WebViews on mobile, top-level windows on Windows), the current context's page source, or the elements at a point, carrying some text, or matching a selector. This does not refresh the runner's inactivity timer. Mobile and Windows only — a browser runner answers \`runner-is-not-mobile\`; call \`runner.inspect\` for a browser's equivalent surface instead. \`what: "session"\` always answers with the session's own status rather than \`screen-needs-a-run\`, since that is the question it exists to answer; the other three request kinds need a live session first and answer the same \`screen-needs-a-run\` or \`screen-not-ready\` outcomes \`runner.performAction\` and \`runner.takeScreenshot\` use, instead of reading anything when there is none. \`screen-needs-a-run\` means no Appium session has started on this runner yet — call \`runner.runFlow\` with a flow that opens one, then inspect again. \`screen-not-ready\` means the runner's Appium session exists but did not answer this instant, or more than one is somehow live — retry once; if it persists, relaunch the runner. \`runner-is-not-mobile\` means there is nothing here to inspect, and retrying will never help — launch an \`android\`, \`ios\` or \`windows\` runner instead. \`invalid-selector\` (elements by selector only) means the selector itself could not be parsed under the given \`strategy\` — distinct from a selector that parsed fine but matched nothing, which answers \`matches: []\` instead. ${retryableRunnerUnreachableDescription}`,
|
|
146
152
|
input,
|
|
147
153
|
kind: "read",
|
|
148
154
|
name: "runner.inspectMobile",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspectMobile.js","sourceRoot":"","sources":["../../../src/v1/runner/inspectMobile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE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M,CAAC;KACxB,CAAC;IACF,CAAC,CAAC,MAAM,CAAC;QACP,OAAO,EAAE,aAAa,CAAC,KAAK,EAAE;QAC9B,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;QAC7B,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;KAC5B,CAAC;CACH,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAE/C,GAED,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,EAAE,EAAE,cAAc,CAAC,QAAQ,CAAC,8BAA8B,CAAC;QAC3D,OAAO,EAAE,0BAA0B;QACnC,WAAW,EAAE,GAAG,CAAC,SAAS;aACvB,QAAQ,EAAE;aACV,QAAQ,CAAC,4BAA4B,CAAC;KAC1C,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,CAAC,CAAC,kBAAkB,CAAC,SAAS,EAAE;QAC7C,yBAAyB;QACzB,uBAAuB,CAAC;YACtB,kBAAkB;YAClB,sBAAsB;YACtB,oBAAoB;YACpB,kBAAkB;YAClB,8BAA8B;SAC/B,CAAC;KACH,CAAC,CAAC;IAEH,OAAO;QACL,wBAAwB,EAAE;YACxB,eAAe,EACb,mEAAmE;YACrE,aAAa,EACX,sHAAsH;YACxH,YAAY,EACV,mHAAmH;SACtH;QACD,WAAW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,IAAI;SACnB;QACD,WAAW,EAAE,2iDAA2iD,qCAAqC,EAAE;QAC/lD,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,sBAAsB;QAC5B,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -15,7 +15,7 @@ export declare const makePerformActionOnRunnerContract: <WorkspaceId extends Pub
|
|
|
15
15
|
readonly openWorldHint: true;
|
|
16
16
|
readonly readOnlyHint: false;
|
|
17
17
|
};
|
|
18
|
-
readonly description: "Perform one raw action on an interactive runner: click, double_click, move, drag, scroll, keypress, type, or navigate; on mobile, tap, swipe,
|
|
18
|
+
readonly description: "Perform one raw action on an interactive runner: click, double_click, move, drag, scroll, keypress, type, or navigate; on mobile or Windows, also tap, swipe, or fill. 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 or Windows 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. `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.";
|
|
19
19
|
readonly input: z.ZodObject<{
|
|
20
20
|
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
21
21
|
button: z.ZodLiteral<"left" | "right" | "wheel" | "back" | "forward">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"performAction.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/performAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"performAction.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/performAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AA8BhD,uDAAuD;AACvD,eAAO,MAAM,2BAA2B,OAAQ,CAAC;AAEjD,eAAO,MAAM,iCAAiC,GAC5C,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmEA,CAAC"}
|
|
@@ -7,14 +7,15 @@ import { runnerUnreachableFailureReason } from "./unreachable.js";
|
|
|
7
7
|
// Not the shared retryable wording: the action may have taken effect before its
|
|
8
8
|
// answer was lost.
|
|
9
9
|
const unreachableDescription = "`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.";
|
|
10
|
-
const notSupportedOnMobileDescription = "`action-not-supported-on-mobile` if the runner is a mobile device and this action
|
|
11
|
-
const mobileActionsDescription = "Only a mobile runner performs `tap`, `swipe` and `fill`: `tap` touches a point or the element a `selector` names, `swipe` moves from one point to another over `duration_ms`, and `fill` replaces the value of the field a `selector` names. A browser runner answers them with `action-not-supported-on-browser`.";
|
|
12
|
-
const
|
|
10
|
+
const notSupportedOnMobileDescription = "`action-not-supported-on-mobile` if the runner is a mobile device and this is a browser action other than `type`: `click`, `double_click`, `drag`, `scroll`, `move`, `keypress` and `navigate` describe a mouse and keyboard, so send `tap` and `swipe` instead. `type` types into whatever the last tap focused.";
|
|
11
|
+
const mobileActionsDescription = "Only a mobile or Windows runner performs `tap`, `swipe` and `fill`: `tap` touches a point or the element a `selector` names, `swipe` moves from one point to another over `duration_ms`, and `fill` replaces the value of the field a `selector` names. A browser runner answers them with `action-not-supported-on-browser`.";
|
|
12
|
+
const windowsActionsDescription = "On a Windows runner, `click`, `double_click`, `move`, `scroll`, `drag`, `keypress` and `type` act on the whole desktop with a mouse and keyboard, at screenshot coordinates; a `drag` takes only its start and end point, and `swipe` is a drag. `tap` and `fill` also accept a UI Automation XPath `selector` (as in `runner.inspectMobile`) in place of a point. `navigate` is refused with `action-failed` because it needs a browser: open the page from a flow instead. Take points to act on from `runner.inspectMobile` `elements` (their `center`), not from page-source bounds, which are in the desktop's own pixels.";
|
|
13
|
+
const withScreenshotDescription = "With `withScreenshot: true`, the answer also carries `imageJpegBase64`: a screenshot taken after the action. One call instead of `runner.performAction` followed by `runner.takeScreenshot`. 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 or Windows runner the screenshot is the device's own screen (on Windows, the whole desktop), taken right after a performed action.";
|
|
13
14
|
/** How much of a failure reason this API passes on. */
|
|
14
15
|
export const maxActionErrorMessageLength = 1_000;
|
|
15
16
|
export const makePerformActionOnRunnerContract = (ids) => {
|
|
16
17
|
const input = z.object({
|
|
17
|
-
action: runnerActionSchema.describe(`The action to perform. Coordinates are whole pixels on the runner's virtual desktop, in the same space as \`runner.takeScreenshot\`. The browser action shapes follow the computer-use vocabulary, minus \`screenshot\` (use \`runner.takeScreenshot\`) and \`wait\` (delay on the caller's side). A \`navigate\` does not go through the screen, so a screen that is not ready does not stop it. ${notSupportedOnMobileDescription} ${mobileActionsDescription}`),
|
|
18
|
+
action: runnerActionSchema.describe(`The action to perform. Coordinates are whole pixels on the runner's virtual desktop, in the same space as \`runner.takeScreenshot\`. The browser action shapes follow the computer-use vocabulary, minus \`screenshot\` (use \`runner.takeScreenshot\`) and \`wait\` (delay on the caller's side). A \`navigate\` does not go through the screen, so a screen that is not ready does not stop it. ${notSupportedOnMobileDescription} ${mobileActionsDescription} ${windowsActionsDescription}`),
|
|
18
19
|
id: runnerIdSchema.describe("Id of the runner to act on."),
|
|
19
20
|
withScreenshot: z.boolean().optional().describe(withScreenshotDescription),
|
|
20
21
|
workspaceId: ids.workspace
|
|
@@ -59,7 +60,7 @@ export const makePerformActionOnRunnerContract = (ids) => {
|
|
|
59
60
|
openWorldHint: true,
|
|
60
61
|
readOnlyHint: false,
|
|
61
62
|
},
|
|
62
|
-
description: `Perform one raw action on an interactive runner: click, double_click, move, drag, scroll, keypress, type, or navigate; on mobile, tap, swipe,
|
|
63
|
+
description: `Perform one raw action on an interactive runner: click, double_click, move, drag, scroll, keypress, type, or navigate; on mobile or Windows, also tap, swipe, or fill. 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 or Windows 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. ${screenNotReadyDescription} ${runnerHasNoScreenDescription} ${unreachableDescription}`,
|
|
63
64
|
input,
|
|
64
65
|
kind: "write",
|
|
65
66
|
name: "runner.performAction",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"performAction.js","sourceRoot":"","sources":["../../../src/v1/runner/performAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,cAAc,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EACL,4BAA4B,EAC5B,oBAAoB,EACpB,y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4B,IAAI,sBAAsB,EAAE;QAC/rC,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,sBAAsB;QAC5B,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -14,7 +14,7 @@ export declare const makePerformActionsOnRunnerContract: <WorkspaceId extends Pu
|
|
|
14
14
|
readonly openWorldHint: true;
|
|
15
15
|
readonly readOnlyHint: false;
|
|
16
16
|
};
|
|
17
|
-
readonly description: "Perform a sequence of raw actions on an interactive runner in one request, one after another, and answer with what happened to each. A `success` means every action took effect. A `failure` names the first action that did not (`failedIndex`, `failureReason`), the last one that did (`lastCompletedIndex`), and whether actions were left unperformed (`stoppedEarly`); `results` has one entry per action reached, in order. Read `effect` on an entry before sending its action again: `performed` means the runner did it; `not-performed` means the runner answered that it did not take effect, though a `navigate` that timed out may still be loading; `unknown` means the runner stopped answering with the action in flight (`runner-unreachable`), or its screen went quiet mid-action (`action-unconfirmed`), and it may have taken effect — a click that submitted a form, say — so take a screenshot instead of repeating it. A sequence gets about a minute to start its actions; an action it did not reach in time is `out-of-time`, nothing after it was attempted, and the rest can go in a new request. Everything `runner.performAction` says about a runner that has never run anything, a mobile runner, and the `screen-needs-a-run`, `screen-not-ready`, `runner-has-no-screen`, `action-not-supported-on-mobile` and `action-not-supported-on-browser` reasons holds for each action here.";
|
|
17
|
+
readonly description: "Perform a sequence of raw actions on an interactive runner in one request, one after another, and answer with what happened to each. A `success` means every action took effect. A `failure` names the first action that did not (`failedIndex`, `failureReason`), the last one that did (`lastCompletedIndex`), and whether actions were left unperformed (`stoppedEarly`); `results` has one entry per action reached, in order. Read `effect` on an entry before sending its action again: `performed` means the runner did it; `not-performed` means the runner answered that it did not take effect, though a `navigate` that timed out may still be loading; `unknown` means the runner stopped answering with the action in flight (`runner-unreachable`), or its screen went quiet mid-action (`action-unconfirmed`), and it may have taken effect — a click that submitted a form, say — so take a screenshot instead of repeating it. A sequence gets about a minute to start its actions; an action it did not reach in time is `out-of-time`, nothing after it was attempted, and the rest can go in a new request. Everything `runner.performAction` says about a runner that has never run anything, a mobile or Windows runner, and the `screen-needs-a-run`, `screen-not-ready`, `runner-has-no-screen`, `action-not-supported-on-mobile` and `action-not-supported-on-browser` reasons holds for each action here.";
|
|
18
18
|
readonly input: z.ZodObject<{
|
|
19
19
|
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
20
20
|
button: z.ZodLiteral<"left" | "right" | "wheel" | "back" | "forward">;
|
|
@@ -78,7 +78,7 @@ export const makePerformActionsOnRunnerContract = (ids) => {
|
|
|
78
78
|
openWorldHint: true,
|
|
79
79
|
readOnlyHint: false,
|
|
80
80
|
},
|
|
81
|
-
description: "Perform a sequence of raw actions on an interactive runner in one request, one after another, and answer with what happened to each. A `success` means every action took effect. A `failure` names the first action that did not (`failedIndex`, `failureReason`), the last one that did (`lastCompletedIndex`), and whether actions were left unperformed (`stoppedEarly`); `results` has one entry per action reached, in order. Read `effect` on an entry before sending its action again: `performed` means the runner did it; `not-performed` means the runner answered that it did not take effect, though a `navigate` that timed out may still be loading; `unknown` means the runner stopped answering with the action in flight (`runner-unreachable`), or its screen went quiet mid-action (`action-unconfirmed`), and it may have taken effect — a click that submitted a form, say — so take a screenshot instead of repeating it. A sequence gets about a minute to start its actions; an action it did not reach in time is `out-of-time`, nothing after it was attempted, and the rest can go in a new request. Everything `runner.performAction` says about a runner that has never run anything, a mobile runner, and the `screen-needs-a-run`, `screen-not-ready`, `runner-has-no-screen`, `action-not-supported-on-mobile` and `action-not-supported-on-browser` reasons holds for each action here.",
|
|
81
|
+
description: "Perform a sequence of raw actions on an interactive runner in one request, one after another, and answer with what happened to each. A `success` means every action took effect. A `failure` names the first action that did not (`failedIndex`, `failureReason`), the last one that did (`lastCompletedIndex`), and whether actions were left unperformed (`stoppedEarly`); `results` has one entry per action reached, in order. Read `effect` on an entry before sending its action again: `performed` means the runner did it; `not-performed` means the runner answered that it did not take effect, though a `navigate` that timed out may still be loading; `unknown` means the runner stopped answering with the action in flight (`runner-unreachable`), or its screen went quiet mid-action (`action-unconfirmed`), and it may have taken effect — a click that submitted a form, say — so take a screenshot instead of repeating it. A sequence gets about a minute to start its actions; an action it did not reach in time is `out-of-time`, nothing after it was attempted, and the rest can go in a new request. Everything `runner.performAction` says about a runner that has never run anything, a mobile or Windows runner, and the `screen-needs-a-run`, `screen-not-ready`, `runner-has-no-screen`, `action-not-supported-on-mobile` and `action-not-supported-on-browser` reasons holds for each action here.",
|
|
82
82
|
input,
|
|
83
83
|
kind: "write",
|
|
84
84
|
name: "runner.performActions",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"performActions.js","sourceRoot":"","sources":["../../../src/v1/runner/performActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEpD,OAAO,EAIL,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,0BAA0B,CAAC;AAElC,MAAM,kBAAkB,GAAG,gQAAgQ,oBAAoB,gdAAgd,CAAC;AAEhwB,MAAM,yBAAyB,GAC7B,6UAA6U,CAAC;AAEhV,MAAM,wBAAwB,GAC5B,yeAAye,CAAC;AAE5e,MAAM,qBAAqB,GACzB,kJAAkJ,CAAC;AAErJ,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAEhD,GAED,EAAE,EAAE;IACH,MAAM,KA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aAAa,EAAE,CAAC;iBACb,IAAI,CAAC,sBAAsB,CAAC;iBAC5B,QAAQ,CACP,6EAA6E,CAC9E;YACH,eAAe,EAAE,qBAAqB;iBACnC,QAAQ,EAAE;iBACV,QAAQ,CAAC,qBAAqB,CAAC;YAClC,kBAAkB,EAAE,iBAAiB;iBAClC,QAAQ,EAAE;iBACV,QAAQ,CACP,iLAAiL,CAClL;YACH,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;YAC7B,OAAO,EAAE,CAAC;iBACP,KAAK,CAAC,gBAAgB,CAAC;iBACvB,GAAG,CAAC,CAAC,CAAC;iBACN,GAAG,CAAC,oBAAoB,CAAC;iBACzB,QAAQ,CACP,6EAA6E,CAC9E;YACH,YAAY,EAAE,CAAC;iBACZ,OAAO,EAAE;iBACT,QAAQ,CACP,iGAAiG,CAClG;SACJ,CAAC;KACH,CAAC,CAAC;IAEH,OAAO;QACL,wBAAwB,EAAE;YACxB,eAAe,EACb,gIAAgI;YAClI,aAAa,EACX,sFAAsF;YACxF,YAAY,EACV,+DAA+D;SAClE;QACD,WAAW,EAAE;YACX,eAAe,EAAE,IAAI;YACrB,aAAa,EAAE,IAAI;YACnB,YAAY,EAAE,KAAK;SACpB;QACD,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"performActions.js","sourceRoot":"","sources":["../../../src/v1/runner/performActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM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ACb,IAAI,EAAE,uBAAuB;QAC7B,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -17,8 +17,8 @@ export declare const runnerRecordingSchema: z.ZodObject<{
|
|
|
17
17
|
endedAt: z.ZodISODateTime;
|
|
18
18
|
id: z.ZodUUID;
|
|
19
19
|
mode: z.ZodEnum<{
|
|
20
|
-
automatic: "automatic";
|
|
21
20
|
manual: "manual";
|
|
21
|
+
automatic: "automatic";
|
|
22
22
|
}>;
|
|
23
23
|
runIds: z.ZodArray<z.ZodString>;
|
|
24
24
|
runnerId: z.ZodString;
|
|
@@ -34,8 +34,8 @@ export declare const runnerRecordingStateSchema: z.ZodObject<{
|
|
|
34
34
|
active: z.ZodOptional<z.ZodObject<{
|
|
35
35
|
id: z.ZodUUID;
|
|
36
36
|
mode: z.ZodEnum<{
|
|
37
|
-
automatic: "automatic";
|
|
38
37
|
manual: "manual";
|
|
38
|
+
automatic: "automatic";
|
|
39
39
|
}>;
|
|
40
40
|
startedAt: z.ZodISODateTime;
|
|
41
41
|
}, z.core.$strip>>;
|
|
@@ -51,8 +51,8 @@ export declare const runnerRecordingResultSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
51
51
|
endedAt: z.ZodISODateTime;
|
|
52
52
|
id: z.ZodUUID;
|
|
53
53
|
mode: z.ZodEnum<{
|
|
54
|
-
automatic: "automatic";
|
|
55
54
|
manual: "manual";
|
|
55
|
+
automatic: "automatic";
|
|
56
56
|
}>;
|
|
57
57
|
runIds: z.ZodArray<z.ZodString>;
|
|
58
58
|
runnerId: z.ZodString;
|
|
@@ -68,8 +68,8 @@ export declare const runnerRecordingResultSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
68
68
|
active: z.ZodOptional<z.ZodObject<{
|
|
69
69
|
id: z.ZodUUID;
|
|
70
70
|
mode: z.ZodEnum<{
|
|
71
|
-
automatic: "automatic";
|
|
72
71
|
manual: "manual";
|
|
72
|
+
automatic: "automatic";
|
|
73
73
|
}>;
|
|
74
74
|
startedAt: z.ZodISODateTime;
|
|
75
75
|
}, z.core.$strip>>;
|
|
@@ -134,8 +134,8 @@ export declare const makeRecordOnRunnerContract: <WorkspaceId extends PublicIdSc
|
|
|
134
134
|
endedAt: z.ZodISODateTime;
|
|
135
135
|
id: z.ZodUUID;
|
|
136
136
|
mode: z.ZodEnum<{
|
|
137
|
-
automatic: "automatic";
|
|
138
137
|
manual: "manual";
|
|
138
|
+
automatic: "automatic";
|
|
139
139
|
}>;
|
|
140
140
|
runIds: z.ZodArray<z.ZodString>;
|
|
141
141
|
runnerId: z.ZodString;
|
|
@@ -151,8 +151,8 @@ export declare const makeRecordOnRunnerContract: <WorkspaceId extends PublicIdSc
|
|
|
151
151
|
active: z.ZodOptional<z.ZodObject<{
|
|
152
152
|
id: z.ZodUUID;
|
|
153
153
|
mode: z.ZodEnum<{
|
|
154
|
-
automatic: "automatic";
|
|
155
154
|
manual: "manual";
|
|
155
|
+
automatic: "automatic";
|
|
156
156
|
}>;
|
|
157
157
|
startedAt: z.ZodISODateTime;
|
|
158
158
|
}, z.core.$strip>>;
|
|
@@ -205,8 +205,8 @@ export declare const makeRunnerRecordingsContract: <WorkspaceId extends PublicId
|
|
|
205
205
|
endedAt: z.ZodISODateTime;
|
|
206
206
|
id: z.ZodUUID;
|
|
207
207
|
mode: z.ZodEnum<{
|
|
208
|
-
automatic: "automatic";
|
|
209
208
|
manual: "manual";
|
|
209
|
+
automatic: "automatic";
|
|
210
210
|
}>;
|
|
211
211
|
runIds: z.ZodArray<z.ZodString>;
|
|
212
212
|
runnerId: z.ZodString;
|
|
@@ -262,8 +262,8 @@ export declare function makeRecordingContracts<WorkspaceId extends PublicIdSchem
|
|
|
262
262
|
endedAt: z.ZodISODateTime;
|
|
263
263
|
id: z.ZodUUID;
|
|
264
264
|
mode: z.ZodEnum<{
|
|
265
|
-
automatic: "automatic";
|
|
266
265
|
manual: "manual";
|
|
266
|
+
automatic: "automatic";
|
|
267
267
|
}>;
|
|
268
268
|
runIds: z.ZodArray<z.ZodString>;
|
|
269
269
|
runnerId: z.ZodString;
|
|
@@ -279,8 +279,8 @@ export declare function makeRecordingContracts<WorkspaceId extends PublicIdSchem
|
|
|
279
279
|
active: z.ZodOptional<z.ZodObject<{
|
|
280
280
|
id: z.ZodUUID;
|
|
281
281
|
mode: z.ZodEnum<{
|
|
282
|
-
automatic: "automatic";
|
|
283
282
|
manual: "manual";
|
|
283
|
+
automatic: "automatic";
|
|
284
284
|
}>;
|
|
285
285
|
startedAt: z.ZodISODateTime;
|
|
286
286
|
}, z.core.$strip>>;
|
|
@@ -331,8 +331,8 @@ export declare function makeRecordingContracts<WorkspaceId extends PublicIdSchem
|
|
|
331
331
|
endedAt: z.ZodISODateTime;
|
|
332
332
|
id: z.ZodUUID;
|
|
333
333
|
mode: z.ZodEnum<{
|
|
334
|
-
automatic: "automatic";
|
|
335
334
|
manual: "manual";
|
|
335
|
+
automatic: "automatic";
|
|
336
336
|
}>;
|
|
337
337
|
runIds: z.ZodArray<z.ZodString>;
|
|
338
338
|
runnerId: z.ZodString;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
/**
|
|
3
3
|
* What `runner.performAction` takes: every browser action, plus `tap`,
|
|
4
|
-
* `swipe` and `fill`, which only a mobile runner performs. A browser runner
|
|
4
|
+
* `swipe` and `fill`, which only a mobile or Windows runner performs. A browser runner
|
|
5
5
|
* answers those with `action-not-supported-on-browser`, so a browser pod only
|
|
6
6
|
* ever receives a `BrowserAction`.
|
|
7
7
|
*/
|
|
@@ -81,7 +81,7 @@ const fillActionSchema = z.strictObject({
|
|
|
81
81
|
});
|
|
82
82
|
/**
|
|
83
83
|
* What `runner.performAction` takes: every browser action, plus `tap`,
|
|
84
|
-
* `swipe` and `fill`, which only a mobile runner performs. A browser runner
|
|
84
|
+
* `swipe` and `fill`, which only a mobile or Windows runner performs. A browser runner
|
|
85
85
|
* answers those with `action-not-supported-on-browser`, so a browser pod only
|
|
86
86
|
* ever receives a `BrowserAction`.
|
|
87
87
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const screenFailureReasons: readonly ["runner-has-no-screen", "screen-needs-a-run", "screen-not-ready"];
|
|
3
3
|
export declare const screenNotReadyDescription = "`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 \u2014 a run may restart the display and discard what is on it.";
|
|
4
|
-
export declare const screenNeedsARunDescription = "`screen-needs-a-run` if the runner's virtual desktop has never started. Waiting will not change this and retrying is pointless \u2014 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.";
|
|
5
|
-
export declare const runnerHasNoScreenDescription = "`runner-has-no-screen` if this runner has no browser desktop to see or drive, and retrying will never help. Launch a `playwright` runner
|
|
4
|
+
export declare const screenNeedsARunDescription = "`screen-needs-a-run` if the runner's virtual desktop has never started. Waiting will not change this and retrying is pointless \u2014 call `runner.runFlow` with a flow that opens a browser, then ask for the screen again. On a Windows runner any flow run claims the VM and brings up its screen. 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.";
|
|
5
|
+
export declare const runnerHasNoScreenDescription = "`runner-has-no-screen` if this runner has no browser desktop to see or drive, and retrying will never help. Launch a `playwright` runner.";
|
|
6
6
|
/**
|
|
7
7
|
* A screenshot as the API carries it. Not `z.base64()`: its regex runs against
|
|
8
8
|
* every multi-megabyte frame, on the server and in every client that parses with
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screen.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/screen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB,6EAIvB,CAAC;AAEX,eAAO,MAAM,yBAAyB,yXAC6U,CAAC;AAIpX,eAAO,MAAM,0BAA0B,
|
|
1
|
+
{"version":3,"file":"screen.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/screen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB,6EAIvB,CAAC;AAEX,eAAO,MAAM,yBAAyB,yXAC6U,CAAC;AAIpX,eAAO,MAAM,0BAA0B,odACua,CAAC;AAE/c,eAAO,MAAM,4BAA4B,8IACoG,CAAC;AAE9I;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,aAK/B,CAAC"}
|
package/dist/v1/runner/screen.js
CHANGED
|
@@ -7,8 +7,8 @@ export const screenFailureReasons = [
|
|
|
7
7
|
export const screenNotReadyDescription = "`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.";
|
|
8
8
|
// Its own reason, not a sentence inside `screen-not-ready`: the callers here are
|
|
9
9
|
// models, and an instruction that only exists in prose is one they may not follow.
|
|
10
|
-
export const screenNeedsARunDescription = "`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.";
|
|
11
|
-
export const runnerHasNoScreenDescription = "`runner-has-no-screen` if this runner has no browser desktop to see or drive, and retrying will never help. Launch a `playwright` runner
|
|
10
|
+
export const screenNeedsARunDescription = "`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 Windows runner any flow run claims the VM and brings up its screen. 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.";
|
|
11
|
+
export const runnerHasNoScreenDescription = "`runner-has-no-screen` if this runner has no browser desktop to see or drive, and retrying will never help. Launch a `playwright` runner.";
|
|
12
12
|
/**
|
|
13
13
|
* A screenshot as the API carries it. Not `z.base64()`: its regex runs against
|
|
14
14
|
* every multi-megabyte frame, on the server and in every client that parses with
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screen.js","sourceRoot":"","sources":["../../../src/v1/runner/screen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,sBAAsB;IACtB,oBAAoB;IACpB,kBAAkB;CACV,CAAC;AAEX,MAAM,CAAC,MAAM,yBAAyB,GACpC,iXAAiX,CAAC;AAEpX,iFAAiF;AACjF,mFAAmF;AACnF,MAAM,CAAC,MAAM,0BAA0B,GACrC,
|
|
1
|
+
{"version":3,"file":"screen.js","sourceRoot":"","sources":["../../../src/v1/runner/screen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,sBAAsB;IACtB,oBAAoB;IACpB,kBAAkB;CACV,CAAC;AAEX,MAAM,CAAC,MAAM,yBAAyB,GACpC,iXAAiX,CAAC;AAEpX,iFAAiF;AACjF,mFAAmF;AACnF,MAAM,CAAC,MAAM,0BAA0B,GACrC,4cAA4c,CAAC;AAE/c,MAAM,CAAC,MAAM,4BAA4B,GACvC,2IAA2I,CAAC;AAE9I;;;;;GAKG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC;KACnC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,QAAQ,CACP,8KAA8K,CAC/K,CAAC"}
|
|
@@ -13,7 +13,7 @@ export declare const makeTakeScreenshotOnRunnerContract: <WorkspaceId extends Pu
|
|
|
13
13
|
readonly openWorldHint: false;
|
|
14
14
|
readonly readOnlyHint: false;
|
|
15
15
|
};
|
|
16
|
-
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
|
|
16
|
+
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, and on Windows the VM's whole desktop, 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 Windows runner any flow run claims the VM and brings up its screen. 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. `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.";
|
|
17
17
|
readonly input: z.ZodObject<{
|
|
18
18
|
id: z.ZodString;
|
|
19
19
|
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
@@ -31,7 +31,7 @@ export const makeTakeScreenshotOnRunnerContract = (ids) => {
|
|
|
31
31
|
openWorldHint: false,
|
|
32
32
|
readOnlyHint: false,
|
|
33
33
|
},
|
|
34
|
-
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. ${screenNeedsARunDescription} ${screenNotReadyDescription} ${runnerHasNoScreenDescription} ${retryableRunnerUnreachableDescription}`,
|
|
34
|
+
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, and on Windows the VM's whole desktop, re-encoded to JPEG on the pod so this contract reads one image format regardless of runner family. ${screenNeedsARunDescription} ${screenNotReadyDescription} ${runnerHasNoScreenDescription} ${retryableRunnerUnreachableDescription}`,
|
|
35
35
|
input,
|
|
36
36
|
kind: "read",
|
|
37
37
|
name: "runner.takeScreenshot",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"takeScreenshot.js","sourceRoot":"","sources":["../../../src/v1/runner/takeScreenshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,cAAc,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EACL,4BAA4B,EAC5B,oBAAoB,EACpB,0BAA0B,EAC1B,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,qCAAqC,EACrC,8BAA8B,GAC/B,MAAM,kBAAkB,CAAC;AAE1B,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAEhD,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KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,EAAE,EAAE,cAAc,CAAC,QAAQ,CAAC,2CAA2C,CAAC;QACxE,WAAW,EAAE,GAAG,CAAC,SAAS;aACvB,QAAQ,EAAE;aACV,QAAQ,CAAC,4BAA4B,CAAC;KAC1C,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,CAAC,CAAC,kBAAkB,CAAC,SAAS,EAAE;QAC7C,CAAC,CAAC,MAAM,CAAC;YACP,eAAe,EAAE,qBAAqB;YACtC,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;SAC9B,CAAC;QACF,uBAAuB,CAAC;YACtB,GAAG,oBAAoB;YACvB,8BAA8B;SAC/B,CAAC;KACH,CAAC,CAAC;IAEH,OAAO;QACL,wBAAwB,EAAE;YACxB,eAAe,EACb,8GAA8G;YAChH,aAAa,EACX,qFAAqF;YACvF,YAAY,EACV,6FAA6F;SAChG;QACD,WAAW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,KAAK;SACpB;QACD,WAAW,EAAE,kaAAka,0BAA0B,IAAI,yBAAyB,IAAI,4BAA4B,IAAI,qCAAqC,EAAE;QACjjB,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,uBAAuB;QAC7B,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getAttemptArtifacts.d.ts","sourceRoot":"","sources":["../../../src/v1/run/getAttemptArtifacts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAOhD,eAAO,MAAM,kCAAkC,GAC7C,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,YAAY,SAAS,cAAc,EACnC,KAAK;IACL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