@qawolf/api-contracts 0.98.1 → 0.100.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 (76) hide show
  1. package/README.md +1 -1
  2. package/dist/v1/build/create.d.ts +55 -0
  3. package/dist/v1/build/create.d.ts.map +1 -0
  4. package/dist/v1/build/create.js +59 -0
  5. package/dist/v1/build/create.js.map +1 -0
  6. package/dist/v1/build/get.d.ts +46 -0
  7. package/dist/v1/build/get.d.ts.map +1 -0
  8. package/dist/v1/build/get.js +29 -0
  9. package/dist/v1/build/get.js.map +1 -0
  10. package/dist/v1/build/index.d.ts +170 -0
  11. package/dist/v1/build/index.d.ts.map +1 -0
  12. package/dist/v1/build/index.js +13 -0
  13. package/dist/v1/build/index.js.map +1 -0
  14. package/dist/v1/build/list.d.ts +51 -0
  15. package/dist/v1/build/list.d.ts.map +1 -0
  16. package/dist/v1/build/list.js +53 -0
  17. package/dist/v1/build/list.js.map +1 -0
  18. package/dist/v1/build/requestUpload.d.ts +33 -0
  19. package/dist/v1/build/requestUpload.d.ts.map +1 -0
  20. package/dist/v1/build/requestUpload.js +54 -0
  21. package/dist/v1/build/requestUpload.js.map +1 -0
  22. package/dist/v1/build/resource.d.ts +40 -0
  23. package/dist/v1/build/resource.d.ts.map +1 -0
  24. package/dist/v1/build/resource.js +79 -0
  25. package/dist/v1/build/resource.js.map +1 -0
  26. package/dist/v1/index.d.ts +578 -28
  27. package/dist/v1/index.d.ts.map +1 -1
  28. package/dist/v1/index.js +8 -0
  29. package/dist/v1/index.js.map +1 -1
  30. package/dist/v1/investigation/finding.d.ts +5 -2
  31. package/dist/v1/investigation/finding.d.ts.map +1 -1
  32. package/dist/v1/investigation/finding.js +8 -1
  33. package/dist/v1/investigation/finding.js.map +1 -1
  34. package/dist/v1/investigation/get.d.ts +2 -0
  35. package/dist/v1/investigation/get.d.ts.map +1 -1
  36. package/dist/v1/investigation/index.d.ts +2 -0
  37. package/dist/v1/investigation/index.d.ts.map +1 -1
  38. package/dist/v1/issue/decideSuggestion.d.ts +77 -0
  39. package/dist/v1/issue/decideSuggestion.d.ts.map +1 -0
  40. package/dist/v1/issue/decideSuggestion.js +40 -0
  41. package/dist/v1/issue/decideSuggestion.js.map +1 -0
  42. package/dist/v1/mcpServer/connect.d.ts +28 -0
  43. package/dist/v1/mcpServer/connect.d.ts.map +1 -0
  44. package/dist/v1/mcpServer/connect.js +38 -0
  45. package/dist/v1/mcpServer/connect.js.map +1 -0
  46. package/dist/v1/runner/catalog.d.ts +14 -14
  47. package/dist/v1/runner/identity.d.ts +4 -4
  48. package/dist/v1/runner/index.d.ts +4 -4
  49. package/dist/v1/runner/inspectMobile.d.ts +3 -3
  50. package/dist/v1/runner/inspectMobile.js +3 -3
  51. package/dist/v1/runner/inspectMobile.js.map +1 -1
  52. package/dist/v1/runner/list.d.ts +2 -2
  53. package/dist/v1/runner/runFlow.d.ts +4 -4
  54. package/dist/v1/runner/takeScreenshot.d.ts +1 -1
  55. package/dist/v1/runner/takeScreenshot.js +1 -1
  56. package/dist/v1/trigger/configuration.d.ts +2 -0
  57. package/dist/v1/trigger/configuration.d.ts.map +1 -1
  58. package/dist/v1/trigger/configuration.js +4 -0
  59. package/dist/v1/trigger/configuration.js.map +1 -1
  60. package/dist/v1/trigger/create.d.ts +4 -0
  61. package/dist/v1/trigger/create.d.ts.map +1 -1
  62. package/dist/v1/trigger/deploymentFields.d.ts +1 -0
  63. package/dist/v1/trigger/deploymentFields.d.ts.map +1 -1
  64. package/dist/v1/trigger/find.d.ts +2 -0
  65. package/dist/v1/trigger/find.d.ts.map +1 -1
  66. package/dist/v1/trigger/get.d.ts +2 -0
  67. package/dist/v1/trigger/get.d.ts.map +1 -1
  68. package/dist/v1/trigger/index.d.ts +16 -0
  69. package/dist/v1/trigger/index.d.ts.map +1 -1
  70. package/dist/v1/trigger/lifecycle.d.ts +4 -0
  71. package/dist/v1/trigger/lifecycle.d.ts.map +1 -1
  72. package/dist/v1/trigger/resource.d.ts +2 -0
  73. package/dist/v1/trigger/resource.d.ts.map +1 -1
  74. package/dist/v1/trigger/update.d.ts +4 -0
  75. package/dist/v1/trigger/update.d.ts.map +1 -1
  76. package/package.json +1 -1
@@ -297,6 +297,169 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
297
297
  }, z.core.$strip>], "artifactStatus">;
298
298
  };
299
299
  };
300
+ build: {
301
+ create: {
302
+ readonly annotationJustifications: {
303
+ readonly destructiveHint: "Creates a build. With an environment, later runs there install it instead of the previous build.";
304
+ readonly openWorldHint: "Reads the uploaded file from QA Wolf storage only.";
305
+ readonly readOnlyHint: "Creates a build, and can create the environment it names.";
306
+ };
307
+ readonly annotations: {
308
+ readonly destructiveHint: false;
309
+ readonly openWorldHint: false;
310
+ readonly readOnlyHint: false;
311
+ };
312
+ readonly description: "Create a build from a file uploaded with build.requestUpload. Reads the app ID, name, version and build number from the file before it answers, or refuses a file that isn't an app. Calling it again with the same buildId answers the build the first call created, unchanged: a repeated call's branch, commitSha and environment are ignored.";
313
+ readonly input: z.ZodObject<{
314
+ branch: z.ZodOptional<z.ZodString>;
315
+ buildId: z.ZodString;
316
+ commitSha: z.ZodOptional<z.ZodString>;
317
+ environment: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
318
+ id: EnvironmentId;
319
+ }, z.core.$strict>, z.ZodObject<{
320
+ baseEphemeralEnvironment: z.ZodOptional<z.ZodString>;
321
+ ephemeral: z.ZodOptional<z.ZodBoolean>;
322
+ name: z.ZodString;
323
+ }, z.core.$strict>]>>;
324
+ workspaceId: z.ZodOptional<WorkspaceId>;
325
+ }, z.core.$strip>;
326
+ readonly kind: "write";
327
+ readonly name: "build.create";
328
+ readonly output: z.ZodObject<{
329
+ build: z.ZodObject<{
330
+ appId: z.ZodString;
331
+ appName: z.ZodOptional<z.ZodString>;
332
+ branch: z.ZodOptional<z.ZodString>;
333
+ buildNumber: z.ZodOptional<z.ZodString>;
334
+ commitSha: z.ZodOptional<z.ZodString>;
335
+ createdAt: z.ZodISODateTime;
336
+ deletedAt: z.ZodOptional<z.ZodISODateTime>;
337
+ environmentId: z.ZodOptional<EnvironmentId>;
338
+ fileName: z.ZodString;
339
+ id: z.ZodString;
340
+ platform: z.ZodEnum<{
341
+ android: "android";
342
+ ios: "ios";
343
+ }>;
344
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
345
+ version: z.ZodOptional<z.ZodString>;
346
+ url: z.ZodURL;
347
+ }, z.core.$strip>;
348
+ }, z.core.$strip>;
349
+ };
350
+ get: {
351
+ readonly annotationJustifications: {
352
+ readonly destructiveHint: "Does not change the build.";
353
+ readonly openWorldHint: "Reads QA Wolf data only.";
354
+ readonly readOnlyHint: "Reads one build.";
355
+ };
356
+ readonly annotations: {
357
+ readonly destructiveHint: false;
358
+ readonly openWorldHint: false;
359
+ readonly readOnlyHint: true;
360
+ };
361
+ readonly description: "Get a build: its app, platform, version and environment. Deleted builds are returned too.";
362
+ readonly input: z.ZodObject<{
363
+ buildId: z.ZodString;
364
+ workspaceId: z.ZodOptional<WorkspaceId>;
365
+ }, z.core.$strip>;
366
+ readonly kind: "read";
367
+ readonly name: "build.get";
368
+ readonly output: z.ZodObject<{
369
+ build: z.ZodObject<{
370
+ appId: z.ZodString;
371
+ appName: z.ZodOptional<z.ZodString>;
372
+ branch: z.ZodOptional<z.ZodString>;
373
+ buildNumber: z.ZodOptional<z.ZodString>;
374
+ commitSha: z.ZodOptional<z.ZodString>;
375
+ createdAt: z.ZodISODateTime;
376
+ deletedAt: z.ZodOptional<z.ZodISODateTime>;
377
+ environmentId: z.ZodOptional<EnvironmentId>;
378
+ fileName: z.ZodString;
379
+ id: z.ZodString;
380
+ platform: z.ZodEnum<{
381
+ android: "android";
382
+ ios: "ios";
383
+ }>;
384
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
385
+ version: z.ZodOptional<z.ZodString>;
386
+ url: z.ZodURL;
387
+ }, z.core.$strip>;
388
+ }, z.core.$strip>;
389
+ };
390
+ list: {
391
+ readonly annotationJustifications: {
392
+ readonly destructiveHint: "Does not change any build.";
393
+ readonly openWorldHint: "Reads QA Wolf data only.";
394
+ readonly readOnlyHint: "Lists builds.";
395
+ };
396
+ readonly annotations: {
397
+ readonly destructiveHint: false;
398
+ readonly openWorldHint: false;
399
+ readonly readOnlyHint: true;
400
+ };
401
+ readonly description: "List the workspace's undeleted builds, newest first. With latestOnly, list what the environment's next run installs.";
402
+ readonly input: z.ZodObject<{
403
+ cursor: z.ZodOptional<z.ZodString>;
404
+ limit: z.ZodDefault<z.ZodNumber>;
405
+ appId: z.ZodOptional<z.ZodString>;
406
+ environmentId: z.ZodOptional<EnvironmentId>;
407
+ latestOnly: z.ZodDefault<z.ZodBoolean>;
408
+ workspaceId: z.ZodOptional<WorkspaceId>;
409
+ }, z.core.$strip>;
410
+ readonly kind: "read";
411
+ readonly name: "build.list";
412
+ readonly output: z.ZodObject<{
413
+ builds: z.ZodArray<z.ZodObject<{
414
+ appId: z.ZodString;
415
+ appName: z.ZodOptional<z.ZodString>;
416
+ branch: z.ZodOptional<z.ZodString>;
417
+ buildNumber: z.ZodOptional<z.ZodString>;
418
+ commitSha: z.ZodOptional<z.ZodString>;
419
+ createdAt: z.ZodISODateTime;
420
+ deletedAt: z.ZodOptional<z.ZodISODateTime>;
421
+ environmentId: z.ZodOptional<EnvironmentId>;
422
+ fileName: z.ZodString;
423
+ id: z.ZodString;
424
+ platform: z.ZodEnum<{
425
+ android: "android";
426
+ ios: "ios";
427
+ }>;
428
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
429
+ version: z.ZodOptional<z.ZodString>;
430
+ url: z.ZodURL;
431
+ }, z.core.$strip>>;
432
+ nextCursor: z.ZodOptional<z.ZodString>;
433
+ }, z.core.$strip>;
434
+ };
435
+ requestUpload: {
436
+ readonly annotationJustifications: {
437
+ readonly destructiveHint: "The URL only creates a new file. It cannot overwrite or delete one.";
438
+ readonly openWorldHint: "The upload target is QA Wolf's run inputs storage, not an external service.";
439
+ readonly readOnlyHint: "Returns an expiring URL that permits writing one file to the workspace's storage.";
440
+ };
441
+ readonly annotations: {
442
+ readonly destructiveHint: false;
443
+ readonly openWorldHint: false;
444
+ readonly readOnlyHint: false;
445
+ };
446
+ readonly description: "Get a URL to upload an app build: an .apk, .aab or .ipa, up to 500 MB. PUT the file there with uploadHeaders, then call build.create with the buildId.";
447
+ readonly input: z.ZodObject<{
448
+ buildId: z.ZodOptional<z.ZodString>;
449
+ fileName: z.ZodString;
450
+ fileSizeBytes: z.ZodNumber;
451
+ workspaceId: z.ZodOptional<WorkspaceId>;
452
+ }, z.core.$strip>;
453
+ readonly kind: "write";
454
+ readonly name: "build.requestUpload";
455
+ readonly output: z.ZodObject<{
456
+ buildId: z.ZodString;
457
+ expiresAt: z.ZodISODateTime;
458
+ uploadHeaders: z.ZodRecord<z.ZodString, z.ZodString>;
459
+ uploadUrl: z.ZodString;
460
+ }, z.core.$strip>;
461
+ };
462
+ };
300
463
  codeHostIntegration: {
301
464
  find: {
302
465
  readonly annotationJustifications: {
@@ -1535,6 +1698,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1535
1698
  title: z.ZodString;
1536
1699
  value: z.ZodString;
1537
1700
  }, z.core.$strip>>;
1701
+ body: z.ZodOptional<z.ZodString>;
1538
1702
  comparisonId: z.ZodOptional<z.ZodString>;
1539
1703
  text: z.ZodString;
1540
1704
  }, z.core.$strip>>;
@@ -1549,6 +1713,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1549
1713
  steps: z.ZodOptional<z.ZodArray<z.ZodString>>;
1550
1714
  subSessionIds: z.ZodArray<ChatSessionId>;
1551
1715
  summary: z.ZodOptional<z.ZodString>;
1716
+ supersededByRunId: z.ZodOptional<RunId>;
1552
1717
  updatedAt: z.ZodISODateTime;
1553
1718
  }, z.core.$strip>>;
1554
1719
  runId: RunId;
@@ -1742,6 +1907,75 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1742
1907
  }, z.core.$strip>;
1743
1908
  }, z.core.$strip>;
1744
1909
  };
1910
+ decideSuggestion: {
1911
+ readonly annotationJustifications: {
1912
+ readonly destructiveHint: "Every decision can be undone until the flow joins, and nothing is deleted.";
1913
+ readonly openWorldHint: "An added suggestion writes its flow to the environment's flow code repository.";
1914
+ readonly readOnlyHint: "Records a decision on a suggestion and changes the issue's status.";
1915
+ };
1916
+ readonly annotations: {
1917
+ readonly destructiveHint: false;
1918
+ readonly openWorldHint: true;
1919
+ readonly readOnlyHint: false;
1920
+ };
1921
+ readonly description: string;
1922
+ readonly input: z.ZodObject<{
1923
+ decision: z.ZodEnum<{
1924
+ add: "add";
1925
+ report: "report";
1926
+ skip: "skip";
1927
+ undo: "undo";
1928
+ activate: "activate";
1929
+ }>;
1930
+ issueId: IssueId;
1931
+ skipReason: z.ZodOptional<z.ZodEnum<{
1932
+ "not-worth-testing": "not-worth-testing";
1933
+ "already-covered": "already-covered";
1934
+ "feature-removed": "feature-removed";
1935
+ }>>;
1936
+ }, z.core.$strip>;
1937
+ readonly kind: "write";
1938
+ readonly name: "issue.decideSuggestion";
1939
+ readonly output: z.ZodObject<{
1940
+ issue: z.ZodObject<{
1941
+ coveredFlowIds: z.ZodArray<FlowId>;
1942
+ createdAt: z.ZodCoercedDate<unknown>;
1943
+ description: z.ZodString;
1944
+ issueId: IssueId;
1945
+ name: z.ZodString;
1946
+ number: z.ZodNumber;
1947
+ priority: z.ZodEnum<{
1948
+ unprioritized: "unprioritized";
1949
+ low: "low";
1950
+ medium: "medium";
1951
+ high: "high";
1952
+ urgent: "urgent";
1953
+ }>;
1954
+ reproductions: z.ZodArray<z.ZodObject<{
1955
+ environmentId: EnvironmentId;
1956
+ firstReproducedInRunId: RunId;
1957
+ flowId: FlowId;
1958
+ isActive: z.ZodBoolean;
1959
+ lastReproducedInRunId: RunId;
1960
+ }, z.core.$strip>>;
1961
+ status: z.ZodEnum<{
1962
+ pending: "pending";
1963
+ canceled: "canceled";
1964
+ backlog: "backlog";
1965
+ inProgress: "inProgress";
1966
+ paused: "paused";
1967
+ resolved: "resolved";
1968
+ archived: "archived";
1969
+ }>;
1970
+ type: z.ZodEnum<{
1971
+ bug: "bug";
1972
+ maintenance: "maintenance";
1973
+ coverageRequest: "coverageRequest";
1974
+ }>;
1975
+ url: z.ZodURL;
1976
+ }, z.core.$strip>;
1977
+ }, z.core.$strip>;
1978
+ };
1745
1979
  find: {
1746
1980
  readonly annotationJustifications: {
1747
1981
  readonly destructiveHint: "Does not edit issue details, statuses or coverage associations.";
@@ -2217,6 +2451,31 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2217
2451
  }, z.core.$strip>;
2218
2452
  };
2219
2453
  };
2454
+ mcpServer: {
2455
+ connect: {
2456
+ readonly annotationJustifications: {
2457
+ readonly destructiveHint: "Starts a sign-in without changing or removing existing connections.";
2458
+ readonly openWorldHint: "Asks the external server's OAuth provider for a sign-in page.";
2459
+ readonly readOnlyHint: "Records a pending connection on the workspace.";
2460
+ };
2461
+ readonly annotations: {
2462
+ readonly destructiveHint: false;
2463
+ readonly openWorldHint: true;
2464
+ readonly readOnlyHint: false;
2465
+ };
2466
+ readonly description: "Start connecting an MCP server from the workspace's catalog, such as Linear, so Tester can use its tools. Returns a sign-in link to show the user.";
2467
+ readonly input: z.ZodObject<{
2468
+ server: z.ZodString;
2469
+ workspaceId: z.ZodOptional<WorkspaceId>;
2470
+ }, z.core.$strip>;
2471
+ readonly kind: "write";
2472
+ readonly name: "mcpServer.connect";
2473
+ readonly output: z.ZodObject<{
2474
+ authorizationUrl: z.ZodString;
2475
+ serverName: z.ZodString;
2476
+ }, z.core.$strip>;
2477
+ };
2478
+ };
2220
2479
  promotion: {
2221
2480
  find: {
2222
2481
  readonly annotationJustifications: {
@@ -2922,18 +3181,18 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2922
3181
  failureReason: z.ZodLiteral<"runner-target-mismatch">;
2923
3182
  outcome: z.ZodLiteral<"failure">;
2924
3183
  requiredRunnerName: z.ZodEnum<{
2925
- basic: "basic";
2926
- playwright: "playwright";
2927
3184
  android: "android";
2928
3185
  ios: "ios";
3186
+ basic: "basic";
3187
+ playwright: "playwright";
2929
3188
  windows: "windows";
2930
3189
  mac: "mac";
2931
3190
  }>;
2932
3191
  runnerName: z.ZodEnum<{
2933
- basic: "basic";
2934
- playwright: "playwright";
2935
3192
  android: "android";
2936
3193
  ios: "ios";
3194
+ basic: "basic";
3195
+ playwright: "playwright";
2937
3196
  windows: "windows";
2938
3197
  mac: "mac";
2939
3198
  }>;
@@ -2985,7 +3244,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2985
3244
  readonly openWorldHint: false;
2986
3245
  readonly readOnlyHint: false;
2987
3246
  };
2988
- readonly description: "Take one screenshot of an interactive runner's screen. On a runner with a browser the image is the whole virtual desktop, browser window and all; this refreshes the inactivity timer and can extend the runner's billed lifetime. On a mobile runner it is the device's own screen, and on Windows the VM's whole desktop, re-encoded to JPEG on the pod so this contract reads one image format regardless of runner family. `screen-needs-a-run` if the runner's virtual desktop has never started. Waiting will not change this and retrying is pointless — call `runner.runFlow` with a flow that opens a browser, then ask for the screen again. On a Windows runner any flow run claims the VM and brings up its screen. On a runner image with a browser that has never run anything, any `runner.performAction` also starts the browser itself. Evaluating a snippet does not start the desktop. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. On a mobile or Windows runner, `screen-not-ready` can also mean its Appium session did not answer in time; if it persists after 3 tries, terminate the runner and launch it again with the same id and runnerName. `runner-has-no-screen` if this runner has no browser desktop to see or drive, and retrying will never help. Launch a `playwright` runner. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may be too busy to answer. Nothing was changed, so retrying is safe; if it persists, launch the runner again.";
3247
+ readonly description: "Take one screenshot of an interactive runner's screen. This refreshes the inactivity timer and can extend the runner's billed lifetime. On a runner with a browser the image is the whole virtual desktop, browser window and all. On a mobile runner it is the device's own screen, and on Windows the VM's whole desktop, re-encoded to JPEG on the pod so this contract reads one image format regardless of runner family. `screen-needs-a-run` if the runner's virtual desktop has never started. Waiting will not change this and retrying is pointless — call `runner.runFlow` with a flow that opens a browser, then ask for the screen again. On a Windows runner any flow run claims the VM and brings up its screen. On a runner image with a browser that has never run anything, any `runner.performAction` also starts the browser itself. Evaluating a snippet does not start the desktop. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. On a mobile or Windows runner, `screen-not-ready` can also mean its Appium session did not answer in time; if it persists after 3 tries, terminate the runner and launch it again with the same id and runnerName. `runner-has-no-screen` if this runner has no browser desktop to see or drive, and retrying will never help. Launch a `playwright` runner. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may be too busy to answer. Nothing was changed, so retrying is safe; if it persists, launch the runner again.";
2989
3248
  readonly input: z.ZodObject<{
2990
3249
  id: z.ZodString;
2991
3250
  workspaceId: z.ZodOptional<WorkspaceId>;
@@ -3332,14 +3591,14 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3332
3591
  readonly annotationJustifications: {
3333
3592
  readonly destructiveHint: "Does not change application data, edit tests, or stop the runner.";
3334
3593
  readonly openWorldHint: "Inspects the existing QA Wolf mobile runner without submitting application actions or contacting arbitrary services.";
3335
- readonly readOnlyHint: "Reads mobile session status, contexts, page source, or elements without refreshing the runner's inactivity timer.";
3594
+ readonly readOnlyHint: "Reads mobile session status, contexts, page source, or elements and refreshes activity, which can cancel an inactivity shutdown.";
3336
3595
  };
3337
3596
  readonly annotations: {
3338
3597
  readonly destructiveHint: false;
3339
3598
  readonly openWorldHint: false;
3340
- readonly readOnlyHint: true;
3599
+ readonly readOnlyHint: false;
3341
3600
  };
3342
- readonly description: "Inspect one thing on a mobile or Windows interactive runner: the Appium session's status, the contexts available (WebViews on mobile, top-level windows on Windows), the current context's page source, or the elements at a point, carrying some text, or matching a selector. This does not refresh the runner's inactivity timer. Mobile and Windows only — a browser runner answers `runner-is-not-mobile`; call `runner.inspect` for a browser's equivalent surface instead. `what: \"session\"` always answers with the session's own status rather than `screen-needs-a-run`, since that is the question it exists to answer; the other three request kinds need a live session first and answer the same `screen-needs-a-run` or `screen-not-ready` outcomes `runner.performAction` and `runner.takeScreenshot` use, instead of reading anything when there is none. `screen-needs-a-run` means no Appium session has started on this runner yet — call `runner.runFlow` with a flow that opens one, then inspect again. `screen-not-ready` means the runner's Appium session exists but did not answer this instant, or more than one is somehow live — retry once; if it persists, relaunch the runner. `runner-is-not-mobile` means there is nothing here to inspect, and retrying will never help — launch an `android`, `ios` or `windows` runner instead. `invalid-selector` (elements by selector only) means the selector itself could not be parsed under the given `strategy` — distinct from a selector that parsed fine but matched nothing, which answers `matches: []` instead. `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.";
3601
+ readonly description: "Inspect one thing on a mobile or Windows interactive runner: the Appium session's status, the contexts available (WebViews on mobile, top-level windows on Windows), the current context's page source, or the elements at a point, carrying some text, or matching a selector. This refreshes the inactivity timer and can extend the runner's billed lifetime. Mobile and Windows only — a browser runner answers `runner-is-not-mobile`; call `runner.inspect` for a browser's equivalent surface instead. `what: \"session\"` always answers with the session's own status rather than `screen-needs-a-run`, since that is the question it exists to answer; the other three request kinds need a live session first and answer the same `screen-needs-a-run` or `screen-not-ready` outcomes `runner.performAction` and `runner.takeScreenshot` use, instead of reading anything when there is none. `screen-needs-a-run` means no Appium session has started on this runner yet — call `runner.runFlow` with a flow that opens one, then inspect again. `screen-not-ready` means the runner's Appium session exists but did not answer this instant, or more than one is somehow live — retry once; if it persists, relaunch the runner. `runner-is-not-mobile` means there is nothing here to inspect, and retrying will never help — launch an `android`, `ios` or `windows` runner instead. `invalid-selector` (elements by selector only) means the selector itself could not be parsed under the given `strategy` — distinct from a selector that parsed fine but matched nothing, which answers `matches: []` instead. `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.";
3343
3602
  readonly input: z.ZodObject<{
3344
3603
  id: z.ZodString;
3345
3604
  request: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -3569,10 +3828,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3569
3828
  id: z.ZodString;
3570
3829
  initialUrl: z.ZodOptional<z.ZodURL>;
3571
3830
  runnerName: z.ZodOptional<z.ZodEnum<{
3572
- basic: "basic";
3573
- playwright: "playwright";
3574
3831
  android: "android";
3575
3832
  ios: "ios";
3833
+ basic: "basic";
3834
+ playwright: "playwright";
3576
3835
  windows: "windows";
3577
3836
  mac: "mac";
3578
3837
  }>>;
@@ -3584,10 +3843,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3584
3843
  gpuAccelerated: z.ZodBoolean;
3585
3844
  id: z.ZodString;
3586
3845
  runnerName: z.ZodEnum<{
3587
- basic: "basic";
3588
- playwright: "playwright";
3589
3846
  android: "android";
3590
3847
  ios: "ios";
3848
+ basic: "basic";
3849
+ playwright: "playwright";
3591
3850
  windows: "windows";
3592
3851
  mac: "mac";
3593
3852
  }>;
@@ -3619,10 +3878,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3619
3878
  gpuAccelerated: z.ZodBoolean;
3620
3879
  id: z.ZodString;
3621
3880
  runnerName: z.ZodEnum<{
3622
- basic: "basic";
3623
- playwright: "playwright";
3624
3881
  android: "android";
3625
3882
  ios: "ios";
3883
+ basic: "basic";
3884
+ playwright: "playwright";
3626
3885
  windows: "windows";
3627
3886
  mac: "mac";
3628
3887
  }>;
@@ -4096,6 +4355,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4096
4355
  generativeSuite: "generativeSuite";
4097
4356
  }>>;
4098
4357
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
4358
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
4099
4359
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
4100
4360
  }, z.core.$strip>;
4101
4361
  cadence: z.ZodEnum<{
@@ -4138,6 +4398,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4138
4398
  generativeSuite: "generativeSuite";
4139
4399
  }>>;
4140
4400
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
4401
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
4141
4402
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
4142
4403
  }, z.core.$strip>;
4143
4404
  branchPattern: z.ZodOptional<z.ZodString>;
@@ -4164,6 +4425,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4164
4425
  generativeSuite: "generativeSuite";
4165
4426
  }>>;
4166
4427
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
4428
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
4167
4429
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
4168
4430
  }, z.core.$strip>;
4169
4431
  cadence: z.ZodEnum<{
@@ -4204,6 +4466,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4204
4466
  generativeSuite: "generativeSuite";
4205
4467
  }>>;
4206
4468
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
4469
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
4207
4470
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
4208
4471
  }, z.core.$strip>;
4209
4472
  branchPattern: z.ZodOptional<z.ZodString>;
@@ -4280,6 +4543,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4280
4543
  generativeSuite: "generativeSuite";
4281
4544
  }>>;
4282
4545
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
4546
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
4283
4547
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
4284
4548
  }, z.core.$strip>;
4285
4549
  cadence: z.ZodEnum<{
@@ -4320,6 +4584,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4320
4584
  generativeSuite: "generativeSuite";
4321
4585
  }>>;
4322
4586
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
4587
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
4323
4588
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
4324
4589
  }, z.core.$strip>;
4325
4590
  branchPattern: z.ZodOptional<z.ZodString>;
@@ -4374,6 +4639,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4374
4639
  generativeSuite: "generativeSuite";
4375
4640
  }>>;
4376
4641
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
4642
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
4377
4643
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
4378
4644
  }, z.core.$strip>;
4379
4645
  cadence: z.ZodEnum<{
@@ -4414,6 +4680,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4414
4680
  generativeSuite: "generativeSuite";
4415
4681
  }>>;
4416
4682
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
4683
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
4417
4684
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
4418
4685
  }, z.core.$strip>;
4419
4686
  branchPattern: z.ZodOptional<z.ZodString>;
@@ -4468,6 +4735,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4468
4735
  generativeSuite: "generativeSuite";
4469
4736
  }>>;
4470
4737
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
4738
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
4471
4739
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
4472
4740
  }, z.core.$strip>;
4473
4741
  cadence: z.ZodEnum<{
@@ -4508,6 +4776,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4508
4776
  generativeSuite: "generativeSuite";
4509
4777
  }>>;
4510
4778
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
4779
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
4511
4780
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
4512
4781
  }, z.core.$strip>;
4513
4782
  branchPattern: z.ZodOptional<z.ZodString>;
@@ -4562,6 +4831,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4562
4831
  generativeSuite: "generativeSuite";
4563
4832
  }>>;
4564
4833
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
4834
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
4565
4835
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
4566
4836
  }, z.core.$strip>;
4567
4837
  cadence: z.ZodEnum<{
@@ -4602,6 +4872,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4602
4872
  generativeSuite: "generativeSuite";
4603
4873
  }>>;
4604
4874
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
4875
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
4605
4876
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
4606
4877
  }, z.core.$strip>;
4607
4878
  branchPattern: z.ZodOptional<z.ZodString>;
@@ -4649,6 +4920,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4649
4920
  generativeSuite: "generativeSuite";
4650
4921
  }>>;
4651
4922
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
4923
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
4652
4924
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
4653
4925
  }, z.core.$strip>;
4654
4926
  cadence: z.ZodEnum<{
@@ -4691,6 +4963,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4691
4963
  generativeSuite: "generativeSuite";
4692
4964
  }>>;
4693
4965
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
4966
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
4694
4967
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
4695
4968
  }, z.core.$strip>;
4696
4969
  branchPattern: z.ZodOptional<z.ZodString>;
@@ -4717,6 +4990,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4717
4990
  generativeSuite: "generativeSuite";
4718
4991
  }>>;
4719
4992
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
4993
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
4720
4994
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
4721
4995
  }, z.core.$strip>;
4722
4996
  cadence: z.ZodEnum<{
@@ -4757,6 +5031,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4757
5031
  generativeSuite: "generativeSuite";
4758
5032
  }>>;
4759
5033
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
5034
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
4760
5035
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
4761
5036
  }, z.core.$strip>;
4762
5037
  branchPattern: z.ZodOptional<z.ZodString>;
@@ -5066,6 +5341,169 @@ export declare const publicContractsV1: {
5066
5341
  }, z.core.$strip>], "artifactStatus">;
5067
5342
  };
5068
5343
  };
5344
+ build: {
5345
+ create: {
5346
+ readonly annotationJustifications: {
5347
+ readonly destructiveHint: "Creates a build. With an environment, later runs there install it instead of the previous build.";
5348
+ readonly openWorldHint: "Reads the uploaded file from QA Wolf storage only.";
5349
+ readonly readOnlyHint: "Creates a build, and can create the environment it names.";
5350
+ };
5351
+ readonly annotations: {
5352
+ readonly destructiveHint: false;
5353
+ readonly openWorldHint: false;
5354
+ readonly readOnlyHint: false;
5355
+ };
5356
+ readonly description: "Create a build from a file uploaded with build.requestUpload. Reads the app ID, name, version and build number from the file before it answers, or refuses a file that isn't an app. Calling it again with the same buildId answers the build the first call created, unchanged: a repeated call's branch, commitSha and environment are ignored.";
5357
+ readonly input: z.ZodObject<{
5358
+ branch: z.ZodOptional<z.ZodString>;
5359
+ buildId: z.ZodString;
5360
+ commitSha: z.ZodOptional<z.ZodString>;
5361
+ environment: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
5362
+ id: PublicIdSchema;
5363
+ }, z.core.$strict>, z.ZodObject<{
5364
+ baseEphemeralEnvironment: z.ZodOptional<z.ZodString>;
5365
+ ephemeral: z.ZodOptional<z.ZodBoolean>;
5366
+ name: z.ZodString;
5367
+ }, z.core.$strict>]>>;
5368
+ workspaceId: z.ZodOptional<PublicIdSchema>;
5369
+ }, z.core.$strip>;
5370
+ readonly kind: "write";
5371
+ readonly name: "build.create";
5372
+ readonly output: z.ZodObject<{
5373
+ build: z.ZodObject<{
5374
+ appId: z.ZodString;
5375
+ appName: z.ZodOptional<z.ZodString>;
5376
+ branch: z.ZodOptional<z.ZodString>;
5377
+ buildNumber: z.ZodOptional<z.ZodString>;
5378
+ commitSha: z.ZodOptional<z.ZodString>;
5379
+ createdAt: z.ZodISODateTime;
5380
+ deletedAt: z.ZodOptional<z.ZodISODateTime>;
5381
+ environmentId: z.ZodOptional<PublicIdSchema>;
5382
+ fileName: z.ZodString;
5383
+ id: z.ZodString;
5384
+ platform: z.ZodEnum<{
5385
+ android: "android";
5386
+ ios: "ios";
5387
+ }>;
5388
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
5389
+ version: z.ZodOptional<z.ZodString>;
5390
+ url: z.ZodURL;
5391
+ }, z.core.$strip>;
5392
+ }, z.core.$strip>;
5393
+ };
5394
+ get: {
5395
+ readonly annotationJustifications: {
5396
+ readonly destructiveHint: "Does not change the build.";
5397
+ readonly openWorldHint: "Reads QA Wolf data only.";
5398
+ readonly readOnlyHint: "Reads one build.";
5399
+ };
5400
+ readonly annotations: {
5401
+ readonly destructiveHint: false;
5402
+ readonly openWorldHint: false;
5403
+ readonly readOnlyHint: true;
5404
+ };
5405
+ readonly description: "Get a build: its app, platform, version and environment. Deleted builds are returned too.";
5406
+ readonly input: z.ZodObject<{
5407
+ buildId: z.ZodString;
5408
+ workspaceId: z.ZodOptional<PublicIdSchema>;
5409
+ }, z.core.$strip>;
5410
+ readonly kind: "read";
5411
+ readonly name: "build.get";
5412
+ readonly output: z.ZodObject<{
5413
+ build: z.ZodObject<{
5414
+ appId: z.ZodString;
5415
+ appName: z.ZodOptional<z.ZodString>;
5416
+ branch: z.ZodOptional<z.ZodString>;
5417
+ buildNumber: z.ZodOptional<z.ZodString>;
5418
+ commitSha: z.ZodOptional<z.ZodString>;
5419
+ createdAt: z.ZodISODateTime;
5420
+ deletedAt: z.ZodOptional<z.ZodISODateTime>;
5421
+ environmentId: z.ZodOptional<PublicIdSchema>;
5422
+ fileName: z.ZodString;
5423
+ id: z.ZodString;
5424
+ platform: z.ZodEnum<{
5425
+ android: "android";
5426
+ ios: "ios";
5427
+ }>;
5428
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
5429
+ version: z.ZodOptional<z.ZodString>;
5430
+ url: z.ZodURL;
5431
+ }, z.core.$strip>;
5432
+ }, z.core.$strip>;
5433
+ };
5434
+ list: {
5435
+ readonly annotationJustifications: {
5436
+ readonly destructiveHint: "Does not change any build.";
5437
+ readonly openWorldHint: "Reads QA Wolf data only.";
5438
+ readonly readOnlyHint: "Lists builds.";
5439
+ };
5440
+ readonly annotations: {
5441
+ readonly destructiveHint: false;
5442
+ readonly openWorldHint: false;
5443
+ readonly readOnlyHint: true;
5444
+ };
5445
+ readonly description: "List the workspace's undeleted builds, newest first. With latestOnly, list what the environment's next run installs.";
5446
+ readonly input: z.ZodObject<{
5447
+ cursor: z.ZodOptional<z.ZodString>;
5448
+ limit: z.ZodDefault<z.ZodNumber>;
5449
+ appId: z.ZodOptional<z.ZodString>;
5450
+ environmentId: z.ZodOptional<PublicIdSchema>;
5451
+ latestOnly: z.ZodDefault<z.ZodBoolean>;
5452
+ workspaceId: z.ZodOptional<PublicIdSchema>;
5453
+ }, z.core.$strip>;
5454
+ readonly kind: "read";
5455
+ readonly name: "build.list";
5456
+ readonly output: z.ZodObject<{
5457
+ builds: z.ZodArray<z.ZodObject<{
5458
+ appId: z.ZodString;
5459
+ appName: z.ZodOptional<z.ZodString>;
5460
+ branch: z.ZodOptional<z.ZodString>;
5461
+ buildNumber: z.ZodOptional<z.ZodString>;
5462
+ commitSha: z.ZodOptional<z.ZodString>;
5463
+ createdAt: z.ZodISODateTime;
5464
+ deletedAt: z.ZodOptional<z.ZodISODateTime>;
5465
+ environmentId: z.ZodOptional<PublicIdSchema>;
5466
+ fileName: z.ZodString;
5467
+ id: z.ZodString;
5468
+ platform: z.ZodEnum<{
5469
+ android: "android";
5470
+ ios: "ios";
5471
+ }>;
5472
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
5473
+ version: z.ZodOptional<z.ZodString>;
5474
+ url: z.ZodURL;
5475
+ }, z.core.$strip>>;
5476
+ nextCursor: z.ZodOptional<z.ZodString>;
5477
+ }, z.core.$strip>;
5478
+ };
5479
+ requestUpload: {
5480
+ readonly annotationJustifications: {
5481
+ readonly destructiveHint: "The URL only creates a new file. It cannot overwrite or delete one.";
5482
+ readonly openWorldHint: "The upload target is QA Wolf's run inputs storage, not an external service.";
5483
+ readonly readOnlyHint: "Returns an expiring URL that permits writing one file to the workspace's storage.";
5484
+ };
5485
+ readonly annotations: {
5486
+ readonly destructiveHint: false;
5487
+ readonly openWorldHint: false;
5488
+ readonly readOnlyHint: false;
5489
+ };
5490
+ readonly description: "Get a URL to upload an app build: an .apk, .aab or .ipa, up to 500 MB. PUT the file there with uploadHeaders, then call build.create with the buildId.";
5491
+ readonly input: z.ZodObject<{
5492
+ buildId: z.ZodOptional<z.ZodString>;
5493
+ fileName: z.ZodString;
5494
+ fileSizeBytes: z.ZodNumber;
5495
+ workspaceId: z.ZodOptional<PublicIdSchema>;
5496
+ }, z.core.$strip>;
5497
+ readonly kind: "write";
5498
+ readonly name: "build.requestUpload";
5499
+ readonly output: z.ZodObject<{
5500
+ buildId: z.ZodString;
5501
+ expiresAt: z.ZodISODateTime;
5502
+ uploadHeaders: z.ZodRecord<z.ZodString, z.ZodString>;
5503
+ uploadUrl: z.ZodString;
5504
+ }, z.core.$strip>;
5505
+ };
5506
+ };
5069
5507
  codeHostIntegration: {
5070
5508
  find: {
5071
5509
  readonly annotationJustifications: {
@@ -6304,6 +6742,7 @@ export declare const publicContractsV1: {
6304
6742
  title: z.ZodString;
6305
6743
  value: z.ZodString;
6306
6744
  }, z.core.$strip>>;
6745
+ body: z.ZodOptional<z.ZodString>;
6307
6746
  comparisonId: z.ZodOptional<z.ZodString>;
6308
6747
  text: z.ZodString;
6309
6748
  }, z.core.$strip>>;
@@ -6318,6 +6757,7 @@ export declare const publicContractsV1: {
6318
6757
  steps: z.ZodOptional<z.ZodArray<z.ZodString>>;
6319
6758
  subSessionIds: z.ZodArray<PublicIdSchema>;
6320
6759
  summary: z.ZodOptional<z.ZodString>;
6760
+ supersededByRunId: z.ZodOptional<PublicIdSchema>;
6321
6761
  updatedAt: z.ZodISODateTime;
6322
6762
  }, z.core.$strip>>;
6323
6763
  runId: PublicIdSchema;
@@ -6511,6 +6951,75 @@ export declare const publicContractsV1: {
6511
6951
  }, z.core.$strip>;
6512
6952
  }, z.core.$strip>;
6513
6953
  };
6954
+ decideSuggestion: {
6955
+ readonly annotationJustifications: {
6956
+ readonly destructiveHint: "Every decision can be undone until the flow joins, and nothing is deleted.";
6957
+ readonly openWorldHint: "An added suggestion writes its flow to the environment's flow code repository.";
6958
+ readonly readOnlyHint: "Records a decision on a suggestion and changes the issue's status.";
6959
+ };
6960
+ readonly annotations: {
6961
+ readonly destructiveHint: false;
6962
+ readonly openWorldHint: true;
6963
+ readonly readOnlyHint: false;
6964
+ };
6965
+ readonly description: string;
6966
+ readonly input: z.ZodObject<{
6967
+ decision: z.ZodEnum<{
6968
+ add: "add";
6969
+ report: "report";
6970
+ skip: "skip";
6971
+ undo: "undo";
6972
+ activate: "activate";
6973
+ }>;
6974
+ issueId: PublicIdSchema;
6975
+ skipReason: z.ZodOptional<z.ZodEnum<{
6976
+ "not-worth-testing": "not-worth-testing";
6977
+ "already-covered": "already-covered";
6978
+ "feature-removed": "feature-removed";
6979
+ }>>;
6980
+ }, z.core.$strip>;
6981
+ readonly kind: "write";
6982
+ readonly name: "issue.decideSuggestion";
6983
+ readonly output: z.ZodObject<{
6984
+ issue: z.ZodObject<{
6985
+ coveredFlowIds: z.ZodArray<PublicIdSchema>;
6986
+ createdAt: z.ZodCoercedDate<unknown>;
6987
+ description: z.ZodString;
6988
+ issueId: PublicIdSchema;
6989
+ name: z.ZodString;
6990
+ number: z.ZodNumber;
6991
+ priority: z.ZodEnum<{
6992
+ unprioritized: "unprioritized";
6993
+ low: "low";
6994
+ medium: "medium";
6995
+ high: "high";
6996
+ urgent: "urgent";
6997
+ }>;
6998
+ reproductions: z.ZodArray<z.ZodObject<{
6999
+ environmentId: PublicIdSchema;
7000
+ firstReproducedInRunId: PublicIdSchema;
7001
+ flowId: PublicIdSchema;
7002
+ isActive: z.ZodBoolean;
7003
+ lastReproducedInRunId: PublicIdSchema;
7004
+ }, z.core.$strip>>;
7005
+ status: z.ZodEnum<{
7006
+ pending: "pending";
7007
+ canceled: "canceled";
7008
+ backlog: "backlog";
7009
+ inProgress: "inProgress";
7010
+ paused: "paused";
7011
+ resolved: "resolved";
7012
+ archived: "archived";
7013
+ }>;
7014
+ type: z.ZodEnum<{
7015
+ bug: "bug";
7016
+ maintenance: "maintenance";
7017
+ coverageRequest: "coverageRequest";
7018
+ }>;
7019
+ url: z.ZodURL;
7020
+ }, z.core.$strip>;
7021
+ }, z.core.$strip>;
7022
+ };
6514
7023
  find: {
6515
7024
  readonly annotationJustifications: {
6516
7025
  readonly destructiveHint: "Does not edit issue details, statuses or coverage associations.";
@@ -6986,6 +7495,31 @@ export declare const publicContractsV1: {
6986
7495
  }, z.core.$strip>;
6987
7496
  };
6988
7497
  };
7498
+ mcpServer: {
7499
+ connect: {
7500
+ readonly annotationJustifications: {
7501
+ readonly destructiveHint: "Starts a sign-in without changing or removing existing connections.";
7502
+ readonly openWorldHint: "Asks the external server's OAuth provider for a sign-in page.";
7503
+ readonly readOnlyHint: "Records a pending connection on the workspace.";
7504
+ };
7505
+ readonly annotations: {
7506
+ readonly destructiveHint: false;
7507
+ readonly openWorldHint: true;
7508
+ readonly readOnlyHint: false;
7509
+ };
7510
+ readonly description: "Start connecting an MCP server from the workspace's catalog, such as Linear, so Tester can use its tools. Returns a sign-in link to show the user.";
7511
+ readonly input: z.ZodObject<{
7512
+ server: z.ZodString;
7513
+ workspaceId: z.ZodOptional<PublicIdSchema>;
7514
+ }, z.core.$strip>;
7515
+ readonly kind: "write";
7516
+ readonly name: "mcpServer.connect";
7517
+ readonly output: z.ZodObject<{
7518
+ authorizationUrl: z.ZodString;
7519
+ serverName: z.ZodString;
7520
+ }, z.core.$strip>;
7521
+ };
7522
+ };
6989
7523
  promotion: {
6990
7524
  find: {
6991
7525
  readonly annotationJustifications: {
@@ -7691,18 +8225,18 @@ export declare const publicContractsV1: {
7691
8225
  failureReason: z.ZodLiteral<"runner-target-mismatch">;
7692
8226
  outcome: z.ZodLiteral<"failure">;
7693
8227
  requiredRunnerName: z.ZodEnum<{
7694
- basic: "basic";
7695
- playwright: "playwright";
7696
8228
  android: "android";
7697
8229
  ios: "ios";
8230
+ basic: "basic";
8231
+ playwright: "playwright";
7698
8232
  windows: "windows";
7699
8233
  mac: "mac";
7700
8234
  }>;
7701
8235
  runnerName: z.ZodEnum<{
7702
- basic: "basic";
7703
- playwright: "playwright";
7704
8236
  android: "android";
7705
8237
  ios: "ios";
8238
+ basic: "basic";
8239
+ playwright: "playwright";
7706
8240
  windows: "windows";
7707
8241
  mac: "mac";
7708
8242
  }>;
@@ -7754,7 +8288,7 @@ export declare const publicContractsV1: {
7754
8288
  readonly openWorldHint: false;
7755
8289
  readonly readOnlyHint: false;
7756
8290
  };
7757
- readonly description: "Take one screenshot of an interactive runner's screen. On a runner with a browser the image is the whole virtual desktop, browser window and all; this refreshes the inactivity timer and can extend the runner's billed lifetime. On a mobile runner it is the device's own screen, and on Windows the VM's whole desktop, re-encoded to JPEG on the pod so this contract reads one image format regardless of runner family. `screen-needs-a-run` if the runner's virtual desktop has never started. Waiting will not change this and retrying is pointless — call `runner.runFlow` with a flow that opens a browser, then ask for the screen again. On a Windows runner any flow run claims the VM and brings up its screen. On a runner image with a browser that has never run anything, any `runner.performAction` also starts the browser itself. Evaluating a snippet does not start the desktop. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. On a mobile or Windows runner, `screen-not-ready` can also mean its Appium session did not answer in time; if it persists after 3 tries, terminate the runner and launch it again with the same id and runnerName. `runner-has-no-screen` if this runner has no browser desktop to see or drive, and retrying will never help. Launch a `playwright` runner. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may be too busy to answer. Nothing was changed, so retrying is safe; if it persists, launch the runner again.";
8291
+ readonly description: "Take one screenshot of an interactive runner's screen. This refreshes the inactivity timer and can extend the runner's billed lifetime. On a runner with a browser the image is the whole virtual desktop, browser window and all. On a mobile runner it is the device's own screen, and on Windows the VM's whole desktop, re-encoded to JPEG on the pod so this contract reads one image format regardless of runner family. `screen-needs-a-run` if the runner's virtual desktop has never started. Waiting will not change this and retrying is pointless — call `runner.runFlow` with a flow that opens a browser, then ask for the screen again. On a Windows runner any flow run claims the VM and brings up its screen. On a runner image with a browser that has never run anything, any `runner.performAction` also starts the browser itself. Evaluating a snippet does not start the desktop. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. On a mobile or Windows runner, `screen-not-ready` can also mean its Appium session did not answer in time; if it persists after 3 tries, terminate the runner and launch it again with the same id and runnerName. `runner-has-no-screen` if this runner has no browser desktop to see or drive, and retrying will never help. Launch a `playwright` runner. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may be too busy to answer. Nothing was changed, so retrying is safe; if it persists, launch the runner again.";
7758
8292
  readonly input: z.ZodObject<{
7759
8293
  id: z.ZodString;
7760
8294
  workspaceId: z.ZodOptional<PublicIdSchema>;
@@ -8101,14 +8635,14 @@ export declare const publicContractsV1: {
8101
8635
  readonly annotationJustifications: {
8102
8636
  readonly destructiveHint: "Does not change application data, edit tests, or stop the runner.";
8103
8637
  readonly openWorldHint: "Inspects the existing QA Wolf mobile runner without submitting application actions or contacting arbitrary services.";
8104
- readonly readOnlyHint: "Reads mobile session status, contexts, page source, or elements without refreshing the runner's inactivity timer.";
8638
+ readonly readOnlyHint: "Reads mobile session status, contexts, page source, or elements and refreshes activity, which can cancel an inactivity shutdown.";
8105
8639
  };
8106
8640
  readonly annotations: {
8107
8641
  readonly destructiveHint: false;
8108
8642
  readonly openWorldHint: false;
8109
- readonly readOnlyHint: true;
8643
+ readonly readOnlyHint: false;
8110
8644
  };
8111
- readonly description: "Inspect one thing on a mobile or Windows interactive runner: the Appium session's status, the contexts available (WebViews on mobile, top-level windows on Windows), the current context's page source, or the elements at a point, carrying some text, or matching a selector. This does not refresh the runner's inactivity timer. Mobile and Windows only — a browser runner answers `runner-is-not-mobile`; call `runner.inspect` for a browser's equivalent surface instead. `what: \"session\"` always answers with the session's own status rather than `screen-needs-a-run`, since that is the question it exists to answer; the other three request kinds need a live session first and answer the same `screen-needs-a-run` or `screen-not-ready` outcomes `runner.performAction` and `runner.takeScreenshot` use, instead of reading anything when there is none. `screen-needs-a-run` means no Appium session has started on this runner yet — call `runner.runFlow` with a flow that opens one, then inspect again. `screen-not-ready` means the runner's Appium session exists but did not answer this instant, or more than one is somehow live — retry once; if it persists, relaunch the runner. `runner-is-not-mobile` means there is nothing here to inspect, and retrying will never help — launch an `android`, `ios` or `windows` runner instead. `invalid-selector` (elements by selector only) means the selector itself could not be parsed under the given `strategy` — distinct from a selector that parsed fine but matched nothing, which answers `matches: []` instead. `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.";
8645
+ readonly description: "Inspect one thing on a mobile or Windows interactive runner: the Appium session's status, the contexts available (WebViews on mobile, top-level windows on Windows), the current context's page source, or the elements at a point, carrying some text, or matching a selector. This refreshes the inactivity timer and can extend the runner's billed lifetime. Mobile and Windows only — a browser runner answers `runner-is-not-mobile`; call `runner.inspect` for a browser's equivalent surface instead. `what: \"session\"` always answers with the session's own status rather than `screen-needs-a-run`, since that is the question it exists to answer; the other three request kinds need a live session first and answer the same `screen-needs-a-run` or `screen-not-ready` outcomes `runner.performAction` and `runner.takeScreenshot` use, instead of reading anything when there is none. `screen-needs-a-run` means no Appium session has started on this runner yet — call `runner.runFlow` with a flow that opens one, then inspect again. `screen-not-ready` means the runner's Appium session exists but did not answer this instant, or more than one is somehow live — retry once; if it persists, relaunch the runner. `runner-is-not-mobile` means there is nothing here to inspect, and retrying will never help — launch an `android`, `ios` or `windows` runner instead. `invalid-selector` (elements by selector only) means the selector itself could not be parsed under the given `strategy` — distinct from a selector that parsed fine but matched nothing, which answers `matches: []` instead. `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.";
8112
8646
  readonly input: z.ZodObject<{
8113
8647
  id: z.ZodString;
8114
8648
  request: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -8338,10 +8872,10 @@ export declare const publicContractsV1: {
8338
8872
  id: z.ZodString;
8339
8873
  initialUrl: z.ZodOptional<z.ZodURL>;
8340
8874
  runnerName: z.ZodOptional<z.ZodEnum<{
8341
- basic: "basic";
8342
- playwright: "playwright";
8343
8875
  android: "android";
8344
8876
  ios: "ios";
8877
+ basic: "basic";
8878
+ playwright: "playwright";
8345
8879
  windows: "windows";
8346
8880
  mac: "mac";
8347
8881
  }>>;
@@ -8353,10 +8887,10 @@ export declare const publicContractsV1: {
8353
8887
  gpuAccelerated: z.ZodBoolean;
8354
8888
  id: z.ZodString;
8355
8889
  runnerName: z.ZodEnum<{
8356
- basic: "basic";
8357
- playwright: "playwright";
8358
8890
  android: "android";
8359
8891
  ios: "ios";
8892
+ basic: "basic";
8893
+ playwright: "playwright";
8360
8894
  windows: "windows";
8361
8895
  mac: "mac";
8362
8896
  }>;
@@ -8388,10 +8922,10 @@ export declare const publicContractsV1: {
8388
8922
  gpuAccelerated: z.ZodBoolean;
8389
8923
  id: z.ZodString;
8390
8924
  runnerName: z.ZodEnum<{
8391
- basic: "basic";
8392
- playwright: "playwright";
8393
8925
  android: "android";
8394
8926
  ios: "ios";
8927
+ basic: "basic";
8928
+ playwright: "playwright";
8395
8929
  windows: "windows";
8396
8930
  mac: "mac";
8397
8931
  }>;
@@ -8865,6 +9399,7 @@ export declare const publicContractsV1: {
8865
9399
  generativeSuite: "generativeSuite";
8866
9400
  }>>;
8867
9401
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
9402
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
8868
9403
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
8869
9404
  }, z.core.$strip>;
8870
9405
  cadence: z.ZodEnum<{
@@ -8907,6 +9442,7 @@ export declare const publicContractsV1: {
8907
9442
  generativeSuite: "generativeSuite";
8908
9443
  }>>;
8909
9444
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
9445
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
8910
9446
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
8911
9447
  }, z.core.$strip>;
8912
9448
  branchPattern: z.ZodOptional<z.ZodString>;
@@ -8933,6 +9469,7 @@ export declare const publicContractsV1: {
8933
9469
  generativeSuite: "generativeSuite";
8934
9470
  }>>;
8935
9471
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
9472
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
8936
9473
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
8937
9474
  }, z.core.$strip>;
8938
9475
  cadence: z.ZodEnum<{
@@ -8973,6 +9510,7 @@ export declare const publicContractsV1: {
8973
9510
  generativeSuite: "generativeSuite";
8974
9511
  }>>;
8975
9512
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
9513
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
8976
9514
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
8977
9515
  }, z.core.$strip>;
8978
9516
  branchPattern: z.ZodOptional<z.ZodString>;
@@ -9049,6 +9587,7 @@ export declare const publicContractsV1: {
9049
9587
  generativeSuite: "generativeSuite";
9050
9588
  }>>;
9051
9589
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
9590
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
9052
9591
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
9053
9592
  }, z.core.$strip>;
9054
9593
  cadence: z.ZodEnum<{
@@ -9089,6 +9628,7 @@ export declare const publicContractsV1: {
9089
9628
  generativeSuite: "generativeSuite";
9090
9629
  }>>;
9091
9630
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
9631
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
9092
9632
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
9093
9633
  }, z.core.$strip>;
9094
9634
  branchPattern: z.ZodOptional<z.ZodString>;
@@ -9143,6 +9683,7 @@ export declare const publicContractsV1: {
9143
9683
  generativeSuite: "generativeSuite";
9144
9684
  }>>;
9145
9685
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
9686
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
9146
9687
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
9147
9688
  }, z.core.$strip>;
9148
9689
  cadence: z.ZodEnum<{
@@ -9183,6 +9724,7 @@ export declare const publicContractsV1: {
9183
9724
  generativeSuite: "generativeSuite";
9184
9725
  }>>;
9185
9726
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
9727
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
9186
9728
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
9187
9729
  }, z.core.$strip>;
9188
9730
  branchPattern: z.ZodOptional<z.ZodString>;
@@ -9237,6 +9779,7 @@ export declare const publicContractsV1: {
9237
9779
  generativeSuite: "generativeSuite";
9238
9780
  }>>;
9239
9781
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
9782
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
9240
9783
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
9241
9784
  }, z.core.$strip>;
9242
9785
  cadence: z.ZodEnum<{
@@ -9277,6 +9820,7 @@ export declare const publicContractsV1: {
9277
9820
  generativeSuite: "generativeSuite";
9278
9821
  }>>;
9279
9822
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
9823
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
9280
9824
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
9281
9825
  }, z.core.$strip>;
9282
9826
  branchPattern: z.ZodOptional<z.ZodString>;
@@ -9331,6 +9875,7 @@ export declare const publicContractsV1: {
9331
9875
  generativeSuite: "generativeSuite";
9332
9876
  }>>;
9333
9877
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
9878
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
9334
9879
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
9335
9880
  }, z.core.$strip>;
9336
9881
  cadence: z.ZodEnum<{
@@ -9371,6 +9916,7 @@ export declare const publicContractsV1: {
9371
9916
  generativeSuite: "generativeSuite";
9372
9917
  }>>;
9373
9918
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
9919
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
9374
9920
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
9375
9921
  }, z.core.$strip>;
9376
9922
  branchPattern: z.ZodOptional<z.ZodString>;
@@ -9418,6 +9964,7 @@ export declare const publicContractsV1: {
9418
9964
  generativeSuite: "generativeSuite";
9419
9965
  }>>;
9420
9966
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
9967
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
9421
9968
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
9422
9969
  }, z.core.$strip>;
9423
9970
  cadence: z.ZodEnum<{
@@ -9460,6 +10007,7 @@ export declare const publicContractsV1: {
9460
10007
  generativeSuite: "generativeSuite";
9461
10008
  }>>;
9462
10009
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
10010
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
9463
10011
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
9464
10012
  }, z.core.$strip>;
9465
10013
  branchPattern: z.ZodOptional<z.ZodString>;
@@ -9486,6 +10034,7 @@ export declare const publicContractsV1: {
9486
10034
  generativeSuite: "generativeSuite";
9487
10035
  }>>;
9488
10036
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
10037
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
9489
10038
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
9490
10039
  }, z.core.$strip>;
9491
10040
  cadence: z.ZodEnum<{
@@ -9526,6 +10075,7 @@ export declare const publicContractsV1: {
9526
10075
  generativeSuite: "generativeSuite";
9527
10076
  }>>;
9528
10077
  runConcurrencyLimit: z.ZodOptional<z.ZodString>;
10078
+ suggestCoverage: z.ZodOptional<z.ZodBoolean>;
9529
10079
  tagNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
9530
10080
  }, z.core.$strip>;
9531
10081
  branchPattern: z.ZodOptional<z.ZodString>;