@qawolf/api-contracts 0.39.0 → 0.42.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 (48) hide show
  1. package/dist/v1/agent/get.d.ts +30 -0
  2. package/dist/v1/agent/get.d.ts.map +1 -0
  3. package/dist/v1/agent/get.js +23 -0
  4. package/dist/v1/agent/get.js.map +1 -0
  5. package/dist/v1/agent/send.d.ts +29 -0
  6. package/dist/v1/agent/send.d.ts.map +1 -0
  7. package/dist/v1/agent/send.js +34 -0
  8. package/dist/v1/agent/send.js.map +1 -0
  9. package/dist/v1/agent/status.d.ts +16 -0
  10. package/dist/v1/agent/status.d.ts.map +1 -0
  11. package/dist/v1/agent/status.js +22 -0
  12. package/dist/v1/agent/status.js.map +1 -0
  13. package/dist/v1/flow/addTag.d.ts +8 -1
  14. package/dist/v1/flow/addTag.d.ts.map +1 -1
  15. package/dist/v1/flow/addTag.js +10 -2
  16. package/dist/v1/flow/addTag.js.map +1 -1
  17. package/dist/v1/flow/removeTag.d.ts +26 -0
  18. package/dist/v1/flow/removeTag.d.ts.map +1 -0
  19. package/dist/v1/flow/removeTag.js +37 -0
  20. package/dist/v1/flow/removeTag.js.map +1 -0
  21. package/dist/v1/flow/skippedFlows.d.ts +19 -0
  22. package/dist/v1/flow/skippedFlows.d.ts.map +1 -0
  23. package/dist/v1/flow/skippedFlows.js +15 -0
  24. package/dist/v1/flow/skippedFlows.js.map +1 -0
  25. package/dist/v1/index.d.ts +347 -4
  26. package/dist/v1/index.d.ts.map +1 -1
  27. package/dist/v1/index.js +13 -0
  28. package/dist/v1/index.js.map +1 -1
  29. package/dist/v1/issue/addFlows.js +1 -1
  30. package/dist/v1/issue/addFlows.js.map +1 -1
  31. package/dist/v1/issue/removeFlows.d.ts +55 -0
  32. package/dist/v1/issue/removeFlows.d.ts.map +1 -0
  33. package/dist/v1/issue/removeFlows.js +27 -0
  34. package/dist/v1/issue/removeFlows.js.map +1 -0
  35. package/dist/v1/run/diagnose.d.ts +56 -0
  36. package/dist/v1/run/diagnose.d.ts.map +1 -0
  37. package/dist/v1/run/diagnose.js +31 -0
  38. package/dist/v1/run/diagnose.js.map +1 -0
  39. package/dist/v1/run/index.d.ts +1 -1
  40. package/dist/v1/runner/browserAction.d.ts +2 -0
  41. package/dist/v1/runner/browserAction.d.ts.map +1 -1
  42. package/dist/v1/runner/browserAction.js +1 -1
  43. package/dist/v1/runner/browserAction.js.map +1 -1
  44. package/dist/v1/runnerReexports.d.ts +1 -1
  45. package/dist/v1/runnerReexports.d.ts.map +1 -1
  46. package/dist/v1/runnerReexports.js +1 -1
  47. package/dist/v1/runnerReexports.js.map +1 -1
  48. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import type { z } from "zod";
2
+ export { type AgentSessionStatus, agentSessionStatusSchema, } from "./agent/status.js";
2
3
  export { type AuthConfigResponse, authConfigResponse } from "./auth/config.js";
3
4
  export type { AnyPublicApiContract, PublicApiContract, PublicApiContractKind, } from "./definition.js";
4
5
  export { type IdentityResponse, identityResponse } from "./identity/index.js";
@@ -18,6 +19,54 @@ export type PublicApiOutput<Api extends AnyPublicApiContract> = z.infer<Api["out
18
19
  * never drift between the two while validation strictness stays server-owned.
19
20
  */
20
21
  export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, FlowId extends PublicIdSchema, RunId extends PublicIdSchema, AutomationId extends PublicIdSchema = PublicIdSchema, IssueId extends PublicIdSchema = PublicIdSchema, WorkspaceId extends PublicIdSchema = PublicIdSchema, AiTaskId extends PublicIdSchema = PublicIdSchema, ChatSessionId extends PublicIdSchema = PublicIdSchema>(ids: PublicIdSchemasOf<EnvironmentId, FlowId, RunId, AutomationId, IssueId, WorkspaceId, AiTaskId, ChatSessionId>) => {
22
+ agent: {
23
+ get: {
24
+ readonly description: "Read what the QA Wolf AI has said and whether it is still working. Poll this after agent.send until the status settles. A status of \"waiting-for-you\" means the last reply is a question the work is blocked on, and answering it with agent.send is what unblocks it. Replies accumulate, so a caller that polls repeatedly sees the earlier ones again.";
25
+ readonly input: z.ZodObject<{
26
+ sessionId: ChatSessionId;
27
+ }, z.core.$strip>;
28
+ readonly kind: "read";
29
+ readonly name: "agent.get";
30
+ readonly output: z.ZodObject<{
31
+ replies: z.ZodArray<z.ZodObject<{
32
+ askedAt: z.ZodISODateTime;
33
+ choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
34
+ text: z.ZodString;
35
+ }, z.core.$strip>>;
36
+ sessionId: ChatSessionId;
37
+ status: z.ZodEnum<{
38
+ working: "working";
39
+ "waiting-for-you": "waiting-for-you";
40
+ completed: "completed";
41
+ failed: "failed";
42
+ cancelled: "cancelled";
43
+ }>;
44
+ url: z.ZodURL;
45
+ }, z.core.$strip>;
46
+ };
47
+ send: {
48
+ readonly description: "Ask the QA Wolf AI to do a piece of work in plain language, such as covering a user journey, investigating a failing run, or fixing a broken flow. This is the one verb that starts work from nothing: every other write acts on a flow, run or issue that already exists. Answers as soon as the request is accepted, with the id to follow it by, because the work runs for minutes to tens of minutes. Poll agent.get for progress, and send here again to answer a question or add context to work already running.";
49
+ readonly input: z.ZodObject<{
50
+ environmentId: z.ZodOptional<PublicIdSchema>;
51
+ message: z.ZodString;
52
+ sessionId: z.ZodOptional<ChatSessionId>;
53
+ workspaceId: z.ZodOptional<WorkspaceId>;
54
+ }, z.core.$strip>;
55
+ readonly kind: "write";
56
+ readonly name: "agent.send";
57
+ readonly output: z.ZodObject<{
58
+ sessionId: ChatSessionId;
59
+ status: z.ZodEnum<{
60
+ working: "working";
61
+ "waiting-for-you": "waiting-for-you";
62
+ completed: "completed";
63
+ failed: "failed";
64
+ cancelled: "cancelled";
65
+ }>;
66
+ url: z.ZodURL;
67
+ }, z.core.$strip>;
68
+ };
69
+ };
21
70
  automate: {
22
71
  readonly description: "Request automation for draft flows. First create a named local .flow.ts draft for every requested journey that does not already have a matching draft; never reuse a generic starter or placeholder. Each new draft must start with a JSDoc Goal: description, import flow from @qawolf/flows/web, and use export default flow(...); a comment-only file or direct test(...) call is not a valid draft. Commit and push all changes with Git to publish them, then list remote drafts to resolve every selected ID. Do not use patch to create or rename a selected flow. Finally make one automation request containing all requested flow IDs.";
23
72
  readonly input: z.ZodObject<{
@@ -243,7 +292,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
243
292
  };
244
293
  flow: {
245
294
  addTag: {
246
- readonly description: "Assign an existing tag to the selected flows. Create tags with tag.create.";
295
+ readonly description: "Assign an existing tag to the selected flows. Create tags with tag.create. Flows that already carry the tag are reported in skippedFlows.";
247
296
  readonly input: z.ZodObject<{
248
297
  flowIds: z.ZodArray<FlowId>;
249
298
  tagName: z.ZodString;
@@ -254,6 +303,13 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
254
303
  color: z.ZodString;
255
304
  name: z.ZodString;
256
305
  url: z.ZodURL;
306
+ skippedFlows: z.ZodArray<z.ZodObject<{
307
+ flowId: FlowId;
308
+ name: z.ZodString;
309
+ reason: z.ZodEnum<{
310
+ "already-tagged": "already-tagged";
311
+ }>;
312
+ }, z.core.$strip>>;
257
313
  }, z.core.$strip>;
258
314
  };
259
315
  list: {
@@ -280,6 +336,27 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
280
336
  }, z.core.$strip>>;
281
337
  }, z.core.$strip>;
282
338
  };
339
+ removeTag: {
340
+ readonly description: "Remove a tag from the selected flows. Succeeds whether or not each flow carried the tag; the flows that did not are reported in skippedFlows.";
341
+ readonly input: z.ZodObject<{
342
+ flowIds: z.ZodArray<FlowId>;
343
+ tagName: z.ZodString;
344
+ }, z.core.$strip>;
345
+ readonly kind: "write";
346
+ readonly name: "flow.removeTag";
347
+ readonly output: z.ZodObject<{
348
+ color: z.ZodString;
349
+ name: z.ZodString;
350
+ url: z.ZodURL;
351
+ skippedFlows: z.ZodArray<z.ZodObject<{
352
+ flowId: FlowId;
353
+ name: z.ZodString;
354
+ reason: z.ZodEnum<{
355
+ "not-tagged": "not-tagged";
356
+ }>;
357
+ }, z.core.$strip>>;
358
+ }, z.core.$strip>;
359
+ };
283
360
  update: {
284
361
  readonly description: "Move a flow between draft and active readiness. The other statuses shown in the app are derived and cannot be set.";
285
362
  readonly input: z.ZodObject<{
@@ -529,6 +606,53 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
529
606
  }, z.core.$strip>;
530
607
  }, z.core.$strip>;
531
608
  };
609
+ removeFlows: {
610
+ readonly description: string;
611
+ readonly input: z.ZodObject<{
612
+ flowIds: z.ZodArray<FlowId>;
613
+ issueId: IssueId;
614
+ }, z.core.$strip>;
615
+ readonly kind: "write";
616
+ readonly name: "issue.removeFlows";
617
+ readonly output: z.ZodObject<{
618
+ issue: z.ZodObject<{
619
+ coveredFlowIds: z.ZodArray<FlowId>;
620
+ createdAt: z.ZodCoercedDate<unknown>;
621
+ description: z.ZodString;
622
+ issueId: IssueId;
623
+ name: z.ZodString;
624
+ number: z.ZodNumber;
625
+ priority: z.ZodEnum<{
626
+ unprioritized: "unprioritized";
627
+ low: "low";
628
+ medium: "medium";
629
+ high: "high";
630
+ urgent: "urgent";
631
+ }>;
632
+ reproductions: z.ZodArray<z.ZodObject<{
633
+ environmentId: EnvironmentId;
634
+ firstReproducedInRunId: RunId;
635
+ flowId: FlowId;
636
+ isActive: z.ZodBoolean;
637
+ lastReproducedInRunId: RunId;
638
+ }, z.core.$strip>>;
639
+ status: z.ZodEnum<{
640
+ pending: "pending";
641
+ inProgress: "inProgress";
642
+ paused: "paused";
643
+ resolved: "resolved";
644
+ canceled: "canceled";
645
+ archived: "archived";
646
+ }>;
647
+ type: z.ZodEnum<{
648
+ bug: "bug";
649
+ coverageRequest: "coverageRequest";
650
+ maintenance: "maintenance";
651
+ }>;
652
+ url: z.ZodURL;
653
+ }, z.core.$strip>;
654
+ }, z.core.$strip>;
655
+ };
532
656
  update: {
533
657
  readonly description: "Update an issue owned by the caller's team. Omitted fields remain unchanged.";
534
658
  readonly input: z.ZodObject<{
@@ -621,13 +745,61 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
621
745
  }, z.core.$strip>>;
622
746
  runId: RunId;
623
747
  tracking: z.ZodEnum<{
624
- registered: "registered";
625
748
  failed: "failed";
749
+ registered: "registered";
626
750
  "not-requested": "not-requested";
627
751
  }>;
628
752
  url: z.ZodURL;
629
753
  }, z.core.$strip>;
630
754
  };
755
+ diagnose: {
756
+ readonly description: string;
757
+ readonly input: z.ZodObject<{
758
+ flowIds: z.ZodArray<FlowId>;
759
+ issueId: IssueId;
760
+ runId: RunId;
761
+ }, z.core.$strip>;
762
+ readonly kind: "write";
763
+ readonly name: "run.diagnose";
764
+ readonly output: z.ZodObject<{
765
+ issue: z.ZodObject<{
766
+ coveredFlowIds: z.ZodArray<FlowId>;
767
+ createdAt: z.ZodCoercedDate<unknown>;
768
+ description: z.ZodString;
769
+ issueId: IssueId;
770
+ name: z.ZodString;
771
+ number: z.ZodNumber;
772
+ priority: z.ZodEnum<{
773
+ unprioritized: "unprioritized";
774
+ low: "low";
775
+ medium: "medium";
776
+ high: "high";
777
+ urgent: "urgent";
778
+ }>;
779
+ reproductions: z.ZodArray<z.ZodObject<{
780
+ environmentId: EnvironmentId;
781
+ firstReproducedInRunId: RunId;
782
+ flowId: FlowId;
783
+ isActive: z.ZodBoolean;
784
+ lastReproducedInRunId: RunId;
785
+ }, z.core.$strip>>;
786
+ status: z.ZodEnum<{
787
+ pending: "pending";
788
+ inProgress: "inProgress";
789
+ paused: "paused";
790
+ resolved: "resolved";
791
+ canceled: "canceled";
792
+ archived: "archived";
793
+ }>;
794
+ type: z.ZodEnum<{
795
+ bug: "bug";
796
+ coverageRequest: "coverageRequest";
797
+ maintenance: "maintenance";
798
+ }>;
799
+ url: z.ZodURL;
800
+ }, z.core.$strip>;
801
+ }, z.core.$strip>;
802
+ };
631
803
  find: {
632
804
  readonly description: "List an environment's recent runs, newest first.";
633
805
  readonly input: z.ZodObject<{
@@ -1373,6 +1545,54 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1373
1545
  };
1374
1546
  };
1375
1547
  export declare const publicContractsV1: {
1548
+ agent: {
1549
+ get: {
1550
+ readonly description: "Read what the QA Wolf AI has said and whether it is still working. Poll this after agent.send until the status settles. A status of \"waiting-for-you\" means the last reply is a question the work is blocked on, and answering it with agent.send is what unblocks it. Replies accumulate, so a caller that polls repeatedly sees the earlier ones again.";
1551
+ readonly input: z.ZodObject<{
1552
+ sessionId: PublicIdSchema;
1553
+ }, z.core.$strip>;
1554
+ readonly kind: "read";
1555
+ readonly name: "agent.get";
1556
+ readonly output: z.ZodObject<{
1557
+ replies: z.ZodArray<z.ZodObject<{
1558
+ askedAt: z.ZodISODateTime;
1559
+ choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
1560
+ text: z.ZodString;
1561
+ }, z.core.$strip>>;
1562
+ sessionId: PublicIdSchema;
1563
+ status: z.ZodEnum<{
1564
+ working: "working";
1565
+ "waiting-for-you": "waiting-for-you";
1566
+ completed: "completed";
1567
+ failed: "failed";
1568
+ cancelled: "cancelled";
1569
+ }>;
1570
+ url: z.ZodURL;
1571
+ }, z.core.$strip>;
1572
+ };
1573
+ send: {
1574
+ readonly description: "Ask the QA Wolf AI to do a piece of work in plain language, such as covering a user journey, investigating a failing run, or fixing a broken flow. This is the one verb that starts work from nothing: every other write acts on a flow, run or issue that already exists. Answers as soon as the request is accepted, with the id to follow it by, because the work runs for minutes to tens of minutes. Poll agent.get for progress, and send here again to answer a question or add context to work already running.";
1575
+ readonly input: z.ZodObject<{
1576
+ environmentId: z.ZodOptional<PublicIdSchema>;
1577
+ message: z.ZodString;
1578
+ sessionId: z.ZodOptional<PublicIdSchema>;
1579
+ workspaceId: z.ZodOptional<PublicIdSchema>;
1580
+ }, z.core.$strip>;
1581
+ readonly kind: "write";
1582
+ readonly name: "agent.send";
1583
+ readonly output: z.ZodObject<{
1584
+ sessionId: PublicIdSchema;
1585
+ status: z.ZodEnum<{
1586
+ working: "working";
1587
+ "waiting-for-you": "waiting-for-you";
1588
+ completed: "completed";
1589
+ failed: "failed";
1590
+ cancelled: "cancelled";
1591
+ }>;
1592
+ url: z.ZodURL;
1593
+ }, z.core.$strip>;
1594
+ };
1595
+ };
1376
1596
  automate: {
1377
1597
  readonly description: "Request automation for draft flows. First create a named local .flow.ts draft for every requested journey that does not already have a matching draft; never reuse a generic starter or placeholder. Each new draft must start with a JSDoc Goal: description, import flow from @qawolf/flows/web, and use export default flow(...); a comment-only file or direct test(...) call is not a valid draft. Commit and push all changes with Git to publish them, then list remote drafts to resolve every selected ID. Do not use patch to create or rename a selected flow. Finally make one automation request containing all requested flow IDs.";
1378
1598
  readonly input: z.ZodObject<{
@@ -1598,7 +1818,7 @@ export declare const publicContractsV1: {
1598
1818
  };
1599
1819
  flow: {
1600
1820
  addTag: {
1601
- readonly description: "Assign an existing tag to the selected flows. Create tags with tag.create.";
1821
+ readonly description: "Assign an existing tag to the selected flows. Create tags with tag.create. Flows that already carry the tag are reported in skippedFlows.";
1602
1822
  readonly input: z.ZodObject<{
1603
1823
  flowIds: z.ZodArray<PublicIdSchema>;
1604
1824
  tagName: z.ZodString;
@@ -1609,6 +1829,13 @@ export declare const publicContractsV1: {
1609
1829
  color: z.ZodString;
1610
1830
  name: z.ZodString;
1611
1831
  url: z.ZodURL;
1832
+ skippedFlows: z.ZodArray<z.ZodObject<{
1833
+ flowId: PublicIdSchema;
1834
+ name: z.ZodString;
1835
+ reason: z.ZodEnum<{
1836
+ "already-tagged": "already-tagged";
1837
+ }>;
1838
+ }, z.core.$strip>>;
1612
1839
  }, z.core.$strip>;
1613
1840
  };
1614
1841
  list: {
@@ -1635,6 +1862,27 @@ export declare const publicContractsV1: {
1635
1862
  }, z.core.$strip>>;
1636
1863
  }, z.core.$strip>;
1637
1864
  };
1865
+ removeTag: {
1866
+ readonly description: "Remove a tag from the selected flows. Succeeds whether or not each flow carried the tag; the flows that did not are reported in skippedFlows.";
1867
+ readonly input: z.ZodObject<{
1868
+ flowIds: z.ZodArray<PublicIdSchema>;
1869
+ tagName: z.ZodString;
1870
+ }, z.core.$strip>;
1871
+ readonly kind: "write";
1872
+ readonly name: "flow.removeTag";
1873
+ readonly output: z.ZodObject<{
1874
+ color: z.ZodString;
1875
+ name: z.ZodString;
1876
+ url: z.ZodURL;
1877
+ skippedFlows: z.ZodArray<z.ZodObject<{
1878
+ flowId: PublicIdSchema;
1879
+ name: z.ZodString;
1880
+ reason: z.ZodEnum<{
1881
+ "not-tagged": "not-tagged";
1882
+ }>;
1883
+ }, z.core.$strip>>;
1884
+ }, z.core.$strip>;
1885
+ };
1638
1886
  update: {
1639
1887
  readonly description: "Move a flow between draft and active readiness. The other statuses shown in the app are derived and cannot be set.";
1640
1888
  readonly input: z.ZodObject<{
@@ -1884,6 +2132,53 @@ export declare const publicContractsV1: {
1884
2132
  }, z.core.$strip>;
1885
2133
  }, z.core.$strip>;
1886
2134
  };
2135
+ removeFlows: {
2136
+ readonly description: string;
2137
+ readonly input: z.ZodObject<{
2138
+ flowIds: z.ZodArray<PublicIdSchema>;
2139
+ issueId: PublicIdSchema;
2140
+ }, z.core.$strip>;
2141
+ readonly kind: "write";
2142
+ readonly name: "issue.removeFlows";
2143
+ readonly output: z.ZodObject<{
2144
+ issue: z.ZodObject<{
2145
+ coveredFlowIds: z.ZodArray<PublicIdSchema>;
2146
+ createdAt: z.ZodCoercedDate<unknown>;
2147
+ description: z.ZodString;
2148
+ issueId: PublicIdSchema;
2149
+ name: z.ZodString;
2150
+ number: z.ZodNumber;
2151
+ priority: z.ZodEnum<{
2152
+ unprioritized: "unprioritized";
2153
+ low: "low";
2154
+ medium: "medium";
2155
+ high: "high";
2156
+ urgent: "urgent";
2157
+ }>;
2158
+ reproductions: z.ZodArray<z.ZodObject<{
2159
+ environmentId: PublicIdSchema;
2160
+ firstReproducedInRunId: PublicIdSchema;
2161
+ flowId: PublicIdSchema;
2162
+ isActive: z.ZodBoolean;
2163
+ lastReproducedInRunId: PublicIdSchema;
2164
+ }, z.core.$strip>>;
2165
+ status: z.ZodEnum<{
2166
+ pending: "pending";
2167
+ inProgress: "inProgress";
2168
+ paused: "paused";
2169
+ resolved: "resolved";
2170
+ canceled: "canceled";
2171
+ archived: "archived";
2172
+ }>;
2173
+ type: z.ZodEnum<{
2174
+ bug: "bug";
2175
+ coverageRequest: "coverageRequest";
2176
+ maintenance: "maintenance";
2177
+ }>;
2178
+ url: z.ZodURL;
2179
+ }, z.core.$strip>;
2180
+ }, z.core.$strip>;
2181
+ };
1887
2182
  update: {
1888
2183
  readonly description: "Update an issue owned by the caller's team. Omitted fields remain unchanged.";
1889
2184
  readonly input: z.ZodObject<{
@@ -1976,13 +2271,61 @@ export declare const publicContractsV1: {
1976
2271
  }, z.core.$strip>>;
1977
2272
  runId: PublicIdSchema;
1978
2273
  tracking: z.ZodEnum<{
1979
- registered: "registered";
1980
2274
  failed: "failed";
2275
+ registered: "registered";
1981
2276
  "not-requested": "not-requested";
1982
2277
  }>;
1983
2278
  url: z.ZodURL;
1984
2279
  }, z.core.$strip>;
1985
2280
  };
2281
+ diagnose: {
2282
+ readonly description: string;
2283
+ readonly input: z.ZodObject<{
2284
+ flowIds: z.ZodArray<PublicIdSchema>;
2285
+ issueId: PublicIdSchema;
2286
+ runId: PublicIdSchema;
2287
+ }, z.core.$strip>;
2288
+ readonly kind: "write";
2289
+ readonly name: "run.diagnose";
2290
+ readonly output: z.ZodObject<{
2291
+ issue: z.ZodObject<{
2292
+ coveredFlowIds: z.ZodArray<PublicIdSchema>;
2293
+ createdAt: z.ZodCoercedDate<unknown>;
2294
+ description: z.ZodString;
2295
+ issueId: PublicIdSchema;
2296
+ name: z.ZodString;
2297
+ number: z.ZodNumber;
2298
+ priority: z.ZodEnum<{
2299
+ unprioritized: "unprioritized";
2300
+ low: "low";
2301
+ medium: "medium";
2302
+ high: "high";
2303
+ urgent: "urgent";
2304
+ }>;
2305
+ reproductions: z.ZodArray<z.ZodObject<{
2306
+ environmentId: PublicIdSchema;
2307
+ firstReproducedInRunId: PublicIdSchema;
2308
+ flowId: PublicIdSchema;
2309
+ isActive: z.ZodBoolean;
2310
+ lastReproducedInRunId: PublicIdSchema;
2311
+ }, z.core.$strip>>;
2312
+ status: z.ZodEnum<{
2313
+ pending: "pending";
2314
+ inProgress: "inProgress";
2315
+ paused: "paused";
2316
+ resolved: "resolved";
2317
+ canceled: "canceled";
2318
+ archived: "archived";
2319
+ }>;
2320
+ type: z.ZodEnum<{
2321
+ bug: "bug";
2322
+ coverageRequest: "coverageRequest";
2323
+ maintenance: "maintenance";
2324
+ }>;
2325
+ url: z.ZodURL;
2326
+ }, z.core.$strip>;
2327
+ }, z.core.$strip>;
2328
+ };
1986
2329
  find: {
1987
2330
  readonly description: "List an environment's recent runs, newest first.";
1988
2331
  readonly input: z.ZodObject<{
@@ -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,OAAO,EAAE,KAAK,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,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,6BAA6B,EAClC,6BAA6B,GAC9B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,gBAAgB,GACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,cAAc,sBAAsB,CAAC;AAGrC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAc5D,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,iBAAiB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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoC,CAAC"}
package/dist/v1/index.js CHANGED
@@ -1,9 +1,12 @@
1
+ export { agentSessionStatusSchema, } from "./agent/status.js";
1
2
  export { authConfigResponse } from "./auth/config.js";
2
3
  export { identityResponse } from "./identity/index.js";
3
4
  export { identityOrganizationsResponse, } from "./identity/organizations.js";
4
5
  export { defaultIdSchemas, } from "./ids.js";
5
6
  export { makeFlowSelectionSchema } from "./run/index.js";
6
7
  export * from "./runnerReexports.js";
8
+ import { makeAgentGetContract } from "./agent/get.js";
9
+ import { makeAgentSendContract } from "./agent/send.js";
7
10
  import { makeAutomateContract } from "./automate/index.js";
8
11
  import { makeDeleteEnvironmentVariableContract } from "./environment/deleteVariable.js";
9
12
  import { makeFindEnvironmentsContract } from "./environment/find.js";
@@ -12,12 +15,15 @@ import { makeCreateEnvironmentContract, makeGetEnvironmentContract, makeListEnvi
12
15
  import { makeUpdateEnvironmentContract } from "./environment/update.js";
13
16
  import { makeAddTagToFlowsContract } from "./flow/addTag.js";
14
17
  import { makeListFlowsContract } from "./flow/index.js";
18
+ import { makeRemoveTagFromFlowsContract } from "./flow/removeTag.js";
15
19
  import { makeUpdateFlowContract } from "./flow/update.js";
16
20
  import { defaultIdSchemas, } from "./ids.js";
17
21
  import { makeAddFlowsToIssueContract } from "./issue/addFlows.js";
18
22
  import { makeCreateIssueContract } from "./issue/create.js";
19
23
  import { makeFindIssuesContract, makeGetIssueContract } from "./issue/index.js";
24
+ import { makeRemoveFlowsFromIssueContract } from "./issue/removeFlows.js";
20
25
  import { makeUpdateIssueContract } from "./issue/update.js";
26
+ import { makeDiagnoseRunContract } from "./run/diagnose.js";
21
27
  import { makeFindRunsContract } from "./run/find.js";
22
28
  import { makeGetRunContract } from "./run/get.js";
23
29
  import { makeCreateRunContract } from "./run/index.js";
@@ -47,6 +53,10 @@ import { makeListTagsContract } from "./tag/list.js";
47
53
  export const makeContractsV1 = (ids) => {
48
54
  const resolvedIds = { ...defaultIdSchemas, ...ids };
49
55
  return {
56
+ agent: {
57
+ get: makeAgentGetContract(resolvedIds),
58
+ send: makeAgentSendContract(resolvedIds),
59
+ },
50
60
  // Top-level contract: the public command is the verb itself, with no
51
61
  // resource namespace (`qawolf automate`).
52
62
  automate: makeAutomateContract(resolvedIds),
@@ -63,6 +73,7 @@ export const makeContractsV1 = (ids) => {
63
73
  flow: {
64
74
  addTag: makeAddTagToFlowsContract(resolvedIds),
65
75
  list: makeListFlowsContract(resolvedIds),
76
+ removeTag: makeRemoveTagFromFlowsContract(resolvedIds),
66
77
  update: makeUpdateFlowContract(resolvedIds),
67
78
  },
68
79
  issue: {
@@ -70,10 +81,12 @@ export const makeContractsV1 = (ids) => {
70
81
  create: makeCreateIssueContract(resolvedIds),
71
82
  find: makeFindIssuesContract(resolvedIds),
72
83
  get: makeGetIssueContract(resolvedIds),
84
+ removeFlows: makeRemoveFlowsFromIssueContract(resolvedIds),
73
85
  update: makeUpdateIssueContract(resolvedIds),
74
86
  },
75
87
  run: {
76
88
  create: makeCreateRunContract(resolvedIds),
89
+ diagnose: makeDiagnoseRunContract(resolvedIds),
77
90
  find: makeFindRunsContract(resolvedIds),
78
91
  get: makeGetRunContract(resolvedIds),
79
92
  reattempt: makeReattemptRunContract(resolvedIds),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/v1/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAA2B,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAM/E,OAAO,EAAyB,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAEL,6BAA6B,GAC9B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAGL,gBAAgB,GACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,cAAc,sBAAsB,CAAC;AAErC,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,EAAE,qCAAqC,EAAE,MAAM,iCAAiC,CAAC;AACxF,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,kCAAkC,EAAE,MAAM,8BAA8B,CAAC;AAClF,OAAO,EACL,6BAA6B,EAC7B,0BAA0B,EAC1B,wCAAwC,EACxC,kCAAkC,GACnC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAGL,gBAAgB,GACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAC5D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AE;YACpD,SAAS,EAAE,2BAA2B,EAAE;SACzC;QACD,GAAG,EAAE;YACH,MAAM,EAAE,qBAAqB,CAAC,WAAW,CAAC;YAC1C,IAAI,EAAE,oBAAoB,CAAC,WAAW,CAAC;SACxC;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC,gBAAgB,CAAC,CAAC"}
@@ -17,7 +17,7 @@ export const makeAddFlowsToIssueContract = (ids) => {
17
17
  return {
18
18
  description: "Add flows to a coverage request owned by the caller's team. " +
19
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.",
20
+ "Bug and maintenance reports link to flows through the runs that reproduce them; use run.diagnose to record one.",
21
21
  input,
22
22
  kind: "write",
23
23
  name: "issue.addFlows",
@@ -1 +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"}
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,iHAAiH;QACnH,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,gBAAgB;QACtB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,55 @@
1
+ import { z } from "zod";
2
+ import type { PublicIdSchema } from "../ids.js";
3
+ export declare const makeRemoveFlowsFromIssueContract: <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.removeFlows";
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=removeFlows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"removeFlows.d.ts","sourceRoot":"","sources":["../../../src/v1/issue/removeFlows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,gCAAgC,GAC3C,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 makeRemoveFlowsFromIssueContract = (ids) => {
4
+ const input = z.object({
5
+ flowIds: z
6
+ .array(ids.flow)
7
+ .min(1)
8
+ // Matches the issue.addFlows 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 no longer covers."),
12
+ issueId: ids.issue,
13
+ });
14
+ const output = z.object({
15
+ issue: makeIssueResourceSchema(ids),
16
+ });
17
+ return {
18
+ description: "Remove flows from a coverage request owned by the caller's team. " +
19
+ "Flows the request does not cover are left alone. " +
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.removeFlows",
24
+ output,
25
+ };
26
+ };
27
+ //# sourceMappingURL=removeFlows.js.map