@qawolf/api-contracts 0.30.0 → 0.33.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.
Files changed (37) hide show
  1. package/dist/v1/environment/find.d.ts +1 -1
  2. package/dist/v1/environment/index.d.ts +2 -2
  3. package/dist/v1/environment/resource.d.ts +1 -1
  4. package/dist/v1/environment/update.d.ts +1 -1
  5. package/dist/v1/index.d.ts +429 -27
  6. package/dist/v1/index.d.ts.map +1 -1
  7. package/dist/v1/index.js +3 -18
  8. package/dist/v1/index.js.map +1 -1
  9. package/dist/v1/run/index.d.ts.map +1 -1
  10. package/dist/v1/run/index.js +4 -1
  11. package/dist/v1/run/index.js.map +1 -1
  12. package/dist/v1/runner/environment.js +1 -1
  13. package/dist/v1/runner/files.js +1 -1
  14. package/dist/v1/runner/inspect.d.ts +1 -0
  15. package/dist/v1/runner/inspect.d.ts.map +1 -1
  16. package/dist/v1/runner/inspect.js +6 -2
  17. package/dist/v1/runner/inspect.js.map +1 -1
  18. package/dist/v1/runner/inspectMobile.d.ts +226 -0
  19. package/dist/v1/runner/inspectMobile.d.ts.map +1 -0
  20. package/dist/v1/runner/inspectMobile.js +118 -0
  21. package/dist/v1/runner/inspectMobile.js.map +1 -0
  22. package/dist/v1/runner/inspectMobileShapes.d.ts +73 -0
  23. package/dist/v1/runner/inspectMobileShapes.d.ts.map +1 -0
  24. package/dist/v1/runner/inspectMobileShapes.js +59 -0
  25. package/dist/v1/runner/inspectMobileShapes.js.map +1 -0
  26. package/dist/v1/runner/performAction.d.ts +3 -2
  27. package/dist/v1/runner/performAction.d.ts.map +1 -1
  28. package/dist/v1/runner/performAction.js +3 -1
  29. package/dist/v1/runner/performAction.js.map +1 -1
  30. package/dist/v1/runner/takeScreenshot.d.ts +2 -2
  31. package/dist/v1/runner/takeScreenshot.js +1 -1
  32. package/dist/v1/runner/takeScreenshot.js.map +1 -1
  33. package/dist/v1/runnerReexports.d.ts +11 -0
  34. package/dist/v1/runnerReexports.d.ts.map +1 -0
  35. package/dist/v1/runnerReexports.js +23 -0
  36. package/dist/v1/runnerReexports.js.map +1 -0
  37. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/v1/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,YAAY,EACV,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,gBAAgB,GACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EACL,KAAK,aAAa,EAClB,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AAInC,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAK/D,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,sBAAsB,EAC3B,gBAAgB,EAChB,cAAc,EACd,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,sBAAsB,EAC3B,oBAAoB,GACrB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,0BAA0B,EAC1B,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,QAAQ,EACb,qBAAqB,EACrB,iCAAiC,EACjC,kBAAkB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoC,CAAC"}
package/dist/v1/index.js CHANGED
@@ -1,24 +1,7 @@
1
1
  export { identityResponse } from "./identity/index.js";
2
2
  export { defaultIdSchemas, } from "./ids.js";
3
3
  export { makeFlowSelectionSchema } from "./run/index.js";
4
- export { browserActionSchema, } from "./runner/browserAction.js";
5
- // Carries the reservation of QA Wolf's own variable names, which the server
6
- // validates with rather than restating — a second copy of that rule is how the
7
- // reservation comes to differ from what is actually stamped.
8
- export { runEnvironmentSchema } from "./runner/environment.js";
9
- // The travel rule for files bound for a runner: which files travel, how much may
10
- // travel, and what environment a run may carry. A client needs the predicate and
11
- // the size bounds to collect and pre-check with; the schemas are also what the
12
- // server and the runner validate with, so they are shared rather than restated.
13
- export { isShippableRunFilePath, runFilePathSchema, runPackageJsonPath, shippableRunFileExtensions, } from "./runner/files.js";
14
- export { makeRunnerSchema, runnerIdSchema, runnerNameSchema, } from "./runner/identity.js";
15
- export { inspectRequestSchema, } from "./runner/inspect.js";
16
- // A journal read is answered verbatim by the public API, so its wire shapes are
17
- // published here and the private journal package imports them from here.
18
- export { journalEntrySchema, journalStreamSchema, knownJournalStreams, maxJournalStreamNameLength, readJournalRequestSchema, readJournalResponseSchema, } from "./runner/journal.js";
19
- export { maxRunFilesByteLength, maxRunnerRequestEncodedByteLength, runFilesByteLength, runFilesSchema, } from "./runner/payloadSize.js";
20
- export { maxActionErrorMessageLength } from "./runner/performAction.js";
21
- export { runSelectionSchema, } from "./runner/runSelection.js";
4
+ export * from "./runnerReexports.js";
22
5
  import { makeAutomateContract } from "./automate/index.js";
23
6
  import { makeDeleteEnvironmentVariableContract } from "./environment/deleteVariable.js";
24
7
  import { makeFindEnvironmentsContract } from "./environment/find.js";
@@ -41,6 +24,7 @@ import { makeEvaluateSnippetOnRunnerContract } from "./runner/evaluateSnippet.js
41
24
  import { makeImportPackageOnRunnerContract } from "./runner/importPackage.js";
42
25
  import { makeLaunchRunnerContract, makeTerminateRunnerContract, } from "./runner/index.js";
43
26
  import { makeInspectOnRunnerContract } from "./runner/inspect.js";
27
+ import { makeInspectMobileOnRunnerContract } from "./runner/inspectMobile.js";
44
28
  import { makePerformActionOnRunnerContract } from "./runner/performAction.js";
45
29
  import { makeReadRunnerJournalContract } from "./runner/readJournal.js";
46
30
  import { makeRunFlowOnRunnerContract } from "./runner/runFlow.js";
@@ -93,6 +77,7 @@ export const makeContractsV1 = (ids) => {
93
77
  evaluateSnippet: makeEvaluateSnippetOnRunnerContract(),
94
78
  importPackage: makeImportPackageOnRunnerContract(),
95
79
  inspect: makeInspectOnRunnerContract(),
80
+ inspectMobile: makeInspectMobileOnRunnerContract(),
96
81
  launch: makeLaunchRunnerContract(),
97
82
  performAction: makePerformActionOnRunnerContract(),
98
83
  readJournal: makeReadRunnerJournalContract(),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/v1/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAyB,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAGL,gBAAgB,GACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAEL,mBAAmB,GACpB,MAAM,2BAA2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D,OAAO,EAAE,2BAA2B,EAAE;YACtC,aAAa,EAAE,iCAAiC,EAAE;YAClD,MAAM,EAAE,wBAAwB,EAAE;YAClC,aAAa,EAAE,iCAAiC,EAAE;YAClD,WAAW,EAAE,6BAA6B,EAAE;YAC5C,OAAO,EAAE,2BAA2B,EAAE;YACtC,OAAO,EAAE,2BAA2B,EAAE;YACtC,cAAc,EAAE,kCAAkC,EAAE;YACpD,SAAS,EAAE,2BAA2B,EAAE;SACzC;QACD,GAAG,EAAE;YACH,MAAM,EAAE,qBAAqB,CAAC,WAAW,CAAC;YAC1C,IAAI,EAAE,oBAAoB,CAAC,WAAW,CAAC;SACxC;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC,gBAAgB,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/run/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGhD,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,OAAO,EAAE,uBAAuB,EAAE,CAAC;AAEnC,eAAO,MAAM,qBAAqB,GAChC,QAAQ,SAAS,cAAc,EAC/B,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,KAAK;IACL,MAAM,EAAE,QAAQ,CAAC;IACjB,cAAc,EAAE,cAAc,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+DA,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/run/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGhD,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,OAAO,EAAE,uBAAuB,EAAE,CAAC;AAEnC,eAAO,MAAM,qBAAqB,GAChC,QAAQ,SAAS,cAAc,EAC/B,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,KAAK;IACL,MAAM,EAAE,QAAQ,CAAC;IACjB,cAAc,EAAE,cAAc,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoEA,CAAC"}
@@ -10,7 +10,10 @@ export const makeCreateRunContract = (ids) => {
10
10
  .optional(),
11
11
  environmentId: ids.environmentRef,
12
12
  environmentVariables: z.record(z.string(), z.string()).optional(),
13
- ignoreRules: z.boolean().default(false),
13
+ ignoreRules: z
14
+ .boolean()
15
+ .describe("Ignore this team's sequencing rules for this run. By default they are honoured: the flows your selection depends on are added to the run, and flows run in the order the rules require. Set this to run exactly what you selected, in any order.")
16
+ .default(false),
14
17
  // Associate a pull request with the run by its number within a
15
18
  // repository. A number requires a repository; a repository may be given
16
19
  // on its own. The server resolves the internal pull request id,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/run/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,OAAO,EAAE,uBAAuB,EAAE,CAAC;AAEnC,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAInC,GAKD,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC;SACZ,MAAM,CAAC;QACN,QAAQ,EAAE,GAAG,CAAC,MAAM;aACjB,QAAQ,CACP,mEAAmE,CACpE;a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AI;YAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC;YAClD,MAAM,EAAE,CAAC;iBACN,IAAI,CAAC,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;iBAClC,QAAQ,CACP,mJAAmJ,CACpJ;SACJ,CAAC,CACH;aACA,QAAQ,CACP,oIAAoI,CACrI;QACH,KAAK,EAAE,GAAG,CAAC,GAAG;KACf,EACD,EAAE,mBAAmB,EAAE,+BAA+B,EAAE,CACzD,CAAC;IAEF,OAAO;QACL,WAAW,EACT,oEAAoE;QACtE,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,YAAY;QAClB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
@@ -26,7 +26,7 @@ function refusalForRunEnvironmentVariableName(name) {
26
26
  return `${reservedRunEnvironmentVariableName} is reserved by QA Wolf and set for you.`;
27
27
  return undefined;
28
28
  }
29
- const maxRunEnvironmentVariables = 100;
29
+ const maxRunEnvironmentVariables = 200;
30
30
  const maxRunEnvironmentValueLength = 8 * 1024;
31
31
  /** Bounded on its own, so a large project is never refused for its environment. */
32
32
  export const runEnvironmentSchema = z
@@ -33,7 +33,7 @@ function isShippableRunFilePathSegment(segment) {
33
33
  return false;
34
34
  if (segment.includes("\\"))
35
35
  return false;
36
- // eslint-disable-next-line no-control-regex -- refusing control characters is the point
36
+ // oxlint-disable-next-line no-control-regex -- refusing control characters is the point
37
37
  return !/[\u0000-\u001f\u007f]/.test(segment);
38
38
  }
39
39
  /** The runner installs dependencies itself, so `node_modules` never ships. */
@@ -35,6 +35,7 @@ export declare const makeInspectOnRunnerContract: () => {
35
35
  failureReason: z.ZodEnum<{
36
36
  "runner-unreachable": "runner-unreachable";
37
37
  "nothing-to-inspect": "nothing-to-inspect";
38
+ "runner-is-not-a-browser": "runner-is-not-a-browser";
38
39
  }>;
39
40
  outcome: z.ZodLiteral<"failure">;
40
41
  }, z.core.$strip>], "outcome">;
@@ -1 +1 @@
1
- {"version":3,"file":"inspect.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/inspect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,oBAAoB;;;;;;;;;2BA0B/B,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE1E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCvC,CAAC"}
1
+ {"version":3,"file":"inspect.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/inspect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,oBAAoB;;;;;;;;;2BA0B/B,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE1E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCvC,CAAC"}
@@ -45,12 +45,16 @@ export const makeInspectOnRunnerContract = () => {
45
45
  .string()
46
46
  .optional()
47
47
  .describe("What the runner said, when it said anything."),
48
- failureReason: z.enum(["nothing-to-inspect", "runner-unreachable"]),
48
+ failureReason: z.enum([
49
+ "nothing-to-inspect",
50
+ "runner-is-not-a-browser",
51
+ "runner-unreachable",
52
+ ]),
49
53
  outcome: z.literal("failure"),
50
54
  }),
51
55
  ]);
52
56
  return {
53
- description: "Inspect one thing on an interactive runner: an element's HTML, the page's HTML simplified for a model, or a top-level variable's value as JSON. `nothing-to-inspect` means the runner had nothing to answer with: no live page, no element matching the selector, or no variable under that name. A runner cannot tell those apart, so it reports the one reason and puts whatever it did say in `errorMessage`. " +
57
+ description: "Inspect one thing on an interactive runner: an element's HTML, the page's HTML simplified for a model, or a top-level variable's value as JSON. `nothing-to-inspect` means the runner had nothing to answer with: no live page, no element matching the selector, or no variable under that name. A runner cannot tell those apart, so it reports the one reason and puts whatever it did say in `errorMessage`. `runner-is-not-a-browser` on a mobile runner — call `runner.inspectMobile` for its equivalent surface instead. " +
54
58
  retryableRunnerUnreachableDescription,
55
59
  input,
56
60
  kind: "read",
@@ -1 +1 @@
1
- {"version":3,"file":"inspect.js","sourceRoot":"","sources":["../../../src/v1/runner/inspect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,qCAAqC,EAAE,MAAM,kBAAkB,CAAC;AAEzE,MAAM,iBAAiB,GAAG,KAAK,CAAC;AAChC,MAAM,qBAAqB,GAAG,GAAG,CAAC;AAElC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAC/D,CAAC,CAAC,MAAM,CAAC;QACP,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,GAAG,CAAC,CAAC,CAAC;aACN,GAAG,CAAC,iBAAiB,CAAC;aACtB,QAAQ,CAAC,iDAAiD,CAAC;QAC9D,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;KAChC,CAAC;IACF,CAAC,CAAC,MAAM,CAAC;QACP,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,GAAG,CAAC,CAAC,CAAC;aACN,GAAG,CAAC,iBAAiB,CAAC;aACtB,QAAQ,EAAE;aACV,QAAQ,CAAC,4DAA4D,CAAC;QACzE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;KAC7B,CAAC;IACF,CAAC,CAAC,MAAM,CAAC;QACP,YAAY,EAAE,CAAC;aACZ,MAAM,EAAE;aACR,GAAG,CAAC,CAAC,CAAC;aACN,GAAG,CAAC,qBAAqB,CAAC;aAC1B,QAAQ,CAAC,uDAAuD,CAAC;QACpE,IAA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AAM,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;SACzE,CAAC;QACF,CAAC,CAAC,MAAM,CAAC;YACP,YAAY,EAAE,CAAC;iBACZ,MAAM,EAAE;iBACR,QAAQ,EAAE;iBACV,QAAQ,CAAC,8CAA8C,CAAC;YAC3D,aAAa,EAAE,CAAC,CAAC,IAAI,CAAC;gBACpB,oBAAoB;gBACpB,yBAAyB;gBACzB,oBAAoB;aACrB,CAAC;YACF,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;SAC9B,CAAC;KACH,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EACT,kgBAAkgB;YAClgB,qCAAqC;QACvC,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,gBAAgB;QACtB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,226 @@
1
+ import { z } from "zod";
2
+ export declare const inspectMobileRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3
+ what: z.ZodLiteral<"session">;
4
+ }, z.core.$strip>, z.ZodObject<{
5
+ what: z.ZodLiteral<"contexts">;
6
+ }, z.core.$strip>, z.ZodObject<{
7
+ context: z.ZodOptional<z.ZodString>;
8
+ what: z.ZodLiteral<"page">;
9
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
10
+ by: z.ZodLiteral<"point">;
11
+ context: z.ZodOptional<z.ZodString>;
12
+ what: z.ZodLiteral<"elements">;
13
+ x: z.ZodInt;
14
+ y: z.ZodInt;
15
+ }, z.core.$strip>, z.ZodObject<{
16
+ by: z.ZodLiteral<"text">;
17
+ context: z.ZodOptional<z.ZodString>;
18
+ partial: z.ZodOptional<z.ZodBoolean>;
19
+ text: z.ZodString;
20
+ what: z.ZodLiteral<"elements">;
21
+ }, z.core.$strip>], "by">], "what">;
22
+ export type InspectMobileRequest = z.infer<typeof inspectMobileRequestSchema>;
23
+ export declare const makeInspectMobileOnRunnerContract: () => {
24
+ 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 or carrying some text. 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 a `node20WithAndroid` or `node20WithIos` 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.";
25
+ readonly input: z.ZodObject<{
26
+ id: z.ZodString;
27
+ request: z.ZodDiscriminatedUnion<[z.ZodObject<{
28
+ what: z.ZodLiteral<"session">;
29
+ }, z.core.$strip>, z.ZodObject<{
30
+ what: z.ZodLiteral<"contexts">;
31
+ }, z.core.$strip>, z.ZodObject<{
32
+ context: z.ZodOptional<z.ZodString>;
33
+ what: z.ZodLiteral<"page">;
34
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
35
+ by: z.ZodLiteral<"point">;
36
+ context: z.ZodOptional<z.ZodString>;
37
+ what: z.ZodLiteral<"elements">;
38
+ x: z.ZodInt;
39
+ y: z.ZodInt;
40
+ }, z.core.$strip>, z.ZodObject<{
41
+ by: z.ZodLiteral<"text">;
42
+ context: z.ZodOptional<z.ZodString>;
43
+ partial: z.ZodOptional<z.ZodBoolean>;
44
+ text: z.ZodString;
45
+ what: z.ZodLiteral<"elements">;
46
+ }, z.core.$strip>], "by">], "what">;
47
+ }, z.core.$strip>;
48
+ readonly kind: "read";
49
+ readonly name: "runner.inspectMobile";
50
+ readonly output: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
51
+ outcome: z.ZodLiteral<"success">;
52
+ session: z.ZodDiscriminatedUnion<[z.ZodObject<{
53
+ deviceName: z.ZodOptional<z.ZodString>;
54
+ platformName: z.ZodString;
55
+ sessionId: z.ZodString;
56
+ type: z.ZodLiteral<"ready">;
57
+ }, z.core.$strip>, z.ZodObject<{
58
+ error: z.ZodString;
59
+ type: z.ZodLiteral<"unreachable">;
60
+ }, z.core.$strip>, z.ZodObject<{
61
+ sessionCount: z.ZodNumber;
62
+ type: z.ZodLiteral<"ambiguous">;
63
+ }, z.core.$strip>, z.ZodObject<{
64
+ type: z.ZodLiteral<"no-session">;
65
+ }, z.core.$strip>], "type">;
66
+ what: z.ZodLiteral<"session">;
67
+ }, z.core.$strip>, z.ZodObject<{
68
+ contexts: z.ZodArray<z.ZodString>;
69
+ current: z.ZodString;
70
+ outcome: z.ZodLiteral<"success">;
71
+ what: z.ZodLiteral<"contexts">;
72
+ }, z.core.$strip>, z.ZodObject<{
73
+ context: z.ZodString;
74
+ orientation: z.ZodEnum<{
75
+ PORTRAIT: "PORTRAIT";
76
+ LANDSCAPE: "LANDSCAPE";
77
+ }>;
78
+ outcome: z.ZodLiteral<"success">;
79
+ pageSource: z.ZodType<{
80
+ selectors: {
81
+ strategy: {
82
+ name: "xpath";
83
+ type: "unique" | "full-path" | "sibling-of" | "parent-of";
84
+ } | {
85
+ name: "ios-predicate";
86
+ } | {
87
+ hostSelector: string;
88
+ innerSelector: string;
89
+ name: "shadow";
90
+ };
91
+ value: string;
92
+ }[];
93
+ tag: string;
94
+ attributes?: {
95
+ bounds?: {
96
+ bottom: number;
97
+ left: number;
98
+ right: number;
99
+ top: number;
100
+ } | undefined;
101
+ rest?: Record<string, string> | undefined;
102
+ } | undefined;
103
+ } & {
104
+ children?: (({
105
+ selectors: {
106
+ strategy: {
107
+ name: "xpath";
108
+ type: "unique" | "full-path" | "sibling-of" | "parent-of";
109
+ } | {
110
+ name: "ios-predicate";
111
+ } | {
112
+ hostSelector: string;
113
+ innerSelector: string;
114
+ name: "shadow";
115
+ };
116
+ value: string;
117
+ }[];
118
+ tag: string;
119
+ attributes?: {
120
+ bounds?: {
121
+ bottom: number;
122
+ left: number;
123
+ right: number;
124
+ top: number;
125
+ } | undefined;
126
+ rest?: Record<string, string> | undefined;
127
+ } | undefined;
128
+ } & /*elided*/ any) | string)[];
129
+ }, unknown, z.core.$ZodTypeInternals<{
130
+ selectors: {
131
+ strategy: {
132
+ name: "xpath";
133
+ type: "unique" | "full-path" | "sibling-of" | "parent-of";
134
+ } | {
135
+ name: "ios-predicate";
136
+ } | {
137
+ hostSelector: string;
138
+ innerSelector: string;
139
+ name: "shadow";
140
+ };
141
+ value: string;
142
+ }[];
143
+ tag: string;
144
+ attributes?: {
145
+ bounds?: {
146
+ bottom: number;
147
+ left: number;
148
+ right: number;
149
+ top: number;
150
+ } | undefined;
151
+ rest?: Record<string, string> | undefined;
152
+ } | undefined;
153
+ } & {
154
+ children?: (({
155
+ selectors: {
156
+ strategy: {
157
+ name: "xpath";
158
+ type: "unique" | "full-path" | "sibling-of" | "parent-of";
159
+ } | {
160
+ name: "ios-predicate";
161
+ } | {
162
+ hostSelector: string;
163
+ innerSelector: string;
164
+ name: "shadow";
165
+ };
166
+ value: string;
167
+ }[];
168
+ tag: string;
169
+ attributes?: {
170
+ bounds?: {
171
+ bottom: number;
172
+ left: number;
173
+ right: number;
174
+ top: number;
175
+ } | undefined;
176
+ rest?: Record<string, string> | undefined;
177
+ } | undefined;
178
+ } & /*elided*/ any) | string)[];
179
+ }, unknown>>;
180
+ what: z.ZodLiteral<"page">;
181
+ }, z.core.$strip>, z.ZodObject<{
182
+ matches: z.ZodArray<z.ZodObject<{
183
+ attributes: z.ZodRecord<z.ZodString, z.ZodString>;
184
+ bounds: z.ZodOptional<z.ZodObject<{
185
+ bottom: z.ZodNumber;
186
+ left: z.ZodNumber;
187
+ right: z.ZodNumber;
188
+ top: z.ZodNumber;
189
+ }, z.core.$strip>>;
190
+ center: z.ZodOptional<z.ZodObject<{
191
+ x: z.ZodNumber;
192
+ y: z.ZodNumber;
193
+ }, z.core.$strip>>;
194
+ selectors: z.ZodArray<z.ZodObject<{
195
+ strategy: z.ZodUnion<readonly [z.ZodObject<{
196
+ name: z.ZodLiteral<"xpath">;
197
+ type: z.ZodEnum<{
198
+ unique: "unique";
199
+ "full-path": "full-path";
200
+ "sibling-of": "sibling-of";
201
+ "parent-of": "parent-of";
202
+ }>;
203
+ }, z.core.$strip>, z.ZodObject<{
204
+ name: z.ZodLiteral<"ios-predicate">;
205
+ }, z.core.$strip>, z.ZodObject<{
206
+ hostSelector: z.ZodString;
207
+ innerSelector: z.ZodString;
208
+ name: z.ZodLiteral<"shadow">;
209
+ }, z.core.$strip>]>;
210
+ value: z.ZodString;
211
+ }, z.core.$strip>>;
212
+ tag: z.ZodString;
213
+ }, z.core.$strip>>;
214
+ outcome: z.ZodLiteral<"success">;
215
+ what: z.ZodLiteral<"elements">;
216
+ }, z.core.$strip>], "what">, z.ZodObject<{
217
+ failureReason: z.ZodEnum<{
218
+ "runner-unreachable": "runner-unreachable";
219
+ "runner-is-not-mobile": "runner-is-not-mobile";
220
+ "screen-needs-a-run": "screen-needs-a-run";
221
+ "screen-not-ready": "screen-not-ready";
222
+ }>;
223
+ outcome: z.ZodLiteral<"failure">;
224
+ }, z.core.$strip>], "outcome">;
225
+ };
226
+ //# sourceMappingURL=inspectMobile.d.ts.map
@@ -0,0 +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;AAwBxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;mCAgDrC,CAAC;AA4CH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4B7C,CAAC"}
@@ -0,0 +1,118 @@
1
+ import { z } from "zod";
2
+ import { runnerIdSchema } from "./identity.js";
3
+ import { elementSchema, orientationSchema, pageSourceNodeSchema, } from "./inspectMobileShapes.js";
4
+ import { makeRunnerFailureSchema } from "./outcome.js";
5
+ import { retryableRunnerUnreachableDescription, runnerUnreachableFailureReason, } from "./unreachable.js";
6
+ /**
7
+ * Mobile-only: `runner.inspect` covers the equivalent browser surface
8
+ * (element HTML, page HTML, a workflow variable). `what` discriminates so a
9
+ * request kind can be added later without a rename.
10
+ */
11
+ const maxElementTextLength = 500;
12
+ export const inspectMobileRequestSchema = z.discriminatedUnion("what", [
13
+ z.object({
14
+ what: z
15
+ .literal("session")
16
+ .describe("The status of the Appium session driving the device: ready and what it is, or why not."),
17
+ }),
18
+ z.object({
19
+ what: z
20
+ .literal("contexts")
21
+ .describe("The WebView contexts available on the device, and which one is current."),
22
+ }),
23
+ z.object({
24
+ context: z
25
+ .string()
26
+ .min(1)
27
+ .optional()
28
+ .describe("Read this context instead of whichever is current."),
29
+ what: z
30
+ .literal("page")
31
+ .describe("The page source of the device's current context, as a tree."),
32
+ }),
33
+ z
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."),
54
+ ]);
55
+ const inspectMobileAnswerSchema = z.discriminatedUnion("what", [
56
+ z.object({
57
+ outcome: z.literal("success"),
58
+ session: z.discriminatedUnion("type", [
59
+ z.object({
60
+ deviceName: z.string().optional(),
61
+ platformName: z.string(),
62
+ sessionId: z.string(),
63
+ type: z.literal("ready"),
64
+ }),
65
+ z.object({
66
+ error: z.string(),
67
+ type: z.literal("unreachable"),
68
+ }),
69
+ z.object({
70
+ sessionCount: z.number(),
71
+ type: z.literal("ambiguous"),
72
+ }),
73
+ z.object({ type: z.literal("no-session") }),
74
+ ]),
75
+ what: z.literal("session"),
76
+ }),
77
+ z.object({
78
+ contexts: z.string().array(),
79
+ current: z.string(),
80
+ outcome: z.literal("success"),
81
+ what: z.literal("contexts"),
82
+ }),
83
+ z.object({
84
+ context: z.string(),
85
+ orientation: orientationSchema,
86
+ outcome: z.literal("success"),
87
+ pageSource: pageSourceNodeSchema,
88
+ what: z.literal("page"),
89
+ }),
90
+ z.object({
91
+ matches: elementSchema.array(),
92
+ outcome: z.literal("success"),
93
+ what: z.literal("elements"),
94
+ }),
95
+ ]);
96
+ export const makeInspectMobileOnRunnerContract = () => {
97
+ const input = z.object({
98
+ id: runnerIdSchema.describe("Id of the runner to inspect."),
99
+ request: inspectMobileRequestSchema,
100
+ });
101
+ const output = z.discriminatedUnion("outcome", [
102
+ inspectMobileAnswerSchema,
103
+ makeRunnerFailureSchema([
104
+ "runner-is-not-mobile",
105
+ "screen-needs-a-run",
106
+ "screen-not-ready",
107
+ runnerUnreachableFailureReason,
108
+ ]),
109
+ ]);
110
+ return {
111
+ 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 or carrying some text. 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 a \`node20WithAndroid\` or \`node20WithIos\` runner instead. ${retryableRunnerUnreachableDescription}`,
112
+ input,
113
+ kind: "read",
114
+ name: "runner.inspectMobile",
115
+ output,
116
+ };
117
+ };
118
+ //# sourceMappingURL=inspectMobile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inspectMobile.js","sourceRoot":"","sources":["../../../src/v1/runner/inspectMobile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,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,MAAM,0BAA0B,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IACrE,CAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,CAAC;aACJ,OAAO,CAAC,SAAS,CAAC;aAClB,QAAQ,CACP,wFAAwF,CACzF;KACJ,CAAC;IACF,CAAC,CAAC,MA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CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;KAC5B,CAAC;IACF,CAAC,CAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;QACnB,WAAW,EAAE,iBAAiB;QAC9B,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;QAC7B,UAAU,EAAE,oBAAoB;QAChC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,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,GAAG,EAAE;IACpD,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,EAAE,EAAE,cAAc,CAAC,QAAQ,CAAC,8BAA8B,CAAC;QAC3D,OAAO,EAAE,0BAA0B;KACpC,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,CAAC,CAAC,kBAAkB,CAAC,SAAS,EAAE;QAC7C,yBAAyB;QACzB,uBAAuB,CAAC;YACtB,sBAAsB;YACtB,oBAAoB;YACpB,kBAAkB;YAClB,8BAA8B;SAC/B,CAAC;KACH,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EAAE,gsCAAgsC,qCAAqC,EAAE;QACpvC,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,sBAAsB;QAC5B,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,73 @@
1
+ import { z } from "zod";
2
+ export declare const elementSchema: z.ZodObject<{
3
+ attributes: z.ZodRecord<z.ZodString, z.ZodString>;
4
+ bounds: z.ZodOptional<z.ZodObject<{
5
+ bottom: z.ZodNumber;
6
+ left: z.ZodNumber;
7
+ right: z.ZodNumber;
8
+ top: z.ZodNumber;
9
+ }, z.core.$strip>>;
10
+ center: z.ZodOptional<z.ZodObject<{
11
+ x: z.ZodNumber;
12
+ y: z.ZodNumber;
13
+ }, z.core.$strip>>;
14
+ selectors: z.ZodArray<z.ZodObject<{
15
+ strategy: z.ZodUnion<readonly [z.ZodObject<{
16
+ name: z.ZodLiteral<"xpath">;
17
+ type: z.ZodEnum<{
18
+ unique: "unique";
19
+ "full-path": "full-path";
20
+ "sibling-of": "sibling-of";
21
+ "parent-of": "parent-of";
22
+ }>;
23
+ }, z.core.$strip>, z.ZodObject<{
24
+ name: z.ZodLiteral<"ios-predicate">;
25
+ }, z.core.$strip>, z.ZodObject<{
26
+ hostSelector: z.ZodString;
27
+ innerSelector: z.ZodString;
28
+ name: z.ZodLiteral<"shadow">;
29
+ }, z.core.$strip>]>;
30
+ value: z.ZodString;
31
+ }, z.core.$strip>>;
32
+ tag: z.ZodString;
33
+ }, z.core.$strip>;
34
+ declare const basePageSourceNodeSchema: z.ZodObject<{
35
+ attributes: z.ZodOptional<z.ZodObject<{
36
+ bounds: z.ZodOptional<z.ZodObject<{
37
+ bottom: z.ZodNumber;
38
+ left: z.ZodNumber;
39
+ right: z.ZodNumber;
40
+ top: z.ZodNumber;
41
+ }, z.core.$strip>>;
42
+ rest: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
43
+ }, z.core.$strip>>;
44
+ selectors: z.ZodArray<z.ZodObject<{
45
+ strategy: z.ZodUnion<readonly [z.ZodObject<{
46
+ name: z.ZodLiteral<"xpath">;
47
+ type: z.ZodEnum<{
48
+ unique: "unique";
49
+ "full-path": "full-path";
50
+ "sibling-of": "sibling-of";
51
+ "parent-of": "parent-of";
52
+ }>;
53
+ }, z.core.$strip>, z.ZodObject<{
54
+ name: z.ZodLiteral<"ios-predicate">;
55
+ }, z.core.$strip>, z.ZodObject<{
56
+ hostSelector: z.ZodString;
57
+ innerSelector: z.ZodString;
58
+ name: z.ZodLiteral<"shadow">;
59
+ }, z.core.$strip>]>;
60
+ value: z.ZodString;
61
+ }, z.core.$strip>>;
62
+ tag: z.ZodString;
63
+ }, z.core.$strip>;
64
+ type PageSourceNode = z.infer<typeof basePageSourceNodeSchema> & {
65
+ children?: (PageSourceNode | string)[];
66
+ };
67
+ export declare const pageSourceNodeSchema: z.ZodType<PageSourceNode>;
68
+ export declare const orientationSchema: z.ZodEnum<{
69
+ PORTRAIT: "PORTRAIT";
70
+ LANDSCAPE: "LANDSCAPE";
71
+ }>;
72
+ export {};
73
+ //# sourceMappingURL=inspectMobileShapes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inspectMobileShapes.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/inspectMobileShapes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgCxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAYxB,CAAC;AAEH,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAS5B,CAAC;AAEH,KAAK,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,GAAG;IAC/D,QAAQ,CAAC,EAAE,CAAC,cAAc,GAAG,MAAM,CAAC,EAAE,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAQvD,CAAC;AAEL,eAAO,MAAM,iBAAiB;;;EAAoC,CAAC"}