@qawolf/api-contracts 0.25.0 → 0.26.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.
@@ -306,6 +306,53 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
306
306
  };
307
307
  };
308
308
  issue: {
309
+ addFlows: {
310
+ readonly description: string;
311
+ readonly input: z.ZodObject<{
312
+ flowIds: z.ZodArray<FlowId>;
313
+ issueId: IssueId;
314
+ }, z.core.$strip>;
315
+ readonly kind: "write";
316
+ readonly name: "issue.addFlows";
317
+ readonly output: z.ZodObject<{
318
+ issue: z.ZodObject<{
319
+ coveredFlowIds: z.ZodArray<FlowId>;
320
+ createdAt: z.ZodCoercedDate<unknown>;
321
+ description: z.ZodString;
322
+ issueId: IssueId;
323
+ name: z.ZodString;
324
+ number: z.ZodNumber;
325
+ priority: z.ZodEnum<{
326
+ unprioritized: "unprioritized";
327
+ low: "low";
328
+ medium: "medium";
329
+ high: "high";
330
+ urgent: "urgent";
331
+ }>;
332
+ reproductions: z.ZodArray<z.ZodObject<{
333
+ environmentId: EnvironmentId;
334
+ firstReproducedInRunId: RunId;
335
+ flowId: FlowId;
336
+ isActive: z.ZodBoolean;
337
+ lastReproducedInRunId: RunId;
338
+ }, z.core.$strip>>;
339
+ status: z.ZodEnum<{
340
+ pending: "pending";
341
+ inProgress: "inProgress";
342
+ paused: "paused";
343
+ resolved: "resolved";
344
+ canceled: "canceled";
345
+ archived: "archived";
346
+ }>;
347
+ type: z.ZodEnum<{
348
+ bug: "bug";
349
+ coverageRequest: "coverageRequest";
350
+ maintenance: "maintenance";
351
+ }>;
352
+ url: z.ZodURL;
353
+ }, z.core.$strip>;
354
+ }, z.core.$strip>;
355
+ };
309
356
  create: {
310
357
  readonly description: string;
311
358
  readonly input: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -338,6 +385,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
338
385
  readonly name: "issue.create";
339
386
  readonly output: z.ZodObject<{
340
387
  issue: z.ZodObject<{
388
+ coveredFlowIds: z.ZodArray<FlowId>;
341
389
  createdAt: z.ZodCoercedDate<unknown>;
342
390
  description: z.ZodString;
343
391
  issueId: IssueId;
@@ -398,6 +446,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
398
446
  readonly name: "issue.find";
399
447
  readonly output: z.ZodObject<{
400
448
  issues: z.ZodArray<z.ZodObject<{
449
+ coveredFlowIds: z.ZodArray<FlowId>;
401
450
  createdAt: z.ZodCoercedDate<unknown>;
402
451
  description: z.ZodString;
403
452
  issueId: IssueId;
@@ -444,6 +493,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
444
493
  readonly name: "issue.get";
445
494
  readonly output: z.ZodObject<{
446
495
  issue: z.ZodObject<{
496
+ coveredFlowIds: z.ZodArray<FlowId>;
447
497
  createdAt: z.ZodCoercedDate<unknown>;
448
498
  description: z.ZodString;
449
499
  issueId: IssueId;
@@ -506,6 +556,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
506
556
  readonly name: "issue.update";
507
557
  readonly output: z.ZodObject<{
508
558
  issue: z.ZodObject<{
559
+ coveredFlowIds: z.ZodArray<FlowId>;
509
560
  createdAt: z.ZodCoercedDate<unknown>;
510
561
  description: z.ZodString;
511
562
  issueId: IssueId;
@@ -755,7 +806,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
755
806
  }, z.core.$strip>;
756
807
  };
757
808
  performAction: {
758
- readonly description: "Perform one raw browser action on an interactive runner: click, double_click, move, drag, scroll, keypress, type, or navigate. Coordinates are whole pixels on the runner's virtual desktop, in the same space as `runner.takeScreenshot`. One action per request, and the runner serves one at a time. The action shapes follow the computer-use vocabulary, minus `screenshot` (use `runner.takeScreenshot`) and `wait` (delay on the caller's side). `performed` if the action took effect. `action-failed`, with a reason, if it reached the runner and did not take effect. `screen-needs-a-run` if the runner has not run anything yet, so its virtual desktop has never started. Waiting will not change this and retrying is pointless — call `runner.runFlow` on the runner, then ask for the screen again. 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. A `navigate` does not go through the screen, so a screen that is not ready does not stop it — but it still needs the runner to have run something, and until then it answers `action-failed` rather than `screen-needs-a-run`. `runner-has-no-screen` if this runner is not one that runs a browser on a virtual desktop. Nothing about it can be seen or driven, and retrying will never help — launch a `node20WithPlaywright` 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 have stopped answering mid-action. This does not mean the action was not performed — take a screenshot before repeating it.";
809
+ readonly description: "Perform one raw browser action on an interactive runner: click, double_click, move, drag, scroll, keypress, type, or navigate. Coordinates are whole pixels on the runner's virtual desktop, in the same space as `runner.takeScreenshot`. One action per request, and the runner serves one at a time. The action shapes follow the computer-use vocabulary, minus `screenshot` (use `runner.takeScreenshot`) and `wait` (delay on the caller's side). `performed` if the action took effect. `action-failed`, with a reason, if it reached the runner and did not take effect. On a runner image with a browser, the first action on a runner that has never run anything starts its browser and waits for it, so it can take up to a minute to answer — no `runner.runFlow` is needed before acting; if the browser is still starting when the wait runs out, the answer is `screen-not-ready` and retrying converges. `screen-needs-a-run` if the browser could not be started that way — usually a runner whose runs all finished without starting its desktop; call `runner.runFlow` with a flow that opens a browser. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. A `navigate` does not go through the screen, so a screen that is not ready does not stop it. `runner-has-no-screen` if this runner is not one that runs a browser on a virtual desktop. Nothing about it can be seen or driven, and retrying will never help — launch a `node20WithPlaywright` 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 have stopped answering mid-action. This does not mean the action was not performed — take a screenshot before repeating it.";
759
810
  readonly input: z.ZodObject<{
760
811
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
761
812
  button: z.ZodLiteral<"left" | "right" | "wheel" | "back" | "forward">;
@@ -887,7 +938,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
887
938
  }, z.core.$strip>;
888
939
  };
889
940
  takeScreenshot: {
890
- readonly description: "Take one screenshot of an interactive runner's screen. The image is the runner's whole virtual desktop, browser window and all. `screen-needs-a-run` if the runner has not run anything yet, so its virtual desktop has never started. Waiting will not change this and retrying is pointless — call `runner.runFlow` on the runner, then ask for the screen again. Evaluating a snippet does not start the desktop. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. `runner-has-no-screen` if this runner is not one that runs a browser on a virtual desktop. Nothing about it can be seen or driven, and retrying will never help — launch a `node20WithPlaywright` 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.";
941
+ readonly description: "Take one screenshot of an interactive runner's screen. The image is the runner's whole virtual desktop, browser window and all. `screen-needs-a-run` if the runner's virtual desktop has never started. Waiting will not change this and retrying is pointless — call `runner.runFlow` with a flow that opens a browser, then ask for the screen again. On a runner image with a browser that has never run anything, any `runner.performAction` also starts the browser itself. Evaluating a snippet does not start the desktop. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. `runner-has-no-screen` if this runner is not one that runs a browser on a virtual desktop. Nothing about it can be seen or driven, and retrying will never help — launch a `node20WithPlaywright` 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.";
891
942
  readonly input: z.ZodObject<{
892
943
  id: z.ZodString;
893
944
  }, z.core.$strip>;
@@ -1228,6 +1279,53 @@ export declare const publicContractsV1: {
1228
1279
  };
1229
1280
  };
1230
1281
  issue: {
1282
+ addFlows: {
1283
+ readonly description: string;
1284
+ readonly input: z.ZodObject<{
1285
+ flowIds: z.ZodArray<PublicIdSchema>;
1286
+ issueId: PublicIdSchema;
1287
+ }, z.core.$strip>;
1288
+ readonly kind: "write";
1289
+ readonly name: "issue.addFlows";
1290
+ readonly output: z.ZodObject<{
1291
+ issue: z.ZodObject<{
1292
+ coveredFlowIds: z.ZodArray<PublicIdSchema>;
1293
+ createdAt: z.ZodCoercedDate<unknown>;
1294
+ description: z.ZodString;
1295
+ issueId: PublicIdSchema;
1296
+ name: z.ZodString;
1297
+ number: z.ZodNumber;
1298
+ priority: z.ZodEnum<{
1299
+ unprioritized: "unprioritized";
1300
+ low: "low";
1301
+ medium: "medium";
1302
+ high: "high";
1303
+ urgent: "urgent";
1304
+ }>;
1305
+ reproductions: z.ZodArray<z.ZodObject<{
1306
+ environmentId: PublicIdSchema;
1307
+ firstReproducedInRunId: PublicIdSchema;
1308
+ flowId: PublicIdSchema;
1309
+ isActive: z.ZodBoolean;
1310
+ lastReproducedInRunId: PublicIdSchema;
1311
+ }, z.core.$strip>>;
1312
+ status: z.ZodEnum<{
1313
+ pending: "pending";
1314
+ inProgress: "inProgress";
1315
+ paused: "paused";
1316
+ resolved: "resolved";
1317
+ canceled: "canceled";
1318
+ archived: "archived";
1319
+ }>;
1320
+ type: z.ZodEnum<{
1321
+ bug: "bug";
1322
+ coverageRequest: "coverageRequest";
1323
+ maintenance: "maintenance";
1324
+ }>;
1325
+ url: z.ZodURL;
1326
+ }, z.core.$strip>;
1327
+ }, z.core.$strip>;
1328
+ };
1231
1329
  create: {
1232
1330
  readonly description: string;
1233
1331
  readonly input: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1260,6 +1358,7 @@ export declare const publicContractsV1: {
1260
1358
  readonly name: "issue.create";
1261
1359
  readonly output: z.ZodObject<{
1262
1360
  issue: z.ZodObject<{
1361
+ coveredFlowIds: z.ZodArray<PublicIdSchema>;
1263
1362
  createdAt: z.ZodCoercedDate<unknown>;
1264
1363
  description: z.ZodString;
1265
1364
  issueId: PublicIdSchema;
@@ -1320,6 +1419,7 @@ export declare const publicContractsV1: {
1320
1419
  readonly name: "issue.find";
1321
1420
  readonly output: z.ZodObject<{
1322
1421
  issues: z.ZodArray<z.ZodObject<{
1422
+ coveredFlowIds: z.ZodArray<PublicIdSchema>;
1323
1423
  createdAt: z.ZodCoercedDate<unknown>;
1324
1424
  description: z.ZodString;
1325
1425
  issueId: PublicIdSchema;
@@ -1366,6 +1466,7 @@ export declare const publicContractsV1: {
1366
1466
  readonly name: "issue.get";
1367
1467
  readonly output: z.ZodObject<{
1368
1468
  issue: z.ZodObject<{
1469
+ coveredFlowIds: z.ZodArray<PublicIdSchema>;
1369
1470
  createdAt: z.ZodCoercedDate<unknown>;
1370
1471
  description: z.ZodString;
1371
1472
  issueId: PublicIdSchema;
@@ -1428,6 +1529,7 @@ export declare const publicContractsV1: {
1428
1529
  readonly name: "issue.update";
1429
1530
  readonly output: z.ZodObject<{
1430
1531
  issue: z.ZodObject<{
1532
+ coveredFlowIds: z.ZodArray<PublicIdSchema>;
1431
1533
  createdAt: z.ZodCoercedDate<unknown>;
1432
1534
  description: z.ZodString;
1433
1535
  issueId: PublicIdSchema;
@@ -1677,7 +1779,7 @@ export declare const publicContractsV1: {
1677
1779
  }, z.core.$strip>;
1678
1780
  };
1679
1781
  performAction: {
1680
- readonly description: "Perform one raw browser action on an interactive runner: click, double_click, move, drag, scroll, keypress, type, or navigate. Coordinates are whole pixels on the runner's virtual desktop, in the same space as `runner.takeScreenshot`. One action per request, and the runner serves one at a time. The action shapes follow the computer-use vocabulary, minus `screenshot` (use `runner.takeScreenshot`) and `wait` (delay on the caller's side). `performed` if the action took effect. `action-failed`, with a reason, if it reached the runner and did not take effect. `screen-needs-a-run` if the runner has not run anything yet, so its virtual desktop has never started. Waiting will not change this and retrying is pointless — call `runner.runFlow` on the runner, then ask for the screen again. 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. A `navigate` does not go through the screen, so a screen that is not ready does not stop it — but it still needs the runner to have run something, and until then it answers `action-failed` rather than `screen-needs-a-run`. `runner-has-no-screen` if this runner is not one that runs a browser on a virtual desktop. Nothing about it can be seen or driven, and retrying will never help — launch a `node20WithPlaywright` 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 have stopped answering mid-action. This does not mean the action was not performed — take a screenshot before repeating it.";
1782
+ readonly description: "Perform one raw browser action on an interactive runner: click, double_click, move, drag, scroll, keypress, type, or navigate. Coordinates are whole pixels on the runner's virtual desktop, in the same space as `runner.takeScreenshot`. One action per request, and the runner serves one at a time. The action shapes follow the computer-use vocabulary, minus `screenshot` (use `runner.takeScreenshot`) and `wait` (delay on the caller's side). `performed` if the action took effect. `action-failed`, with a reason, if it reached the runner and did not take effect. On a runner image with a browser, the first action on a runner that has never run anything starts its browser and waits for it, so it can take up to a minute to answer — no `runner.runFlow` is needed before acting; if the browser is still starting when the wait runs out, the answer is `screen-not-ready` and retrying converges. `screen-needs-a-run` if the browser could not be started that way — usually a runner whose runs all finished without starting its desktop; call `runner.runFlow` with a flow that opens a browser. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. A `navigate` does not go through the screen, so a screen that is not ready does not stop it. `runner-has-no-screen` if this runner is not one that runs a browser on a virtual desktop. Nothing about it can be seen or driven, and retrying will never help — launch a `node20WithPlaywright` 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 have stopped answering mid-action. This does not mean the action was not performed — take a screenshot before repeating it.";
1681
1783
  readonly input: z.ZodObject<{
1682
1784
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
1683
1785
  button: z.ZodLiteral<"left" | "right" | "wheel" | "back" | "forward">;
@@ -1809,7 +1911,7 @@ export declare const publicContractsV1: {
1809
1911
  }, z.core.$strip>;
1810
1912
  };
1811
1913
  takeScreenshot: {
1812
- readonly description: "Take one screenshot of an interactive runner's screen. The image is the runner's whole virtual desktop, browser window and all. `screen-needs-a-run` if the runner has not run anything yet, so its virtual desktop has never started. Waiting will not change this and retrying is pointless — call `runner.runFlow` on the runner, then ask for the screen again. Evaluating a snippet does not start the desktop. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. `runner-has-no-screen` if this runner is not one that runs a browser on a virtual desktop. Nothing about it can be seen or driven, and retrying will never help — launch a `node20WithPlaywright` 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.";
1914
+ readonly description: "Take one screenshot of an interactive runner's screen. The image is the runner's whole virtual desktop, browser window and all. `screen-needs-a-run` if the runner's virtual desktop has never started. Waiting will not change this and retrying is pointless — call `runner.runFlow` with a flow that opens a browser, then ask for the screen again. On a runner image with a browser that has never run anything, any `runner.performAction` also starts the browser itself. Evaluating a snippet does not start the desktop. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. `runner-has-no-screen` if this runner is not one that runs a browser on a virtual desktop. Nothing about it can be seen or driven, and retrying will never help — launch a `node20WithPlaywright` 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.";
1813
1915
  readonly input: z.ZodObject<{
1814
1916
  id: z.ZodString;
1815
1917
  }, z.core.$strip>;
@@ -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;AAG9B,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,qB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
package/dist/v1/index.js CHANGED
@@ -27,6 +27,7 @@ import { makeAddTagToFlowsContract } from "./flow/addTag.js";
27
27
  import { makeListFlowsContract } from "./flow/index.js";
28
28
  import { makeUpdateFlowContract } from "./flow/update.js";
29
29
  import { defaultIdSchemas, } from "./ids.js";
30
+ import { makeAddFlowsToIssueContract } from "./issue/addFlows.js";
30
31
  import { makeCreateIssueContract } from "./issue/create.js";
31
32
  import { makeFindIssuesContract, makeGetIssueContract } from "./issue/index.js";
32
33
  import { makeUpdateIssueContract } from "./issue/update.js";
@@ -70,6 +71,7 @@ export const makeContractsV1 = (ids) => {
70
71
  update: makeUpdateFlowContract(resolvedIds),
71
72
  },
72
73
  issue: {
74
+ addFlows: makeAddFlowsToIssueContract(resolvedIds),
73
75
  create: makeCreateIssueContract(resolvedIds),
74
76
  find: makeFindIssuesContract(resolvedIds),
75
77
  get: makeGetIssueContract(resolvedIds),
@@ -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,2BAA2B,CAAC;AACnC,4EAA4E;AAC5E,+EAA+E;AAC/E,6DAA6D;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,iFAAiF;AACjF,iFAAiF;AACjF,+EAA+E;AAC/E,gFAAgF;AAChF,OAAO,EACL,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,gBAAgB,EAChB,cAAc,EACd,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,gFAAgF;AAChF,yEAAyE;AACzE,OAAO,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AAM,EAAE,yBAAyB,CAAC,WAAW,CAAC;YAC9C,IAAI,EAAE,qBAAqB,CAAC,WAAW,CAAC;YACxC,MAAM,EAAE,sBAAsB,CAAC,WAAW,CAAC;SAC5C;QACD,KAAK,EAAE;YACL,QAAQ,EAAE,2BAA2B,CAAC,WAAW,CAAC;YAClD,MAAM,EAAE,uBAAuB,CAAC,WAAW,CAAC;YAC5C,IAAI,EAAE,sBAAsB,CAAC,WAAW,CAAC;YACzC,GAAG,EAAE,oBAAoB,CAAC,WAAW,CAAC;YACtC,MAAM,EAAE,uBAAuB,CAAC,WAAW,CAAC;SAC7C;QACD,GAAG,EAAE;YACH,MAAM,EAAE,qBAAqB,CAAC,WAAW,CAAC;YAC1C,IAAI,EAAE,oBAAoB,CAAC,WAAW,CAAC;YACvC,GAAG,EAAE,kBAAkB,CAAC,WAAW,CAAC;SACrC;QACD,MAAM,EAAE;YACN,eAAe,EAAE,mCAAmC,EAAE;YACtD,MAAM,EAAE,wBAAwB,EAAE;YAClC,aAAa,EAAE,iCAAiC,EAAE;YAClD,WAAW,EAAE,6BAA6B,EAAE;YAC5C,OAAO,EAAE,2BAA2B,EAAE;YACtC,IAAI,EAAE,sBAAsB,EAAE;YAC9B,cAAc,EAAE,kCAAkC,EAAE;SACrD;QACD,GAAG,EAAE;YACH,MAAM,EAAE,qBAAqB,EAAE;YAC/B,IAAI,EAAE,oBAAoB,CAAC,WAAW,CAAC;SACxC;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC,gBAAgB,CAAC,CAAC"}
@@ -0,0 +1,55 @@
1
+ import { z } from "zod";
2
+ import type { PublicIdSchema } from "../ids.js";
3
+ export declare const makeAddFlowsToIssueContract: <EnvironmentId extends PublicIdSchema, FlowId extends PublicIdSchema, RunId extends PublicIdSchema, IssueId extends PublicIdSchema>(ids: {
4
+ environment: EnvironmentId;
5
+ flow: FlowId;
6
+ issue: IssueId;
7
+ run: RunId;
8
+ }) => {
9
+ readonly description: string;
10
+ readonly input: z.ZodObject<{
11
+ flowIds: z.ZodArray<FlowId>;
12
+ issueId: IssueId;
13
+ }, z.core.$strip>;
14
+ readonly kind: "write";
15
+ readonly name: "issue.addFlows";
16
+ readonly output: z.ZodObject<{
17
+ issue: z.ZodObject<{
18
+ coveredFlowIds: z.ZodArray<FlowId>;
19
+ createdAt: z.ZodCoercedDate<unknown>;
20
+ description: z.ZodString;
21
+ issueId: IssueId;
22
+ name: z.ZodString;
23
+ number: z.ZodNumber;
24
+ priority: z.ZodEnum<{
25
+ unprioritized: "unprioritized";
26
+ low: "low";
27
+ medium: "medium";
28
+ high: "high";
29
+ urgent: "urgent";
30
+ }>;
31
+ reproductions: z.ZodArray<z.ZodObject<{
32
+ environmentId: EnvironmentId;
33
+ firstReproducedInRunId: RunId;
34
+ flowId: FlowId;
35
+ isActive: z.ZodBoolean;
36
+ lastReproducedInRunId: RunId;
37
+ }, z.core.$strip>>;
38
+ status: z.ZodEnum<{
39
+ pending: "pending";
40
+ inProgress: "inProgress";
41
+ paused: "paused";
42
+ resolved: "resolved";
43
+ canceled: "canceled";
44
+ archived: "archived";
45
+ }>;
46
+ type: z.ZodEnum<{
47
+ bug: "bug";
48
+ coverageRequest: "coverageRequest";
49
+ maintenance: "maintenance";
50
+ }>;
51
+ url: z.ZodURL;
52
+ }, z.core.$strip>;
53
+ }, z.core.$strip>;
54
+ };
55
+ //# sourceMappingURL=addFlows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addFlows.d.ts","sourceRoot":"","sources":["../../../src/v1/issue/addFlows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,2BAA2B,GACtC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,cAAc,EAC9B,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCA,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { z } from "zod";
2
+ import { makeIssueResourceSchema } from "./index.js";
3
+ export const makeAddFlowsToIssueContract = (ids) => {
4
+ const input = z.object({
5
+ flowIds: z
6
+ .array(ids.flow)
7
+ .min(1)
8
+ // Matches the flow.addTag selection cap.
9
+ .max(300)
10
+ .refine((flowIds) => new Set(flowIds).size === flowIds.length, "flowIds must be unique")
11
+ .describe("The flows the coverage request covers."),
12
+ issueId: ids.issue,
13
+ });
14
+ const output = z.object({
15
+ issue: makeIssueResourceSchema(ids),
16
+ });
17
+ return {
18
+ description: "Add flows to a coverage request owned by the caller's team. " +
19
+ "Flows already covered stay covered. " +
20
+ "Bug and maintenance reports link to flows through the runs that reproduce them, so their flows cannot be set directly.",
21
+ input,
22
+ kind: "write",
23
+ name: "issue.addFlows",
24
+ output,
25
+ };
26
+ };
27
+ //# sourceMappingURL=addFlows.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addFlows.js","sourceRoot":"","sources":["../../../src/v1/issue/addFlows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAErD,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAKzC,GAKD,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,OAAO,EAAE,CAAC;aACP,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;aACf,GAAG,CAAC,CAAC,CAAC;YACP,yCAAyC;aACxC,GAAG,CAAC,GAAG,CAAC;aACR,MAAM,CACL,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC,MAAM,EACrD,wBAAwB,CACzB;aACA,QAAQ,CAAC,wCAAwC,CAAC;QACrD,OAAO,EAAE,GAAG,CAAC,KAAK;KACnB,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;QACtB,KAAK,EAAE,uBAAuB,CAAC,GAAG,CAAC;KACpC,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EACT,8DAA8D;YAC9D,sCAAsC;YACtC,wHAAwH;QAC1H,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,gBAAgB;QACtB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
@@ -38,6 +38,7 @@ export declare const makeCreateIssueContract: <EnvironmentId extends PublicIdSch
38
38
  readonly name: "issue.create";
39
39
  readonly output: z.ZodObject<{
40
40
  issue: z.ZodObject<{
41
+ coveredFlowIds: z.ZodArray<FlowId>;
41
42
  createdAt: z.ZodCoercedDate<unknown>;
42
43
  description: z.ZodString;
43
44
  issueId: IssueId;
@@ -1 +1 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/v1/issue/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,uBAAuB,GAClC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,cAAc,EAC9B,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;IACX,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqDA,CAAC"}
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/v1/issue/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,uBAAuB,GAClC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,cAAc,EAC9B,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;IACX,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqDA,CAAC"}
@@ -21,6 +21,7 @@ export declare const makeIssueResourceSchema: <EnvironmentId extends PublicIdSch
21
21
  issue: IssueId;
22
22
  run: RunId;
23
23
  }) => z.ZodObject<{
24
+ coveredFlowIds: z.ZodArray<FlowId>;
24
25
  createdAt: z.ZodCoercedDate<unknown>;
25
26
  description: z.ZodString;
26
27
  issueId: IssueId;
@@ -85,6 +86,7 @@ export declare const makeFindIssuesContract: <EnvironmentId extends PublicIdSche
85
86
  readonly name: "issue.find";
86
87
  readonly output: z.ZodObject<{
87
88
  issues: z.ZodArray<z.ZodObject<{
89
+ coveredFlowIds: z.ZodArray<FlowId>;
88
90
  createdAt: z.ZodCoercedDate<unknown>;
89
91
  description: z.ZodString;
90
92
  issueId: IssueId;
@@ -136,6 +138,7 @@ export declare const makeGetIssueContract: <EnvironmentId extends PublicIdSchema
136
138
  readonly name: "issue.get";
137
139
  readonly output: z.ZodObject<{
138
140
  issue: z.ZodObject<{
141
+ coveredFlowIds: z.ZodArray<FlowId>;
139
142
  createdAt: z.ZodCoercedDate<unknown>;
140
143
  description: z.ZodString;
141
144
  issueId: IssueId;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/issue/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,mBAAmB;;;;;;EAM9B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;EAO5B,CAAC;AAMH,eAAO,MAAM,uBAAuB,GAClC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,cAAc,EAC9B,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0BE,CAAC;AAEJ,eAAO,MAAM,sBAAsB,GACjC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,cAAc,EAC9B,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;IACX,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCA,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,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,MAAM,oBAAoB,GAC/B,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,cAAc,EAC9B,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBA,CAAC"}
@@ -19,6 +19,9 @@ export const issueStatusSchema = z.enum([
19
19
  const publicIssueTypeSchema = z.enum(["bug", "coverageRequest", "maintenance"]);
20
20
  const openIssueStatuses = ["pending", "inProgress", "paused"];
21
21
  export const makeIssueResourceSchema = (ids) => resource({
22
+ coveredFlowIds: z
23
+ .array(ids.flow)
24
+ .describe("The flows a coverage request covers. Always empty on bug and maintenance reports, whose flows are listed under reproductions."),
22
25
  createdAt: z.coerce.date().describe("When the issue was created."),
23
26
  description: z.string().describe("The issue description in Markdown."),
24
27
  issueId: ids.issue,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/issue/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC;IACxC,eAAe;IACf,KAAK;IACL,QAAQ;IACR,MAAM;IACN,QAAQ;CACT,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC;IACtC,SAAS;IACT,YAAY;IACZ,QAAQ;IACR,UAAU;IACV,UAAU;IACV,UAAU;CACX,CAAC,CAAC;AAEH,MAAM,qBAAqB,GAAG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CAAC,CAAC;IACH,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;QACtB,KAAK,EAAE,uBAAuB,CAAC,GAAG,CAAC;KACpC,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EAAE,qBAAqB;QAClC,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,WAAW;QACjB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
@@ -31,6 +31,7 @@ export declare const makeUpdateIssueContract: <EnvironmentId extends PublicIdSch
31
31
  readonly name: "issue.update";
32
32
  readonly output: z.ZodObject<{
33
33
  issue: z.ZodObject<{
34
+ coveredFlowIds: z.ZodArray<FlowId>;
34
35
  createdAt: z.ZodCoercedDate<unknown>;
35
36
  description: z.ZodString;
36
37
  issueId: IssueId;
@@ -1 +1 @@
1
- {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/v1/issue/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAQhD,eAAO,MAAM,uBAAuB,GAClC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,cAAc,EAC9B,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDA,CAAC"}
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/v1/issue/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAQhD,eAAO,MAAM,uBAAuB,GAClC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,cAAc,EAC9B,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDA,CAAC"}
@@ -2,7 +2,7 @@ import { z } from "zod";
2
2
  /** How much of a failure reason this API passes on. */
3
3
  export declare const maxActionErrorMessageLength = 1000;
4
4
  export declare const makePerformActionOnRunnerContract: () => {
5
- readonly description: "Perform one raw browser action on an interactive runner: click, double_click, move, drag, scroll, keypress, type, or navigate. Coordinates are whole pixels on the runner's virtual desktop, in the same space as `runner.takeScreenshot`. One action per request, and the runner serves one at a time. The action shapes follow the computer-use vocabulary, minus `screenshot` (use `runner.takeScreenshot`) and `wait` (delay on the caller's side). `performed` if the action took effect. `action-failed`, with a reason, if it reached the runner and did not take effect. `screen-needs-a-run` if the runner has not run anything yet, so its virtual desktop has never started. Waiting will not change this and retrying is pointless — call `runner.runFlow` on the runner, then ask for the screen again. 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. A `navigate` does not go through the screen, so a screen that is not ready does not stop it — but it still needs the runner to have run something, and until then it answers `action-failed` rather than `screen-needs-a-run`. `runner-has-no-screen` if this runner is not one that runs a browser on a virtual desktop. Nothing about it can be seen or driven, and retrying will never help — launch a `node20WithPlaywright` 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 have stopped answering mid-action. This does not mean the action was not performed — take a screenshot before repeating it.";
5
+ readonly description: "Perform one raw browser action on an interactive runner: click, double_click, move, drag, scroll, keypress, type, or navigate. Coordinates are whole pixels on the runner's virtual desktop, in the same space as `runner.takeScreenshot`. One action per request, and the runner serves one at a time. The action shapes follow the computer-use vocabulary, minus `screenshot` (use `runner.takeScreenshot`) and `wait` (delay on the caller's side). `performed` if the action took effect. `action-failed`, with a reason, if it reached the runner and did not take effect. On a runner image with a browser, the first action on a runner that has never run anything starts its browser and waits for it, so it can take up to a minute to answer — no `runner.runFlow` is needed before acting; if the browser is still starting when the wait runs out, the answer is `screen-not-ready` and retrying converges. `screen-needs-a-run` if the browser could not be started that way — usually a runner whose runs all finished without starting its desktop; call `runner.runFlow` with a flow that opens a browser. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. A `navigate` does not go through the screen, so a screen that is not ready does not stop it. `runner-has-no-screen` if this runner is not one that runs a browser on a virtual desktop. Nothing about it can be seen or driven, and retrying will never help — launch a `node20WithPlaywright` 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 have stopped answering mid-action. This does not mean the action was not performed — take a screenshot before repeating it.";
6
6
  readonly input: z.ZodObject<{
7
7
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
8
8
  button: z.ZodLiteral<"left" | "right" | "wheel" | "back" | "forward">;
@@ -1 +1 @@
1
- {"version":3,"file":"performAction.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/performAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,uDAAuD;AACvD,eAAO,MAAM,2BAA2B,OAAQ,CAAC;AAEjD,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmC7C,CAAC"}
1
+ {"version":3,"file":"performAction.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/performAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,uDAAuD;AACvD,eAAO,MAAM,2BAA2B,OAAQ,CAAC;AAEjD,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmC7C,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import { browserActionSchema } from "./browserAction.js";
3
3
  import { runnerIdSchema } from "./identity.js";
4
- import { runnerHasNoScreenDescription, runnerHasNoScreenSchema, runnerScreenNeedsARunSchema, runnerScreenNotReadySchema, screenNeedsARunDescription, screenNotReadyDescription, } from "./screen.js";
4
+ import { runnerHasNoScreenDescription, runnerHasNoScreenSchema, runnerScreenNeedsARunSchema, runnerScreenNotReadySchema, screenNotReadyDescription, } from "./screen.js";
5
5
  import { runnerUnreachableSchema } from "./unreachable.js";
6
6
  // Not the shared retryable wording: the action may have taken effect before its
7
7
  // answer was lost.
@@ -28,7 +28,7 @@ export const makePerformActionOnRunnerContract = () => {
28
28
  runnerUnreachableSchema,
29
29
  ]);
30
30
  return {
31
- description: `Perform one raw browser action on an interactive runner: click, double_click, move, drag, scroll, keypress, type, or navigate. Coordinates are whole pixels on the runner's virtual desktop, in the same space as \`runner.takeScreenshot\`. One action per request, and the runner serves one at a time. The action shapes follow the computer-use vocabulary, minus \`screenshot\` (use \`runner.takeScreenshot\`) and \`wait\` (delay on the caller's side). \`performed\` if the action took effect. \`action-failed\`, with a reason, if it reached the runner and did not take effect. ${screenNeedsARunDescription} ${screenNotReadyDescription} A \`navigate\` does not go through the screen, so a screen that is not ready does not stop it — but it still needs the runner to have run something, and until then it answers \`action-failed\` rather than \`screen-needs-a-run\`. ${runnerHasNoScreenDescription} ${unreachableDescription}`,
31
+ description: `Perform one raw browser action on an interactive runner: click, double_click, move, drag, scroll, keypress, type, or navigate. Coordinates are whole pixels on the runner's virtual desktop, in the same space as \`runner.takeScreenshot\`. One action per request, and the runner serves one at a time. The action shapes follow the computer-use vocabulary, minus \`screenshot\` (use \`runner.takeScreenshot\`) and \`wait\` (delay on the caller's side). \`performed\` if the action took effect. \`action-failed\`, with a reason, if it reached the runner and did not take effect. On a runner image with a browser, the first action on a runner that has never run anything starts its browser and waits for it, so it can take up to a minute to answer — no \`runner.runFlow\` is needed before acting; if the browser is still starting when the wait runs out, the answer is \`screen-not-ready\` and retrying converges. \`screen-needs-a-run\` if the browser could not be started that way — usually a runner whose runs all finished without starting its desktop; call \`runner.runFlow\` with a flow that opens a browser. ${screenNotReadyDescription} A \`navigate\` does not go through the screen, so a screen that is not ready does not stop it. ${runnerHasNoScreenDescription} ${unreachableDescription}`,
32
32
  input,
33
33
  kind: "write",
34
34
  name: "runner.performAction",
@@ -1 +1 @@
1
- {"version":3,"file":"performAction.js","sourceRoot":"","sources":["../../../src/v1/runner/performAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EACL,4BAA4B,EAC5B,uBAAuB,EACvB,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,GAC1B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,gFAAgF;AAChF,mBAAmB;AACnB,MAAM,sBAAsB,GAC1B,mQAAmQ,CAAC;AAEtQ,uDAAuD;AACvD,MAAM,CAAC,MAAM,2BAA2B,GAAG,KAAK,CAAC;AAEjD,MAAM,CAAC,MAAM,iCAAiC,GAAG,GAAG,EAAE;IACpD,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,MAAM,EAAE,mBAAmB,CAAC,QAAQ,CAClC,yF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AM,CAAC,MAAM,2BAA2B,GAAG,KAAK,CAAC;AAEjD,MAAM,CAAC,MAAM,iCAAiC,GAAG,GAAG,EAAE;IACpD,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,MAAM,EAAE,mBAAmB,CAAC,QAAQ,CAClC,yFAAyF,CAC1F;QACD,EAAE,EAAE,cAAc,CAAC,QAAQ,CAAC,6BAA6B,CAAC;KAC3D,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,CAAC,CAAC,kBAAkB,CAAC,SAAS,EAAE;QAC7C,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC;QAC7C,CAAC,CAAC,MAAM,CAAC;YACP,YAAY,EAAE,CAAC;iBACZ,MAAM,EAAE;iBACR,GAAG,CAAC,2BAA2B,CAAC;iBAChC,QAAQ,CAAC,6CAA6C,CAAC;YAC1D,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC;SACpC,CAAC;QACF,2BAA2B;QAC3B,0BAA0B;QAC1B,uBAAuB;QACvB,uBAAuB;KACxB,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EAAE,olCAAolC,yBAAyB,mGAAmG,4BAA4B,IAAI,sBAAsB,EAAE;QACrxC,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,sBAAsB;QAC5B,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
@@ -6,7 +6,7 @@ export declare const screenNotReadyDescription = "`screen-not-ready` if the runn
6
6
  export declare const runnerScreenNeedsARunSchema: z.ZodObject<{
7
7
  outcome: z.ZodLiteral<"screen-needs-a-run">;
8
8
  }, z.core.$strip>;
9
- export declare const screenNeedsARunDescription = "`screen-needs-a-run` if the runner has not run anything yet, so its virtual desktop has never started. Waiting will not change this and retrying is pointless \u2014 call `runner.runFlow` on the runner, then ask for the screen again. Evaluating a snippet does not start the desktop.";
9
+ export declare const screenNeedsARunDescription = "`screen-needs-a-run` if the runner's virtual desktop has never started. Waiting will not change this and retrying is pointless \u2014 call `runner.runFlow` with a flow that opens a browser, then ask for the screen again. On a runner image with a browser that has never run anything, any `runner.performAction` also starts the browser itself. Evaluating a snippet does not start the desktop.";
10
10
  export declare const runnerHasNoScreenSchema: z.ZodObject<{
11
11
  outcome: z.ZodLiteral<"runner-has-no-screen">;
12
12
  }, z.core.$strip>;
@@ -1 +1 @@
1
- {"version":3,"file":"screen.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/screen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B;;iBAErC,CAAC;AAEH,eAAO,MAAM,yBAAyB,yXAC6U,CAAC;AAIpX,eAAO,MAAM,2BAA2B;;iBAEtC,CAAC;AAEH,eAAO,MAAM,0BAA0B,8RACiP,CAAC;AAEzR,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AAEH,eAAO,MAAM,4BAA4B,2NAC4K,CAAC"}
1
+ {"version":3,"file":"screen.d.ts","sourceRoot":"","sources":["../../../src/v1/runner/screen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B;;iBAErC,CAAC;AAEH,eAAO,MAAM,yBAAyB,yXAC6U,CAAC;AAIpX,eAAO,MAAM,2BAA2B;;iBAEtC,CAAC;AAEH,eAAO,MAAM,0BAA0B,2YAC8V,CAAC;AAEtY,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AAEH,eAAO,MAAM,4BAA4B,2NAC4K,CAAC"}
@@ -8,7 +8,7 @@ export const screenNotReadyDescription = "`screen-not-ready` if the runner has a
8
8
  export const runnerScreenNeedsARunSchema = z.object({
9
9
  outcome: z.literal("screen-needs-a-run"),
10
10
  });
11
- export const screenNeedsARunDescription = "`screen-needs-a-run` if the runner has not run anything yet, so its virtual desktop has never started. Waiting will not change this and retrying is pointless — call `runner.runFlow` on the runner, then ask for the screen again. Evaluating a snippet does not start the desktop.";
11
+ export const screenNeedsARunDescription = "`screen-needs-a-run` if the runner's virtual desktop has never started. Waiting will not change this and retrying is pointless — call `runner.runFlow` with a flow that opens a browser, then ask for the screen again. On a runner image with a browser that has never run anything, any `runner.performAction` also starts the browser itself. Evaluating a snippet does not start the desktop.";
12
12
  export const runnerHasNoScreenSchema = z.object({
13
13
  outcome: z.literal("runner-has-no-screen"),
14
14
  });
@@ -1 +1 @@
1
- {"version":3,"file":"screen.js","sourceRoot":"","sources":["../../../src/v1/runner/screen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;CACvC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GACpC,iXAAiX,CAAC;AAEpX,kFAAkF;AAClF,mFAAmF;AACnF,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;CACzC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GACrC,sRAAsR,CAAC;AAEzR,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;CAC3C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,4BAA4B,GACvC,mNAAmN,CAAC"}
1
+ {"version":3,"file":"screen.js","sourceRoot":"","sources":["../../../src/v1/runner/screen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;CACvC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GACpC,iXAAiX,CAAC;AAEpX,kFAAkF;AAClF,mFAAmF;AACnF,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;CACzC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GACrC,mYAAmY,CAAC;AAEtY,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;CAC3C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,4BAA4B,GACvC,mNAAmN,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  export declare const makeTakeScreenshotOnRunnerContract: () => {
3
- readonly description: "Take one screenshot of an interactive runner's screen. The image is the runner's whole virtual desktop, browser window and all. `screen-needs-a-run` if the runner has not run anything yet, so its virtual desktop has never started. Waiting will not change this and retrying is pointless — call `runner.runFlow` on the runner, then ask for the screen again. Evaluating a snippet does not start the desktop. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. `runner-has-no-screen` if this runner is not one that runs a browser on a virtual desktop. Nothing about it can be seen or driven, and retrying will never help — launch a `node20WithPlaywright` 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.";
3
+ readonly description: "Take one screenshot of an interactive runner's screen. The image is the runner's whole virtual desktop, browser window and all. `screen-needs-a-run` if the runner's virtual desktop has never started. Waiting will not change this and retrying is pointless — call `runner.runFlow` with a flow that opens a browser, then ask for the screen again. On a runner image with a browser that has never run anything, any `runner.performAction` also starts the browser itself. Evaluating a snippet does not start the desktop. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. `runner-has-no-screen` if this runner is not one that runs a browser on a virtual desktop. Nothing about it can be seen or driven, and retrying will never help — launch a `node20WithPlaywright` 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.";
4
4
  readonly input: z.ZodObject<{
5
5
  id: z.ZodString;
6
6
  }, z.core.$strip>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qawolf/api-contracts",
3
- "version": "0.25.0",
3
+ "version": "0.26.0",
4
4
  "private": false,
5
5
  "description": "Versioned contracts for the QA Wolf public API",
6
6
  "repository": {