@qawolf/api-contracts 0.24.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.
- package/dist/v1/environment/find.d.ts +2 -0
- package/dist/v1/environment/find.d.ts.map +1 -1
- package/dist/v1/environment/find.js +1 -0
- package/dist/v1/environment/find.js.map +1 -1
- package/dist/v1/environment/index.d.ts +3 -1
- package/dist/v1/environment/index.d.ts.map +1 -1
- package/dist/v1/environment/index.js +1 -1
- package/dist/v1/environment/index.js.map +1 -1
- package/dist/v1/environment/resource.d.ts +1 -0
- package/dist/v1/environment/resource.d.ts.map +1 -1
- package/dist/v1/environment/resource.js +3 -0
- package/dist/v1/environment/resource.js.map +1 -1
- package/dist/v1/environment/update.d.ts +1 -0
- package/dist/v1/environment/update.d.ts.map +1 -1
- package/dist/v1/index.d.ts +240 -6
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/index.js +2 -0
- package/dist/v1/index.js.map +1 -1
- package/dist/v1/issue/addFlows.d.ts +55 -0
- package/dist/v1/issue/addFlows.d.ts.map +1 -0
- package/dist/v1/issue/addFlows.js +27 -0
- package/dist/v1/issue/addFlows.js.map +1 -0
- package/dist/v1/issue/create.d.ts +1 -0
- package/dist/v1/issue/create.d.ts.map +1 -1
- package/dist/v1/issue/index.d.ts +3 -0
- package/dist/v1/issue/index.d.ts.map +1 -1
- package/dist/v1/issue/index.js +3 -0
- package/dist/v1/issue/index.js.map +1 -1
- package/dist/v1/issue/update.d.ts +1 -0
- package/dist/v1/issue/update.d.ts.map +1 -1
- package/dist/v1/run/get.d.ts +63 -1
- package/dist/v1/run/get.d.ts.map +1 -1
- package/dist/v1/run/get.js +86 -0
- package/dist/v1/run/get.js.map +1 -1
- package/dist/v1/runner/performAction.d.ts +1 -1
- package/dist/v1/runner/performAction.d.ts.map +1 -1
- package/dist/v1/runner/performAction.js +2 -2
- package/dist/v1/runner/performAction.js.map +1 -1
- package/dist/v1/runner/screen.d.ts +1 -1
- package/dist/v1/runner/screen.d.ts.map +1 -1
- package/dist/v1/runner/screen.js +1 -1
- package/dist/v1/runner/screen.js.map +1 -1
- package/dist/v1/runner/takeScreenshot.d.ts +1 -1
- package/package.json +1 -1
package/dist/v1/index.d.ts.map
CHANGED
|
@@ -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,qBAAqB,EACrB,iCAAiC,EACjC,kBA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoC,CAAC"}
|
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),
|
package/dist/v1/index.js.map
CHANGED
|
@@ -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,EAML,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,0BAA0B,EAC1B,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,qBAAqB,EACrB,iCAAiC,EACjC,kBAAkB,EAClB,cAAc,GACf,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AAExE,OAAO,EAAE,oBAAoB,E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AAC;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
|
|
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"}
|
package/dist/v1/issue/index.d.ts
CHANGED
|
@@ -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
|
|
1
|
+
{"version":3,"file":"index.d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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBA,CAAC"}
|
package/dist/v1/issue/index.js
CHANGED
|
@@ -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,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,iBAAiB,EAAE,aAAa,CAAC,CAAC,CAAC;AAEhF,MAAM,iBAAiB,GAAG,CAAC,SAAS,EAAE,YAAY,EAAE,QAAQ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,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
|
|
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"}
|
package/dist/v1/run/get.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import type { PublicIdSchema } from "../ids.js";
|
|
3
|
-
export declare const makeGetRunContract: <FlowId extends PublicIdSchema, RunId extends PublicIdSchema>(ids: {
|
|
3
|
+
export declare const makeGetRunContract: <FlowId extends PublicIdSchema, IssueId extends PublicIdSchema, RunId extends PublicIdSchema>(ids: {
|
|
4
4
|
[key: string]: unknown;
|
|
5
5
|
flow: FlowId;
|
|
6
|
+
issue: IssueId;
|
|
6
7
|
run: RunId;
|
|
7
8
|
}) => {
|
|
8
9
|
readonly description: "Get a run's status, per-flow results, and links.";
|
|
@@ -13,13 +14,74 @@ export declare const makeGetRunContract: <FlowId extends PublicIdSchema, RunId e
|
|
|
13
14
|
readonly name: "run.get";
|
|
14
15
|
readonly output: z.ZodObject<{
|
|
15
16
|
flows: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
17
|
+
attempts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
18
|
+
completedAt: z.ZodISODateTime;
|
|
19
|
+
kind: z.ZodLiteral<"automated">;
|
|
20
|
+
startedAt: z.ZodISODateTime;
|
|
21
|
+
status: z.ZodLiteral<"passed">;
|
|
22
|
+
logsUrl: z.ZodOptional<z.ZodURL>;
|
|
23
|
+
traceUrl: z.ZodOptional<z.ZodURL>;
|
|
24
|
+
videoUrl: z.ZodOptional<z.ZodURL>;
|
|
25
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
+
completedAt: z.ZodISODateTime;
|
|
27
|
+
kind: z.ZodLiteral<"automated">;
|
|
28
|
+
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
29
|
+
status: z.ZodLiteral<"failed">;
|
|
30
|
+
logsUrl: z.ZodOptional<z.ZodURL>;
|
|
31
|
+
traceUrl: z.ZodOptional<z.ZodURL>;
|
|
32
|
+
videoUrl: z.ZodOptional<z.ZodURL>;
|
|
33
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
+
completedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
35
|
+
kind: z.ZodLiteral<"automated">;
|
|
36
|
+
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
37
|
+
status: z.ZodLiteral<"canceled">;
|
|
38
|
+
}, z.core.$strip>], "status">, z.ZodObject<{
|
|
39
|
+
completedAt: z.ZodISODateTime;
|
|
40
|
+
kind: z.ZodLiteral<"manual">;
|
|
41
|
+
startedAt: z.ZodISODateTime;
|
|
42
|
+
status: z.ZodLiteral<"passed">;
|
|
43
|
+
}, z.core.$strip>]>>>;
|
|
16
44
|
failure: z.ZodObject<{
|
|
45
|
+
diagnosis: z.ZodOptional<z.ZodObject<{
|
|
46
|
+
issueId: IssueId;
|
|
47
|
+
type: z.ZodEnum<{
|
|
48
|
+
bug: "bug";
|
|
49
|
+
maintenance: "maintenance";
|
|
50
|
+
}>;
|
|
51
|
+
}, z.core.$strip>>;
|
|
17
52
|
error: z.ZodString;
|
|
18
53
|
}, z.core.$strip>;
|
|
19
54
|
flowId: FlowId;
|
|
20
55
|
name: z.ZodString;
|
|
21
56
|
status: z.ZodLiteral<"failed">;
|
|
22
57
|
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
+
attempts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
59
|
+
completedAt: z.ZodISODateTime;
|
|
60
|
+
kind: z.ZodLiteral<"automated">;
|
|
61
|
+
startedAt: z.ZodISODateTime;
|
|
62
|
+
status: z.ZodLiteral<"passed">;
|
|
63
|
+
logsUrl: z.ZodOptional<z.ZodURL>;
|
|
64
|
+
traceUrl: z.ZodOptional<z.ZodURL>;
|
|
65
|
+
videoUrl: z.ZodOptional<z.ZodURL>;
|
|
66
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
67
|
+
completedAt: z.ZodISODateTime;
|
|
68
|
+
kind: z.ZodLiteral<"automated">;
|
|
69
|
+
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
70
|
+
status: z.ZodLiteral<"failed">;
|
|
71
|
+
logsUrl: z.ZodOptional<z.ZodURL>;
|
|
72
|
+
traceUrl: z.ZodOptional<z.ZodURL>;
|
|
73
|
+
videoUrl: z.ZodOptional<z.ZodURL>;
|
|
74
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
75
|
+
completedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
76
|
+
kind: z.ZodLiteral<"automated">;
|
|
77
|
+
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
78
|
+
status: z.ZodLiteral<"canceled">;
|
|
79
|
+
}, z.core.$strip>], "status">, z.ZodObject<{
|
|
80
|
+
completedAt: z.ZodISODateTime;
|
|
81
|
+
kind: z.ZodLiteral<"manual">;
|
|
82
|
+
startedAt: z.ZodISODateTime;
|
|
83
|
+
status: z.ZodLiteral<"passed">;
|
|
84
|
+
}, z.core.$strip>]>>>;
|
|
23
85
|
flowId: FlowId;
|
|
24
86
|
name: z.ZodString;
|
|
25
87
|
status: z.ZodEnum<{
|
package/dist/v1/run/get.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/v1/run/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAKhD,eAAO,MAAM,kBAAkB,GAC7B,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,KAAK;IACL,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,KAAK,CAAC;CACZ
|
|
1
|
+
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/v1/run/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAKhD,eAAO,MAAM,kBAAkB,GAC7B,MAAM,SAAS,cAAc,EAC7B,OAAO,SAAS,cAAc,EAC9B,KAAK,SAAS,cAAc,EAC5B,KAAK;IACL,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgKA,CAAC"}
|
package/dist/v1/run/get.js
CHANGED
|
@@ -5,6 +5,89 @@ export const makeGetRunContract = (ids) => {
|
|
|
5
5
|
const input = z.object({
|
|
6
6
|
runId: ids.run,
|
|
7
7
|
});
|
|
8
|
+
// Artifact URLs are signed without checking storage, so a fetch can return
|
|
9
|
+
// 404 when the attempt never produced that artifact. For example, only
|
|
10
|
+
// Playwright flows produce traces, and manual Wolf Browser attempts store
|
|
11
|
+
// no artifacts at all.
|
|
12
|
+
const artifactUrls = {
|
|
13
|
+
logsUrl: z
|
|
14
|
+
.url()
|
|
15
|
+
.optional()
|
|
16
|
+
.describe("Signed URL for the attempt's execution logs."),
|
|
17
|
+
traceUrl: z
|
|
18
|
+
.url()
|
|
19
|
+
.optional()
|
|
20
|
+
.describe("Signed URL for the attempt's Playwright trace (a trace.zip; open it with `npx playwright show-trace`)."),
|
|
21
|
+
videoUrl: z
|
|
22
|
+
.url()
|
|
23
|
+
.optional()
|
|
24
|
+
.describe("Signed URL for the attempt's screen recording."),
|
|
25
|
+
};
|
|
26
|
+
const automatedKind = z
|
|
27
|
+
.literal("automated")
|
|
28
|
+
.describe("The attempt ran on a QA Wolf runner.");
|
|
29
|
+
// A discriminated union like the flow entry itself. An attempt with a
|
|
30
|
+
// verdict always carries its completion time. A terminated attempt never
|
|
31
|
+
// carries artifact links. Manual Wolf Browser attempts always pass and
|
|
32
|
+
// never carry artifact links. The contract therefore cannot emit a record
|
|
33
|
+
// that contradicts its own status or kind.
|
|
34
|
+
const automatedAttempt = z.discriminatedUnion("status", [
|
|
35
|
+
z.object({
|
|
36
|
+
...artifactUrls,
|
|
37
|
+
completedAt: z.iso.datetime(),
|
|
38
|
+
kind: automatedKind,
|
|
39
|
+
startedAt: z.iso.datetime(),
|
|
40
|
+
status: z.literal("passed"),
|
|
41
|
+
}),
|
|
42
|
+
z.object({
|
|
43
|
+
...artifactUrls,
|
|
44
|
+
completedAt: z.iso.datetime(),
|
|
45
|
+
kind: automatedKind,
|
|
46
|
+
startedAt: z.iso
|
|
47
|
+
.datetime()
|
|
48
|
+
.optional()
|
|
49
|
+
.describe("Absent when the attempt failed before it could start."),
|
|
50
|
+
status: z.literal("failed"),
|
|
51
|
+
}),
|
|
52
|
+
z.object({
|
|
53
|
+
completedAt: z.iso.datetime().optional(),
|
|
54
|
+
kind: automatedKind,
|
|
55
|
+
startedAt: z.iso.datetime().optional(),
|
|
56
|
+
status: z
|
|
57
|
+
.literal("canceled")
|
|
58
|
+
.describe("The attempt was terminated without reaching a verdict."),
|
|
59
|
+
}),
|
|
60
|
+
]);
|
|
61
|
+
const manualAttempt = z.object({
|
|
62
|
+
completedAt: z.iso.datetime(),
|
|
63
|
+
kind: z
|
|
64
|
+
.literal("manual")
|
|
65
|
+
.describe("The attempt ran by hand in the Wolf Browser."),
|
|
66
|
+
startedAt: z.iso.datetime(),
|
|
67
|
+
status: z.literal("passed"),
|
|
68
|
+
});
|
|
69
|
+
const attempt = z.union([automatedAttempt, manualAttempt]);
|
|
70
|
+
const attempts = z
|
|
71
|
+
.array(attempt)
|
|
72
|
+
.optional()
|
|
73
|
+
.describe("The flow's finished execution attempts, oldest first, including " +
|
|
74
|
+
"manual Wolf Browser attempts. Present once at least one attempt has " +
|
|
75
|
+
"finished, so a flow that passed after retries also lists its failed " +
|
|
76
|
+
"attempts. Artifact URLs appear only on automated attempts that " +
|
|
77
|
+
"reached a verdict, stay valid for at least a day (call run.get " +
|
|
78
|
+
"again for fresh ones), and can return 404 when the attempt did not " +
|
|
79
|
+
"produce that artifact.");
|
|
80
|
+
const diagnosis = z
|
|
81
|
+
.object({
|
|
82
|
+
issueId: ids.issue,
|
|
83
|
+
type: z.enum(["bug", "maintenance"]),
|
|
84
|
+
})
|
|
85
|
+
.optional()
|
|
86
|
+
.describe("QA Wolf's investigation verdict for the failure: `bug` means the " +
|
|
87
|
+
"application is broken, `maintenance` means the test needed an " +
|
|
88
|
+
"update and the failure does not indicate an application problem. " +
|
|
89
|
+
"Absent until the investigation reaches a verdict. Pass issueId to " +
|
|
90
|
+
"issue.get for details.");
|
|
8
91
|
// We return one flat entry per flow, each carrying its own status, rather
|
|
9
92
|
// than status-keyed buckets (`{ passed: [...], failed: [...] }`). A flat list
|
|
10
93
|
// is a superset — the caller can group by status — and gives each flow a
|
|
@@ -19,7 +102,9 @@ export const makeGetRunContract = (ids) => {
|
|
|
19
102
|
// "failed ⇔ failure present" instead of defensively checking, and we can't
|
|
20
103
|
// accidentally emit a contradictory record.
|
|
21
104
|
const failedFlow = z.object({
|
|
105
|
+
attempts,
|
|
22
106
|
failure: z.object({
|
|
107
|
+
diagnosis,
|
|
23
108
|
// The raw error from the run itself, available the moment the flow fails.
|
|
24
109
|
// Chosen over QA Wolf's analyzed error (`RunAnalysisDto`): the analysis is
|
|
25
110
|
// produced only after investigation and is usually absent while an agent
|
|
@@ -33,6 +118,7 @@ export const makeGetRunContract = (ids) => {
|
|
|
33
118
|
status: z.literal("failed"),
|
|
34
119
|
});
|
|
35
120
|
const nonFailedFlow = z.object({
|
|
121
|
+
attempts,
|
|
36
122
|
flowId: ids.flow,
|
|
37
123
|
name: z.string(),
|
|
38
124
|
status: z.enum(["queued", "running", "passed", "canceled"]),
|
package/dist/v1/run/get.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/v1/run/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,CAAC,MAAM,kBAAkB,GAAG,
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/v1/run/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAIhC,GAKD,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,KAAK,EAAE,GAAG,CAAC,GAAG;KACf,CAAC,CAAC;IAEH,2EAA2E;IAC3E,uEAAuE;IACvE,0EAA0E;IAC1E,uBAAuB;IACvB,MAAM,YAAY,GAAG;QACnB,OAAO,EAAE,CAAC;aACP,GAAG,EAAE;aACL,QAAQ,EAAE;aACV,QAAQ,CAAC,8CAA8C,CAAC;QAC3D,QAAQ,EAAE,CAAC;aACR,GAAG,EAAE;aACL,QAAQ,EAAE;aACV,QAAQ,CACP,wGAAwG,CACzG;QACH,QAAQ,EAAE,CAAC;aACR,GAAG,EAAE;aACL,QAAQ,EAAE;aACV,QAA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;YACpD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;SAClB,CAAC;QACF,MAAM,EAAE,GAAG,CAAC,IAAI;QAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;KAC5B,CAAC,CAAC;IACH,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;QAC7B,QAAQ;QACR,MAAM,EAAE,GAAG,CAAC,IAAI;QAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;KAC5D,CAAC,CAAC;IACH,MAAM,KAAK,GAAG,CAAC;SACZ,KAAK,CAAC,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC;SAClE,QAAQ,CAAC,kDAAkD,CAAC,CAAC;IAEhE,MAAM,MAAM,GAAG,QAAQ,CACrB;QACE,GAAG,oBAAoB,CAAC,GAAG,CAAC;QAC5B,KAAK;QACL,yEAAyE;QACzE,uEAAuE;QACvE,KAAK,EAAE,GAAG,CAAC,GAAG,CAAC,QAAQ,CACrB,6RAA6R,CAC9R;KACF,EACD,EAAE,mBAAmB,EAAE,+BAA+B,EAAE,CACzD,CAAC;IAEF,OAAO;QACL,WAAW,EAAE,kDAAkD;QAC/D,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,SAAS;QACf,MAAM;KAMP,CAAC;AACJ,CAAC,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.
|
|
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;
|
|
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,
|
|
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.
|
|
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,
|
|
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,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,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
|
|
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,
|
|
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"}
|
package/dist/v1/runner/screen.js
CHANGED
|
@@ -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
|
|
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,
|
|
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
|
|
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>;
|