@qawolf/api-contracts 0.52.0 → 0.54.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/README.md +4 -0
- package/dist/v1/agent/get.d.ts +8 -1
- package/dist/v1/agent/get.d.ts.map +1 -1
- package/dist/v1/agent/get.js +16 -2
- package/dist/v1/agent/get.js.map +1 -1
- package/dist/v1/agent/send.d.ts +6 -0
- package/dist/v1/agent/send.d.ts.map +1 -1
- package/dist/v1/agent/send.js +11 -0
- package/dist/v1/agent/send.js.map +1 -1
- package/dist/v1/automate/index.d.ts +8 -2
- package/dist/v1/automate/index.d.ts.map +1 -1
- package/dist/v1/automate/index.js +7 -0
- package/dist/v1/automate/index.js.map +1 -1
- package/dist/v1/definition.d.ts +7 -0
- package/dist/v1/definition.d.ts.map +1 -1
- package/dist/v1/deployment/reportStatus.d.ts +9 -2
- package/dist/v1/deployment/reportStatus.d.ts.map +1 -1
- package/dist/v1/deployment/reportStatus.js +8 -40
- package/dist/v1/deployment/reportStatus.js.map +1 -1
- package/dist/v1/deployment/reportStatusMetadata.d.ts +10 -0
- package/dist/v1/deployment/reportStatusMetadata.d.ts.map +1 -0
- package/dist/v1/deployment/reportStatusMetadata.js +55 -0
- package/dist/v1/deployment/reportStatusMetadata.js.map +1 -0
- package/dist/v1/email/find.d.ts +5 -0
- package/dist/v1/email/find.d.ts.map +1 -1
- package/dist/v1/email/find.js +5 -0
- package/dist/v1/email/find.js.map +1 -1
- package/dist/v1/email/get.d.ts +5 -0
- package/dist/v1/email/get.d.ts.map +1 -1
- package/dist/v1/email/get.js +5 -0
- package/dist/v1/email/get.js.map +1 -1
- package/dist/v1/email/getAttachment.d.ts +5 -0
- package/dist/v1/email/getAttachment.d.ts.map +1 -1
- package/dist/v1/email/getAttachment.js +5 -0
- package/dist/v1/email/getAttachment.js.map +1 -1
- package/dist/v1/email/listAddresses.d.ts +5 -0
- package/dist/v1/email/listAddresses.d.ts.map +1 -1
- package/dist/v1/email/listAddresses.js +5 -0
- package/dist/v1/email/listAddresses.js.map +1 -1
- package/dist/v1/email/registerAddress.d.ts +5 -0
- package/dist/v1/email/registerAddress.d.ts.map +1 -1
- package/dist/v1/email/registerAddress.js +5 -0
- package/dist/v1/email/registerAddress.js.map +1 -1
- package/dist/v1/email/send.d.ts +5 -0
- package/dist/v1/email/send.d.ts.map +1 -1
- package/dist/v1/email/send.js +5 -0
- package/dist/v1/email/send.js.map +1 -1
- package/dist/v1/environment/create.d.ts +44 -0
- package/dist/v1/environment/create.d.ts.map +1 -0
- package/dist/v1/environment/create.js +29 -0
- package/dist/v1/environment/create.js.map +1 -0
- package/dist/v1/environment/deleteVariable.d.ts +8 -2
- package/dist/v1/environment/deleteVariable.d.ts.map +1 -1
- package/dist/v1/environment/deleteVariable.js +7 -0
- package/dist/v1/environment/deleteVariable.js.map +1 -1
- package/dist/v1/environment/find.d.ts +6 -1
- package/dist/v1/environment/find.d.ts.map +1 -1
- package/dist/v1/environment/find.js +5 -0
- package/dist/v1/environment/find.js.map +1 -1
- package/dist/v1/environment/getVariable.d.ts +8 -2
- package/dist/v1/environment/getVariable.d.ts.map +1 -1
- package/dist/v1/environment/getVariable.js +7 -0
- package/dist/v1/environment/getVariable.js.map +1 -1
- package/dist/v1/environment/index.d.ts +23 -41
- package/dist/v1/environment/index.d.ts.map +1 -1
- package/dist/v1/environment/index.js +19 -21
- package/dist/v1/environment/index.js.map +1 -1
- package/dist/v1/environment/resource.d.ts +1 -1
- package/dist/v1/environment/update.d.ts +9 -3
- package/dist/v1/environment/update.d.ts.map +1 -1
- package/dist/v1/environment/update.js +7 -0
- package/dist/v1/environment/update.js.map +1 -1
- package/dist/v1/file/index.d.ts +46 -0
- package/dist/v1/file/index.d.ts.map +1 -0
- package/dist/v1/file/index.js +8 -0
- package/dist/v1/file/index.js.map +1 -0
- package/dist/v1/file/path.d.ts +6 -0
- package/dist/v1/file/path.d.ts.map +1 -0
- package/dist/v1/file/path.js +17 -0
- package/dist/v1/file/path.js.map +1 -0
- package/dist/v1/file/requestDownload.d.ts +24 -0
- package/dist/v1/file/requestDownload.d.ts.map +1 -0
- package/dist/v1/file/requestDownload.js +32 -0
- package/dist/v1/file/requestDownload.js.map +1 -0
- package/dist/v1/file/requestUpload.d.ts +25 -0
- package/dist/v1/file/requestUpload.d.ts.map +1 -0
- package/dist/v1/file/requestUpload.js +37 -0
- package/dist/v1/file/requestUpload.js.map +1 -0
- package/dist/v1/flow/addTag.d.ts +5 -0
- package/dist/v1/flow/addTag.d.ts.map +1 -1
- package/dist/v1/flow/addTag.js +5 -0
- package/dist/v1/flow/addTag.js.map +1 -1
- package/dist/v1/flow/index.d.ts +19 -2
- package/dist/v1/flow/index.d.ts.map +1 -1
- package/dist/v1/flow/index.js +37 -0
- package/dist/v1/flow/index.js.map +1 -1
- package/dist/v1/flow/removeTag.d.ts +5 -0
- package/dist/v1/flow/removeTag.d.ts.map +1 -1
- package/dist/v1/flow/removeTag.js +5 -0
- package/dist/v1/flow/removeTag.js.map +1 -1
- package/dist/v1/flow/update.d.ts +5 -0
- package/dist/v1/flow/update.d.ts.map +1 -1
- package/dist/v1/flow/update.js +5 -0
- package/dist/v1/flow/update.js.map +1 -1
- package/dist/v1/ids.d.ts +23 -3
- package/dist/v1/ids.d.ts.map +1 -1
- package/dist/v1/ids.js +17 -1
- package/dist/v1/ids.js.map +1 -1
- package/dist/v1/index.d.ts +1782 -42
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/index.js +23 -9
- package/dist/v1/index.js.map +1 -1
- package/dist/v1/issue/addFlows.d.ts +5 -0
- package/dist/v1/issue/addFlows.d.ts.map +1 -1
- package/dist/v1/issue/addFlows.js +5 -0
- package/dist/v1/issue/addFlows.js.map +1 -1
- package/dist/v1/issue/create.d.ts +5 -0
- package/dist/v1/issue/create.d.ts.map +1 -1
- package/dist/v1/issue/create.js +5 -0
- package/dist/v1/issue/create.js.map +1 -1
- package/dist/v1/issue/index.d.ts +10 -0
- package/dist/v1/issue/index.d.ts.map +1 -1
- package/dist/v1/issue/index.js +10 -0
- package/dist/v1/issue/index.js.map +1 -1
- package/dist/v1/issue/removeFlows.d.ts +5 -0
- package/dist/v1/issue/removeFlows.d.ts.map +1 -1
- package/dist/v1/issue/removeFlows.js +5 -0
- package/dist/v1/issue/removeFlows.js.map +1 -1
- package/dist/v1/issue/update.d.ts +5 -0
- package/dist/v1/issue/update.d.ts.map +1 -1
- package/dist/v1/issue/update.js +5 -0
- package/dist/v1/issue/update.js.map +1 -1
- package/dist/v1/mcpToolDescription.d.ts +11 -0
- package/dist/v1/mcpToolDescription.d.ts.map +1 -0
- package/dist/v1/mcpToolDescription.js +20 -0
- package/dist/v1/mcpToolDescription.js.map +1 -0
- package/dist/v1/run/diagnose.d.ts +5 -0
- package/dist/v1/run/diagnose.d.ts.map +1 -1
- package/dist/v1/run/diagnose.js +5 -0
- package/dist/v1/run/diagnose.js.map +1 -1
- package/dist/v1/run/find.d.ts +9 -2
- package/dist/v1/run/find.d.ts.map +1 -1
- package/dist/v1/run/find.js +7 -0
- package/dist/v1/run/find.js.map +1 -1
- package/dist/v1/run/get.d.ts +5 -0
- package/dist/v1/run/get.d.ts.map +1 -1
- package/dist/v1/run/get.js +5 -0
- package/dist/v1/run/get.js.map +1 -1
- package/dist/v1/run/index.d.ts +9 -2
- package/dist/v1/run/index.d.ts.map +1 -1
- package/dist/v1/run/index.js +7 -0
- package/dist/v1/run/index.js.map +1 -1
- package/dist/v1/run/reattempt.d.ts +5 -0
- package/dist/v1/run/reattempt.d.ts.map +1 -1
- package/dist/v1/run/reattempt.js +5 -0
- package/dist/v1/run/reattempt.js.map +1 -1
- package/dist/v1/run/stop.d.ts +6 -1
- package/dist/v1/run/stop.d.ts.map +1 -1
- package/dist/v1/run/stop.js +6 -1
- package/dist/v1/run/stop.js.map +1 -1
- package/dist/v1/runner/evaluateSnippet.d.ts +6 -1
- package/dist/v1/runner/evaluateSnippet.d.ts.map +1 -1
- package/dist/v1/runner/evaluateSnippet.js +5 -0
- package/dist/v1/runner/evaluateSnippet.js.map +1 -1
- package/dist/v1/runner/get.d.ts +14 -4
- package/dist/v1/runner/get.d.ts.map +1 -1
- package/dist/v1/runner/get.js +21 -6
- package/dist/v1/runner/get.js.map +1 -1
- package/dist/v1/runner/highlightSelector.d.ts +5 -0
- package/dist/v1/runner/highlightSelector.d.ts.map +1 -1
- package/dist/v1/runner/highlightSelector.js +5 -0
- 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 +4 -0
- package/dist/v1/runner/identity.js.map +1 -1
- package/dist/v1/runner/importPackage.d.ts +5 -0
- package/dist/v1/runner/importPackage.d.ts.map +1 -1
- package/dist/v1/runner/importPackage.js +5 -0
- package/dist/v1/runner/importPackage.js.map +1 -1
- package/dist/v1/runner/index.d.ts +12 -1
- package/dist/v1/runner/index.d.ts.map +1 -1
- package/dist/v1/runner/index.js +11 -1
- package/dist/v1/runner/index.js.map +1 -1
- package/dist/v1/runner/inspect.d.ts +6 -0
- package/dist/v1/runner/inspect.d.ts.map +1 -1
- package/dist/v1/runner/inspect.js +7 -2
- package/dist/v1/runner/inspect.js.map +1 -1
- package/dist/v1/runner/inspectMobile.d.ts +27 -1
- package/dist/v1/runner/inspectMobile.d.ts.map +1 -1
- package/dist/v1/runner/inspectMobile.js +44 -22
- package/dist/v1/runner/inspectMobile.js.map +1 -1
- package/dist/v1/runner/list.d.ts +6 -0
- package/dist/v1/runner/list.d.ts.map +1 -1
- package/dist/v1/runner/list.js +5 -0
- package/dist/v1/runner/list.js.map +1 -1
- package/dist/v1/runner/performAction.d.ts +5 -0
- package/dist/v1/runner/performAction.d.ts.map +1 -1
- package/dist/v1/runner/performAction.js +5 -0
- package/dist/v1/runner/performAction.js.map +1 -1
- package/dist/v1/runner/promoteSnapshot.d.ts +5 -0
- package/dist/v1/runner/promoteSnapshot.d.ts.map +1 -1
- package/dist/v1/runner/promoteSnapshot.js +5 -0
- package/dist/v1/runner/promoteSnapshot.js.map +1 -1
- package/dist/v1/runner/readJournal.d.ts +5 -0
- package/dist/v1/runner/readJournal.d.ts.map +1 -1
- package/dist/v1/runner/readJournal.js +5 -0
- package/dist/v1/runner/readJournal.js.map +1 -1
- package/dist/v1/runner/runFlow.d.ts +5 -0
- package/dist/v1/runner/runFlow.d.ts.map +1 -1
- package/dist/v1/runner/runFlow.js +5 -0
- package/dist/v1/runner/runFlow.js.map +1 -1
- package/dist/v1/runner/stopRun.d.ts +5 -0
- package/dist/v1/runner/stopRun.d.ts.map +1 -1
- package/dist/v1/runner/stopRun.js +5 -0
- package/dist/v1/runner/stopRun.js.map +1 -1
- package/dist/v1/runner/takeScreenshot.d.ts +6 -1
- package/dist/v1/runner/takeScreenshot.d.ts.map +1 -1
- package/dist/v1/runner/takeScreenshot.js +6 -1
- package/dist/v1/runner/takeScreenshot.js.map +1 -1
- package/dist/v1/sharedSchemas.d.ts +18 -0
- package/dist/v1/sharedSchemas.d.ts.map +1 -0
- package/dist/v1/sharedSchemas.js +17 -0
- package/dist/v1/sharedSchemas.js.map +1 -0
- package/dist/v1/tag/index.d.ts +5 -0
- package/dist/v1/tag/index.d.ts.map +1 -1
- package/dist/v1/tag/index.js +5 -0
- package/dist/v1/tag/index.js.map +1 -1
- package/dist/v1/tag/list.d.ts +5 -0
- package/dist/v1/tag/list.d.ts.map +1 -1
- package/dist/v1/tag/list.js +5 -0
- package/dist/v1/tag/list.js.map +1 -1
- package/dist/v1/trigger/configuration.d.ts +99 -0
- package/dist/v1/trigger/configuration.d.ts.map +1 -0
- package/dist/v1/trigger/configuration.js +125 -0
- package/dist/v1/trigger/configuration.js.map +1 -0
- package/dist/v1/trigger/configurationRules.d.ts +35 -0
- package/dist/v1/trigger/configurationRules.d.ts.map +1 -0
- package/dist/v1/trigger/configurationRules.js +92 -0
- package/dist/v1/trigger/configurationRules.js.map +1 -0
- package/dist/v1/trigger/create.d.ts +114 -0
- package/dist/v1/trigger/create.d.ts.map +1 -0
- package/dist/v1/trigger/create.js +44 -0
- package/dist/v1/trigger/create.js.map +1 -0
- package/dist/v1/trigger/find.d.ts +75 -0
- package/dist/v1/trigger/find.d.ts.map +1 -0
- package/dist/v1/trigger/find.js +35 -0
- package/dist/v1/trigger/find.js.map +1 -0
- package/dist/v1/trigger/get.d.ts +73 -0
- package/dist/v1/trigger/get.d.ts.map +1 -0
- package/dist/v1/trigger/get.js +19 -0
- package/dist/v1/trigger/get.js.map +1 -0
- package/dist/v1/trigger/index.d.ts +9 -0
- package/dist/v1/trigger/index.d.ts.map +1 -0
- package/dist/v1/trigger/index.js +9 -0
- package/dist/v1/trigger/index.js.map +1 -0
- package/dist/v1/trigger/lifecycle.d.ts +159 -0
- package/dist/v1/trigger/lifecycle.d.ts.map +1 -0
- package/dist/v1/trigger/lifecycle.js +56 -0
- package/dist/v1/trigger/lifecycle.js.map +1 -0
- package/dist/v1/trigger/resource.d.ts +58 -0
- package/dist/v1/trigger/resource.d.ts.map +1 -0
- package/dist/v1/trigger/resource.js +52 -0
- package/dist/v1/trigger/resource.js.map +1 -0
- package/dist/v1/trigger/update.d.ts +113 -0
- package/dist/v1/trigger/update.d.ts.map +1 -0
- package/dist/v1/trigger/update.js +43 -0
- package/dist/v1/trigger/update.js.map +1 -0
- package/package.json +1 -1
|
@@ -19,12 +19,27 @@ export declare const inspectMobileRequestSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
19
19
|
partial: z.ZodOptional<z.ZodBoolean>;
|
|
20
20
|
text: z.ZodString;
|
|
21
21
|
what: z.ZodLiteral<"elements">;
|
|
22
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
+
by: z.ZodLiteral<"selector">;
|
|
24
|
+
context: z.ZodOptional<z.ZodString>;
|
|
25
|
+
selector: z.ZodString;
|
|
26
|
+
strategy: z.ZodDefault<z.ZodEnum<{
|
|
27
|
+
"ios-predicate": "ios-predicate";
|
|
28
|
+
shadow: "shadow";
|
|
29
|
+
xpath: "xpath";
|
|
30
|
+
}>>;
|
|
31
|
+
what: z.ZodLiteral<"elements">;
|
|
22
32
|
}, z.core.$strip>], "by">], "what">;
|
|
23
33
|
export type InspectMobileRequest = z.infer<typeof inspectMobileRequestSchema>;
|
|
24
34
|
export declare const makeInspectMobileOnRunnerContract: <WorkspaceId extends PublicIdSchema>(ids: {
|
|
25
35
|
workspace: WorkspaceId;
|
|
26
36
|
}) => {
|
|
27
|
-
readonly
|
|
37
|
+
readonly annotations: {
|
|
38
|
+
readonly destructiveHint: false;
|
|
39
|
+
readonly openWorldHint: false;
|
|
40
|
+
readonly readOnlyHint: true;
|
|
41
|
+
};
|
|
42
|
+
readonly description: "Inspect one thing on a mobile interactive runner: the Appium session's status, the WebView contexts available, 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 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` or `ios` 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. `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.";
|
|
28
43
|
readonly input: z.ZodObject<{
|
|
29
44
|
id: z.ZodString;
|
|
30
45
|
request: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -46,6 +61,16 @@ export declare const makeInspectMobileOnRunnerContract: <WorkspaceId extends Pub
|
|
|
46
61
|
partial: z.ZodOptional<z.ZodBoolean>;
|
|
47
62
|
text: z.ZodString;
|
|
48
63
|
what: z.ZodLiteral<"elements">;
|
|
64
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
65
|
+
by: z.ZodLiteral<"selector">;
|
|
66
|
+
context: z.ZodOptional<z.ZodString>;
|
|
67
|
+
selector: z.ZodString;
|
|
68
|
+
strategy: z.ZodDefault<z.ZodEnum<{
|
|
69
|
+
"ios-predicate": "ios-predicate";
|
|
70
|
+
shadow: "shadow";
|
|
71
|
+
xpath: "xpath";
|
|
72
|
+
}>>;
|
|
73
|
+
what: z.ZodLiteral<"elements">;
|
|
49
74
|
}, z.core.$strip>], "by">], "what">;
|
|
50
75
|
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
51
76
|
}, z.core.$strip>;
|
|
@@ -220,6 +245,7 @@ export declare const makeInspectMobileOnRunnerContract: <WorkspaceId extends Pub
|
|
|
220
245
|
}, z.core.$strip>], "what">, z.ZodObject<{
|
|
221
246
|
failureReason: z.ZodEnum<{
|
|
222
247
|
"runner-unreachable": "runner-unreachable";
|
|
248
|
+
"invalid-selector": "invalid-selector";
|
|
223
249
|
"runner-is-not-mobile": "runner-is-not-mobile";
|
|
224
250
|
"screen-needs-a-run": "screen-needs-a-run";
|
|
225
251
|
"screen-not-ready": "screen-not-ready";
|
|
@@ -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;
|
|
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;AA8DhD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCA0BrC,CAAC;AA4CH,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCA,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { runnerIdSchema, runnerWorkspaceIdDescription } from "./identity.js";
|
|
3
|
+
import { maxSelectorLength } from "./inspect.js";
|
|
3
4
|
import { elementSchema, orientationSchema, pageSourceNodeSchema, } from "./inspectMobileShapes.js";
|
|
4
5
|
import { makeRunnerFailureSchema } from "./outcome.js";
|
|
5
6
|
import { retryableRunnerUnreachableDescription, runnerUnreachableFailureReason, } from "./unreachable.js";
|
|
@@ -9,6 +10,41 @@ import { retryableRunnerUnreachableDescription, runnerUnreachableFailureReason,
|
|
|
9
10
|
* request kind can be added later without a rename.
|
|
10
11
|
*/
|
|
11
12
|
const maxElementTextLength = 500;
|
|
13
|
+
/** Duplicated from the private `domain-runner-types` package, which this published one can't import. */
|
|
14
|
+
const selectorStrategySchema = z.enum(["ios-predicate", "shadow", "xpath"]);
|
|
15
|
+
/** Wire-level discriminant only: a `discriminatedUnion` can't nest a plain union, so this stays even though no CLI flag names it. */
|
|
16
|
+
const elementsRequestSchema = z
|
|
17
|
+
.discriminatedUnion("by", [
|
|
18
|
+
z.object({
|
|
19
|
+
by: z.literal("point"),
|
|
20
|
+
context: z.string().min(1).optional(),
|
|
21
|
+
what: z.literal("elements"),
|
|
22
|
+
x: z.int().min(0).describe("Whole pixels on the device's own screen."),
|
|
23
|
+
y: z.int().min(0).describe("Whole pixels on the device's own screen."),
|
|
24
|
+
}),
|
|
25
|
+
z.object({
|
|
26
|
+
by: z.literal("text"),
|
|
27
|
+
context: z.string().min(1).optional(),
|
|
28
|
+
partial: z
|
|
29
|
+
.boolean()
|
|
30
|
+
.optional()
|
|
31
|
+
.describe("Match text containing this, rather than exactly this."),
|
|
32
|
+
text: z.string().min(1).max(maxElementTextLength),
|
|
33
|
+
what: z.literal("elements"),
|
|
34
|
+
}),
|
|
35
|
+
z.object({
|
|
36
|
+
by: z.literal("selector"),
|
|
37
|
+
context: z.string().min(1).optional(),
|
|
38
|
+
selector: z
|
|
39
|
+
.string()
|
|
40
|
+
.min(1)
|
|
41
|
+
.max(maxSelectorLength)
|
|
42
|
+
.describe("Resolved the same way a screen object's own selector is."),
|
|
43
|
+
strategy: selectorStrategySchema.default("xpath"),
|
|
44
|
+
what: z.literal("elements"),
|
|
45
|
+
}),
|
|
46
|
+
])
|
|
47
|
+
.describe("Elements at a screen point, elements carrying some text, or the elements a selector resolves to.");
|
|
12
48
|
export const inspectMobileRequestSchema = z.discriminatedUnion("what", [
|
|
13
49
|
z.object({
|
|
14
50
|
what: z
|
|
@@ -30,27 +66,7 @@ export const inspectMobileRequestSchema = z.discriminatedUnion("what", [
|
|
|
30
66
|
.literal("page")
|
|
31
67
|
.describe("The page source of the device's current context, as a tree."),
|
|
32
68
|
}),
|
|
33
|
-
|
|
34
|
-
.discriminatedUnion("by", [
|
|
35
|
-
z.object({
|
|
36
|
-
by: z.literal("point"),
|
|
37
|
-
context: z.string().min(1).optional(),
|
|
38
|
-
what: z.literal("elements"),
|
|
39
|
-
x: z.int().min(0).describe("Whole pixels on the device's own screen."),
|
|
40
|
-
y: z.int().min(0).describe("Whole pixels on the device's own screen."),
|
|
41
|
-
}),
|
|
42
|
-
z.object({
|
|
43
|
-
by: z.literal("text"),
|
|
44
|
-
context: z.string().min(1).optional(),
|
|
45
|
-
partial: z
|
|
46
|
-
.boolean()
|
|
47
|
-
.optional()
|
|
48
|
-
.describe("Match text containing this, rather than exactly this."),
|
|
49
|
-
text: z.string().min(1).max(maxElementTextLength),
|
|
50
|
-
what: z.literal("elements"),
|
|
51
|
-
}),
|
|
52
|
-
])
|
|
53
|
-
.describe("Elements at a screen point, or elements carrying some text — never both at once."),
|
|
69
|
+
elementsRequestSchema,
|
|
54
70
|
]);
|
|
55
71
|
const inspectMobileAnswerSchema = z.discriminatedUnion("what", [
|
|
56
72
|
z.object({
|
|
@@ -104,6 +120,7 @@ export const makeInspectMobileOnRunnerContract = (ids) => {
|
|
|
104
120
|
const output = z.discriminatedUnion("outcome", [
|
|
105
121
|
inspectMobileAnswerSchema,
|
|
106
122
|
makeRunnerFailureSchema([
|
|
123
|
+
"invalid-selector",
|
|
107
124
|
"runner-is-not-mobile",
|
|
108
125
|
"screen-needs-a-run",
|
|
109
126
|
"screen-not-ready",
|
|
@@ -111,7 +128,12 @@ export const makeInspectMobileOnRunnerContract = (ids) => {
|
|
|
111
128
|
]),
|
|
112
129
|
]);
|
|
113
130
|
return {
|
|
114
|
-
|
|
131
|
+
annotations: {
|
|
132
|
+
destructiveHint: false,
|
|
133
|
+
openWorldHint: false,
|
|
134
|
+
readOnlyHint: true,
|
|
135
|
+
},
|
|
136
|
+
description: `Inspect one thing on a mobile interactive runner: the Appium session's status, the WebView contexts available, 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 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\` or \`ios\` 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}`,
|
|
115
137
|
input,
|
|
116
138
|
kind: "read",
|
|
117
139
|
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,cAAc,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EACL,qCAAqC,EACrC,8BAA8B,GAC/B,MAAM,kBAAkB,CAAC;AAE1B;;;;GAIG;AAEH,MAAM,oBAAoB,GAAG,GAAG,CAAC;AAEjC,MAAM,CAAC,
|
|
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,cAAc,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,c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ersContract: <WorkspaceId extends PublicIdSchema>(ids: {
|
|
4
4
|
workspace: WorkspaceId;
|
|
5
5
|
}) => {
|
|
6
|
+
readonly annotations: {
|
|
7
|
+
readonly destructiveHint: false;
|
|
8
|
+
readonly openWorldHint: false;
|
|
9
|
+
readonly readOnlyHint: true;
|
|
10
|
+
};
|
|
6
11
|
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.";
|
|
7
12
|
readonly input: z.ZodObject<{
|
|
8
13
|
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
@@ -20,6 +25,7 @@ export declare const makeListRunnersContract: <WorkspaceId extends PublicIdSchem
|
|
|
20
25
|
android: "android";
|
|
21
26
|
ios: "ios";
|
|
22
27
|
}>;
|
|
28
|
+
url: z.ZodURL;
|
|
23
29
|
}, z.core.$strip>>;
|
|
24
30
|
}, z.core.$strip>;
|
|
25
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/list.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,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,SAAS,EAAE,WAAW,CAAC;CACxB
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/list.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,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCA,CAAC"}
|
package/dist/v1/runner/list.js
CHANGED
|
@@ -13,6 +13,11 @@ export const makeListRunnersContract = (ids) => {
|
|
|
13
13
|
.describe("The runners running right now, in no particular order. Each entry carries the same fields a launch reports, so any of them can be addressed like a runner you launched yourself."),
|
|
14
14
|
});
|
|
15
15
|
return {
|
|
16
|
+
annotations: {
|
|
17
|
+
destructiveHint: false,
|
|
18
|
+
openWorldHint: false,
|
|
19
|
+
readOnlyHint: true,
|
|
20
|
+
},
|
|
16
21
|
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.",
|
|
17
22
|
input,
|
|
18
23
|
kind: "read",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/v1/runner/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAE7E,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAErC,GAED,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,WAAW,EAAE,GAAG,CAAC,SAAS;aACvB,QAAQ,EAAE;aACV,QAAQ,CACP,wCAAwC,0BAA0B,EAAE,CACrE;KACJ,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;QACtB,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;QAC7B,OAAO,EAAE,CAAC;aACP,KAAK,CAAC,gBAAgB,EAAE,CAAC;aACzB,QAAQ,CACP,kLAAkL,CACnL;KACJ,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EACT,qmBAAqmB;QACvmB,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,aAAa;QACnB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/v1/runner/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAE7E,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAErC,GAED,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,WAAW,EAAE,GAAG,CAAC,SAAS;aACvB,QAAQ,EAAE;aACV,QAAQ,CACP,wCAAwC,0BAA0B,EAAE,CACrE;KACJ,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;QACtB,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;QAC7B,OAAO,EAAE,CAAC;aACP,KAAK,CAAC,gBAAgB,EAAE,CAAC;aACzB,QAAQ,CACP,kLAAkL,CACnL;KACJ,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,IAAI;SACnB;QACD,WAAW,EACT,qmBAAqmB;QACvmB,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,aAAa;QACnB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -5,6 +5,11 @@ export declare const maxActionErrorMessageLength = 1000;
|
|
|
5
5
|
export declare const makePerformActionOnRunnerContract: <WorkspaceId extends PublicIdSchema>(ids: {
|
|
6
6
|
workspace: WorkspaceId;
|
|
7
7
|
}) => {
|
|
8
|
+
readonly annotations: {
|
|
9
|
+
readonly destructiveHint: true;
|
|
10
|
+
readonly openWorldHint: true;
|
|
11
|
+
readonly readOnlyHint: false;
|
|
12
|
+
};
|
|
8
13
|
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.";
|
|
9
14
|
readonly input: z.ZodObject<{
|
|
10
15
|
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -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;AAwBhD,uDAAuD;AACvD,eAAO,MAAM,2BAA2B,OAAQ,CAAC;AAEjD,eAAO,MAAM,iCAAiC,GAC5C,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,SAAS,EAAE,WAAW,CAAC;CACxB
|
|
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;AAwBhD,uDAAuD;AACvD,eAAO,MAAM,2BAA2B,OAAQ,CAAC;AAEjD,eAAO,MAAM,iCAAiC,GAC5C,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+DA,CAAC"}
|
|
@@ -50,6 +50,11 @@ export const makePerformActionOnRunnerContract = (ids) => {
|
|
|
50
50
|
failure,
|
|
51
51
|
]);
|
|
52
52
|
return {
|
|
53
|
+
annotations: {
|
|
54
|
+
destructiveHint: true,
|
|
55
|
+
openWorldHint: true,
|
|
56
|
+
readOnlyHint: false,
|
|
57
|
+
},
|
|
53
58
|
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. ${screenNotReadyDescription} A \`navigate\` does not go through the screen, so a screen that is not ready does not stop it. ${runnerHasNoScreenDescription} ${notSupportedOnMobileDescription} ${withScreenshotDescription} ${unreachableDescription}`,
|
|
54
59
|
input,
|
|
55
60
|
kind: "write",
|
|
@@ -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,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EACL,4BAA4B,EAC5B,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AE,KAAK;SACpB;QACD,WAAW,EAAE,8yCAA8yC,yBAAyB,mGAAmG,4BAA4B,IAAI,+BAA+B,IAAI,yBAAyB,IAAI,sBAAsB,EAAE;QAC/iD,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,sBAAsB;QAC5B,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -5,6 +5,11 @@ export declare const maxSnapshotPathLength = 1024;
|
|
|
5
5
|
export declare const makePromoteSnapshotOnRunnerContract: <WorkspaceId extends PublicIdSchema>(ids: {
|
|
6
6
|
workspace: WorkspaceId;
|
|
7
7
|
}) => {
|
|
8
|
+
readonly annotations: {
|
|
9
|
+
readonly destructiveHint: true;
|
|
10
|
+
readonly openWorldHint: false;
|
|
11
|
+
readonly readOnlyHint: false;
|
|
12
|
+
};
|
|
8
13
|
readonly description: "Accept a run's screenshot as the new baseline for an image diff, on the runner that produced it. The two paths are the ones the diff reported, which reach a caller as an `image-diff-artifact` entry on the runner's `run-events` journal stream. `snapshot-not-found` if the run wrote no screenshot at that path, which usually means the paths were not taken from a diff this run produced; nothing is changed, so correcting the path and repeating is safe. `runner-cannot-promote-snapshots` on a runner that stores no screenshots. `runner-unreachable` if the runner could not be reached: it may still be starting, or it may have terminated after inactivity. A promotion that lands is not undone by promoting again, so a retry after an unreachable answer is safe.";
|
|
9
14
|
readonly input: z.ZodObject<{
|
|
10
15
|
baselinePath: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promoteSnapshot.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/promoteSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,6EAA6E;AAC7E,eAAO,MAAM,qBAAqB,OAAQ,CAAC;AAE3C,eAAO,MAAM,mCAAmC,GAC9C,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,SAAS,EAAE,WAAW,CAAC;CACxB
|
|
1
|
+
{"version":3,"file":"promoteSnapshot.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/promoteSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,6EAA6E;AAC7E,eAAO,MAAM,qBAAqB,OAAQ,CAAC;AAE3C,eAAO,MAAM,mCAAmC,GAC9C,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;CAgDA,CAAC"}
|
|
@@ -31,6 +31,11 @@ export const makePromoteSnapshotOnRunnerContract = (ids) => {
|
|
|
31
31
|
}),
|
|
32
32
|
]);
|
|
33
33
|
return {
|
|
34
|
+
annotations: {
|
|
35
|
+
destructiveHint: true,
|
|
36
|
+
openWorldHint: false,
|
|
37
|
+
readOnlyHint: false,
|
|
38
|
+
},
|
|
34
39
|
description: "Accept a run's screenshot as the new baseline for an image diff, on the runner that produced it. The two paths are the ones the diff reported, which reach a caller as an `image-diff-artifact` entry on the runner's `run-events` journal stream. `snapshot-not-found` if the run wrote no screenshot at that path, which usually means the paths were not taken from a diff this run produced; nothing is changed, so correcting the path and repeating is safe. `runner-cannot-promote-snapshots` on a runner that stores no screenshots. `runner-unreachable` if the runner could not be reached: it may still be starting, or it may have terminated after inactivity. A promotion that lands is not undone by promoting again, so a retry after an unreachable answer is safe.",
|
|
35
40
|
input,
|
|
36
41
|
kind: "write",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promoteSnapshot.js","sourceRoot":"","sources":["../../../src/v1/runner/promoteSnapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,cAAc,EAAE,4BAA4B,EAAE,MAAM,eAAe,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svB;QACxvB,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,wBAAwB;QAC9B,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -3,6 +3,11 @@ import type { PublicIdSchema } from "../ids.js";
|
|
|
3
3
|
export declare const makeReadRunnerJournalContract: <WorkspaceId extends PublicIdSchema>(ids: {
|
|
4
4
|
workspace: WorkspaceId;
|
|
5
5
|
}) => {
|
|
6
|
+
readonly annotations: {
|
|
7
|
+
readonly destructiveHint: false;
|
|
8
|
+
readonly openWorldHint: false;
|
|
9
|
+
readonly readOnlyHint: false;
|
|
10
|
+
};
|
|
6
11
|
readonly description: "Read a window of one of an interactive runner's journal streams — the newest few, everything after a cursor, or everything belonging to one run. This is how a flow run's outcome and output are followed: `run-status` settles it, `run-logs` and `run-events` carry what it produced, and `recorder` carries the browser actions the runner recorded. A read counts as activity, so working through history does not get the runner reaped underneath you. `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.";
|
|
7
12
|
readonly input: z.ZodObject<{
|
|
8
13
|
runId: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readJournal.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/readJournal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAehD,eAAO,MAAM,6BAA6B,GACxC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,SAAS,EAAE,WAAW,CAAC;CACxB
|
|
1
|
+
{"version":3,"file":"readJournal.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/readJournal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAehD,eAAO,MAAM,6BAA6B,GACxC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCA,CAAC"}
|
|
@@ -16,6 +16,11 @@ export const makeReadRunnerJournalContract = (ids) => {
|
|
|
16
16
|
makeRunnerFailureSchema([runnerUnreachableFailureReason]),
|
|
17
17
|
]);
|
|
18
18
|
return {
|
|
19
|
+
annotations: {
|
|
20
|
+
destructiveHint: false,
|
|
21
|
+
openWorldHint: false,
|
|
22
|
+
readOnlyHint: false,
|
|
23
|
+
},
|
|
19
24
|
description: `Read a window of one of an interactive runner's journal streams — the newest few, everything after a cursor, or everything belonging to one run. This is how a flow run's outcome and output are followed: \`run-status\` settles it, \`run-logs\` and \`run-events\` carry what it produced, and \`recorder\` carries the browser actions the runner recorded. A read counts as activity, so working through history does not get the runner reaped underneath you. ${retryableRunnerUnreachableDescription}`,
|
|
20
25
|
input,
|
|
21
26
|
kind: "read",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readJournal.js","sourceRoot":"","sources":["../../../src/v1/runner/readJournal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,cAAc,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EACL,qCAAqC,EACrC,8BAA8B,GAC/B,MAAM,kBAAkB,CAAC;AAE1B,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAE3C,GAED,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,wBAAwB,CAAC,MAAM,CAAC;QAC5C,EAAE,EAAE,cAAc,CAAC,QAAQ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,CAAC,QAAQ,CAClC,sCAAsC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,+DAA+D,CACpI;QACD,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,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC;QACnE,uBAAuB,CAAC,CAAC,8BAA8B,CAAC,CAAC;KAC1D,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,KAAK;SACpB;QACD,WAAW,EAAE,wcAAwc,qCAAqC,EAAE;QAC5f,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,oBAAoB;QAC1B,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -4,6 +4,11 @@ export declare const makeRunFlowOnRunnerContract: <WorkspaceId extends PublicIdS
|
|
|
4
4
|
environmentRef: PublicIdSchema;
|
|
5
5
|
workspace: WorkspaceId;
|
|
6
6
|
}) => {
|
|
7
|
+
readonly annotations: {
|
|
8
|
+
readonly destructiveHint: true;
|
|
9
|
+
readonly openWorldHint: true;
|
|
10
|
+
readonly readOnlyHint: false;
|
|
11
|
+
};
|
|
7
12
|
readonly description: "Run a flow on an interactive runner. When `selection` is given the lines run against the browser as it stands, so nothing is re-navigated and nothing is signed in again; without it the whole entry point runs from a fresh browser. A runner with no live browser starts one before a selection and says so with `bootstrappedRunner`, which means those lines ran against a fresh page rather than the one an earlier run left. A selection produces no `runStarted` event, so follow it by its run id on `run-status` like any other run. Send `unchangedFiles` to ship only what changed since an earlier run on this runner; a `needs-full-sync` failure names the paths it does not hold, and the way to recover is the same run again with every file in `files`. Answers as soon as the run is accepted, with the id to follow it by — nothing waits for the run to finish. Which browser or device the run needs is read from the flow file's own execution target, so it is not supplied here; when it does not match what the runner is, the call fails with `runner-target-mismatch` rather than failing partway through the run. `runner-unreachable` means the answer did not arrive, which is NOT the same as the run not having started: the runner may have accepted it and been too slow to say so, and resubmitting would start a second run that is billed and journalled alongside the first. Read the runner's `run-status` journal stream before resubmitting, and use the newest run id there if one appeared.";
|
|
8
13
|
readonly input: z.ZodObject<{
|
|
9
14
|
entryPointPath: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runFlow.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/runFlow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AA8BhD,eAAO,MAAM,2BAA2B,GACtC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,cAAc,EAAE,cAAc,CAAC;IAC/B,SAAS,EAAE,WAAW,CAAC;CACxB
|
|
1
|
+
{"version":3,"file":"runFlow.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/runFlow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AA8BhD,eAAO,MAAM,2BAA2B,GACtC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,cAAc,EAAE,cAAc,CAAC;IAC/B,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuIA,CAAC"}
|
|
@@ -96,6 +96,11 @@ export const makeRunFlowOnRunnerContract = (ids) => {
|
|
|
96
96
|
failure,
|
|
97
97
|
]);
|
|
98
98
|
return {
|
|
99
|
+
annotations: {
|
|
100
|
+
destructiveHint: true,
|
|
101
|
+
openWorldHint: true,
|
|
102
|
+
readOnlyHint: false,
|
|
103
|
+
},
|
|
99
104
|
description: "Run a flow on an interactive runner. When `selection` is given the lines run against the browser as it stands, so nothing is re-navigated and nothing is signed in again; without it the whole entry point runs from a fresh browser. A runner with no live browser starts one before a selection and says so with `bootstrappedRunner`, which means those lines ran against a fresh page rather than the one an earlier run left. A selection produces no `runStarted` event, so follow it by its run id on `run-status` like any other run. Send `unchangedFiles` to ship only what changed since an earlier run on this runner; a `needs-full-sync` failure names the paths it does not hold, and the way to recover is the same run again with every file in `files`. Answers as soon as the run is accepted, with the id to follow it by — nothing waits for the run to finish. Which browser or device the run needs is read from the flow file's own execution target, so it is not supplied here; when it does not match what the runner is, the call fails with `runner-target-mismatch` rather than failing partway through the run. `runner-unreachable` means the answer did not arrive, which is NOT the same as the run not having started: the runner may have accepted it and been too slow to say so, and resubmitting would start a second run that is billed and journalled alongside the first. Read the runner's `run-status` journal stream before resubmitting, and use the newest run id there if one appeared.",
|
|
100
105
|
input,
|
|
101
106
|
kind: "write",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runFlow.js","sourceRoot":"","sources":["../../../src/v1/runner/runFlow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,4BAA4B,GAC7B,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,MAAM,oBAAoB,GAAG,CAAC;KAC3B,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,C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YACH,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;YAC7B,KAAK,EAAE,CAAC;iBACL,MAAM,EAAE;iBACR,QAAQ,CACP,uJAAuJ,CACxJ;SACJ,CAAC;QACF,OAAO;KACR,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EAAE;YACX,eAAe,EAAE,IAAI;YACrB,aAAa,EAAE,IAAI;YACnB,YAAY,EAAE,KAAK;SACpB;QACD,WAAW,EACT,y8CAAy8C;QAC38C,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,gBAAgB;QACtB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -3,6 +3,11 @@ import type { PublicIdSchema } from "../ids.js";
|
|
|
3
3
|
export declare const makeStopRunOnRunnerContract: <WorkspaceId extends PublicIdSchema>(ids: {
|
|
4
4
|
workspace: WorkspaceId;
|
|
5
5
|
}) => {
|
|
6
|
+
readonly annotations: {
|
|
7
|
+
readonly destructiveHint: true;
|
|
8
|
+
readonly openWorldHint: false;
|
|
9
|
+
readonly readOnlyHint: false;
|
|
10
|
+
};
|
|
6
11
|
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.";
|
|
7
12
|
readonly input: z.ZodObject<{
|
|
8
13
|
id: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stopRun.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/stopRun.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAMhD,eAAO,MAAM,2BAA2B,GACtC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,SAAS,EAAE,WAAW,CAAC;CACxB
|
|
1
|
+
{"version":3,"file":"stopRun.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/stopRun.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAMhD,eAAO,MAAM,2BAA2B,GACtC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;CAsCA,CAAC"}
|
|
@@ -19,6 +19,11 @@ export const makeStopRunOnRunnerContract = (ids) => {
|
|
|
19
19
|
makeRunnerFailureSchema([runnerUnreachableFailureReason]),
|
|
20
20
|
]);
|
|
21
21
|
return {
|
|
22
|
+
annotations: {
|
|
23
|
+
destructiveHint: true,
|
|
24
|
+
openWorldHint: false,
|
|
25
|
+
readOnlyHint: false,
|
|
26
|
+
},
|
|
22
27
|
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.",
|
|
23
28
|
input,
|
|
24
29
|
kind: "write",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stopRun.js","sourceRoot":"","sources":["../../../src/v1/runner/stopRun.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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C,CAAC;QACnE,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,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;YAC7B,UAAU,EAAE,CAAC;iBACV,OAAO,EAAE;iBACT,QAAQ,CACP,oHAAoH,CACrH;SACJ,CAAC;QACF,uBAAuB,CAAC,CAAC,8BAA8B,CAAC,CAAC;KAC1D,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EAAE;YACX,eAAe,EAAE,IAAI;YACrB,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,KAAK;SACpB;QACD,WAAW,EACT,ooBAAooB;QACtoB,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,gBAAgB;QACtB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -3,7 +3,12 @@ import type { PublicIdSchema } from "../ids.js";
|
|
|
3
3
|
export declare const makeTakeScreenshotOnRunnerContract: <WorkspaceId extends PublicIdSchema>(ids: {
|
|
4
4
|
workspace: WorkspaceId;
|
|
5
5
|
}) => {
|
|
6
|
-
readonly
|
|
6
|
+
readonly annotations: {
|
|
7
|
+
readonly destructiveHint: false;
|
|
8
|
+
readonly openWorldHint: false;
|
|
9
|
+
readonly readOnlyHint: false;
|
|
10
|
+
};
|
|
11
|
+
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 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.";
|
|
7
12
|
readonly input: z.ZodObject<{
|
|
8
13
|
id: z.ZodString;
|
|
9
14
|
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"takeScreenshot.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/takeScreenshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAgBhD,eAAO,MAAM,kCAAkC,GAC7C,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,SAAS,EAAE,WAAW,CAAC;CACxB
|
|
1
|
+
{"version":3,"file":"takeScreenshot.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/takeScreenshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAgBhD,eAAO,MAAM,kCAAkC,GAC7C,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;CAoCA,CAAC"}
|
|
@@ -21,7 +21,12 @@ export const makeTakeScreenshotOnRunnerContract = (ids) => {
|
|
|
21
21
|
]),
|
|
22
22
|
]);
|
|
23
23
|
return {
|
|
24
|
-
|
|
24
|
+
annotations: {
|
|
25
|
+
destructiveHint: false,
|
|
26
|
+
openWorldHint: false,
|
|
27
|
+
readOnlyHint: false,
|
|
28
|
+
},
|
|
29
|
+
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}`,
|
|
25
30
|
input,
|
|
26
31
|
kind: "read",
|
|
27
32
|
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,GAED,EAAE,EAAE;IACH,MAAM,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,CAA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E,KAAK;YACtB,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,KAAK;SACpB;QACD,WAAW,EAAE,2XAA2X,0BAA0B,IAAI,yBAAyB,IAAI,4BAA4B,IAAI,qCAAqC,EAAE;QAC1gB,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,uBAAuB;QAC7B,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The schemas and types a consumer imports directly, as opposed to reaching
|
|
3
|
+
* them through a contract. Kept apart from the catalog so `index.ts` reads as
|
|
4
|
+
* one thing: the list of public routes.
|
|
5
|
+
*/
|
|
6
|
+
export { type AgentSessionStatus, agentSessionStatusSchema, } from "./agent/status.js";
|
|
7
|
+
export { type AuthConfigResponse, authConfigResponse } from "./auth/config.js";
|
|
8
|
+
export type { AnyPublicApiContract, PublicApiContract, PublicApiContractAnnotations, PublicApiContractKind, } from "./definition.js";
|
|
9
|
+
export { type EmailDirection, emailDirectionSchema } from "./email/resource.js";
|
|
10
|
+
export { uploadedFilePath } from "./file/index.js";
|
|
11
|
+
export { type IdentityResponse, identityResponse } from "./identity/index.js";
|
|
12
|
+
export { type IdentityOrganizationsResponse, identityOrganizationsResponse, } from "./identity/organizations.js";
|
|
13
|
+
export { type PublicIdSchema, type PublicIdSchemas, defaultIdSchemas, } from "./ids.js";
|
|
14
|
+
export { type PublicContractName, buildMcpToolDescription, } from "./mcpToolDescription.js";
|
|
15
|
+
export { makeFlowSelectionSchema } from "./run/index.js";
|
|
16
|
+
export * from "./runnerReexports.js";
|
|
17
|
+
export { makeTriggerResourceSchema, triggerActionKindSchema, triggerCadenceSchema, } from "./trigger/index.js";
|
|
18
|
+
//# sourceMappingURL=sharedSchemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sharedSchemas.d.ts","sourceRoot":"","sources":["../../src/v1/sharedSchemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,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,4BAA4B,EAC5B,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,cAAc,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,KAAK,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EACL,KAAK,6BAA6B,EAClC,6BAA6B,GAC9B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,gBAAgB,GACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,KAAK,kBAAkB,EACvB,uBAAuB,GACxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,cAAc,sBAAsB,CAAC;AACrC,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The schemas and types a consumer imports directly, as opposed to reaching
|
|
3
|
+
* them through a contract. Kept apart from the catalog so `index.ts` reads as
|
|
4
|
+
* one thing: the list of public routes.
|
|
5
|
+
*/
|
|
6
|
+
export { agentSessionStatusSchema, } from "./agent/status.js";
|
|
7
|
+
export { authConfigResponse } from "./auth/config.js";
|
|
8
|
+
export { emailDirectionSchema } from "./email/resource.js";
|
|
9
|
+
export { uploadedFilePath } from "./file/index.js";
|
|
10
|
+
export { identityResponse } from "./identity/index.js";
|
|
11
|
+
export { identityOrganizationsResponse, } from "./identity/organizations.js";
|
|
12
|
+
export { defaultIdSchemas, } from "./ids.js";
|
|
13
|
+
export { buildMcpToolDescription, } from "./mcpToolDescription.js";
|
|
14
|
+
export { makeFlowSelectionSchema } from "./run/index.js";
|
|
15
|
+
export * from "./runnerReexports.js";
|
|
16
|
+
export { makeTriggerResourceSchema, triggerActionKindSchema, triggerCadenceSchema, } from "./trigger/index.js";
|
|
17
|
+
//# sourceMappingURL=sharedSchemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sharedSchemas.js","sourceRoot":"","sources":["../../src/v1/sharedSchemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAEL,wBAAwB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAA2B,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAO/E,OAAO,EAAuB,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,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,EAEL,uBAAuB,GACxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,cAAc,sBAAsB,CAAC;AACrC,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,oBAAoB,CAAC"}
|
package/dist/v1/tag/index.d.ts
CHANGED
|
@@ -12,6 +12,11 @@ export declare const makeTagResourceSchema: () => z.ZodObject<{
|
|
|
12
12
|
export declare const makeCreateTagContract: <WorkspaceId extends PublicIdSchema>(ids: {
|
|
13
13
|
workspace: WorkspaceId;
|
|
14
14
|
}) => {
|
|
15
|
+
readonly annotations: {
|
|
16
|
+
readonly destructiveHint: false;
|
|
17
|
+
readonly openWorldHint: false;
|
|
18
|
+
readonly readOnlyHint: false;
|
|
19
|
+
};
|
|
15
20
|
readonly description: "Create a tag on the caller's team. Tags select flows in run.create.";
|
|
16
21
|
readonly input: z.ZodObject<{
|
|
17
22
|
name: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAKhD;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;iBAiB/B,CAAC;AAEJ,eAAO,MAAM,qBAAqB,GAAI,WAAW,SAAS,cAAc,EAAE,KAAK;IAC7E,SAAS,EAAE,WAAW,CAAC;CACxB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAKhD;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;iBAiB/B,CAAC;AAEJ,eAAO,MAAM,qBAAqB,GAAI,WAAW,SAAS,cAAc,EAAE,KAAK;IAC7E,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;CAuCA,CAAC"}
|